/*
 * Code Loom: tokens
 * A dark, late-night style. Near-black pages, typewritten codes that glow amber
 * behind faint scanlines, and one loud woven band of cobalt, teal, ochre and plum
 * rings with a headline in heavy multicolored capitals.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Courier+Prime:wght@400;700&family=Figtree:wght@400;500;600;700&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --cl-night: #0B0A09;       /* page background */
  --cl-coal: #1A1918;        /* top bar, cards, inputs */
  --cl-coal-2: #24221F;      /* hover on coal, raised cards */
  --cl-ash: #3B3733;         /* every border and divider */

  /* Text */
  --cl-paper: #EFE8DC;       /* headlines and body */
  --cl-dust: #A39C91;        /* secondary text, leads */
  --cl-faint: #6B655D;       /* captions, disabled */

  /* The glow */
  --cl-amber: #FFA43D;       /* lit codes, links, focus */
  --cl-amber-dim: rgba(255, 164, 61, .16); /* unlit codes */
  --cl-amber-glow: 0 0 10px rgba(255, 164, 61, .75), 0 0 32px rgba(255, 120, 30, .55), 0 0 80px rgba(255, 90, 20, .35);

  /* The one button color */
  --cl-rust: #B9461F;
  --cl-rust-hover: #D2552A;

  /* The woven band (only inside .cl-weave and the multicolor title) */
  --cl-cobalt: #1E8FE3;
  --cl-teal: #13A194;
  --cl-ochre: #D8953A;
  --cl-plum: #7B2D55;
  --cl-plum-lit: #B24C80;    /* plum for text on black */

  /* Fonts */
  --cl-display: "Archivo Black", "Arial Black", sans-serif;
  --cl-type: "Courier Prime", "Courier New", monospace;
  --cl-sans: Figtree, system-ui, sans-serif;

  /* Type scale */
  --cl-text-code: clamp(56px, 10vw, 140px);
  --cl-text-hero: clamp(40px, 6.4vw, 84px);
  --cl-text-h2: clamp(30px, 4vw, 52px);
  --cl-text-h3: 22px;
  --cl-text-lead: 19px;
  --cl-text-body: 16px;
  --cl-text-small: 14px;
  --cl-text-micro: 12px;

  /* Shape */
  --cl-radius-0: 0;
  --cl-radius-sm: 4px;
  --cl-radius-pill: 999px;
  --cl-border: 1px solid var(--cl-ash);
  --cl-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  --cl-scanlines: repeating-linear-gradient(0deg, rgba(0, 0, 0, .38) 0 2px, transparent 2px 4px);

  /* Weave tile */
  --cl-weave-size: 140px;

  /* Space */
  --cl-section: clamp(72px, 10vw, 128px);
  --cl-container: 1160px;
  --cl-narrow: 720px;
  --cl-gap: 24px;
}
