/*
  The house code palette.
 
  These variables are what colours every code block. Shiki emits them as inline
  `var(--code-*)` styles from the theme in `src/lib/shiki-house-theme.mjs`, so this
  file is load-bearing rather than decorative — deleting the link in `BaseLayout`
  would leave every code block unstyled.
 
  It used to carry ~85 `.chroma .*` rules as well, for Hugo's Chroma highlighter.
  Those are gone: Chroma is gone, and no page in the build carries a `chroma` or
  `bg` class. Ten `--code-*-dim` variants and `--code-hover-bg` went with them,
  having never been referenced by anything, including the rules they were
  presumably written for.
 
  Six are mapped by the theme today. The other five are unmapped palette, kept
  because a design palette with holes in it is worse than one with spares, and
  DES-41's remaining work — contrast, see below — may want them.
 
  **Contrast is under AA and known.** `--code-green` on strings is 2.69:1 and
  `--code-comment` 4.21:1. Restoring the house palette after the port deliberately
  chose parity over contrast; fixing it means editing the values here, and every
  code block follows. DES-41.
*/
:root {
  /* Mapped by the Shiki theme. */
  --code-red: #CB071D; /* numbers, errors; also used by the nondeterminism post's figure CSS */
  --code-blue: #0277AA; /* keywords, functions, escapes */
  --code-green: #7EAC21; /* strings — 2.69:1, under AA */
  --code-magenta: #AE166B; /* language constants: True, False, None */
  --code-comment: #6F7D8D; /* comments — 4.21:1, under AA */
  --code-namespace: #6b1e3c; /* module names */

  /* Palette, not currently mapped to a token. */
  --code-yellow: #a47d00;
  --code-aqua: #1b8ea6;
  --code-orange: #c44d5a;
  --code-gray: #5f6672;
  --code-purple: var(--code-blue);
}
