/* Design tokens (spec chapters 10 and 11). Colors stay 6-digit hex literals: test/contrast.test.mjs reads them. */
:root {
  /* Colors: DDM core (10.1) */
  --navy-950: #08111f;
  --navy-900: #0a1628;
  --navy-800: #0f2036;
  --navy-700: #13233a;
  --navy-600: #29415f;
  --orange: #ff3300;
  --orange-ink: #c92800;
  --orange-strong: #ff5533;
  --logo-blue: #2039c9;

  /* Colors: light and neutral (10.1) */
  --paper: #f4f6f9;
  --white: #ffffff;
  --ink-muted: #4a5a70;
  --line: #d5dbe3;
  --line-strong: #6b7a8f;
  --muted-on-dark: #b0b8c4;

  /* Colors: buttons and status labels in GitHub style (D20) */
  --button-light: #f6f8fa;
  --button-light-hover: #eef1f4;
  --button-dark: #1b2d47;
  --button-dark-hover: #233a5a;
  --button-dark-border: #7189a8;
  --label-live: #1a7f37;
  --label-live-bg: #dafbe1;
  --label-early: #0969da;
  --label-early-bg: #ddf4ff;
  --label-wait: #59636e;
  --label-wait-bg: #f6f8fa;
  --label-live-dark: #56d364;
  --label-live-bg-dark: #143337;
  --label-early-dark: #79c0ff;
  --label-early-bg-dark: #153054;
  --label-wait-dark: #b7c3d3;
  --label-wait-bg-dark: #1a2a3f;

  /* Typography (10.2) */
  --font-display: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --fs-display-xl: clamp(2.5rem, 1.6rem + 1.9vw, 3.5rem);
  --lh-display-xl: 0.98;
  --ls-display-xl: -0.035em;
  --fw-display-xl: 700;

  --fs-display-l: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  --lh-display-l: 1.02;
  --ls-display-l: -0.03em;
  --fw-display-l: 700;

  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --lh-h2: 1.08;
  --ls-h2: -0.02em;
  --fw-h2: 700;

  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --lh-h3: 1.2;
  --ls-h3: -0.01em;
  --fw-h3: 600;

  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --lh-lead: 1.5;
  --ls-lead: 0;
  --fw-lead: 400;

  --fs-body: 1.0625rem;
  --lh-body: 1.6;
  --ls-body: 0;
  --fw-body: 400;

  --fs-small: 0.875rem;
  --lh-small: 1.5;
  --ls-small: 0;
  --fw-small: 400;

  --fs-label: 0.875rem;
  --lh-label: 1.4;
  --ls-label: 0;
  --fw-label: 600;

  /* Spacing and grid (10.3) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-space: clamp(4rem, 3rem + 5vw, 8rem);
  --container-max: 76rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --grid-columns: 4;
  --grid-gap: 24px;

  /* Lines and radii (10.4) */
  --hairline: 1px;
  --focus-width: 2px;
  --focus-offset: 2px;
  --radius-pill: 999px;
  --radius-control: 6px;

  /* Motion (11) */
  --reveal-duration: 520ms;
  --reveal-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-distance: 12px;
  --reveal-stagger: 60ms;
  --hover-duration: 200ms;
  --hover-lift: 2px;
  --arrow-shift: 4px;
}

@media (min-width: 768px) {
  :root {
    --grid-columns: 8;
  }
}

@media (min-width: 1024px) {
  :root {
    --grid-columns: 12;
  }
}

@media (min-width: 1280px) {
  :root {
    --grid-gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --hover-duration: 100ms;
  }
}
