/*
 * Seq primitive colour scales — the only file in app/assets/stylesheets/ that may contain a hex literal.
 *
 * Generated by script/palette.py; edit the anchors or ladder there and regenerate
 * (`python3 script/palette.py --css > app/assets/stylesheets/01-settings/_color-palette.css`).
 * Each scale is derived in OKLCH from one anchor with even lightness steps on either
 * side of the anchor and constant hue; see the script's docstring for the ladder.
 * Grey, red, yellow, blue, green, pink and orange come from geneops-brand and are not
 * repeated here. Components never read these; they read 01-settings/_color-semantic.css,
 * where each scale has one job (docs/plans/seq-redesign.md § Colour carries one thing
 * each): emerald marks succeeded, golden marks queued and running, cardinal marks failed
 * and blocked, gold as the double border of .seq-canonical marks the production
 * configuration, and tyrian marks the diff's added rows and nothing else.
 *
 * Measured WCAG contrast of the steps the semantic roles use. The dark rows are against
 * the gem's dark grounds --color-grey-950 #17171c (--background-base) and --color-grey-900
 * #1f1f23 (--background-surface-1); the light rows against the light theme's grey-50 and
 * grey-100. A state role is read as text (the state word in the dominant element's
 * figure, 32px bold, and beside the dot of a .seq-state mark, 14px) and must clear 4.5:1;
 * the ornament hairline is non-text and must clear 3:1 (WCAG 1.4.11), its label 4.5:1.
 *
 *   state-succeeded (emerald)          text --color-emerald-400 #419e6c  vs grey-950 5.39:1  vs grey-900 4.95:1
 *   state-working (golden)             text --color-golden-400 #d3b358  vs grey-950 8.81:1  vs grey-900 8.10:1
 *   state-failed (cardinal)            text --color-cardinal-400 #e26f73  vs grey-950 5.75:1  vs grey-900 5.28:1
 *   ornament (golden)                  line --color-golden-600 #a58207  vs grey-950 4.93:1  vs grey-900 4.53:1
 *   ornament (golden)                  ink  --color-golden-300 #ddc37d  vs grey-950 10.36:1  vs grey-900 9.52:1
 *   diff-added (tyrian)                line --color-tyrian-300 #c76baa  vs grey-950 5.20:1  vs grey-900 4.78:1
 *   diff-added (tyrian)                ink  --color-tyrian-200 #e491c9  vs grey-950 7.82:1  vs grey-900 7.19:1
 *   state-succeeded (emerald, light)   text --color-emerald-700 #025431  vs grey-50 8.69:1  vs grey-100 8.05:1
 *   state-working (golden, light)      text --color-golden-700 #806404  vs grey-50 5.38:1  vs grey-100 4.98:1
 *   state-failed (cardinal, light)     text --color-cardinal-700 #9f0a2a  vs grey-50 7.89:1  vs grey-100 7.30:1
 *   ornament (golden, light)           line --color-golden-700 #806404  vs grey-50 5.38:1  vs grey-100 4.98:1
 *   ornament (golden, light)           ink  --color-golden-800 #5c4804  vs grey-50 8.44:1  vs grey-100 7.81:1
 *   diff-added (tyrian, light)         line --color-tyrian-500 #822b6b  vs grey-50 8.03:1  vs grey-100 7.43:1
 *   diff-added (tyrian, light)         ink  --color-tyrian-600 #60094c  vs grey-50 12.26:1  vs grey-100 11.35:1
 *
 * Why these steps. The 400 steps are the lightest of each scale that still read as their
 * pigment on the dark grounds and the darkest that clear 4.5:1 with margin; the 700 steps
 * do the same on the light grounds. Ornament is golden-600 in the dark theme: a step whose
 * relative luminance is 0.2398, 0.51x that of the working state (0.4679), so a
 * hairline of it is not read as a running state; it is a hairline and never a fill, and
 * its one label is golden-300 at 70 % over the ground. Tyrian is not the production mark
 * and not a state: it stays in the palette for the diff's added rows only.
 */

:root {

  /* ---------- Tyrian — anchored at 600 on #66023c ---------- */
  --color-tyrian-50:  #fff0f9;
  --color-tyrian-100: #e8c7dc;
  --color-tyrian-200: #e491c9;
  --color-tyrian-300: #c76baa;
  --color-tyrian-400: #a6498b;
  --color-tyrian-500: #822b6b;
  --color-tyrian-600: #60094c;  /* anchor */
  --color-tyrian-700: #520841;
  --color-tyrian-800: #440636;
  --color-tyrian-900: #37052b;
  --color-tyrian-950: #2a0420;

  /* ---------- Golden — anchored at 500 on #c9a227 ---------- */
  --color-golden-50:  #fcf5e1;
  --color-golden-100: #f2e4c0;
  --color-golden-200: #e8d49f;
  --color-golden-300: #ddc37d;
  --color-golden-400: #d3b358;
  --color-golden-500: #c9a227;  /* anchor */
  --color-golden-600: #a58207;
  --color-golden-700: #806404;
  --color-golden-800: #5c4804;
  --color-golden-900: #3c2d00;
  --color-golden-950: #1e1500;

  /* ---------- Cardinal — anchored at 600 on #c41e3a ---------- */
  --color-cardinal-50:  #fff2f1;
  --color-cardinal-100: #ffd0cf;
  --color-cardinal-200: #fbadad;
  --color-cardinal-300: #f08e90;
  --color-cardinal-400: #e26f73;
  --color-cardinal-500: #d44c56;
  --color-cardinal-600: #c41e3a;  /* anchor */
  --color-cardinal-700: #9f0a2a;
  --color-cardinal-800: #79001c;
  --color-cardinal-900: #550010;
  --color-cardinal-950: #320006;

  /* ---------- Emerald — anchored at 600 on #00693e ---------- */
  --color-emerald-50:  #eafaef;
  --color-emerald-100: #c6e1d0;
  --color-emerald-200: #87d1a5;
  --color-emerald-300: #62b887;
  --color-emerald-400: #419e6c;
  --color-emerald-500: #258354;
  --color-emerald-600: #00693e;  /* anchor */
  --color-emerald-700: #025431;
  --color-emerald-800: #014124;
  --color-emerald-900: #002e18;
  --color-emerald-950: #001c0d;
}
