/* TetaLink — design tokens (единый источник для лендинга и приложения).
   Стиль: Organic Warm + акцент Calm Gradient. План — .claude/PROJECT.md «## Дизайн». */
:root {
  /* Бумага — светлый материал (лендинг, кабинет) */
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --surface: #fbf9f4;
  --line: #ddd5c6;
  --ink: #1d2623;
  --ink-2: #4f5b56;
  --ink-3: #626c67;

  /* Акцент — глубокая хвойная бирюза; светлый вариант для тёмного материала */
  --accent: #1f6a63;
  --accent-ink: #164f4a;
  --accent-soft: #d6e6e1;
  --accent-light: #7cc4b8;

  /* Второй тон — глина, только мелкие акценты */
  --clay: #9c5233;
  --clay-soft: #f1ddd0;

  /* Ночь — тёмный материал сеанса (фокус, без отвлечений) */
  --night: #111517;
  --night-2: #171c1f;
  --night-3: #1e2428;
  --night-4: #273035;
  --night-line: #2f393e;
  --night-ink: #e9e5dc;
  --night-ink-2: #a9b1ac;

  /* Статусы */
  --ok: #2f7a4b;
  --warn: #a86a12;
  --danger: #b23b31;

  /* Типографика */
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-ui: "Onest", "Segoe UI", system-ui, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.5rem + 4.4vw, 5rem);

  /* Форма: крупные блоки 28, карточки 18, контролы 12, чипы — пилюля */
  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(29, 38, 35, .04), 0 8px 24px -12px rgba(29, 38, 35, .18);

  /* Сетка 8 px */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Движение: медленно и плавно, как дыхание */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 160ms;
  --t-mid: 320ms;
  --t-slow: 900ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.icon { width: 20px; height: 20px; fill: currentColor; flex: none; vertical-align: middle; }
.icon-16 { width: 16px; height: 16px; }
.icon-24 { width: 24px; height: 24px; }
