/* ===================================================================
   AHOK.AS theme - Design tokens
   Copied from cv.jari.ahok.as (src/styles/tokens.css). One accent
   (the brand blue), one cool neutral scale, one radius. Dark values
   keep the same hue family, lightened for contrast.
   ahok.as additions are marked; everything else must stay in step
   with the CV.
   =================================================================== */

:root {
    color-scheme: light dark;

    --accent: #1f6cad;
    --accent-soft: rgb(31 108 173 / 0.16);

    --ink: #15191e;
    --text: #2a3037;
    --muted: #5a626c;
    --line: #d8dde3;
    --line-soft: #e8ebef;
    --line-strong: #7f8892; /* form control borders, 3:1 against --field */

    --page: #f3f5f7;
    --sheet: #ffffff;
    --field: #f7f8fa;
    --on-ink: #ffffff;

    --danger: #b42318;
    --danger-bg: #fdf3f2;
    --danger-line: #f1c4bf;

    --shadow-sheet: 0 1px 2px rgb(21 32 48 / 0.04), 0 10px 30px rgb(21 32 48 / 0.06);
    --shadow-lift: 0 6px 18px rgb(21 32 48 / 0.16);
    --backdrop: rgb(10 14 20 / 0.86);

    --radius: 4px;

    /* Wordmark and headings share one serif. Caladea is metric-compatible
       with Cambria, so non-Windows visitors see the intended wordmark. */
    --font-serif: Cambria, "Caladea", serif;
    --font-body: "Geist Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* ahok.as addition: code blocks. System fonts only, nothing to load. */
    --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

    --max-width: 900px;
    --section-gap: 3rem;
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark theme: follows the device unless the visitor picked a theme
   with the toggle (html[data-theme], set by theme-init.js / theme-toggle.js). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --accent: #6ea8dc;
        --accent-soft: rgb(110 168 220 / 0.2);

        --ink: #eef1f4;
        --text: #d5dae0;
        --muted: #9ba4ae;
        --line: #2f363f;
        --line-soft: #252b33;
        --line-strong: #66707b;

        --page: #0e1115;
        --sheet: #161a1f;
        --field: #1c2127;
        --on-ink: #0e1115;

        --danger: #ff9b91;
        --danger-bg: rgb(180 35 24 / 0.16);
        --danger-line: rgb(255 155 145 / 0.35);

        --shadow-sheet: 0 1px 2px rgb(2 6 12 / 0.3), 0 10px 30px rgb(2 6 12 / 0.35);
        --shadow-lift: 0 6px 18px rgb(2 6 12 / 0.5);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --accent: #6ea8dc;
    --accent-soft: rgb(110 168 220 / 0.2);

    --ink: #eef1f4;
    --text: #d5dae0;
    --muted: #9ba4ae;
    --line: #2f363f;
    --line-soft: #252b33;
    --line-strong: #66707b;

    --page: #0e1115;
    --sheet: #161a1f;
    --field: #1c2127;
    --on-ink: #0e1115;

    --danger: #ff9b91;
    --danger-bg: rgb(180 35 24 / 0.16);
    --danger-line: rgb(255 155 145 / 0.35);

    --shadow-sheet: 0 1px 2px rgb(2 6 12 / 0.3), 0 10px 30px rgb(2 6 12 / 0.35);
    --shadow-lift: 0 6px 18px rgb(2 6 12 / 0.5);
}

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