/* The two families, self-hosted (T-509, SR14): copied from the Google Fonts CSS the pages used (latin and latin-ext,
   variable woff2); the files, their sources and licences are in app/vendor/fonts/ (SOURCE.txt). */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/app/vendor/fonts/bricolage-grotesque-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/app/vendor/fonts/bricolage-grotesque-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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/app/vendor/fonts/instrument-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/app/vendor/fonts/instrument-sans-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;
}

/* Design tokens for the product area: The Thread (the homepage mockup's palette and type). Colours, type, spacing,
   radii and shadows. Blue is for the one primary button on a page and nothing else (focus is ink: R19). */
:root {
  /* colour */
  --ground: #faf7f2;
  --ink: #0e1b2c;
  --tint: #6b7a8d;     /* grey-navy: display-size text only (4.1:1 on the ground) */
  --body: #3a4757;
  --muted: #5c6878;
  --line: #e6dfd4;     /* dividers and panel borders (decorative) */
  --edge: #d9d1c4;     /* the secondary button's outline: its label identifies it */
  --edge-strong: #8f8778; /* R17: resting boundary of fields, selects, unpressed chips, the switch track (3.6:1 on white, 3.3:1 on the ground) */
  --edge-hover: #6f6858;  /* R17: their hover boundary */
  --blue: #1c8ad3;
  --blue-h: #1679bd;
  --ok: #1f7a4d;
  --ok-bg: #e3f2e8;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --info-bg: #eef4f9;
  --warn: #8a5a00;
  --warn-bg: #fdf3d7;
  --panel: #ffffff;
  --white: #ffffff;    /* text and marks on ink or blue, the switch thumb, the logo chip */
  --sunk: #f6f2ea;     /* a quiet fill inside a panel (a price row, a code box) */
  --off: #fbf9f6;      /* the fill of a disabled secondary button or chip */
  --off-field: #f4f1ec; /* the fill of a disabled field */
  --info: #24507a;     /* the information notice's icon */
  --focus: var(--ink); /* R19: the focus ring is ink; blue is only ever the primary button */

  /* the chart tokens (plan 3 D6): the models' colours, by their index in the fixed order of /api/admin/meta, each at
     least 3:1 against white. No blue in a chart. */
  --chart-1: #0e1b2c;  /* ink, 17.3:1 */
  --chart-2: #6b7a8d;  /* grey-navy, 4.4:1 */
  --chart-3: #af9052;  /* sand: the proposed #c9b48a (2.0:1) darkened at its own hue and saturation to the first shade that reaches 3:1 (3.03:1) */
  --chart-4: #2f7d7a;  /* teal, 4.8:1 */

  /* type (as in the mockup's thread.css) */
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --text: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --device: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* spacing */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  /* radii */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;

  /* shadows and rings */
  --shadow-panel: 0 1px 2px rgba(14, 27, 44, .04), 0 12px 32px -16px rgba(30, 24, 12, .18);
  --shadow-primary: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(28, 138, 211, .55);
  --ring: 2.5px solid var(--focus); /* drawn 2 px outside every control: the gap keeps it visible on ink and on blue */
}
