/* Design tokens — every visual decision lives here.
   Change a token, the whole site updates. */

:root {
  /* ---------- color ---------- */
  --color-accent:        #f4bc16;
  --color-accent-hover:  #d9a512;
  --color-ink:           #0b1f3a;
  --color-ink-soft:      #3b4a63;
  --color-text:          #1f2937;
  --color-muted:         #6b7280;
  --color-bg:            #ffffff;
  --color-bg-alt:        #f8fafc;
  --color-bg-dark:       #0b1f3a;
  --color-border:        #e5e7eb;
  --color-border-strong: #cbd5e1;
  --color-error:         #b91c1c;
  --color-success:       #15803d;

  /* ---------- typography ---------- */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-hero: 3.25rem;

  --lh-tight: 1.2;
  --lh-snug:  1.35;
  --lh-body:  1.55;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;

  --tracking-tight: -0.015em;
  --tracking-base:  0;
  --tracking-wide:  0.04em;

  /* ---------- spacing (4px base) ---------- */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-section: 6rem;

  /* ---------- radius / shadow / motion ---------- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 31, 58, 0.12);
  --shadow-focus: 0 0 0 3px rgba(244, 188, 22, 0.4);

  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur:      200ms;
  --dur-slow: 320ms;

  /* ---------- layout ---------- */
  --container-max: 1200px;
  --content-max:   72ch;
  --nav-h:         72px;
  --sticky-cta-h:  64px;
}

/* Mobile: tighten the scale so the page doesn't shout */
@media (max-width: 640px) {
  :root {
    --fs-hero: 2.25rem;
    --fs-3xl:  1.875rem;
    --fs-2xl:  1.5rem;
    --space-section: 3.5rem;
    --space-3xl:     3rem;
    --nav-h:         60px;
  }
}
