/* =============================================================
   Design tokens — single source of truth.
   No hard-coded hex/px anywhere else in the CSS.
   ============================================================= */

:root {
  /* --- Brand / accent ------------------------------------- */
  --color-accent: #1d4ed8;          /* primary accent — AA on paper, white text AA on it */
  --color-accent-bright: #2563eb;   /* hovers, graphic uses */
  --color-accent-press: #1e40af;
  --color-accent-soft: #eff4ff;     /* tinted fills: tags, section washes */
  --color-accent-line: #c7d7fe;

  /* --- Neutrals -------------------------------------------- */
  --color-ink: #0b0d12;
  --color-ink-soft: #2a2e37;
  --color-ink-muted: #555b66;
  --color-ink-faint: #8a8f99;
  --color-paper: #ffffff;
  --color-paper-warm: #f7f7f5;
  --color-line: #e4e4e0;
  --color-line-soft: #ededea;

  --color-ink-08: rgba(11, 13, 18, 0.08);
  --color-ink-60: rgba(11, 13, 18, 0.6);
  --color-paper-80: rgba(255, 255, 255, 0.8);

  /* --- Type ------------------------------------------------- */
  --font-display: "Clash Display", "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --fs-hero: clamp(2.5rem, 1.2rem + 5.2vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.1rem + 2.9vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 1.05rem + 1.2vw, 1.9rem);
  --fs-h4: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --fs-body-lg: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-body-sm: 0.9rem;
  --fs-eyebrow: 0.8rem;
  --fs-stat: clamp(2.4rem, 1.6rem + 3vw, 4rem);

  --lh-tight: 1.05;
  --lh-heading: 1.15;
  --lh-body: 1.6;

  --ls-eyebrow: 0.14em;

  /* --- Spacing ---------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-section: clamp(80px, 6vw + 40px, 140px);

  /* --- Layout ------------------------------------------------ */
  --container-max: 1200px;
  --container-pad: 48px;
  --nav-height: 72px;

  /* --- Radii -------------------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* --- Shadows ------------------------------------------------ */
  --shadow-card: 0 2px 6px rgba(11, 13, 18, 0.05), 0 16px 40px rgba(11, 13, 18, 0.08);
  --shadow-nav: 0 1px 0 var(--color-line-soft), 0 8px 24px rgba(11, 13, 18, 0.06);

  /* --- Motion ------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.4s;
}

@media (max-width: 1024px) {
  :root {
    --container-pad: 32px;
    /* Hero shares the row with the portrait here — keep the
       headline from towering in a narrow column */
    --fs-hero: clamp(2.5rem, 0.8rem + 4vw, 3.6rem);
  }
}

@media (max-width: 640px) {
  :root {
    --container-pad: 20px;
    --nav-height: 64px;
  }
}
