:root {
    --bg-primary: #f4f1ea;
    --bg-secondary: #ebe6db;
    --bg-tertiary: #e0dace;
    --surface-1: #ffffff;
    --surface-2: #f4f1ea;
    --surface-3: #ebe6db;

    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    --text-muted: #8a8a8a;
    --text-inverse: #0a0a0a;

    --accent: #c8ff00;
    --accent-ink: #0a0a0a;
    --accent-2: #ff5c00;
    --accent-3: #0066ff;
    --accent-soft: rgba(200, 255, 0, 0.18);
    --accent-soft-2: rgba(200, 255, 0, 0.32);
    --accent-glow: rgba(200, 255, 0, 0.4);

    --border-light: rgba(10, 10, 10, 0.12);
    --border-strong: rgba(10, 10, 10, 0.35);
    --border-subtle: rgba(10, 10, 10, 0.06);

    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-strong: rgba(255, 255, 255, 0.9);

    --success: #16a34a;
    --error: #dc2626;
    --warning: #ea580c;

    --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 12px 32px rgba(0, 0, 0, 0.12);

    --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-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-full: 999px;

    --font-display: 'Anton', 'Impact', system-ui, sans-serif;
    --font-body: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-mono: 'Geist Mono', 'Courier New', monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-lg: 1.0625rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3.5rem;
    --fs-6xl: 5rem;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --lh-tight: 1.1;
    --lh-snug: 1.3;
    --lh-normal: 1.55;
    --lh-relaxed: 1.7;

    --ls-tight: -0.03em;
    --ls-normal: 0;
    --ls-wide: 0.05em;
    --ls-wider: 0.14em;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --dur-fast: 0.15s;
    --dur-base: 0.25s;
    --dur-slow: 0.5s;

    --z-bg: 0;
    --z-content: 2;
    --z-nav: 100;
    --z-modal: 500;

    --nb-border: #0a0a0a;
    --nb-border-w: 3px;
    --nb-shadow: #0a0a0a;
    --nb-shadow-offset: 5px;
    --nb-shadow-hover: 8px;
    --nb-radius: 4px;

    --accent-symbol: #c2410c;

    --cursor-color: #0a0a0a;
    --cursor-glow: 0 0 0 transparent;

    --pl-bg-1: #f2ece0;
    --pl-bg-2: #e6e0d2;
    --pl-brand-fill: #0a0a0a;
    --pl-edge-base: rgba(194, 65, 12, 0.35);
    --pl-node-fill: #f2ece0;
    --pl-flash: #dc2626;

    --nav-height: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --surface-1: #121212;
    --surface-2: #1a1a1a;
    --surface-3: #222222;

    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --text-muted: #6a6a6a;
    --text-inverse: #0a0a0a;

    --border-light: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.22);
    --border-subtle: rgba(255, 255, 255, 0.04);

    --card-bg: #121212;
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-bg-strong: rgba(18, 18, 18, 0.92);

    --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 12px 32px rgba(0, 0, 0, 0.6);

    --nb-border: #f5efe3;
    --nb-shadow: #f5efe3;
    --nb-shadow-offset: 5px;
    --nb-shadow-hover: 8px;

    --accent-symbol: #fb923c;

    --cursor-color: #f5efe3;
    --cursor-glow: 0 0 12px rgba(245, 239, 227, 0.45), 0 0 24px rgba(245, 239, 227, 0.18);

    --pl-bg-1: #0e0e0e;
    --pl-bg-2: #050505;
    --pl-brand-fill: #f5efe3;
    --pl-edge-base: rgba(251, 146, 60, 0.32);
    --pl-node-fill: #0e0e0e;
    --pl-flash: #ff3b3b;
}

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