:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #1e40af;
    --color-accent: #3b82f6;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-lighter: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-dark: #f3f4f6;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-header-bg: #ffffff;
    --color-header-text: #1f2937;
    --color-nav-bg: #1f2937;
    --color-nav-text: #ffffff;
    --color-nav-hover-bg: #2563eb;
    --color-nav-hover-text: #ffffff;
    --color-nav-active: #2563eb;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", "Roboto Mono", monospace;
    --tracking-tight: -0.02em;
    --tracking-wide: 0.05em;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    /* Soft layered shadows: a hairline contact shadow plus a diffuse ambient one. */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.05), 0 6px 16px -4px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.05), 0 14px 32px -8px rgba(15, 23, 42, 0.14);
    --shadow-xl: 0 8px 16px rgba(15, 23, 42, 0.06), 0 24px 56px -12px rgba(15, 23, 42, 0.2);
    --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.22);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);
    --container-max: 1200px;
    --content-width: 800px;
    --sidebar-width: 300px;
}

/* Tint the focus ring with the live brand color where color-mix is supported
   (the runtime primary color is option-driven, so a static rgba can drift). */
@supports (color: color-mix(in srgb, red 50%, blue)) {
    :root {
        --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent);
    }
}
