/* tokens — the whole palette and scales. No other stylesheet declares a colour. */
:root {
    /* surfaces */
    --color-surface: #ffffff;
    --color-surface-muted: #f6f6f4;
    --color-surface-map: #fbfbfa;

    /* text */
    --color-text: #1b1b1b;
    --color-text-secondary: #55595e;
    --color-text-muted: #6b7076;
    --color-link: #0b4f8a;
    --color-link-hover: #07345c;
    --color-focus: #0b4f8a;

    /* borders */
    --color-border: #d9d9d4;
    --color-border-strong: #8d9096;

    /* sequential data palette, 7 steps, single hue (blue), light to dark.
       Lightness is monotonic, so it reads in greyscale and under CVD. */
    --color-seq-1: #deebf7;
    --color-seq-2: #c6dbef;
    --color-seq-3: #9ecae1;
    --color-seq-4: #6baed6;
    --color-seq-5: #4292c6;
    --color-seq-6: #2171b5;
    --color-seq-7: #08306b;

    /* time series: the one line of a single-series chart, and a reference line */
    --color-series-1: #0b4f8a;
    --color-series-2: #b35806;
    --color-series-3: #1b7837;
    --color-series-4: #762a83;
    /* the un-borrowed base of a stacked composition */
    --color-area-base: #9aa5b1;
    --color-reference: #8d9096;

    /* no data */
    --color-no-data: #e3e3df;

    /* semantic map shades, worst -> best. An Indicator's MapScale names
       these by step; the map interpolates between them. */
    --color-shade-worst: #2a0408;
    --color-shade-bad: #8c0f17;
    --color-shade-poor: #d7301f;
    --color-shade-muted-bad: #dfb2aa;
    --color-shade-neutral: #ebe8df;
    --color-shade-muted-good: #b3d3b6;
    --color-shade-fair: #f0c419;
    --color-shade-good: #5aa469;
    --color-shade-best: #1b7837;
    --color-shade-superb: #00331a;

    /* semantic bad -> good, 5 steps (gauges). Always paired with a label. */
    --color-sem-1: #b2182b;
    --color-sem-2: #e08214;
    --color-sem-3: #c9b22b;
    --color-sem-4: #5aa469;
    --color-sem-5: #1b7837;

    /* type */
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-md: 1.0625rem;
    --text-lg: 1.375rem;
    --text-xl: 1.875rem;
    --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);

    --leading-tight: 1.15;
    --leading-body: 1.55;

    /* spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2.25rem;
    --space-7: 3.5rem;
    --space-8: 5.5rem;

    --gutter: 16px;
    --page-max: 72rem;
    --measure: 42rem;
    --radius: 2px;
}
