/* Сайт v3 — токены. Источник: docs/brandbook.md, разделы 3–7.
   Тёмная тема — своя палитра, не инверсия. Механизм темы общий: theme_toggle.js. */
:root {
  --paper: #f8f5ef; --paper-2: #fefbf6; --surface: #fffdfa; --surface-soft: #f3ecef;
  --text: #2d2930; --muted: #716673; --subtle: #7a6f79; --line: #e7dfda;
  --purple: #80668f; --purple-deep: #665078; --purple-soft: #eee6f0;
  --honey: #e4bd73; --honey-soft: #f7ebd2; --honey-text: #806137;
  --error-bg: #f8e8e5; --error-text: #a05a52; --error-line: #b96f66;
  --ok-bg: #e9f1e8; --ok-text: #55795d;
  --on-accent: #ffffff;

  --display: Georgia, "Times New Roman", "Liberation Serif", serif;
  --ui: "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-label: 12px; --fs-secondary: 13px; --fs-body: 15px; --fs-block: 17px; --fs-page: 28px;

  --radius-s: 6px; --radius-m: 10px; --radius-l: 14px;
  --shadow-soft: 0 10px 30px rgba(45, 41, 48, .07);
  --shadow-raise: 0 18px 60px rgba(45, 41, 48, .075);

  --t-hover: .15s; --t-panel: .24s;
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #221f27; --paper-2: #29252e; --surface: #2d2833; --surface-soft: #332d3b;
  --text: #f0e9ed; --muted: #b1a7b6; --subtle: #908797; --line: #47404b;
  --purple: #c3aad3; --purple-deep: #d1b9df; --purple-soft: #383040;
  --honey: #e2c38c; --honey-soft: #3c332d; --honey-text: #e7cfa1;
  --error-bg: #3f2d34; --error-text: #e0a79f; --error-line: #e0a79f;
  --ok-bg: #2b3c35; --ok-text: #a3c7a9;
  --on-accent: #221f27;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-raise: 0 18px 60px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-hover: 0s; --t-panel: 0s; }
}
