/* ============ tokens — the whole visual language in one place ============
   Layered warm near-blacks (never flat #000), one warm off-white ink, a single
   signal accent used for <5% of pixels. Motion tokens mirror js/core/reveal.js. */

:root {
  /* surfaces — each step is a few % lighter, so depth comes from tone, not shadows */
  --bg: #0a0a0b;
  --bg-deep: #070708;
  --surface-1: #111113;
  --surface-2: #17171a;
  --surface-3: #1e1e22;

  /* ink — warm off-white avoids the halation of pure white on black */
  --ink: #ece8e1;
  --ink-2: rgba(236, 232, 225, 0.72);
  --ink-3: rgba(236, 232, 225, 0.48);
  --ink-4: rgba(236, 232, 225, 0.28);
  --hairline: rgba(236, 232, 225, 0.1);
  --hairline-strong: rgba(236, 232, 225, 0.2);

  /* the one signal colour: noise, live state, the active thing */
  --signal: #ff5b2e;
  --signal-soft: rgba(255, 91, 46, 0.16);

  /* type */
  --font-sans: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --fs-mega: clamp(3.25rem, 1rem + 11.2vw, 13.5rem);
  --fs-display: clamp(2.6rem, 1.4rem + 5.4vw, 7.5rem);
  --fs-h2: clamp(2.1rem, 1.3rem + 3.4vw, 5rem);
  --fs-h3: clamp(1.6rem, 1.15rem + 1.9vw, 3rem);
  --fs-lead: clamp(1.15rem, 0.98rem + 0.75vw, 1.7rem);
  --fs-body: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  --fs-small: clamp(0.875rem, 0.84rem + 0.12vw, 0.95rem);
  --fs-label: clamp(0.6875rem, 0.66rem + 0.12vw, 0.78rem);
  /* every chapter title (Lab, Work, Stack, Experience, In the open) — one size; the vh cap keeps
     it off the ceiling of short windows, where Experience's pinned panel has to fit it.
     Contact is the finale and stays larger. */
  --fs-chapter: clamp(2.5rem, min(1.2rem + 5vw, 10vh), 6.5rem);

  /* layout */
  --gutter: clamp(1rem, 0.6rem + 1.9vw, 2.5rem);
  --col-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  --max: 1680px;
  /* section top → kicker, for every chapter that opens on its own (see css/type.css) */
  --section-pad-top: clamp(5rem, 12vh, 9rem);
  --nav-h: 72px;
  --radius-s: 4px;
  --radius-m: 10px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-ui: cubic-bezier(0.2, 0, 0.38, 0.9);
  --d-micro: 160ms;
  --d-ui: 260ms;
  --d-reveal: 900ms;
  --d-scene: 1300ms;
}
