/* ==========================================================================
   Design tokens — the single source of truth for the visual system.
   Every other stylesheet should consume these variables rather than
   hardcoding colors, spacing, or type values.
   ========================================================================== */

:root {
  /* ---- Color ---- */
  --color-bg: #000000;
  --color-surface: #101113;
  --color-surface-raised: #17181b;
  --color-text: #f5f6f7;
  --color-text-muted: #9a9ca3;
  --color-blue: #2e5bff;
  --color-blue-dark: #1638a8;
  --color-blue-contrast: #ffffff;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-surface-tint: rgba(255, 255, 255, 0.05);
  --color-border-strong: rgba(255, 255, 255, 0.22);
  --color-focus: #6f8fff;

  /* ---- Typography ---- */
  --font-display: "Oranienbaum", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-nav: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-subheading: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-eyebrow: 0.6875rem;
  --fs-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-h1: clamp(3rem, 2.2rem + 4vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.6rem + 1.6vw, 3rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-stat: clamp(3rem, 2.2rem + 3.2vw, 5rem);
  --fs-transition: clamp(2.25rem, 1.7rem + 2.8vw, 4.5rem);

  --lh-tight: 1.08;
  --lh-heading: 1.2;
  --lh-body: 1.6;

  --ls-eyebrow: 0.16em;

  /* ---- Spacing scale ---- */
  --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;

  /* ---- Containers ---- */
  --container-width: 1200px;
  --container-wide: 1440px;
  --container-gutter: clamp(1.25rem, 4vw, 3rem);

  /* ---- Borders / radius ---- */
  --border-width: 1px;
  --radius: 8px;
  --radius-sm: 4px;

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* ---- Layout ---- */
  --header-height: 76px;
  --z-header: 100;
  --z-overlay: 200;
}

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