/* The atlas palette, in one place.
 *
 * It lived in 210 copies: every flag page carried these three blocks inline,
 * so changing a colour meant changing it 210 times and hoping none drifted.
 * They had not drifted — all 210 were byte-identical — but that was luck
 * maintained by hand, and the site's own stylesheet had meanwhile grown a
 * second opinion: 66 custom properties of which exactly three shared a name
 * with these, and two of those three disagreed on the value.
 *
 * ONE DISAGREEMENT MATTERED. --brass was #a9762f here and #8D6227 in
 * styles.css, because #a9762f had been measured at 3.31:1 against the site's
 * background and replaced. Measured again against these backgrounds:
 *
 *     #a9762f on --card  #f8f1de   3.50:1   fails AA
 *     #8D6227 on --card  #f8f1de   4.77:1   passes
 *     #a9762f on --paper #ede2c8   3.07:1   fails
 *     #8D6227 on --paper #ede2c8   4.17:1   ALSO fails
 *     #7E5A20 on --paper #ede2c8   4.84:1   passes
 *     #7E5A20 on --card  #f8f1de   5.53:1   passes
 *
 * Corrected twice, and the second time by a test rather than by reasoning.
 * #8D6227 was adopted here because it passed against the SITE's old, cooler
 * #F7F6F2 panel at 4.97:1 — and this file then noted that it still failed on
 * --paper and left it standing, as a design decision rather than a refactor.
 * When the site adopted this warm ground, axe-core failed four accessibility
 * specs on `.lab`, which is brass on the ground. A value tuned against one
 * background does not survive the background changing, and «left visible» is
 * not a state a gate accepts.
 * #7E5A20 is the lightest brass that clears 4.5:1 on BOTH, so it holds
 * wherever it is used, on either half of the site.
 *
 * Three blocks, deliberately: the system default, the OS dark preference
 * scoped so an explicit light choice still wins, and the explicit dark
 * choice. Removing any one of them breaks a way of asking for dark. */

:root {
  --ink: #201a12;
  --paper: #ede2c8;
  --card: #f8f1de;
  --card-border: #d9c9a0;
  --brick: #9c3b28;
  --brick-2: #7c2e1f;
  --brass: #7E5A20;          /* twice corrected; see the note above */
  --adriatic: #204b5c;
  --adriatic-2: #163846;
  --muted: #6e6047;
  --hair: #cbb98d;
  --focus: #204b5c;
  --tile-sea: #b9d3da;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ece1c4;
    --paper: #14171b;
    --card: #1c2027;
    --card-border: #33393f;
    --brick: #d3644a;
    --brick-2: #e07a5f;
    --brass: #d1a154;
    --adriatic: #6fa3b8;
    --adriatic-2: #8fbccf;
    --muted: #9a9280;
    --hair: #33393f;
    --tile-sea: #17303a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #ece1c4;
  --paper: #14171b;
  --card: #1c2027;
  --card-border: #33393f;
  --brick: #d3644a;
  --brick-2: #e07a5f;
  --brass: #d1a154;
  --adriatic: #6fa3b8;
  --adriatic-2: #8fbccf;
  --muted: #9a9280;
  --hair: #33393f;
  --tile-sea: #17303a;
  color-scheme: dark;
}
