/* Tokens mirror mobile/src/constants/theme.ts so the site and the app read as one product. */
@font-face {
  font-family: "Horizon";
  src: url("/assets/horizon.woff2") format("woff2");
  font-display: swap;
}

:root {
  --text: #1f1a15;
  --background: #faf8f4;
  --secondary: #8c7d6e;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Horizon", var(--sans);
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(221, 187, 78, 0.4); }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Horizon has a single weight; never ask the browser for a bold of it. */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.muted { color: var(--secondary); }

/* Header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { display: block; line-height: 0; }
.wordmark img { height: 14px; width: auto; }
.top nav { display: flex; gap: 28px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--secondary); transition: color 0.2s ease; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

/* The app's sculpted black button: dark face, metal rim, soft double drop. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background:
    linear-gradient(180deg, #141619 0%, #101214 55%, #070809 100%) padding-box,
    linear-gradient(180deg, #bec3c8 0%, #747a80 35%, #555a60 65%, #272b30 100%) border-box;
  border: 1.5px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 3px rgba(7, 8, 9, 0.16), 0 7px 14px rgba(7, 8, 9, 0.22);
  transition: transform 0.2s var(--ease);
}
.button:active { transform: scale(0.98); }

/* Hero: fills the first screen. Headline across the top, the object centre, words in the corners. */
.hero { padding: clamp(16px, 3vh, 40px) 0 0; }
.hero .wrap { min-height: calc(100svh - 76px); display: flex; flex-direction: column; }
.hero h1 { font-size: clamp(30px, 5vw, 84px); text-align: center; }
.hero h1 .muted { display: block; }
.hero-row {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.8fr) 1fr;
  align-items: end;
  gap: 24px;
  padding-bottom: clamp(24px, 5vh, 56px);
}
/* Sized to what the headline leaves of the first screen, so the button never drops below the fold. */
.hero-art { justify-self: center; width: auto; height: clamp(300px, calc(100svh - 76px - 15vw - 64px), 680px); max-width: 100%; object-fit: contain; }
.hero-side .lede { margin: 0 0 22px; max-width: 24ch; font-size: clamp(16px, 1.3vw, 18px); color: var(--secondary); }
.hero-facts { list-style: none; margin: 0; padding: 0; text-align: right; font-size: 14px; line-height: 2; color: var(--secondary); }

/* Steps: flat tiles in the app's element colour, one tall and two stacked. */
.moments { padding: clamp(48px, 8vw, 112px) 0 0; }
.moments ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, minmax(300px, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #f1eae2;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
}
.tile-tall { grid-row: span 2; }
.tile .copy { position: relative; z-index: 1; max-width: 30ch; }
.tile h2 { font-size: clamp(20px, 2vw, 28px); }
.tile p { margin: 10px 0 0; color: var(--secondary); }
.tile img { flex: 1; min-height: 0; width: 100%; object-fit: contain; object-position: center; margin-top: 16px; }
.tile:not(.tile-tall) { flex-direction: row; align-items: stretch; gap: 16px; }
.tile:not(.tile-tall) .copy { flex: 1; align-self: flex-start; }
.tile:not(.tile-tall) img { flex: 1.2; width: auto; max-width: 58%; margin: 0; }

/* Statement beside the lineup. */
.statement { padding: clamp(64px, 10vw, 144px) 0; }
.statement .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.statement p {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 450;
  text-wrap: pretty;
}

/* Closing */
.closing { padding-bottom: clamp(72px, 10vw, 144px); text-align: center; }
.closing h2 { font-size: clamp(28px, 4.6vw, 64px); margin: 0 auto 32px; max-width: 20ch; }

/* Footer */
.foot { padding: 0 0 40px; font-size: 13px; color: var(--secondary); }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; transition: color 0.2s ease; }
.foot a:hover { color: var(--text); }
.foot .fine { margin: 20px 0 0; max-width: 80ch; line-height: 1.6; }

/* Legal pages: a readable column under a display title. */
.legal { padding: clamp(48px, 9vw, 120px) 0 clamp(96px, 12vw, 160px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5.6vw, 60px); }
.legal .updated { margin: 18px 0 0; font-size: 14px; color: var(--secondary); }
.legal .body { margin-top: clamp(48px, 7vw, 80px); font-size: 16px; line-height: 1.7; color: rgba(31, 26, 21, 0.88); }
.legal section { scroll-margin-top: 24px; }
.legal section + section { margin-top: 48px; }
.legal h2 { margin: 0 0 14px; font-size: clamp(16px, 1.8vw, 19px); color: var(--text); }
.legal p { margin: 0 0 12px; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 0 0 8px; padding-left: 4px; }
.legal a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(31, 26, 21, 0.3); }
.legal a:hover { text-decoration-color: currentColor; }

/* Load and scroll-in, added by JS so content is visible without it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.moments li:nth-child(2) { transition-delay: 0.1s; }
.moments li:nth-child(3) { transition-delay: 0.2s; }
.hero-row .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero-row .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 860px) {
  .hero .wrap { min-height: 0; }
  .hero-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .hero-art { order: -1; height: auto; width: min(400px, 88%); margin: 8px 0 0; }
  .hero-side .lede { margin: 0 auto 20px; }
  .hero-facts { text-align: center; line-height: 1.8; }
  .moments ol { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile-tall { grid-row: auto; }
  .tile-tall img { max-height: 320px; }
  .tile:not(.tile-tall) { flex-direction: column; }
  .tile:not(.tile-tall) .copy { flex: none; }
  .tile:not(.tile-tall) img { max-width: 100%; max-height: 260px; margin-top: 16px; }
  .statement .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .top nav { gap: 20px; }
  .wordmark img { height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
