/* Fonts and colour tokens shared by the store and the admin, so the two can never drift apart. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks, so the swap moves nothing. */
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 99.4%;
  ascent-override: 100.6%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Shoulders Fallback";
  src: local("Arial Bold"), local("Arial"), local("Liberation Sans Bold"), local("Helvetica Bold");
  font-weight: 800;
  size-adjust: 76%;
  ascent-override: 129.5%;
  descent-override: 28%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --bg: #0b0a0a;
  --surface: #151414;
  --line: #2a2828;
  --line-strong: #6e6b6b;      /* control borders, 3:1 on both tones */
  --text: #f4efe9;
  --muted: #a8a5a5;            /* 7.5:1 on --surface */
  --red: #d00c38;              /* the logo red. Shapes, button fills and focus outlines. 3.6:1 on --bg, so never small text */
  --red-dark: #b00a30;         /* button hover. --on-red reaches 6.3:1 on it */
  --red-text: #f3305c;         /* the same hue, lighter, for small text. 5.1:1 on --bg, 4.7:1 on --surface */
  --on-red: #f4efe9;           /* 4.8:1 on --red */
  /* Product status colours. Each also has its own word and shape, and all pass AA on every background tone. */
  --status-ok: #3ecf72;
  --status-updating: #5aa9ff;
  --status-degraded: #f2b441;
  --status-offline: var(--red-text);
  --radius: 6px;
  --font: "Hanken Grotesk", "Hanken Fallback", Arial, sans-serif;
  --display: "Big Shoulders Display", "Shoulders Fallback", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}
