/* wozansi brand tokens — generated from the vault's "Wozansi Brand" note.
 *
 * One copy. Every app imports this; nobody re-types a hex code.
 *
 * NOTE THE NAMES. These are --brand-*, not --wozansi-*, and that is deliberate:
 * the brand note asks for it in as many words, because this is the second
 * rename in a month. ilima's tokens were --ilima-* and every one of them had to
 * be touched. A third rename should cost one file, not forty.
 *
 * Rules that travel with these colours:
 *   - coral is BRAND ONLY. It is never a status.
 *   - status always carries a word or an icon, never colour alone.
 *   - brand-teal is not small text (3.3:1); use text-teal for words.
 *   - the ground is ivory, not grey, and the ink is indigo, not near-black.
 */

:root {
  /* Grounds and ink */
  --brand-ground: #FAF9F6;        /* page ground, ivory */
  --brand-surface: #FFFFFF;       /* cards, app header, panels */
  --brand-ink: #23305E;           /* text and headings — indigo, 12:1 on ivory */
  --brand-ink-muted: #5A6180;     /* captions, descriptors, the KPJ credit */
  --brand-line: #E4E6EE;          /* hairlines and dividers */

  /* Brand accents */
  --brand-teal: #2A9D8F;          /* the "za", the mark centre, fills */
  --brand-text-teal: #1F7A6F;     /* teal words and links, 5.2:1 */
  --brand-sun: #F4B43A;           /* beads, pattern, highlights — never text on light */
  --brand-coral: #E05A3B;         /* brand only. NEVER a status. */

  /* Mist grounds */
  --brand-teal-mist: #E8F4F2;
  --brand-sun-mist: #FDF3DE;
  --brand-coral-mist: #FBEAE4;
  --brand-indigo-mist: #EEF0F7;

  /* State. Never brand colours. */
  --status-running: #1F7A6F;
  --status-running-ground: #E8F4F2;
  --status-warning: #8A5A00;
  --status-warning-ground: #FDF3DE;
  --status-alarm: #C8102E;
  --status-alarm-ground: #FBE8EB;

  /* Accent family — what an app changes to take the brand. Indigo reads as the
   * ink here rather than as a big solid panel: the brand note makes hero panels
   * the exception now, not the default. */
  --accent: #23305E;
  --accent-hover: #1B2549;
  --accent-deep: #23305E;
  --accent-soft: #EEF0F7;
  --accent-line: #E4E6EE;
  --spark: #2A9D8F;
}

:root[data-theme="dark"] {
  --brand-ground: #141B36;
  --brand-surface: #23305E;
  --brand-ink: #FFFFFF;
  --brand-ink-muted: #C9CEDF;
  --brand-line: #3A4775;

  --brand-text-teal: #5FC7B9;

  --status-running: #5FC7B9;
  --status-running-ground: rgb(95 199 185 / 14%);
  --status-warning: #F4B43A;
  --status-warning-ground: rgb(244 180 58 / 14%);
  --status-alarm: #FF5A6A;
  --status-alarm-ground: rgb(255 90 106 / 14%);

  /* 7.7:1 on the dark surface. Primary-button TEXT stays dark on this. */
  --accent: #9AA8E8;
  --accent-hover: #B4BFEE;
  --accent-deep: #B4BFEE;
  --accent-soft: rgb(154 168 232 / 14%);
  --accent-line: rgb(154 168 232 / 35%);
  --spark: #5FC7B9;
}
