/* Purpose: 404 screen — one dark panel, oversized foil figure behind the message. */

/* The dock is a booking CTA and the page has its own, so its clearance is dropped here. */
body:has(.error404) {
  padding-bottom: 0;
}

.error404 {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: var(--space-64) 0;
  overflow: hidden;
  background: var(--surf-glow), var(--surf-raise);
  color: var(--color-ink);
  text-align: center;
}

.error404__inner {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  justify-items: center;
  gap: var(--space-20);
  max-width: 720px;
}

.error404__code {
  font-family: var(--font-display);
  font-size: clamp(90px, 22vw, 220px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-qty);
  color: var(--color-gold-300);
  text-shadow: var(--text-glow-qty);
}

.error404__heading {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--leading-h2);
}

.error404__heading b {
  color: var(--color-gold-300);
  font-weight: inherit;
}

.error404__text {
  margin: 0;
  max-width: 560px;
  font-size: var(--fs-lead);
  line-height: var(--leading-lead);
  color: var(--color-ink-3);
}

.error404__note {
  margin: 0;
  font-size: var(--fs-14-5);
  color: var(--color-muted);
}

.error404__note b {
  color: var(--color-gold-200);
  font-weight: var(--weight-bold);
}

/* The admin bar eats 32px off the viewport for logged-in users only. */
@media (min-width: 783px) {
  .admin-bar .error404 {
    min-height: calc(100dvh - 32px);
  }
}
