/* robot-vitals shared design tokens.
 *
 * One semantic through-line: heat. Cool cyan -> healthy green -> warn amber ->
 * alarm red, used identically for servo color, verdict chips, drift status, and
 * chart lines across the guided demo (index.html, deliberately dark: it is the
 * cinema) and the engineer's grid (dashboard.html, auto light/dark: it is the
 * instrument). Numbers are always tabular; motion only ever carries data.
 */

@font-face {
  font-family: "Space Grotesk";
  src: url("vendor/space-grotesk.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* the heat ramp (shared everywhere) */
  --cool: #39b0ff;
  --pass: #2fb36a;
  --warn: #e6a72e;
  --quar: #e85d5d;
  --accent: #5a8bff;

  /* type */
  --font-display: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

/* dark surface set (index.html; dashboard.html in dark scheme) */
:root, .surface-dark {
  --bg: #0b0e13;
  --bg2: #0e1219;
  --panel: #141a24;
  --panel2: #10151d;
  --ink: #eaeef4;
  --muted: #8a94a4;
  --line: #222a36;
  --grid: #1a212c;
}

.tabular, .num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
