/* Primitives: only this layer defines palette, scale and timing values. */
:root {
    color-scheme: dark;
    --ink-950: #0e141c;
    --ink-900: #141d28;
    --ink-850: #192432;
    --ink-800: #213143;
    --ink-700: #2a4054;
    --steel-600: #536c82;
    --steel-500: #7492aa;
    --steel-300: #b6c7d5;
    --paper-100: #e9eff4;
    --cyan-400: #79c8f5;
    --cyan-200: #b6e3ff;
    --olive-700: #496222;
    --olive-600: #58772a;
    --olive-400: #a3be71;
    --olive-100: #edf6db;
    --red-300: #ffb4a8;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --font-xs: .75rem;
    --font-sm: .875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    --font-body: Barlow, Arial, sans-serif;
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-code: Consolas, 'Liberation Mono', monospace;
    --radius-small: 2px;
    --border-width: 1px;
    --duration-fast: 160ms;
    --duration-normal: 240ms;
    --ease-interface: cubic-bezier(.2, .7, .3, 1);
    --content-width: 73.75rem;
}
/* Semantic: the same theme is used by the portfolio and the blog. */
:root {
    --background: var(--ink-950);
    --header: var(--ink-900);
    --panel: var(--ink-850);
    --panel-deep: var(--ink-900);
    --panel-hover: var(--ink-800);
    --text: var(--paper-100);
    --muted: var(--steel-300);
    --cyan: var(--cyan-400);
    --link-hover: var(--cyan-200);
    --line: var(--steel-600);
    --line-hover: var(--steel-500);
    --green: var(--olive-700);
    --green-text: var(--olive-100);
    --error: var(--red-300);
    --backdrop: rgb(5 9 14 / 92%);
    --display: var(--font-display);
    --section-gap: var(--space-10);
    --page-gutter: var(--space-10);
    --header-height: 4.75rem;
}
/* Component: shared states and dimensions. Breakpoints use the documented viewport scale. */
:root {
    --button-bg: var(--green);
    --button-bg-hover: var(--olive-600);
    --button-border: var(--olive-400);
    --button-text: var(--green-text);
    --control-height: 2.75rem;
    --card-bg: var(--panel);
    --card-border: var(--line);
    --card-padding: var(--space-5);
    --focus-ring: var(--cyan);
}
@media (max-width: 1100px) { :root { --page-gutter: var(--space-6); } }
@media (max-width: 640px) { :root { --page-gutter: 1.125rem; --header-height: 6.5rem; --section-gap: var(--space-8); } }
@media (prefers-reduced-motion: reduce) { :root { --duration-fast: 0ms; --duration-normal: 0ms; } }
