:root {
  /* Background & surfaces — cool industrial black */
  --color-bg: #000000;
  --color-bg-elevated: #0a0a0a;
  --color-surface: #111111;
  --color-surface-hover: #161616;
  --color-border: #2a2a2a;
  --color-border-subtle: #1a1a1a;

  /* Text — high-contrast white / cool gray */
  --color-text: #ffffff;
  --color-text-muted: #8b949e;
  --color-text-faint: #6e7681;

  /* Accent — signal white + restrained steel */
  --color-accent: #ffffff;
  --color-accent-muted: #c9d1d9;
  --color-accent-subtle: rgba(255, 255, 255, 0.06);
  --color-signal: #58a6ff;
  --color-signal-muted: #388bfd;

  --color-header-scrim: rgba(0, 0, 0, 0.85);
  --color-verified-border: rgba(63, 185, 80, 0.4);
  --color-license-border: rgba(88, 166, 255, 0.35);

  /* Surfaces */
  --surface-card-bg: var(--color-bg-elevated);
  --surface-card-border: var(--color-border);
  --surface-card-radius: var(--radius-sm);
  --color-verified: #3fb950;
  --color-verified-bg: rgba(63, 185, 80, 0.12);
  --color-issue: #f85149;
  --color-license: #58a6ff;

  /* Typography — geometric industrial */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", "Consolas", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 7vw, 5rem);
  --text-display: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-caption: 0.8125rem;

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-7: 1.75rem;
  --space-14: 3.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-max: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-height: 4rem;
  --scroll-offset: calc(var(--header-height) + var(--space-4));
  --prose-header-max: 40rem;
  --prose-body-max: 34rem;
  --prose-narrow-max: 32rem;
  --grid-card-min: 280px;

  /* Radii — sharper, industrial */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Shadows */
  --shadow-card: none;
  --shadow-glow: 0 0 0 1px var(--color-border);

  /* Motion */
  --duration-fast: 100ms;
  --duration-normal: 180ms;
  --duration-slow: 280ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Focus */
  --focus-ring: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-signal);

  /* Breakpoints */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

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