/* ==========================================================================
   AQ Media — design tokens
   Every visual value on the site resolves here. Do not introduce raw values
   in page CSS or HTML. See DESIGN.md §2–§5.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces ------------------------------------------------------------- */
  --ink: #050507;
  --ink-2: #08080c;
  --surface: #0b0b11;
  --surface-2: #101017;
  --surface-3: #16161f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Text ----------------------------------------------------------------- */
  --text: #f4f4f7;
  --text-soft: #c9c9d4;
  --muted: #9b9baa;
  --dim: #7c7c8c;

  /* Accents -------------------------------------------------------------- */
  --violet: #c24ce4;
  --violet-soft: #e7b4f7;
  --mint: #2ee6a8;
  --amber: #ffcf6b;
  --coral: #ff7a4d;
  --indigo: #7b5cff;

  --grad-brand: linear-gradient(100deg, var(--violet) 0%, var(--indigo) 54%, var(--mint) 100%);
  --grad-text: linear-gradient(96deg, var(--violet-soft) 0%, #b18cff 46%, var(--mint) 100%);
  --grad-hair: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);

  /* Typography ----------------------------------------------------------- */
  --font-display: "Space Grotesk", "Space Grotesk Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Satoshi", "Satoshi Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-display: clamp(2.6rem, 5.2vw, 4.6rem);
  --step-h2: clamp(1.85rem, 3.3vw, 2.85rem);
  --step-h3: 1.3125rem;
  --step-lead: clamp(1.0625rem, 1.3vw, 1.25rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;
  --step-micro: 0.75rem;

  --track-display: -0.035em;
  --track-h2: -0.03em;
  --track-micro: 0.18em;

  /* Space ---------------------------------------------------------------- */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 48px;
  --s10: 64px;
  --s11: 80px;
  --s12: 96px;
  --s13: 128px;

  --section-y: clamp(72px, 8.6vw, 132px);
  --gutter: clamp(20px, 4.5vw, 48px);
  --max: 1240px;
  --prose: 68ch;

  /* Shape ---------------------------------------------------------------- */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation + effects -------------------------------------------------- */
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow: 0 40px 80px -60px #000;
  --glow-violet: 0 0 0 1px rgba(194, 76, 228, 0.28), 0 24px 64px -40px rgba(194, 76, 228, 0.55);

  /* Motion --------------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 220ms;
  --t-slow: 520ms;

  --nav-h: 68px;
}

/* Approximate metric-matched fallbacks. Tuned against measured CLS, not guessed
   from memory: kept deliberately close to the webfonts' x-height/cap-height. */
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 97%;
  ascent-override: 98%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 101%;
  ascent-override: 96%;
  descent-override: 26%;
  line-gap-override: 0%;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 1ms;
    --t-base: 1ms;
    --t-slow: 1ms;
  }
}
