/*
 * Palette. WHAT IS FIXED for the line (core.md §17.1–17.5) is the set of roles below and
 * their meanings: surfaces and four text levels; one accent; four fixed value meanings
 * (positive, negative, warn, neutral) and their data scales; eight belonging tags; four row
 * highlights. Every value comes from the product kit (project_files/ui/product-kit.md §2,
 * D-017: record v2b of ui/kit/palettes.js). `--accent` must equal `color` in config/project.php
 * (the favicon is drawn from it). Roles are never added here without a rule first.
 */
:root {
  --bg: #FBFAF5;
  --surface: #FFFFFF;
  --surface-2: #F1EFE8;
  --border: #E5E2D8;
  --border-2: #D3D1C7;
  --border-3: #B2B0A7;

  --text: #2B2B28;
  --text-2: #5F5E5A;
  --text-3: #6E6D66;
  --text-4: #888780;
  --text-disabled: #888780;
  /* The dark letter on the owner's colour of a product (rules.md §2.2): pure black, so that the
     better of it and --surface reads at 4.58:1 or more on any colour; --text falls short of it. */
  --ink-on-colour: #000000;

  --accent: #375EB5;               /* = `color` in config/project.php (favicon) */
  --accent-press: #2A4FA4;
  --accent-press-2: #1D4094;     /* second press step, same hue, one even step darker (rules.md §2.1) */
  --accent-link-hover: #2A4FA4;
  --accent-soft: #EFF1F1;
  --accent-soft-2: #E3E7ED;
  --accent-border: #C4CEE3;

  /* Знак величины. Смысл закреплён: зелёный — прибавилось, оранжево-красный — убыло
     или отказано, янтарный — внимание, синий — нейтральный перенос. */
  --positive: #0F6E56;
  --negative: #A32D2D;
  --negative-press: #7F2C2C;
  --negative-soft: #F9F2F2;
  --warn: #B04F00;
  --neutral: #46587A;
  --archived: #F6F5EF;
  --muted: #EBE9E0;

  /* Шкалы данных: семейство = что за величина, насыщенность = сколько */
  --scale-accent-1: #E3E7ED;
  --scale-accent-2: #AFBEDC;
  --scale-accent-3: #7892CA;
  --scale-accent-4: #375EB5;

  --scale-positive-1: #E1F5EE;
  --scale-positive-2: #A0C4BA;
  --scale-positive-3: #5A8F83;
  --scale-positive-4: #085041;

  --scale-negative-1: #FCEBEB;
  --scale-negative-2: #D5AEAE;
  --scale-negative-3: #AB6D6D;
  --scale-negative-4: #791F1F;

  --scale-neutral-1: #EEEDFE;
  --scale-neutral-2: #B9B6DB;
  --scale-neutral-3: #807AB5;
  --scale-neutral-4: #3C3489;

  --scale-warn-1: #FAEEDA;
  --scale-warn-2: #EDB417;
  --scale-warn-3: #B68800;
  --scale-warn-4: #854F0B;

  /* Gold: the recommendation mark and the product star (rules.md §2.3). A mark, never a text
     colour; the values are steps 2 and 3 of the attention scale, referenced, not repeated. */
  --gold: var(--scale-warn-2);          /* graphic */
  --gold-strong: var(--scale-warn-3);   /* darker step */

  /* Палитра принадлежности: восемь оттенков для меток, групп, признаков.
     Нарочно вне закреплённых смыслов выше: метка ничего не оценивает, она обозначает.
     Цвет здесь говорит «тот же самый», а не «хорошо» или «плохо».
     Цвет выбирается по идентификатору (app\ui\Badge), поэтому не «дрейфует» между экранами. */
  --tag-1-bg: #F2ECFB;
  --tag-1-fg: #503E64;
  --tag-2-bg: #E1F4F5;
  --tag-2-fg: #095255;
  --tag-3-bg: #FAEAF2;
  --tag-3-fg: #613950;
  --tag-4-bg: #EDF2E3;
  --tag-4-fg: #434D22;
  --tag-5-bg: #FCECE5;
  --tag-5-fg: #653C29;
  --tag-6-bg: #E3F2FB;
  --tag-6-fg: #1F4D66;
  --tag-7-bg: #FCEAEF;
  --tag-7-fg: #643846;
  --tag-8-bg: #F1EFE8;
  --tag-8-fg: #5F5E5A;

  /* Подсветка строк: новое, требует срока, событие, архив. Только четыре. */
  --row-new: #F7F9FC;
  --row-due: #FDF7ED;
  --row-event: #F0FAF7;
  --row-archived: #F6F5EF;
}
