/* Author Tools theme tokens — v1
   ------------------------------------------------------------------
   Four palettes, keyed on <html data-theme>: Ivory (the design's light),
   Fall (a warm paper light with a fall-orange accent), Plum (the house
   dark) and Slate (a cooler blue-grey dark). Values are Write's; every
   Author Tools site reads these and maps its own old names onto them
   once (`--ink: var(--text)`), so a palette tweak here reaches every
   site without a redeploy.

   data-theme is set before first paint by boot.js (inlined in each
   site's <head>) from the at_appearance / at_light / at_dark cookies on
   .authortools.net; <at-appearance> (appearance.js) is the picker.

   Served from https://assets.authortools.net/theme/v1/tokens.css
   ------------------------------------------------------------------ */

:root,
:root[data-theme="plum"] {
  color-scheme: dark;
  --ground: #16101c;
  --ground-sunk: #120d17;
  --panel: #1b1422;
  --panel-2: #191220;
  --card: #1e1725;
  --card-sunk: #16101c;
  --seg-track: #16101c;
  --raised: #241c2d;
  --border: #2f2436;
  --border-soft: #241c2b;
  --border-strong: #3a2c43;
  --selected: #251b2e;
  --selected-2: #1f1727;
  --text: #f2ebf0;
  --text-2: #e4dae6;
  --text-muted: #c9bdcf;
  --text-dim: #a99bb0;
  --text-faint: #8d7f96;
  --text-fainter: #7e7188;
  --accent: #ec2d7b;
  /* "Needs you": the one thing on a page waiting on the member */
  --attention-bg: #34172d;
  --attention-line: var(--accent);
  --accent-text: #ff8fbb;
  --accent-solid: #ec2d7b;
  --on-accent: #1a0f14;
  --accent-sunk: #4a2338;
  --ok: #7fc08c;
  --warn: #e0b45c;
  --warn-bg: #2c2417;
  --danger: #e0736f;
  --anchor: #c8973a;
  --ai: #79cfc0;
  --ai-bg: #1e3a38;
  --ins: #ec2d7b;
  --seg-active: #191220;
  --seg-shadow: none;
  --shadow-pop: 0 18px 40px rgba(0, 0, 0, 0.6);
  --scrim: rgba(0, 0, 0, 0.6);
  --paper-light: #fdfbf7;
  --ink-light: #1e1a17;
  --page-edge-light: transparent;
  --paper-dark: #1e1725;
  --ink-dark: #e4dae6;
  --page-edge-dark: transparent;
}

/* Ivory. ("light" is accepted as an alias: Write's data-theme value for it.) */
:root[data-theme="ivory"],
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f7f3ef;
  --ground-sunk: #efe9e3;
  --panel: #ffffff;
  --panel-2: #fcfaf8;
  --card: #fcfaf8;
  --card-sunk: #ffffff;
  --seg-track: #f0e8e3;
  --raised: #ffffff;
  --border: #e7dfda;
  --border-soft: #efe7e1;
  --border-strong: #d9cfc8;
  --selected: #fbebf2;
  --selected-2: #f6f0ec;
  --text: #23201e;
  --text-2: #33302d;
  --text-muted: #554d48;
  --text-dim: #5f5750;
  --text-faint: #6f665f;
  --text-fainter: #8a7f78;
  --accent: #d6236e;
  /* "Needs you": the one thing on a page waiting on the member */
  --attention-bg: #fae5ee;
  --attention-line: var(--accent);
  --accent-text: #b31d5e;
  --accent-solid: #8e1f4b; /* button fills: pink under white text fails at label sizes */
  --on-accent: #ffffff;
  --accent-sunk: #fbe3ee;
  --ok: #3f7a4f;
  --warn: #7a5a14;
  --warn-bg: #fbf1d9;
  --danger: #b3413d;
  --anchor: #c8973a;
  --ai: #1f6b62;
  --ai-bg: #d8efeb;
  --ins: #d6236e;
  --seg-active: #ffffff;
  --seg-shadow: 0 1px 2px rgba(35, 32, 30, 0.13);
  --shadow-pop: 0 14px 34px rgba(35, 32, 30, 0.18);
  --scrim: rgba(35, 32, 30, 0.45);
  --paper-light: #fffdfa;
  --ink-light: #1e1a17;
  --page-edge-light: #e2dad3;
  --paper-dark: #2a2520;
  --ink-dark: #ede6e0;
  --page-edge-dark: transparent;
}

/* Fall: a warm paper ground, a shade browner than Ivory, with a fall-orange
   accent. Solid buttons use the darker burnt orange under white text; the
   brighter orange stays for markers, underlines and chips. */
:root[data-theme="fall"] {
  color-scheme: light;
  --ground: #f4ece0;
  --ground-sunk: #ece2d3;
  --panel: #fdf9f2;
  --panel-2: #f9f3ea;
  --card: #fbf6ee;
  --card-sunk: #fffdf8;
  --seg-track: #ebe0cf;
  --raised: #fffcf6;
  --border: #e3d6c3;
  --border-soft: #ebe1d1;
  --border-strong: #d3c2a8;
  --selected: #f8e4d0;
  --selected-2: #f3eadc;
  --text: #2b2118;
  --text-2: #3a2e23;
  --text-muted: #5a4a3c;
  --text-dim: #65554a;
  --text-faint: #75665a;
  --text-fainter: #8e7f72;
  --accent: #d9702a;
  /* "Needs you": the one thing on a page waiting on the member */
  --attention-bg: #f9e9da;
  --attention-line: var(--accent);
  --accent-text: #a8501a;
  --accent-solid: #9c4a17;
  --on-accent: #ffffff;
  --accent-sunk: #f9dcc4;
  --ok: #4c7a3f;
  --warn: #7a5210;
  --warn-bg: #f9ebd0;
  --danger: #b0402f;
  --anchor: #c8973a;
  --ai: #1f6b62;
  --ai-bg: #d8efe6;
  --ins: #d9702a;
  --seg-active: #fffdf8;
  --seg-shadow: 0 1px 2px rgba(43, 33, 24, 0.14);
  --shadow-pop: 0 14px 34px rgba(43, 33, 24, 0.18);
  --scrim: rgba(43, 33, 24, 0.45);
  --paper-light: #fffdf8;
  --ink-light: #241c15;
  --page-edge-light: #e0d3bf;
  --paper-dark: #2b241c;
  --ink-dark: #efe6d8;
  --page-edge-dark: transparent;
}

:root[data-theme="slate"] {
  color-scheme: dark;
  --ground: #14161a;
  --ground-sunk: #0f1114;
  --panel: #1b1e24;
  --panel-2: #181b21;
  --card: #1e222a;
  --card-sunk: #14161a;
  --seg-track: #22262e;
  --raised: #262b34;
  --border: #2e333b;
  --border-soft: #23272e;
  --border-strong: #3a404a;
  --selected: #25303e;
  --selected-2: #1f242c;
  --text: #e8ebef;
  --text-2: #dde2e8;
  --text-muted: #c2c9d2;
  --text-dim: #a0a8b3;
  --text-faint: #838b96;
  --text-fainter: #737b86;
  --accent: #6fb4f0;
  /* "Needs you": the one thing on a page waiting on the member */
  --attention-bg: #25303c;
  --attention-line: var(--accent);
  --accent-text: #8cc5f0;
  --accent-solid: #6fb4f0; /* bright enough to carry a fill with near-black text */
  --on-accent: #0b1016;
  --accent-sunk: #23384d;
  --ok: #78c48c;
  --warn: #e0b45c;
  --warn-bg: #2a2518;
  --danger: #e07a76;
  --anchor: #c8973a;
  --ai: #79cfc0;
  --ai-bg: #1e3a38;
  --ins: #2f6fa8;
  --seg-active: #181b21;
  --seg-shadow: none;
  --shadow-pop: 0 18px 40px rgba(0, 0, 0, 0.6);
  --scrim: rgba(0, 0, 0, 0.6);
  --paper-light: #fcfcfb;
  --ink-light: #1e1a17;
  --page-edge-light: transparent;
  --paper-dark: #1e222a;
  --ink-dark: #dde2e8;
  --page-edge-dark: transparent;
}
