/* Токены дизайн-системы «Фирменный фиолетовый». Описание и роли — в DESIGN.md */

/* Шрифты лежат на нашем сервере, как и остальные. Оба вариативные: один файл на все начертания */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/unbounded-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/onest-latin.woff2) format('woff2');
  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 {
  /* Цвет */
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F2EFFF;
  --line: #E3DEF7;
  --ink: #160A4D;
  --ink-2: #4A4370;
  --ink-3: #6A6490;
  --violet: #4A1FE0;
  --violet-ink: #3A12C2;
  --violet-soft: #C9BCFF;
  --focus-ring: rgba(74, 31, 224, 0.22);
  --lime: #C6FF1A;
  --lime-ink: #B4F000;
  --pen: #E0301E;
  --dark: #4A1FE0;
  --deep: #160A4D;
  --on-dark: #FFFFFF;
  --on-dark-2: #DAD2FF;
  --on-dark-line: rgba(255, 255, 255, 0.22);
  --success: #1E7A45;
  --warning: #9A5B00;
  --error: #C4261B;

  /* Шрифты */
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  /* Размеры текста */
  --t-xs: 14px;
  --t-s: 15px;
  --t-m: 17px;
  --t-l: 20px;
  --t-xl: 22px;
  --t-2xl: clamp(24px, 2.4vw, 30px);
  --t-3xl: clamp(28px, 3.3vw, 42px);
  --t-4xl: clamp(30px, 3.7vw, 52px);
  --measure: 64ch;

  /* Отступы */
  --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;
  --section: clamp(64px, 10vw, 128px);
  --container: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  /* Форма */
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 28px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(22, 10, 77, 0.08), 0 16px 40px -18px rgba(22, 10, 77, 0.35);

  /* Движение */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 150ms;
  --base: 200ms;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --gutter: max(32px, env(safe-area-inset-left, 0px));
    --gutter-r: max(32px, env(safe-area-inset-right, 0px));
  }
}
