/* ============================================================
   DevelopEd — tokens.css  ·  Direction: "Systems" (engineered dark)
   Single source of visual truth. Every component reads var(--token).
   Fonts are self-hosted (woff2, variable) — see @font-face in main.css.
   Space Grotesk (display) · IBM Plex Sans (body) · JetBrains Mono (mono)
   ============================================================ */

:root {

  /* ---------- COLOR (roles) ---------- */
  --color-bg:            #0B0D11;              /* page background */
  --color-surface:       #13161C;              /* cards / raised panels */
  --color-surface-2:     #1B1F27;              /* nested / alt surface */
  --color-text:          #E8EBF0;              /* primary text (AA on --color-bg) */
  --color-text-muted:    #9AA2B1;              /* secondary text (AA on --color-bg) */
  --color-accent:        #7CA0FF;              /* primary action / brand accent */
  --color-accent-hover:  #9CBAFF;              /* accent hover/active */
  --color-on-accent:     #0B0D11;              /* text on accent (AA) */
  --color-border:        rgba(255,255,255,.10);/* hairlines / dividers */
  --color-hair:          rgba(255,255,255,.06);/* faint internal rules */
  --color-focus:         #7CA0FF;              /* :focus-visible ring */
  --color-success:       #5BE3A0;              /* contact form success */
  --color-error:         #FF7A7A;              /* contact form error */

  /* ---------- TYPE ---------- */
  --font-sans:     'IBM Plex Sans', system-ui, sans-serif;      /* body / UI */
  --font-display:  'Space Grotesk', system-ui, sans-serif;      /* headings / hero */
  --font-mono:     'JetBrains Mono', ui-monospace, monospace;   /* labels / meta / chips */

  --fs-hero:   clamp(2.3rem, 6.2vw, 4.4rem);   /* mobile floor ~37px (>=22) */
  --fs-h1:     clamp(1.9rem, 4vw, 3rem);       /* >= 28px */
  --fs-h2:     clamp(1.85rem, 3.4vw, 2.6rem);  /* section titles >= 28px */
  --fs-h3:     clamp(1.2rem, 2vw, 1.45rem);
  --fs-body:   clamp(1rem, 1.1vw, 1.0625rem);  /* 16-17px (>= 14) */
  --fs-small:  0.8125rem;                       /* 13px (>= 12 floor) */

  --lh-tight:  1.05;
  --lh-snug:   1.3;
  --lh-body:   1.6;
  --tracking-tight: -0.025em;
  --tracking-wide:   0.10em;    /* mono labels / eyebrows */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;

  /* ---------- SPACE (rhythm scale) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;
  --section-y: clamp(72px, 10vw, 120px);   /* section vertical rhythm */

  /* ---------- RADII ---------- */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-full: 999px;

  /* ---------- SHADOW / ELEVATION (tuned for dark) ---------- */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow-md:  0 10px 30px rgba(0,0,0,.45);
  --shadow-lg:  0 30px 60px rgba(0,0,0,.55);
  --glow-accent: 0 0 10px rgba(124,160,255,.55);   /* signal dot / focus glow */

  /* ---------- MOTION (transform/opacity only) ---------- */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast:    160ms;
  --dur-base:    260ms;
  --dur-slow:    480ms;

  /* ---------- LAYOUT ---------- */
  --maxw-content: 1120px;
  --gutter-mobile: 20px;
  --gutter-hero:   24px;
  --touch-min:     44px;

  /* ---------- BUILD ADDITIONS ----------
     Not in the handoff kit, but required by the shared shell. Kept minimal
     and commented; frozen alongside the rest of this file after this pass. */
  --maxw:     var(--maxw-content);  /* alias used across components */
  --gutter:   var(--gutter-mobile); /* alias: default inner L/R padding */
  --z-header: 60;                   /* sticky header stacking (spec) */
  --card-radius: 14px;              /* work card / media / portrait (spec = 14px) */

  /* Legacy spacing aliases — the 5 not-yet-rebuilt pages reference these old
     names in inline styles. Kept until those pages are rebuilt next pass so the
     shared-CSS swap doesn't regress their layout (see pass 2 R3). Values match
     the pass-1 scale exactly. */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
}

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