/* Base layer: tokens, type, primitives. A dark stage lit by one source,
   Solomia. Yellow only ever marks meaning discovered. */
:root {
  color-scheme: dark;
  --bg: #0A0A0C;
  --raised: #111114;
  --glass: rgba(14, 14, 17, .72);
  --glass-solid: #141416;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .16);
  --text: #F2F1ED;
  --text-2: #A9A8A3;
  --text-3: #8C8B85;
  --ink: #0A0A0C;
  --meaning: #F5C518;
  /* Her light, where it touches glass edges near her. Never paint. */
  --dawn-1: #FFB08A;
  --dawn-2: #E8768F;
  --ember: #FF6B6B;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-dots: "Doto", "Geist Mono", ui-monospace, monospace;

  /* one scale, 1.25 from 16 */
  --s-13: .8125rem;
  --s-16: 1rem;
  --s-20: 1.25rem;
  --s-25: 1.5625rem;
  --s-31: 1.9375rem;
  --s-39: 2.4375rem;
  --s-49: 3.0625rem;
  --s-61: 3.8125rem;
  --s-76: 4.75rem;
  --s-95: 5.9375rem;
  --s-119: 7.4375rem;
  --caps-track: .14em;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --r-28: 28px;
  --r-24: 24px;
  --r-20: 20px;
  --r-12: 12px;
  --r-8: 8px;

  --out: cubic-bezier(.16, 1, .3, 1);
  --move: cubic-bezier(.65, 0, .35, 1);
  --away: cubic-bezier(.55, 0, .75, .2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* fine film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .035;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(245, 197, 24, .28); color: var(--text); }
:focus-visible { outline: 2px solid var(--meaning); outline-offset: 3px; border-radius: 6px; }

/* A phone on its side keeps the text clear of the notch. */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.caps {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--caps-track);
  text-transform: uppercase;
  color: var(--text-2);
}
.t3 { color: var(--text-3); }
.t2 { color: var(--text-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: 0; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--ink); text-decoration: none; font-weight: 500; transform: translateY(-120%); }
.skip:focus { transform: translateY(12px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 var(--s-16)/1 var(--font-sans); letter-spacing: -.005em; text-decoration: none;
  transition: transform .1s var(--out), opacity .1s var(--out), background-color .15s var(--out), border-color .15s var(--out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-3); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .32); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--s-13); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}
