/* =========================================================
   HPS DESIGN TOKENS — light (default) and dark themes.
   Every colour in the theme stylesheets reads from these.
========================================================= */

:root {
    color-scheme: light;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

    /* Surfaces */
    --bg: #faf9f6;
    --surface: #ffffff;
    --surface-2: #f4f3ef;
    --surface-3: #eceae4;
    --surface-rgb: 255 255 255;

    /* Text */
    --text: #0f1e3d;
    --text-2: #2f3b55;
    --muted: #5a667c;
    --subtle: #626d82;

    /* Lines */
    --border: #e4e1d9;
    --border-strong: #cdd1da;

    /* Accent — restrained academic blue */
    --accent: #1f4fa3;
    --accent-strong: #163b7c;
    --accent-bright: #3566c4;
    --accent-soft: #edf2fb;
    --accent-line: #c8d5ee;
    --accent-rgb: 31 79 163;
    --accent-on-dark: #b9cdf6;
    --on-accent: #ffffff;

    /* Always-dark panels (image overlays, feature bands) */
    --fixed-dark: #0e1a33;
    --fixed-dark-2: #15264a;

    --shadow-rgb: 15 30 61;
    --shadow-sm: 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 2px 8px rgb(var(--shadow-rgb) / .04);
    --shadow-md: 0 2px 4px rgb(var(--shadow-rgb) / .04), 0 12px 32px rgb(var(--shadow-rgb) / .08);
    --shadow-lg: 0 4px 8px rgb(var(--shadow-rgb) / .05), 0 24px 56px rgb(var(--shadow-rgb) / .12);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --ease: cubic-bezier(.2, .7, .2, 1);
    --t-theme: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

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

    --bg: #0a1120;
    --surface: #101a2d;
    --surface-2: #0d1627;
    --surface-3: #18233a;
    --surface-rgb: 16 26 45;

    --text: #e9edf5;
    --text-2: #c6cddb;
    --muted: #9ba6ba;
    --subtle: #8692a8;

    --border: #1f2b43;
    --border-strong: #2e3c59;

    --accent: #8fb1ff;
    --accent-strong: #b7cdff;
    --accent-bright: #a3bfff;
    --accent-soft: #15223f;
    --accent-line: #2a3d69;
    --accent-rgb: 143 177 255;
    --accent-on-dark: #b9cdf6;
    --on-accent: #0a1120;

    --fixed-dark: #0c1528;
    --fixed-dark-2: #13203d;

    --shadow-rgb: 0 0 0;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-md: 0 2px 4px rgb(0 0 0 / .25), 0 12px 32px rgb(0 0 0 / .35);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / .3), 0 24px 56px rgb(0 0 0 / .45);
}
