﻿/*
 * Token layer 1 — everything that does not vary by theme.
 *
 * This sheet is always linked; exactly one theme sheet is linked beside it
 * (see theme_light.css). Primitives are the raw palette and are never named by
 * a component: a component reads a role from the theme sheet, and a role reads
 * a primitive from here.
 *
 * Across the status hues, the -500 step is the one that reads on a light ground
 * and the -300 step the one that reads on a dark ground, so a theme sheet picks
 * a step rather than inventing a colour. The neutrals run the full range instead,
 * because both grounds are drawn from them.
 */

:root {
    /* --- Primitives: neutrals ------------------------------------------- */

    --bl-gray-0: #FFFFFF;
    --bl-gray-50: #F4F5F7;
    --bl-gray-100: #EFEFF1;
    --bl-gray-200: #E2E3E6;
    --bl-gray-400: #A5AAB4;
    --bl-gray-500: #8B8F98;
    --bl-gray-600: #767C87;
    --bl-gray-700: #474A52;
    --bl-gray-800: #3A3F48;
    --bl-gray-850: #2C3037;
    --bl-gray-900: #212429;
    --bl-gray-950: #1A1C1F;
    --bl-gray-1000: #0A0A0B;

    /* --- Primitives: status hues ----------------------------------------- */

    --bl-blue-50: #EDF8FF;
    --bl-blue-100: #DDEDFD;
    --bl-blue-300: #6BA8FF;
    --bl-blue-500: #067AFF;
    --bl-blue-600: #115AE3;
    --bl-blue-800: #22375C;
    --bl-blue-950: #16233A;

    --bl-green-50: #F1FCF1;
    --bl-green-100: #DCF6DE;
    --bl-green-300: #58C46A;
    --bl-green-500: #1C9328;
    --bl-green-800: #1F4527;
    --bl-green-950: #142A18;

    --bl-amber-50: #FFF6EC;
    --bl-amber-100: #FBE6CE;
    --bl-amber-300: #E5A15C;
    --bl-amber-500: #C2600F;
    --bl-amber-800: #4A361D;
    --bl-amber-950: #2E2113;

    --bl-red-50: #FFF1F1;
    --bl-red-100: #FBDCDC;
    --bl-red-300: #FF6B6B;
    --bl-red-500: #D91F1F;
    --bl-red-800: #4C2226;
    --bl-red-950: #2E1618;

    /* --- Primitives: additional chart hues -------------------------------- */
    /* Four hues carry meaning above; a categorical series ramp needs eight
       distinguishable ones, so these exist only to back --chart-5 … --chart-8. */

    --bl-violet-300: #B78BF0;
    --bl-violet-500: #7C4DCC;

    --bl-teal-300: #45BFC9;
    --bl-teal-500: #0E7C86;

    --bl-pink-300: #F080AE;
    --bl-pink-500: #C0397A;

    --bl-slate-300: #9AA6BD;
    --bl-slate-500: #5A6478;

    /* --- Primitives: single-hue chart ramps -------------------------------- */
    /* Six steps of one hue each, light to dark, for charts where colour says
       how much rather than which: Insights gives each view one hue and ranks
       values by lightness inside it. Adjacent steps differ enough in lightness
       to read under any colour vision. */

    --bl-ramp-blue-1: #7DAAFD;
    --bl-ramp-blue-2: #6994E5;
    --bl-ramp-blue-3: #557FCF;
    --bl-ramp-blue-4: #426BB8;
    --bl-ramp-blue-5: #2F57A2;
    --bl-ramp-blue-6: #1D438C;

    --bl-ramp-teal-1: #00C4C4;
    --bl-ramp-teal-2: #00AEAE;
    --bl-ramp-teal-3: #009899;
    --bl-ramp-teal-4: #008385;
    --bl-ramp-teal-5: #006F71;
    --bl-ramp-teal-6: #005B5D;

    --bl-ramp-ink-1: #9DADBE;
    --bl-ramp-ink-2: #8898A8;
    --bl-ramp-ink-3: #748393;
    --bl-ramp-ink-4: #616F7F;
    --bl-ramp-ink-5: #4E5C6B;
    --bl-ramp-ink-6: #3C4958;

    /* --- Type scale ------------------------------------------------------- */
    /* 12px is the interface default; 11px marks a label as chrome; 13px is
       reading copy; 16px and 26px are the two sizes a tile value takes. */

    --body-font: 'Inter', sans-serif;

    /* The back office is read the way a terminal is, so it takes a face of its own. It is
       the only surface that does. */
    --mono-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* The face the back office's emoji are drawn from, vendored in fonts.css so a glyph
       reads the same on every machine. Name it on the element holding the glyph and
       nothing wider: the font carries the keycap digits too. */
    --emoji-font: 'Noto Color Emoji', sans-serif;

    --text-xs: 11px;
    --text-sm: 12px;
    --text-md: 13px;
    --text-lg: 16px;
    --text-fig: 26px;

    --leading-xs: 16px;
    --leading-sm: 16px;
    --leading-md: 19px;
    --leading-lg: 22px;
    --leading-fig: 30px;

    /* The interface register is deliberately heavy; prose is the one thing set
       below it, so a description reads as reading matter rather than as chrome. */
    --weight-prose: 400;
    --weight-normal: 600;
    --weight-mid: 650;
    --weight-bold: 700;

    /* --- Spacing ---------------------------------------------------------- */

    --space-3xs: 2px;
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 20px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;

    /* --- Layout ----------------------------------------------------------- */
    /* The measure page content is centred on. One column of entries wants a
       measure, not a monitor. */

    --content-max: 1680px;

    /* The height of a pill-shaped control - a filter pill, the search beside
       it - so a row of them lines up whichever draws it. */

    --pill-height: 32px;

    /* --- Radii ------------------------------------------------------------ */
    /* One job each: anything nested inside a box, a box, a pill, an avatar. */

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-pill: 999px;
    --radius-round: 50%;
}
