/* ==========================================================================
   tokens.css: every colour, font and size the site uses.
   Change the look here; nothing else should hard-code a colour.
   The charts in js/instruments.js read these same variables.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo.woff2) format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/unbounded.woff2) format("woff2");
}

:root {
  color-scheme: dark;

  /* Palette: night indigo, moonlight blue and violet (see the night scene in assets/moon.svg, haze.svg, sea.svg).
     Use 6-digit hex for the neon colours: the charts append alpha digits to them. */

  /* Surfaces: near-black indigo, with translucent panels over the backdrop */
  --bg: #05040C;
  --surface: rgba(14, 12, 36, 0.78);
  --surface-2: #17153A;
  --line: rgba(160, 150, 255, 0.18);

  /* Text */
  --text: #EEEBFB;
  --muted: #A29CC4;

  /* Neon. A = moonlight: links, buttons, "tested" values. B = violet: highlights, "claimed" values. */
  --neon-a: #8FD0FF;
  --neon-b: #B57CFF;
  --glow-a: 0 0 18px rgba(143, 208, 255, 0.55);
  --glow-b: 0 0 18px rgba(181, 124, 255, 0.6);

  /* Type */
  --display: "Unbounded", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --measure: 64ch;
  --radius: 18px;

  /* Cube: size in the corner and on the stage (see css/cube.css, js/cube.js) */
  --cube-corner: 64px;
  --cube-stage: min(62vmin, 440px);
}
