/* Theme candidates (branch `themes`). The client said the background and colours may change, so every colour on the
   site now comes from these primitives. Pick one with ?theme=<name> (remembered per browser), ?theme=v4 clears it.
   Rules each theme keeps (checked by tools/contrast.mjs): ink on bone >= 7:1, muted on bone >= 4.5:1,
   ink on the accent fill (--orange: hover buttons, chips) >= 4.5:1. --au-* = the 4-colour aurora behind heroes (6-digit hex). */

/* assembly: the civic one. Navy ink, vermilion fill, cool paper. Reads as an institution without going grey. */
html[data-theme="assembly"] {
  --ink: #14213d; --ink-deep: #0e1830; --ink-2: #2c3a57; --blue-ink: #14213d;
  --orange: #f2643d; --orange-hover: #f6845f; --orange-soft: #f2643d; --orange-text: #b23a17;
  --bone: #f4f2ee; --bone-2: #fbfaf7; --muted: #4d5568;
  --peach: #f7d6cb; --lilac: #dde2f4; --sage: #d8e6df; --butter: #f3e7c6; --sky: #d3e3f2;
  --on-dark: #3a4357; --label-dark: #4d5568;
  --au-peach: #f7c9b8; --au-lilac: #c9d2f2; --au-sage: #c8e0d6; --au-butter: #f1dfae; --au-sky: #bcd6ef; --au-bone: #f4f2ee;
}

/* peacock: deep peacock ink, tangerine kept as the fill (research palette 5), sea-glass paper. Keeps the v4 accent, grows up the rest. */
html[data-theme="peacock"] {
  --ink: #10201f; --ink-deep: #0a1716; --ink-2: #26403e; --blue-ink: #10201f;
  --orange: #ff7a3d; --orange-hover: #ff9560; --orange-soft: #ff7a3d; --orange-text: #a8401a;
  --bone: #f3f5f1; --bone-2: #ffffff; --muted: #4b5a58;
  --peach: #f8dccb; --lilac: #dfe2ec; --sage: #cfe6df; --butter: #f6e8bd; --sky: #cfe5e6;
  --on-dark: #364644; --label-dark: #4b5a58;
  --au-peach: #f9c3a3; --au-lilac: #c9d0e4; --au-sage: #9fd3c4; --au-butter: #f6dc97; --au-sky: #a4d6d8; --au-bone: #f3f5f1;
}

/* ledger: the report. Near-black ink, signal red, newsprint. Most serious, closest to a think tank. */
html[data-theme="ledger"] {
  --ink: #161616; --ink-deep: #0d0d0d; --ink-2: #333333; --blue-ink: #161616;
  --orange: #ff5a4e; --orange-hover: #ff7a70; --orange-soft: #ff5a4e; --orange-text: #c0201b;
  --bone: #f2efe8; --bone-2: #faf8f3; --muted: #57534c;
  --peach: #f4d5cf; --lilac: #e2e0ea; --sage: #dfe4da; --butter: #efe6cc; --sky: #dbe2e8;
  --on-dark: #45423c; --label-dark: #57534c;
  --au-peach: #f2c4bc; --au-lilac: #d6d3e3; --au-sage: #d3dccb; --au-butter: #ecdcb0; --au-sky: #c9d6e2; --au-bone: #f2efe8;
}

/* haldi: indigo ink, turmeric fill, khadi paper (research palette 3). The Indian-rooted one. */
html[data-theme="haldi"] {
  --ink: #1b1a33; --ink-deep: #131226; --ink-2: #34324f; --blue-ink: #1b1a33;
  --orange: #e8a317; --orange-hover: #f0b840; --orange-soft: #e8a317; --orange-text: #8a5a00;
  --bone: #faf6ea; --bone-2: #fffcf3; --muted: #55536b;
  --peach: #f6dcc2; --lilac: #e0def3; --sage: #e0e6cf; --butter: #f8e7a8; --sky: #d9e0f0;
  --on-dark: #44425a; --label-dark: #55536b;
  --au-peach: #f4c99a; --au-lilac: #c7c3ee; --au-sage: #d4dcb3; --au-butter: #f6d77a; --au-sky: #bfcbeb; --au-bone: #faf6ea;
}

/* alpine: the Davos one (research palette 2). Navy ink, glacier fill, snow paper; Swiss red only as text accent. */
html[data-theme="alpine"] {
  --ink: #0f1b2d; --ink-deep: #0a1322; --ink-2: #2a3850; --blue-ink: #0f1b2d;
  --orange: #8fbaff; --orange-hover: #a9caff; --orange-soft: #8fbaff; --orange-text: #b81f33;
  --bone: #f4f6f8; --bone-2: #ffffff; --muted: #4a5568;
  --peach: #f4dcd6; --lilac: #e0e0f5; --sage: #d9e7e3; --butter: #fff0b0; --sky: #d2e3f6;
  --on-dark: #3a4558; --label-dark: #4a5568;
  --au-peach: #f2c8c0; --au-lilac: #cdcdf2; --au-sage: #c7e0d9; --au-butter: #ffe48a; --au-sky: #b0d0f8; --au-bone: #f4f6f8;
}

/* every theme: lines follow the ink */
html[data-theme] {
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 42%, transparent);
  --line-dark: color-mix(in srgb, var(--ink) 14%, transparent);
}
