/* === Design tokens · single source of truth for color, type, space ===
   Philosophy: editorial-cinematic. One signal color (lime), one warm secondary,
   the rest is paper + ink. No purple gradients. No glass cards. */

:root {
  /* Color · base */
  --color-bg:           #0a0a0b;
  --color-bg-elevated:  #111113;
  --color-bg-soft:      #16161a;
  --color-ink:          #f5f5f3;
  --color-ink-muted:    #a3a39c;
  --color-ink-subtle:   #6b6b66;
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-strong:rgba(255, 255, 255, 0.16);

  /* Color · signal (single accent rule) */
  --color-signal:       #d4ff3a;   /* electric lime */
  --color-signal-soft:  rgba(212, 255, 58, 0.12);
  --color-warm:         #ff6b35;   /* warm orange — used sparingly */
  --color-success:      #5dd9a8;
  --color-danger:       #ff5a5a;

  /* Typography · families */
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Typography · scale (fluid clamps · mobile-first) */
  --fs-display:   clamp(3.5rem, 11vw, 11rem);
  --fs-h1:        clamp(2.5rem, 6.5vw, 5.5rem);
  --fs-h2:        clamp(2rem, 4.5vw, 3.5rem);
  --fs-h3:        clamp(1.5rem, 2.4vw, 2rem);
  --fs-h4:        1.125rem;
  --fs-body:      1rem;
  --fs-body-lg:   1.125rem;
  --fs-small:     0.875rem;
  --fs-micro:     0.75rem;

  /* Line heights · display tight, body comfortable */
  --lh-display:   0.92;
  --lh-heading:   1.08;
  --lh-body:      1.6;
  --lh-tight:     1.3;

  /* Tracking */
  --ls-display:   -0.03em;
  --ls-heading:   -0.02em;
  --ls-body:      0;
  --ls-kicker:    0.14em;
  --ls-mono:      0.02em;

  /* Spacing · 8pt-ish modular */
  --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;
  --space-11: 12rem;

  /* Layout */
  --container-max:   1440px;
  --container-pad:   clamp(1.25rem, 4vw, 3rem);
  --gutter:          clamp(1rem, 2vw, 1.5rem);

  /* Borders & radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --border-w:  1px;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1:       180ms;
  --dur-2:       320ms;
  --dur-3:       600ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
