/*
 * Test Card: tokens
 * Feel: a volunteer-run project that still looks like late-night TV. Deep
 * indigo pages cut by pale diagonal shards, chunky centered headlines, a row
 * of square electric-blue buttons that sit side by side like channel keys,
 * and the seven stripes of a broadcast test card used as the one decorative
 * device. Sponsors and features sit in dark tiles arranged in tiers. Honest,
 * functional and a little nostalgic: it says what it does and who pays for it.
 *
 * Fonts (free, Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@500&family=Rubik:wght@500;700;800&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: indigo from top to bottom of the page */
  --tc-night: #151b42;
  --tc-deep: #0e1331;
  --tc-shard: #1d2662;
  --tc-shard-hi: #26317a;
  --tc-tile: #0a0e27;
  --tc-panel: #1a2152;
  --tc-line: #313b82;
  --tc-line-soft: #232b63;

  /* Text */
  --tc-text: #f2f3fb;
  --tc-dim: #b3b8dd;
  --tc-faint: #7b82b5;

  /* Accents */
  --tc-blue: #2b63f6;
  --tc-blue-deep: #1b48cf;
  --tc-blue-soft: rgba(43, 99, 246, .18);
  --tc-link: #86a8ff;
  --tc-go: #1fae4b;
  --tc-go-deep: #168a3a;
  --tc-warn: #f0c43c;

  /* The test card stripes, left to right */
  --tc-bar-1: #c6c8d3;
  --tc-bar-2: #e8c23a;
  --tc-bar-3: #2bb7da;
  --tc-bar-4: #3cc35b;
  --tc-bar-5: #df4392;
  --tc-bar-6: #c93a4e;
  --tc-bar-7: #3b4bcb;
  --tc-stripe: linear-gradient(90deg,
    var(--tc-bar-1) 0 14.28%, var(--tc-bar-2) 0 28.57%, var(--tc-bar-3) 0 42.85%,
    var(--tc-bar-4) 0 57.14%, var(--tc-bar-5) 0 71.42%, var(--tc-bar-6) 0 85.71%,
    var(--tc-bar-7) 0 100%);

  /* Fonts */
  --tc-display: "Rubik", "Arial Black", system-ui, sans-serif;
  --tc-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --tc-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --tc-text-hero: clamp(44px, 7vw, 84px);
  --tc-text-h1: clamp(34px, 4.6vw, 52px);
  --tc-text-h2: clamp(26px, 3vw, 34px);
  --tc-text-h3: 20px;
  --tc-text-lead: 19px;
  --tc-text-body: 17px;
  --tc-text-small: 15px;
  --tc-text-micro: 13px;
  --tc-leading: 1.6;

  /* Shape: square buttons, barely rounded tiles, no shadows */
  --tc-radius: 0;
  --tc-radius-tile: 4px;
  --tc-radius-chip: 3px;
  --tc-border: 1px solid var(--tc-line);
  --tc-border-soft: 1px solid var(--tc-line-soft);
  --tc-rule: 3px solid var(--tc-blue);
  --tc-shadow: none;
  --tc-focus: 0 0 0 2px var(--tc-night), 0 0 0 4px var(--tc-warn);

  /* Space */
  --tc-space-1: 4px;
  --tc-space-2: 8px;
  --tc-space-3: 12px;
  --tc-space-4: 16px;
  --tc-space-5: 24px;
  --tc-space-6: 32px;
  --tc-space-7: 56px;
  --tc-space-8: 88px;
  --tc-container: 1160px;
  --tc-narrow: 720px;

  /* Motion */
  --tc-fast: 120ms;
}
