/* Дизайн-токены публичного сайта — палитра «Леджер-мята».
 *
 * Значения перенесены из утверждённых макетов (`Main.dc.html`,
 * `Home-Mobile.dc.html`, `Header-Footer.dc.html`, блок `:root`) один в один.
 * Ничего не добавлено и не подобрано на глаз: токен, которого нет в макете,
 * означает, что страница разъехалась с тем, что утверждали, — и увидеть это
 * можно будет только глазами на живом сайте.
 *
 * Радиус — 2px везде. Тени в палитре нет вовсе: разделяют линии, а не тени.
 */

:root {
  /* Поверхности */
  --bg: #090C0B;
  --surface: #111514;
  --surface2: #151A18;
  --hover: #171C1A;

  /* Линии */
  --line: #24302A;
  --lineS: #1A211E;

  /* Заливка полосы «burn» в hero — та, с которой сравнивают нашу цену.
     Значение приехало из `site.css`, где лежало числом мимо всей палитры;
     сайт уже открыт, поэтому цвет перенесён как есть, а не заменён ближайшим
     соседом. Если в макете у этой полосы другой цвет — правится здесь, и
     страница поедет за токеном сама. */
  --barBurn: #29352F;

  /* Текст */
  --text: #E7EDEA;
  --muted: #A3B0AA;
  --dim: #76837D;

  /* Акцент */
  --accent: #3FD8A8;
  --accentH: #66E3BC;
  --accentInk: #06251B;
  --accentSoft: #0E2A21;

  /* Статусы */
  --info: #74A9F5;
  --infoSoft: #12222E;
  --ok: #4FC98F;
  --okSoft: #0E271C;
  --warn: #E0A73C;
  --warnSoft: #2A2312;
  --danger: #F2705F;
  --dangerSoft: #2E1814;
  --neutral: #8B98A2;

  /* Шрифты. Системные хвосты — не украшение: пока woff2 не приехал,
     страница набрана ими (`font-display:swap` в fonts.css). */
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Геометрия */
  --radius: 2px;
  --wrap: 1180px;
}

/* Scripts we do not vendor.
 *
 * Chinese and Devanagari are megabytes of glyphs even after subsetting, and no
 * amount of `unicode-range` makes that cheap for the visitor who actually reads
 * those pages — they would download all of it. So these two locales are set in
 * whatever the reader's own system already has, which is the same choice the
 * cabinet made (`web/assets/tokens.css`) and has been serving zh and hi for
 * months.
 *
 * "IBM Plex Sans" stays at the head of every stack on purpose: Latin runs
 * inside a Chinese or Hindi page — prices, TRX, the API examples — keep the
 * face the rest of the site uses, because fallback is resolved per character,
 * not per element. Only the characters Plex has no glyph for reach the system
 * font named after it.
 *
 * Russian and Vietnamese are deliberately absent here: those two are vendored
 * (Cyrillic and Latin3 subsets, `fonts/fonts.css`) and must not be handed to a
 * system face.
 */
html:lang(zh) {
  --sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;
}

html:lang(hi) {
  --sans: "IBM Plex Sans", "Noto Sans Devanagari", "Nirmala UI", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Devanagari", "Nirmala UI", monospace;
}
