/* The design's vocabulary, extracted once.
 *
 * Every value here was read out of the Warden Foundry design, which
 * carries them as inline style attributes on ~250 elements — that is the
 * canvas editor's format, not a stylesheet, so the tokens had to be lifted
 * rather than imported. This file is the lift: the palette with each hex's
 * role named, the three faces, the scale, and the handful of geometric
 * constants the design is consistent about. The off hue and the healthy
 * and off washes came later, with the page pattern (README.md).
 *
 * It is deliberately only tokens. Anything that positions or sizes one
 * screen's own elements belongs in that screen's rules (app.css), so a
 * second interface can adopt the vocabulary without inheriting a layout.
 */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-serif-4-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-serif-4-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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-serif-4-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;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-serif-4-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: 'Fragment Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fragment-mono-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: 'Fragment Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fragment-mono-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;
}

:root {
  /* Faces. Display is Archivo — headings, names, controls; the browser
     does not inherit font-family into form controls, so anything with a
     button or an input re-declares it. Body is a serif, which is the
     design's most consequential single choice. Mono is for the things an
     operator copies: ids, references, claim types, counts. */
  --face-display: 'Archivo', system-ui, sans-serif;
  --face-body: 'Source Serif 4', Georgia, serif;
  --face-mono: 'Fragment Mono', ui-monospace, monospace;

  /* Ground and surfaces. The page is warm off-white and the cards are
     plain white; the two bands are the header strip and the nav strip. */
  --ground: #f7f6f2;
  --surface: #ffffff;
  --surface-sunk: #fbfaf7;
  --band: #f2f0e9;

  /* Lines, lightest to heaviest. divider separates rows inside a card,
     border draws the card, and strong is only the popover's edge. */
  --divider: #f0eee5;
  --divider-strong: #e7e4d9;
  --border: #dcd8cc;
  --border-strong: #b9b5a8;

  /* Ink, darkest to lightest. Body carries most prose; muted is captions,
     units and anything secondary. */
  --ink: #1f2328;
  --ink-body: #4a4f45;
  --ink-soft: #5c6157;
  --ink-muted: #8b8578;

  /* Accent — the one hue that acts. Wash and tint are its flat and
     bordered backgrounds. */
  --accent: #2c4a6e;
  --accent-deep: #233b58;
  --accent-wash: #edf1f6;
  --accent-tint: #c8d2df;

  /* Status hues. Only these three carry meaning; there is no fourth. The
     washes are the flat backgrounds a healthy, warned or failed mark sits
     on. Off is not a status: it is the neutral of what is disabled, not
     judged, or only load, with its own wash. */
  --positive: #3e6b2e;
  --warning: #9a6a0b;
  --negative: #a6371f;
  --positive-wash: #edf3e8;
  --warning-wash: #fdf6e3;
  --negative-wash: #fdecea;
  --off: #7b7f77;
  --off-wash: #ededea;
  /* Not a status either: the trace's mark for a call that acts on the
     world, apart from the calls that write inward. */
  --effect: #7b5ea7;
  /* The strips' and meters' fills (Health's, and the Author's strip under
     an answer). They are data, not status, so none is a status hue; they
     were chosen together and checked for colour-vision separation, and
     change together. */
  --bar: #9aabc0;          /* a tick, a fill that is only data: load */
  --state-ok: #b9c9ae;     /* a strip cell that was healthy */
  --state-warn: #c28a1e;   /* ... over capacity, or retried */
  --state-bad: #a6371f;    /* ... stuck, or failed */

  /* Scale. The design uses no size above 27px and none below 10px. */
  --size-title: 27px;
  --size-lede: 16px;
  --size-prose: 15.5px;
  --size-body: 14px;
  --size-name: 14.5px;
  --size-small: 13.5px;
  --size-mono: 12.5px;
  --size-meta: 12px;
  --size-label: 11px;
  --size-stamp: 10px;

  /* Geometry. Boxes are 3px; stamps are 2px, and the difference is what
     separates a container from a mark on one. */
  --radius: 3px;
  --radius-stamp: 2px;
  --gutter: 36px;
  --measure: 1280px;
}
