/* Hallmark · genre: modern-minimal (dark) · macrostructure: Feature Stack + Map/Diagram · theme: custom
 * vibe: "near-black engineering lab, one cyan signal"
 * paper: oklch(14.5% 0.012 255) · accent: oklch(86% 0.135 205) cyan (from the Nexilra mark)
 * display: Space Grotesk 300 · body: Geist 400 · outlier: Geist Mono (technical labels)
 * axes: dark / grotesk-sans / cool
 */
:root {
  /* colour — dark environment (default) */
  --color-paper:   oklch(14.5% 0.012 255);
  --color-paper-2: oklch(17.5% 0.014 255);
  --color-paper-3: oklch(21% 0.016 255);
  --color-rule:    oklch(27% 0.014 255);
  --color-rule-2:  oklch(36% 0.016 255);
  --color-neutral: oklch(66% 0.014 250);
  --color-muted:   oklch(79% 0.010 245);
  --color-ink:     oklch(95.5% 0.008 230);
  --color-accent:  oklch(86% 0.135 205);
  --color-accent-ink: oklch(18% 0.03 230);  /* text on accent fills */
  --color-signal-2: oklch(58% 0.19 268);    /* indigo — diagrams only */
  --color-focus:   oklch(86% 0.135 205);
  --color-grid:    oklch(22% 0.014 255);
  --color-nav-clear: oklch(14.5% 0.012 255 / 0);
  --color-pill-clear: oklch(19% 0.014 255 / 0);
  --color-pill: oklch(19% 0.014 255 / 0.82);
  --shadow-pill: 0 0 0 1px oklch(40% 0.02 255 / 0.45), 0 12px 32px -12px oklch(8% 0.02 255 / 0.8);
  --color-error:   oklch(72% 0.16 25);
  --color-success: oklch(82% 0.14 160);

  /* light environment (alternating work scenes) */
  --light-paper:   oklch(96.5% 0.006 240);
  --light-paper-2: oklch(92.5% 0.008 240);
  --light-rule:    oklch(84% 0.010 245);
  --light-neutral: oklch(45% 0.016 250);
  --light-ink:     oklch(18% 0.014 255);
  --light-accent:  oklch(50% 0.13 230);

  /* type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-lg:   1.5625rem;
  --text-xl:   clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --text-2xl:  clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --text-display:   clamp(2.9rem, 1.2rem + 6.4vw, 7.5rem);
  --text-display-s: clamp(2.4rem, 1.2rem + 4.4vw, 5.25rem);

  /* space — 4pt */
  --space-3xs: 0.125rem;
  --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;
  --page-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --page-max: 88rem;

  /* shape */
  --rule-hair: 1px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --dur-nav: 520ms;

  /* z */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 200;
  --z-modal: 400;
}
