/* DeskAnkor - дизайн токени (Концепция 1 „Тихата сметка“).
   Цветовете са в hex, защото акцентът и точките са взети от самото приложение
   (виж design-notes.md). Контрастът е мерен със qa/contrast.py. */

@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("../assets/fonts/sofia-sans-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("../assets/fonts/sofia-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Цвят - роли */
  --bg-page: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-sunken: #e9ebef;
  --bg-app: #1f2124;            /* тъмният прозорец на приложението */
  --text-primary: #14181f;
  --text-muted: #4a5260;
  --border-subtle: #d5d8de;
  --border-strong: #8b93a1;     /* граници на полета: >= 3:1 върху бяло */
  --accent: #5b3fd6;
  --accent-hover: #4a30b8;
  --accent-soft: #ebe7fb;
  --on-accent: #ffffff;
  --state-saved: #1e7a45;
  --state-unsaved: #a85a00;
  --state-blocked: #b42318;
  --state-none: #98a0ad;
  --focus-ring: #1b3fd1;

  /* Шрифт */
  --font-sans: "Sofia Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;

  /* Размери на текста (fluid) */
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.17vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.15rem);
  --step-3: clamp(2.1rem, 1.45rem + 3.1vw, 3.75rem);

  /* Разстояния (скала на 8 px) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Форма и дълбочина */
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --shadow-s: 0 1px 2px rgb(20 24 31 / 0.08);
  --shadow-l: 0 1px 2px rgb(20 24 31 / 0.06), 0 18px 40px -12px rgb(20 24 31 / 0.35);

  /* Решетка */
  --container: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Движение */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}
