:root {
    /* Core palette — trench grimdark */
    --color-bg-primary: #0c0c0e;
    --color-bg-secondary: #141418;
    --color-bg-tertiary: #1c1c22;
    --color-bg-overlay: rgba(12, 12, 14, 0.92);
    --color-bg-overlay-end: rgba(20, 20, 24, 0.88);

    --color-surface: #1a1a20;
    --color-surface-raised: #22222a;
    --color-surface-hover: #2a2a34;
    --color-surface-active: #32323e;

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.14);
    --color-border-accent: rgba(196, 30, 58, 0.45);

    --color-accent: #c41e3a;
    --color-accent-hover: #e02545;
    --color-accent-muted: rgba(196, 30, 58, 0.12);
    --color-accent-glow: rgba(196, 30, 58, 0.35);

    --color-brass: #b8860b;
    --color-brass-muted: rgba(184, 134, 11, 0.15);
    --color-info: #5eb8e8;

    --color-text-primary: #f2f0eb;
    --color-text-secondary: #b8b4ac;
    --color-text-muted: #7a7670;
    --color-text-faint: #4a4844;

    --color-success: #2ecc71;
    --color-success-muted: rgba(46, 204, 113, 0.15);
    --color-warning: #e6a817;
    --color-danger: #c41e3a;

    /* Typography */
    --font-display: 'Pirata One', cursive;
    --font-body: 'Funnel Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    --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: 2rem;
    --text-4xl: 2.5rem;

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

    --tracking-tight: -0.02em;
    --tracking-wide: 0.04em;
    --tracking-wider: 0.08em;

    /* Layout */
    --container-max: 1600px;
    --container-max-wide: 2500px;
    --navbar-height: 72px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows & elevation */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
    --shadow-accent: 0 4px 20px var(--color-accent-glow);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);

    /* Glass */
    --glass-bg: rgba(26, 26, 32, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 12px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.22s ease;
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Focus ring */
    --focus-ring: 0 0 0 3px var(--color-accent-muted);
}
