/* Deadlock Coach tokens: black and red (docs/design/next-game/README.md).
   Every colour, typeface, size and edge of the new look lives here, so other pages can adopt it later by reading
   these names. Today only the shell (side menu, filter row, phone bars) and the Next game page use them.

   The colour rule, in one line: red is you and the one thing to fix, never a verdict; behind is amber with ▼,
   ahead is ice with ▲, always with the arrow and the word.
   Contrast figures are against --dc-panel (#171313), the ground most text sits on. */
:root {
  /* grounds: a warm near-black (never #000), in four steps from the page to a hovered tile */
  --dc-ground: #0f0d0d;
  --dc-panel: #171313;
  --dc-panel-2: #1e1919;
  --dc-panel-3: #262020;
  --dc-line: #2b2424;          /* hairline between tiles */
  --dc-line-strong: #3d3434;   /* inputs, the hover edge */

  /* text */
  --dc-ink: #f3eeec;           /* headings and figures, 16.0:1 */
  --dc-read: #cdc4c1;          /* sentences, 10.8:1 */
  --dc-muted: #a0948f;         /* labels and notes, 6.3:1 */

  /* red: the brand, you, and the gap you work on */
  --dc-red: #e5333b;           /* fills, bars, edges; not for small text (4.3:1) */
  --dc-red-text: #ff4d55;      /* red words and figures, 5.7:1 */
  --dc-red-btn: #c4262e;       /* button ground under white text, 5.7:1 */
  --dc-red-deep: #4a1215;      /* the dark end of red washes */
  --dc-red-tint: color-mix(in oklab, #e5333b 14%, transparent);

  /* who you are measured against */
  --dc-rank: #9a908c;          /* your rank: a grey tick, 5.9:1 */
  --dc-above: #ebe5e2;         /* the rank above: a bone-white tick, 14.8:1 */

  /* direction, never red */
  --dc-behind: #f2b54d;        /* ▼ behind, 10.1:1 */
  --dc-ahead: #62cbd9;         /* ▲ ahead, 9.7:1 (not used on Next game, which only lists gaps) */

  /* type: a 1920s condensed display for labels and big numbers, a plain grotesk for sentences, mono for small figures */
  --dc-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --dc-text: "Host Grotesk", system-ui, sans-serif;
  --dc-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --dc-t-label: 14px;          /* display 700, uppercase, +0.06em */
  --dc-t-small: 13px;          /* text: notes, qualifiers */
  --dc-t-body: 15px;           /* text: sentences */
  --dc-t-title: 22px;          /* display 700: a tile's title */
  --dc-t-h1: clamp(34px, 1.6vw + 22px, 48px);
  --dc-t-big: clamp(48px, 2.4vw + 28px, 68px);   /* the one number a tile is about */

  /* edges and spacing: squared, tight */
  --dc-r: 2px;                 /* the only radius */
  --dc-cut: 14px;              /* the cut corner on the lead tiles */
  --dc-gap: 8px;               /* between tiles */
  --dc-pad: 18px;              /* inside a tile */

  /* texture: a faint grain on the ground, so black is not flat */
  --dc-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .9 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* the gap stretch on a ruler: red hatching */
  --dc-hatch: repeating-linear-gradient(-45deg, color-mix(in oklab, #e5333b 70%, transparent) 0 2px, transparent 2px 5px);
}
