/* Not-found (404) section. Single centered panel that rides the site's
   shared glass-strip container from base.css. Big gradient 404 numeral
   anchors the composition; the rest is a standard eyebrow + headline
   + deck + CTAs + suggested routes stack. */

.not-found {
  padding-block: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

/* The .container already gets glass card styling from base.css.
   Override padding-block for extra breathing room, then center the
   column and cap its width. */
.not-found__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) !important;
}

/* Override the site-wide .eyebrow-chip { align-self: flex-start }
   so the chip centers above the 404 numeral in this layout. */
.not-found__frame > .eyebrow-chip {
  align-self: center;
  margin-bottom: 0.25rem;
}

/* Big 404 numeral. Teal→blue gradient clipped to text, subtle
   outer glow so it sits above the hash pattern cleanly. */
.not-found__code {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 18vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 40px color-mix(in oklch, var(--brand-teal) 22%, transparent));
}

.not-found__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-foreground);
}

.not-found__body {
  margin: 0;
  max-width: 44ch;
  font-size: var(--fs-base);
  color: var(--color-muted-foreground);
  line-height: var(--lh-snug);
}

.not-found__actions {
  margin-top: 0.75rem;
  justify-content: center;
}

/* --- Suggested jumps -------------------------------------------- */

.not-found__jumps {
  align-self: stretch;
  margin-top: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.not-found__jumps-label {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-muted-foreground);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found__jumps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.not-found__jump {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  color: var(--color-foreground);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-medium);
  background: color-mix(in oklch, var(--color-background) 60%, transparent);
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.not-found__jump .icon {
  transition: transform var(--dur-fast) var(--ease);
  opacity: 0.55;
}
.not-found__jump:hover,
.not-found__jump:focus-visible {
  outline: none;
  color: var(--brand-teal);
  border-color: color-mix(in oklch, var(--brand-teal) 45%, var(--color-border));
  background: color-mix(in oklch, var(--brand-teal) 6%, var(--color-background));
  transform: translateY(-1px);
}
.not-found__jump:hover .icon,
.not-found__jump:focus-visible .icon {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 640px) {
  .not-found__actions.btn-group { flex-direction: column; align-items: stretch; }
  .not-found__actions .btn { width: 100%; }
}
