/*
 * Design tokens shared by the public site and the admin panel.
 * :root = dark (default), [data-theme="light"] = light. Components only ever use these variables.
 */

/* ===== Fonts (self-hosted, swap) ===== */
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin-wght-normal.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

/* ===== Tokens ===== */
:root {
    color-scheme: dark;
    --bg: #06070D;
    --text: #EEF0F8;
    --muted: #A9AFC7;
    --panel: rgba(255, 255, 255, .045);
    --panel-strong: rgba(255, 255, 255, .08);
    --line: rgba(255, 255, 255, .12);
    --cyan: oklch(0.84 0.14 200);
    --amber: oklch(0.83 0.14 75);
    --violet: oklch(0.5 0.16 270);
    --ink: #07080f;               /* text on cyan / amber fills */
    --cyan-soft: oklch(0.84 0.14 200 / .14);
    --cyan-line: oklch(0.84 0.14 200 / .45);
    --amber-soft: oklch(0.83 0.14 75 / .16);
    --violet-glow: oklch(0.5 0.16 270 / .4);
    --chip-bg: oklch(0.84 0.14 200 / .12);
    --chip-text: var(--text);
    --chip-line: oklch(0.84 0.14 200 / .4);
    --pill-bg: var(--panel-strong);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -30px rgba(0, 0, 0, .8);
    --grid-line: oklch(0.84 0.14 200 / .28);
    --star: 1;
    --glow-opacity: .9;
    --header-bg: rgba(6, 7, 13, .72);
    --focus: var(--amber);
    /* project "device" screens stay dark in both themes */
    --screen-bg: #090b16;
    --screen-line: rgba(255, 255, 255, .14);
    --screen-text: #D6DAEC;
    --screen-cyan: oklch(0.84 0.14 200);
    --screen-amber: oklch(0.83 0.14 75);
    --screen-violet: oklch(0.62 0.16 280);

    --font-display: 'Unbounded', 'DM Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    --radius-card: 24px;
    --radius-tile: 16px;
    --container: 1400px;
    --gutter: clamp(18px, 3vw, 36px);
    --header-h: 76px;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #E3E8F7;
    --text: #0A0D22;
    --muted: #3A4163;
    --panel: rgba(255, 255, 255, .92);
    --panel-strong: #ffffff;
    --line: rgba(28, 34, 90, .2);
    --cyan: oklch(0.46 0.22 262);
    --amber: oklch(0.8 0.17 78);
    --violet: oklch(0.55 0.2 290);
    --ink: #0A0D22;
    --cyan-soft: oklch(0.46 0.22 262 / .12);
    --cyan-line: oklch(0.46 0.22 262 / .5);
    --amber-soft: oklch(0.82 0.16 78 / .45);
    --violet-glow: oklch(0.62 0.2 285 / .55);
    --chip-bg: oklch(0.46 0.22 262);
    --chip-text: #ffffff;
    --chip-line: transparent;
    --pill-bg: rgba(40, 60, 160, .1);
    --card-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(24, 30, 90, .08), 0 24px 48px -20px rgba(40, 50, 150, .42);
    --grid-line: oklch(0.46 0.22 262 / .34);
    --star: 0;
    --glow-opacity: 1;
    --header-bg: rgba(238, 241, 252, .86);
    --focus: oklch(0.46 0.22 262);
}
