/* EMPIRE Design System — canonical CSS variables (light + dark).
   Drop-in: import once at the app root. Override ONLY --accent-* and --font-display per project. */

:root {
  --font-sans: 'Inter', 'Inter var', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font-sans);
  --font-mono: 'IBM Plex Mono', 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --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-24: 96px;

  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-2xl: 20px; --radius-full: 9999px;

  --accent: #5b5bd6;
  --accent-hover: #4f4fc4;
  --accent-subtle: #eeeefb;
  --accent-on: #ffffff;

  --success: #16a34a; --warning: #d97706; --danger: #dc2626; --info: #2563eb;

  --shadow-xs: 0 1px 2px -1px rgba(16,17,26,0.08);
  --shadow-sm: 0 1px 2px rgba(16,17,26,0.06), 0 2px 4px -2px rgba(16,17,26,0.06);
  --shadow-md: 0 2px 4px rgba(16,17,26,0.06), 0 8px 16px -4px rgba(16,17,26,0.08);
  --shadow-lg: 0 4px 8px rgba(16,17,26,0.06), 0 16px 32px -8px rgba(16,17,26,0.12);
  --shadow-xl: 0 8px 16px rgba(16,17,26,0.08), 0 32px 48px -12px rgba(16,17,26,0.16);
  --ring: 0 0 0 1px rgba(16,17,26,0.06);
  --focus: 0 0 0 3px var(--accent-subtle), 0 0 0 1px var(--accent);

  --dur-fast: 140ms; --dur-base: 200ms; --dur-slow: 320ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);

  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e9e9ec;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #52525b;
  --text-subtle: #71717a;
}

:root[data-theme='dark'], .dark {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-subtle: #101012;
  --bg-muted: #18181b;
  --surface: #131316;
  --surface-raised: #1b1b1f;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --accent-subtle: #2a1c14;
  --shadow-md: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --ring: 0 0 0 1px rgba(255,255,255,0.06);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
