/*
  Шрифты AuditLLM — локальные файлы вместо внешнего сервиса.

  Собрано scripts/fonts-local.mjs из Google Fonts: Literata, Golos Text, JetBrains Mono —
  все три под Open Font License (текст лицензии рядом, в OFL.txt). Взяты только кириллица и
  латиница: остальные подмножества на сайте не встречаются. unicode-range оставлен из исходной
  таблицы, поэтому браузер скачивает файл подмножества только тогда, когда на странице есть
  его символы.

  Стоял @import на fonts.googleapis.com: браузер узнавал адрес этой таблицы, только разобрав
  tokens.css, а адрес файла гарнитуры — только получив таблицу. Две задержки подряд на медленном
  соединении означали, что текст сперва рисовался запасной гарнитурой и через секунды
  перерисовывался другой — с другими переносами. Замерено: сдвиги от подмены доходили до 0,79
  (/standard) и 0,16 (/legal), с заблокированными файлами шрифтов — ноль.

  Поэтому font-display: optional и запасные гарнитуры с подогнанной шириной: подмена не меняет
  переносы строк, а если файл не успел к первой отрисовке, страница остаётся на запасной
  гарнитуре и не перерисовывается на глазах читателя. Файлы кэшируются (no-cache + ETag),
  поэтому со второго открытия гарнитура участвует с первой отрисовки.
*/
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/golos-text-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/golos-text-normal-latin.woff2?v=61e58a30e203) 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: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/golos-text-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/golos-text-normal-latin.woff2?v=61e58a30e203) 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: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/golos-text-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/golos-text-normal-latin.woff2?v=61e58a30e203) 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: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(/fonts/golos-text-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(/fonts/golos-text-normal-latin.woff2?v=61e58a30e203) 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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/jetbrains-mono-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/jetbrains-mono-normal-latin.woff2?v=61e58a30e203) 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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/jetbrains-mono-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/jetbrains-mono-normal-latin.woff2?v=61e58a30e203) 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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/jetbrains-mono-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/jetbrains-mono-normal-latin.woff2?v=61e58a30e203) 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: 'Literata';
  font-style: italic;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/literata-italic-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/literata-italic-latin.woff2?v=61e58a30e203) 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: 'Literata';
  font-style: italic;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/literata-italic-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/literata-italic-latin.woff2?v=61e58a30e203) 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: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/literata-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/literata-normal-latin.woff2?v=61e58a30e203) 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: 'Literata';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/literata-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/literata-normal-latin.woff2?v=61e58a30e203) 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: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/literata-normal-cyrillic.woff2?v=61e58a30e203) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/literata-normal-latin.woff2?v=61e58a30e203) 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;
}
/* Golos Text против Arial, Helvetica и Liberation Sans: 1,037 (разброс по строкам 0,91–1,07) */
@font-face {
  font-family: 'Golos Text Fallback Arial';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans'), local('Helvetica Neue');
  size-adjust: 103.7%;
  font-display: optional;
}

/* Golos Text против DejaVu Sans: 0,921 */
@font-face {
  font-family: 'Golos Text Fallback DejaVu';
  src: local('DejaVu Sans');
  size-adjust: 92.1%;
  font-display: optional;
}

/* Golos Text против Noto Sans: 1,001 */
@font-face {
  font-family: 'Golos Text Fallback Noto';
  src: local('Noto Sans');
  size-adjust: 100.1%;
  font-display: optional;
}

/* Literata против Georgia: 1,134 (сверено по Gelasio — метрически совместимому заменителю Georgia) */
@font-face {
  font-family: 'Literata Fallback Georgia';
  src: local('Georgia'), local('Gelasio');
  size-adjust: 113.4%;
  font-display: optional;
}

/* Literata против Liberation Serif и Times New Roman: 1,134 */
@font-face {
  font-family: 'Literata Fallback Liberation';
  src: local('Liberation Serif'), local('Times New Roman');
  size-adjust: 113.4%;
  font-display: optional;
}

/* Literata против DejaVu Serif: 0,925 */
@font-face {
  font-family: 'Literata Fallback DejaVu';
  src: local('DejaVu Serif');
  size-adjust: 92.5%;
  font-display: optional;
}

/* Literata против Noto Serif: 0,975 */
@font-face {
  font-family: 'Literata Fallback Noto';
  src: local('Noto Serif');
  size-adjust: 97.5%;
  font-display: optional;
}
