:root {
  /* Surface */
  --color-bg: #0b0b0d;
  --color-surface-1: #141418;
  --color-surface-2: #1c1c22;
  --color-surface-3: #24242c;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.2);

  /* Text */
  --color-text: #f5f5f7;
  --color-text-muted: rgba(245, 245, 247, 0.7);
  --color-text-subtle: rgba(245, 245, 247, 0.55);

  /* Brand and action */
  --color-accent: #dc2626;
  --color-accent-hover: #b91c1c;
  --color-accent-fg: #ffffff;

  /* Semantic */
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --color-info: #2563eb;

  /* Focus */
  --color-focus-ring: #f59e0b;

  /* Spacing */
  --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-20: 80px;

  --space-inline: var(--space-2);
  --space-control: var(--space-3);
  --space-description: var(--space-3);
  --space-group: var(--space-5);
  --space-section: var(--space-10);

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Radius and shadow */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 280ms;
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Component tokens */
  --control-height: 40px;
  --control-radius: var(--radius-md);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --min-target: 24px;
  --comfortable-target: 44px;
}

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