/* Дизайн-токены. Рабочее название продукта: «Домовой» (не утверждено). */
:root {
  --font-display: "Literata", "Georgia", serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #faf8f3;
  --bg-2: #f1ede4;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --ink: #17201c;
  --ink-2: #4a554f;
  --ink-3: #6f7a74;
  --line: rgba(23, 32, 28, 0.1);

  --brand: #0d5c4b;
  --brand-hover: #0a4a3c;
  --brand-ink: #ffffff;
  --brand-soft: #dcebe5;

  --paid: #217a52;
  --paid-soft: #dff1e8;
  --soon: #9a5f00;
  --soon-soft: #fbecc9;
  --overdue: #b3341f;
  --overdue-soft: #fbe0da;

  --shadow-1: 0 1px 2px rgba(23, 32, 28, 0.06), 0 4px 16px rgba(23, 32, 28, 0.06);
  --shadow-2: 0 2px 4px rgba(23, 32, 28, 0.06), 0 24px 56px rgba(23, 32, 28, 0.14);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 36px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1411;
    --bg-2: #141c18;
    --surface: #17201c;
    --surface-glass: rgba(23, 32, 28, 0.72);
    --ink: #eef2ef;
    --ink-2: #b4beb8;
    --ink-3: #8c9791;
    --line: rgba(238, 242, 239, 0.12);
    --brand: #43c4a0;
    --brand-hover: #63d3b2;
    --brand-ink: #06241c;
    --brand-soft: #173a30;
    --paid: #5cd39b;
    --paid-soft: #17382a;
    --soon: #f0b44a;
    --soon-soft: #3b2e12;
    --overdue: #ff8a75;
    --overdue-soft: #43201a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 56px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1411;
  --bg-2: #141c18;
  --surface: #17201c;
  --surface-glass: rgba(23, 32, 28, 0.72);
  --ink: #eef2ef;
  --ink-2: #b4beb8;
  --ink-3: #8c9791;
  --line: rgba(238, 242, 239, 0.12);
  --brand: #43c4a0;
  --brand-hover: #63d3b2;
  --brand-ink: #06241c;
  --brand-soft: #173a30;
  --paid: #5cd39b;
  --paid-soft: #17382a;
  --soon: #f0b44a;
  --soon-soft: #3b2e12;
  --overdue: #ff8a75;
  --overdue-soft: #43201a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 56px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
