/* ==========================================================================
   Any Destination — single page
   1. Tokens
   2. Reset & base
   3. Layout
   4. Logo
   5. Contact facts
   6. Call to action
   7. Footer
   8. Motion
   9. Legal pages
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --navy: #132a4a;
  --navy-deep: #0b1c33;
  --gold: #c9a24d;
  --gold-soft: #e2c586;
  --ink: #1b2a3d;
  --muted: #6f7c8c;
  --bg: #ffffff;
  --line: rgba(19, 42, 74, 0.1);

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-pill: 999px;
  --shadow-cta: 0 10px 30px rgba(19, 42, 74, 0.22);
  --shadow-cta-hover: 0 16px 38px rgba(19, 42, 74, 0.3);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Reset & base ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Ambient wash sits behind everything, never scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 15% 10%, rgba(201, 162, 77, 0.1), transparent 60%),
    radial-gradient(50rem 40rem at 90% 85%, rgba(19, 42, 74, 0.1), transparent 60%);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Readable by screen readers and crawlers, invisible on screen. The visible
   headline lives inside the logo artwork. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 3. Layout ------------------------------------------------------------- */
/* Never taller than the viewport: every vertical value below is capped in vh
   as well as rem, so the hero shrinks with short screens instead of scrolling. */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2.5rem) 1.25rem;
  overflow: hidden;
}

.hero__inner {
  width: 100%;
  max-width: 56rem;
  text-align: center;
  animation: rise 0.8s var(--ease) both;
}

/* 4. Logo --------------------------------------------------------------- */
/* Horizontal lockup: the wordmark and tagline are part of the artwork, so it
   carries the headline. Width drives the size; the vh cap keeps it from
   dominating short viewports (native ratio is 1410:523, roughly 2.7:1). */
.hero__logo {
  width: min(34rem, 88vw);
  max-height: 30vh;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(19, 42, 74, 0.14));
}

/* The <picture> exists only to offer a WebP source. Take it out of the box tree
   so the <img> stays a direct block child of .hero__inner and margin:auto still
   centres it. */
.hero__inner picture {
  display: contents;
}

/* 5. Contact facts ------------------------------------------------------ */
.facts {
  list-style: none;
  margin: clamp(1.5rem, 4vh, 2.5rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.facts__item {
  flex: 0 1 auto;
}

.fact {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

a.fact:hover,
a.fact:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 42, 74, 0.08);
}

.fact__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 6. Call to action ----------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
  padding: clamp(0.85rem, 2vh, 1rem) 2.4rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s, box-shadow 0.25s;
}

/* Gold sheen sweeps across on hover. */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(226, 197, 134, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.cta:hover::after,
.cta:focus-visible::after {
  transform: translateX(120%);
}

.cta__icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke: var(--gold-soft);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 7. Footer ------------------------------------------------------------- */
/* Sticky, not fixed: it pins to the viewport bottom while the hero scrolls
   past it, but still reserves its own space so nothing hides underneath. */
.footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.15rem;
}

.footer__sep {
  opacity: 0.4;
  margin: 0 0.6rem;
}

.footer__credit a {
  color: var(--navy);
}

.footer__heart {
  color: var(--gold);
  font-size: 0.85em;
  display: inline-block;
  animation: beat 2.4s ease-in-out infinite;
}

/* Stack footer items on narrow phones instead of wrapping mid-dot.
   A zero-height full-width flex item forces the line break. */
@media (max-width: 34rem) {
  .footer__sep {
    flex: 0 0 100%;
    height: 0;
    margin: 0.3rem 0;
    visibility: hidden;
  }
}

/* 8. Motion ------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1); }
  36% { transform: scale(1.18); }
  48% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner,
  .footer__heart {
    animation: none;
  }
  .cta::after {
    transition: none;
  }
}

/* 9. Legal pages -------------------------------------------------------- */
/* Long-form document layout. Shares the tokens and the sticky footer with the
   hero page, but flows normally instead of centring in the viewport. */
.legal {
  flex: 1;
  padding: 3rem 1.25rem 4rem;
}

.legal__inner {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.legal__back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.legal__back:hover {
  color: var(--navy);
}

.legal h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.legal__meta {
  margin: 0.5rem 0 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The opening claim carries the whole point of the page: no cookies. */
.legal__lede {
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 77, 0.07);
  border-radius: 0 4px 4px 0;
}

.legal h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.125rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.legal h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--gold-soft);
}

.legal a:hover {
  text-decoration-color: var(--gold);
}

.legal code {
  padding: 0.1em 0.35em;
  font-size: 0.875em;
  background: rgba(19, 42, 74, 0.06);
  border-radius: 3px;
}

.legal__dl {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.legal__dl dt {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal__dl dd {
  margin: 0;
}

@media (max-width: 34rem) {
  .legal__dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .legal__dl dd {
    margin-bottom: 0.75rem;
  }
}

/* Unfilled legal identifiers. Deliberately loud: this must never reach
   production unnoticed. Delete the span, keep the value. */
.legal__todo {
  padding: 0.05em 0.4em;
  border-radius: 3px;
  background: #ffe8e8;
  color: #96231f;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #96231f;
}

/* 10. Not found --------------------------------------------------------- */
/* Reuses the hero shell, so the page keeps the same centred composition and
   sticky footer as the home page. */
.notfound__code {
  margin: 0;
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, var(--navy) 20%, var(--gold) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound__title {
  margin: clamp(0.75rem, 2vh, 1.25rem) 0 0;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.notfound__text {
  margin: 0.75rem auto 0;
  max-width: 30rem;
  color: var(--muted);
  line-height: 1.7;
}
