/* Design tokens. Mirrors docs/design-system.md §2 and §7 one-to-one.
   Do not invent tokens here. Update the spec first, then this file. */

:root {
  /* Colors (§2.1) */
  --color-bg-page: #e4e4e4;
  --color-bg-surface: #f6f6f6;
  --color-bg-surface-inverse: #0a0a0a;
  --color-text: #0a0a0a;
  --color-text-muted: #636363;
  --color-text-on-accent: #0a0a0a;
  --color-text-on-dark: #ffffff;
  --color-border: #aaaaaa;
  --color-border-subtle: #d4d4d4;
  --color-accent: #ff7020;
  --color-accent-weak: rgba(255, 112, 32, 0.12);
  --color-backdrop-modal: rgba(10, 10, 10, 0.7);
  --color-backdrop-drawer: rgba(10, 10, 10, 0.5);

  /* Semantic status colors (§7) */
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-info: #0a0a0a;

  /* Font families (§2.2) */
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Font sizes */
  --text-xs: 0.6875rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line heights */
  --leading-display: 0.95;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing */
  --tracking-tight: -0.03em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.06em;
  --tracking-widest: 0.1em;

  /* Spacing scale (§2.3) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Borders (§2.4) */
  --border-width: 1px;
  --border-radius: 0;

  /* Chamfer (§2.5) */
  --chamfer-sm: 6px;
  --chamfer-md: 10px;
  --chamfer-lg: 14px;

  /* Motion (§2.6) */
  --duration-instant: 0ms;
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 300ms;
  --duration-entrance: 600ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout (§2.7) */
  --container-max: 1152px;
  --container-padding: 24px;
  --section-padding-y: 96px;
  --grid-gap: 16px;

  /* Z-index (§2.8) */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}
