/* ============================================================
   tokens.css: theme-INDEPENDENT design tokens
   Colors, fonts and radii live in the theme file (theme-a/b/c.css).
   Everything here is identical across all themes.
   Load order: tokens.css → base.css → theme-X.css
   ============================================================ */

:root {
  /* Layout */
  --wrap: 1080px;
  --wrap-prose: 68ch;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  /* Type scale: fluid where it matters */
  --fs-hero: clamp(2.2rem, 5.5vw, 3.4rem);
  --fs-h2:   clamp(1.35rem, 2.6vw, 1.85rem);
  --fs-h3:   1.05rem;
  --fs-body: 1rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.78rem;

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh:       1.62;

  /* Section rhythm */
  --section-pad: clamp(2.5rem, 6vw, 4.5rem);
  --hero-pad-top: clamp(3rem, 9vw, 6.5rem);

  /* Motion */
  --dur: 0.18s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.001s; }
  html { scroll-behavior: auto !important; }
}
