/*
 * Chart datum: design tokens for the new FreightDash design (core/ui.py).
 *
 * Nothing here is shared with static/css/: the two designs run side by side in
 * production and must not be able to restyle each other.
 *
 * Colour decisions, all validated with the dataviz palette validator:
 *  - The vessel-size colours pass every-pair colour-blindness separation and
 *    3:1 contrast on white. Colour follows the size everywhere, never its rank.
 *  - Magenta is the interface accent only (focus, selection, overrides, the
 *    now-line). It FAILED separation beside the size colours, so it must never
 *    become a data series.
 *  - Favourable/adverse are text colours and always travel with an arrow and a
 *    sign, so meaning never rests on colour alone.
 */

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/public-sans-normal-latin-ext.woff2") format("woff2");
    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;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/public-sans-normal-latin.woff2") format("woff2");
    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: "Public Sans";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/public-sans-italic-latin-ext.woff2") format("woff2");
    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;
}
@font-face {
    font-family: "Public Sans";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/public-sans-italic-latin.woff2") format("woff2");
    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;
}

:root {
    /* Ink */
    --ink: #1B2733;
    --ink-2: #4A5866;
    --ink-3: #6B7785;

    /* Surfaces */
    --sea: #FFFFFF;
    --shallows: #EEF3F7;
    --rule: #D5DEE6;
    --rule-soft: #E6ECF1;

    /* Interface accent */
    --magenta: #B0186F;
    --magenta-wash: #F8E8F1;

    /* Vessel sizes: fixed entity colours */
    --capesize: #2456A6;
    --panamax: #00947E;
    --supramax: #B8860B;
    --handysize: #B04A2F;

    /* Meaning, for text beside an arrow and a sign */
    --favourable: #1E7B4F;
    --adverse: #B42318;

    /* Status: always with an icon and a label */
    --status-warn-ink: #7A5200;
    --status-warn-wash: #FFF4DB;
    --status-warn-rule: #F0D48F;

    /* Shape */
    --radius-panel: 6px;
    --radius-input: 3px;
    --shadow-float: 0 10px 28px rgba(27, 39, 51, .16);

    /* Type */
    --font: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --size-label: 12px;
    --size-table: 13px;
    --size-body: 14px;
    --size-panel: 16px;
    --size-page: 20px;
    --size-figure: 32px;

    /* Layout */
    --topbar-height: 48px;
    --strip-height: 36px;
    --gutter: 20px;

    color-scheme: light;
}
