:root {
  /* Spacing Scale */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-overlap: 72px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Typography Scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-display-s: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  --text-display: clamp(2.5rem, 6vw + 0.5rem, 5.5rem);
  --text-section: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  --text-title: clamp(1.125rem, 1vw + 0.75rem, 1.375rem);
  --text-lead: clamp(1.0625rem, 0.5vw + 0.875rem, 1.25rem);

  /* Fonts */
  --font-display: "Golos Text", system-ui, -apple-system, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, sans-serif;
  --font-outlier: "JetBrains Mono", monospace;

  /* Motion */
  --ease-brutal: cubic-bezier(0, 0, 0.2, 1);
  --dur-micro: 120ms;
  --dur-short: 200ms;
  --dur-phase: 350ms;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap-columns: 24px;
  --section-gap: clamp(48px, 8vh, 80px);

  /* Geometry & Rules - Brutalist */
  --radius-card: 0px;
  --radius-pill: 0px;
  --rule-hair: 1px;
  --rule-bar: 2px;
  --rule-thick: 4px;
  --shadow-card: none;
  --tracking-display: -0.02em;

  /* OLED Black Palette (Default) */
  --color-paper: #000000;
  --color-paper-2: #0c0c0c;
  --color-paper-3: #181818;
  --color-ink: #ffffff;
  --color-ink-2: #d8d8d8;
  --color-muted: #888888;
  --color-rule: #ffffff;
  --color-rule-dim: #333333;
  --color-accent: #ffffff;
  --color-accent-ink: #000000;
  --color-focus: #ffffff;
  --color-error: #ff4d4d;
  --color-success: #33ff77;
}

[data-theme="light"] {
  /* Crisp White Paper Palette */
  --color-paper: #ffffff;
  --color-paper-2: #f4f4f4;
  --color-paper-3: #e8e8e8;
  --color-ink: #000000;
  --color-ink-2: #222222;
  --color-muted: #666666;
  --color-rule: #000000;
  --color-rule-dim: #cccccc;
  --color-accent: #000000;
  --color-accent-ink: #ffffff;
  --color-focus: #000000;
  --color-error: #cc0000;
  --color-success: #008833;
}
