/* Шрифты темы. Только self-hosted woff2 из assets/fonts.
   Google Fonts как внешний CDN не подключается: он заблокирован в РФ,
   и сайт у части посетителей остался бы без гарнитур.

   Файлы вариативные - одна ось wght на 200-900 вместо семи статических
   начертаний. Кириллица и латиница разнесены по unicode-range, поэтому
   на русской странице латинский файл вообще не скачивается. */

@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-cyrillic-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2192, U+2197, U+2212;
}
@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-cyrillic-wght-italic.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/commissioner-cyrillic-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/commissioner-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2192, U+2197, U+2212;
}

/* Метрики подгоняем к системному фолбэку: пока грузится Literata,
   заголовок набран Georgia в тех же габаритах и не прыгает при подмене. */
@font-face {
  font-family: 'Literata Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 24%;
}
