/*
 * Red Sleeve: design tokens
 * A record sleeve on a graphite table. Pages sit on flat graphite with big square panels of
 * signal red in the middle, black title bands set in wide-tracked pixel capitals, dotted
 * leader menus in slanted machine type, and rows of numbered white key tiles. Everything is
 * flat and square: no radius, no soft shadows, no gradients. Drawings are pixel art in SVG.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Chakra+Petch:ital,wght@0,400;0,500;0,600;1,500;1,600&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: graphite is the table, red is the sleeve, coal is the title band */
  --rs-graphite: #2c2c2d;     /* the page */
  --rs-graphite-2: #373738;   /* raised cards and inputs on graphite */
  --rs-graphite-3: #47474a;   /* hover on graphite cards, table stripes */
  --rs-coal: #111111;         /* title bands, footer, ink on red */
  --rs-signal: #ef1d10;       /* the sleeve: one big red panel per screen */
  --rs-signal-deep: #b9140a;  /* hover and pressed on red */
  --rs-paper: #f3f0e8;        /* key tiles, primary buttons, text on coal */

  /* Text */
  --rs-ink: #0c0c0c;          /* text on red and on paper */
  --rs-light: #ecebe6;        /* text on graphite */
  --rs-smoke: #9a9995;        /* secondary text on graphite */
  --rs-ash: #6b6a67;          /* faint text, dotted leaders on graphite */

  /* Status, only inside key tiles and product readouts */
  --rs-free: #f3f0e8;         /* a free machine: a paper tile */
  --rs-busy: #ef1d10;         /* a running machine: the red tile */
  --rs-done: #f6c21c;         /* a finished load waiting: amber tile */

  /* Type */
  --rs-pixel: "Silkscreen", "Courier New", monospace;
  --rs-sans: "Chakra Petch", "Eurostile", "Arial Narrow", sans-serif;

  --rs-text-display: clamp(30px, 6.4vw, 72px);
  --rs-text-h2: clamp(24px, 3.6vw, 40px);
  --rs-text-h3: 20px;
  --rs-text-lead: 19px;
  --rs-text-body: 16px;
  --rs-text-small: 14px;
  --rs-text-micro: 12px;

  --rs-track-band: .55em;     /* title band capitals */
  --rs-track-display: .12em;  /* pixel headlines */
  --rs-track-label: .32em;    /* slanted index labels */

  /* Shape: square and flat */
  --rs-radius: 0;
  --rs-border: 2px solid var(--rs-coal);
  --rs-border-light: 2px solid var(--rs-graphite-3);
  --rs-leader: 2px dotted;    /* dotted leader rules, color comes from context */
  --rs-key-size: 56px;        /* one numbered key tile */
  --rs-key-inset: inset 0 0 0 3px var(--rs-coal);

  /* Space */
  --rs-section: clamp(64px, 9vw, 112px);
  --rs-sleeve: 760px;         /* the red panel is square-ish and centered */
  --rs-container: 1120px;
  --rs-narrow: 700px;
  --rs-gap: 24px;

  /* Motion: steps, not easing */
  --rs-steps: steps(4, end);
}
