:root {
  /* Surfaces (dark default) */
  --color-bg-primary: #0A0A0B;
  --color-bg-secondary: #141416;
  --color-bg-tertiary: #1C1C1F;
  --color-bg-hover: #242428;
  --color-bg-active: #2C2C31;

  /* Text */
  --color-text-primary: #F0EDE6;
  --color-text-secondary: #9B978E;
  --color-text-tertiary: #6B6860;
  --color-text-inverse: #0A0A0B;

  /* Borders */
  --color-border-default: #2A2A2F;
  --color-border-subtle: #1E1E22;
  --color-border-strong: #3A3A40;

  /* Accent: Warm Gold */
  --color-accent: #D4A853;
  --color-accent-hover: #E0B964;
  --color-accent-muted: #D4A85326;
  --color-accent-text: #F0D78C;

  /* Secondary: Ink Blue */
  --color-ink: #5B8FB9;
  --color-ink-hover: #6FA3CD;
  --color-ink-muted: #5B8FB91A;

  /* Status */
  --color-success: #5C9A6E;
  --color-success-bg: #5C9A6E1A;
  --color-warning: #C4935A;
  --color-warning-bg: #C4935A1A;
  --color-danger: #B85C5C;
  --color-danger-bg: #B85C5C1A;
  --color-info: #5B8FB9;
  --color-info-bg: #5B8FB91A;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(212, 168, 83, 0.08);

  /* Spacing (8px base) */
  --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;

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

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 350ms ease;

  /* Typography */
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Type scale */
  --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: 1.875rem; --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Line heights */
  --leading-tight: 1.2;  --leading-snug: 1.35;
  --leading-normal: 1.6; --leading-relaxed: 1.75;

  /* Letter spacing */
  --tracking-tight: -0.02em;  --tracking-normal: 0.01em;
  --tracking-wide: 0.04em;    --tracking-wider: 0.08em;

  /* Z-index */
  --z-dropdown: 100; --z-sticky: 200;
  --z-modal-backdrop: 300; --z-modal: 400; --z-toast: 500;

  /* Container widths */
  --container-sm: 640px;  --container-md: 768px;
  --container-lg: 1024px; --container-xl: 1200px;
}

/* Light mode override */
[data-theme="light"] {
  --color-bg-primary: #FAFAF7;
  --color-bg-secondary: #FFFFFF;
  --color-bg-tertiary: #F2F0EB;
  --color-bg-hover: #ECEAE4;
  --color-bg-active: #E3E1DB;
  --color-text-primary: #1A1A1D;
  --color-text-secondary: #5C5A54;
  --color-text-tertiary: #8A877F;
  --color-text-inverse: #F0EDE6;
  --color-border-default: #D8D5CD;
  --color-border-subtle: #E8E5DD;
  --color-border-strong: #C5C2BA;
  --color-accent: #B8922E;
  --color-accent-hover: #A37F20;
  --color-accent-muted: #B8922E15;
  --color-accent-text: #8A6D1F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-glow: none;
}
