/*
 * Design tokens of Bartels Werkt. Every component reads its colours, radii and
 * shadows from these properties. Do not hard-code a colour in a component.
 * The design-system page (/design-system/tokens) shows each token.
 */

/* Nunito, self-hosted (SIL Open Font License, see fonts/nunito/OFL.txt). */
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/nunito/nunito-latin-wght-normal-c23Eawv.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/nunito/nunito-latin-ext-wght-normal-HN--UrW.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Rail and page frame */
    --rail: #1a3b6e;
    --rail-line: rgba(255, 255, 255, 0.12);
    --rail-text: #e9f0fa;
    --rail-muted: #a9bed8;
    --rail-active: rgba(255, 255, 255, 0.14);
    --rail-hover: rgba(255, 255, 255, 0.07);
    --rail-strong: #ffffff;
    --rail-count: #ffd27a;
    --rail-count-text: #4a2e00;
    --rail-width: 272px;
    --rail-width-collapsed: 84px;

    /* Surfaces */
    --bg: #f3f6fa;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --border: #e1e8f0;
    --border-strong: #cbd5e1;
    --primary-line: #cfe0f0;
    --warn-line: #f0d9a8;

    /* Text */
    --text: #0f1d2e;
    --text-soft: #3c4b5e;
    --muted: #5b6b7f;

    /* Actions */
    --primary: #0072bc;
    --primary-hover: #005e9c;
    --primary-soft: #e6f1fa;

    /* States */
    --ok: #1e9a50;
    --ok-soft: #e6f5ec;
    --warn: #c97a06;
    --warn-soft: #fff4e0;
    --info: #2f6fb7;
    --info-soft: #e8f0fa;
    --danger: #c8232b;
    --danger-soft: #fce9ea;
    --off: #c7d1dd;
    --off-soft: #edf0f4;

    /* Text on a soft state ground (chips, labels) */
    --ok-text: #166b38;
    --warn-text: #8a5300;
    --info-text: #1f4f8a;
    --danger-text: #9a1b22;
    --off-text: #55657a;
    --on-primary: #ffffff;

    /* Shape */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-surface: 22px;
    --radius-tab: 10px;
    --tab-corner: 12px;
    --shadow: 0 1px 2px rgba(16, 40, 72, 0.06), 0 6px 18px -10px rgba(16, 40, 72, 0.18);
    --shadow-overlay: 0 30px 60px -20px rgba(16, 40, 72, 0.55);
    --shadow-panel: -24px 0 48px -28px rgba(16, 40, 72, 0.45);
    --shadow-knob: 0 1px 2px rgba(0, 0, 0, 0.25);
    --scrim: rgba(14, 32, 60, 0.28);

    /* Spacing on a 4px base */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;

    /* Type */
    --font: "Nunito", "Segoe UI", Helvetica, Arial, sans-serif;
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 20px;
    --text-xl: 22px;
}
