/* Design tokens — dark default, light alternate */

:root,
[data-theme="dark"] {
    color-scheme: dark;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.6875rem;
    --text-sm: 0.8125rem;
    --text-base: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.625rem;
    --text-3xl: 2rem;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;

    --sidebar-width: 220px;
    --navbar-height: 52px;
    --container-max: 1200px;
    --container-wide: 1400px;

    --bg: #090c12;
    --bg-subtle: #0f1419;
    --surface: #141a22;
    --surface-raised: #1a222d;
    --surface-hover: #212b38;
    --border: #2a3544;
    --border-subtle: #1e2733;

    --text: #e8edf4;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #090c12;

    --primary: #22d3ee;
    --primary-hover: #06b6d4;
    --primary-muted: rgba(34, 211, 238, 0.12);
    --primary-text: #090c12;

    --accent: #818cf8;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #38bdf8;
    --secondary: #64748b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);

    --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);

    --transition: 150ms ease;
    --transition-slow: 250ms ease;
}

[data-theme="light"] {
    color-scheme: light;

    --bg: #f4f6f9;
    --bg-subtle: #eef1f6;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-hover: #f1f5f9;
    --border: #dde3ec;
    --border-subtle: #e8edf3;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --primary: #0891b2;
    --primary-hover: #0e7490;
    --primary-muted: rgba(8, 145, 178, 0.1);
    --primary-text: #ffffff;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.1);
}
