/* Techno Team - self-hosted fonts (SIL Open Font License 1.1)
   Archivo (variable: wght 400-800, wdth 70-100) and IBM Plex Mono 500/600,
   subset to Basic Latin, Latin-1, Turkish (Ğğ İı Şş) and common punctuation
   (– — ‘ ’ “ ” • … € ™ ° ×). Layout features kept, incl. locl for TRK. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations"),
       url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 70% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+011E-011F, U+0130-0131, U+015E-015F,
                 U+2013-2014, U+2018-201D, U+2022, U+2026, U+20AC, U+2122;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+011E-011F, U+0130-0131, U+015E-015F,
                 U+2013-2014, U+2018-201D, U+2022, U+2026, U+20AC, U+2122;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+011E-011F, U+0130-0131, U+015E-015F,
                 U+2013-2014, U+2018-201D, U+2022, U+2026, U+20AC, U+2122;
}

/* ---- More languages (2026-11-08, content/i18n/langs.json) -------------------------------------------
   Every face below is downloaded only when a page really contains its characters (unicode-range), so
   EN/TR pages, whose text is fully covered by the three files above, download nothing new.
   Ranges never overlap the faces above (base coverage, and the arrows used on EN/TR pages, are excluded),
   and the Archivo / Plex Mono extensions repeat the base weight/stretch descriptors on purpose: a wider
   range would change which face wins for font-stretch 62% (footer wordmark).
   Files: unmodified Google Fonts subsets (fonts.googleapis.com/css2, downloaded 2026-11-08), SIL OFL 1.1,
   copyright notices in fonts/OFL.txt.
   - Archivo latin supplement (Œ œ, general punctuation such as the narrow no-break space) and latin-ext
   - IBM Plex Mono: the same two + Cyrillic (same family name, same design)
   - Roboto Flex (Cyrillic only): Russian display/body; has a width axis (25-151) so font-stretch 72/85% keep
     the condensed headlines; size-adjust 97% matches its cap height to Archivo (Н 71.1 vs H 68.8 units)
   - IBM Plex Sans Arabic 400/600/700 (Arabic only): Arabic body and headings, same superfamily as the labels
   Roboto Flex and Plex Sans Arabic are separate families, used only in the ru / ar stacks of site.css
   (:root:lang(ru|ar)), so a language name in the menu never pulls them on other pages. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-sup.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 70% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-200A, U+2010-2012, U+2015-2017, U+201E-201F, U+2021, U+2023-2025, U+2027,
                 U+202F-205F, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 70% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-011D, U+0120-012F, U+0132-0151, U+0154-015D, U+0160-02BA, U+02BD-02C5,
                 U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500-latin-sup.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-200A, U+2010-2012, U+2015-2017, U+201E-201F, U+2021, U+2023-2025, U+2027,
                 U+202F-205F, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-011D, U+0120-012F, U+0132-0151, U+0154-015D, U+0160-02BA, U+02BD-02C5,
                 U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500-cyrillic.woff2") format("woff2");
  font-weight: 500;
  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: "IBM Plex Mono";
  src: url("fonts/plex-mono-600-latin-sup.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-200A, U+2010-2012, U+2015-2017, U+201E-201F, U+2021, U+2023-2025, U+2027,
                 U+202F-205F, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-600-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-011D, U+0120-012F, U+0132-0151, U+0154-015D, U+0160-02BA, U+02BD-02C5,
                 U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-600-cyrillic.woff2") format("woff2");
  font-weight: 600;
  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: "Roboto Flex";
  src: url("fonts/roboto-flex-cyrillic.woff2") format("woff2");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
  size-adjust: 97%;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
                 U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
                 U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
                 U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Metric-matched fallback to minimise layout shift while Archivo loads.
   Computed with fontTools from Archivo at wght 400 / wdth 100 (upm 1000,
   hhea ascender 878, descender -210, lineGap 0) against Arial metrics
   (upm 2048, ascender 1854, descender -434; widths measured from the
   metric-compatible Liberation Sans). size-adjust = ratio of the
   English-letter-frequency-weighted average advance width (incl. space):
   Archivo 0.4327 em / Arial 0.4409 em = 0.9815. Overrides are the Archivo
   vertical metrics divided by size-adjust: 0.878/0.9815, 0.210/0.9815, 0.
   Tuned for body text; condensed (wdth < 100) headings will still reflow. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 98.15%;
  ascent-override: 89.46%;
  descent-override: 21.40%;
  line-gap-override: 0%;
}

/* Usage:
   font-family: "Archivo", "Archivo Fallback", system-ui, sans-serif;
   font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; */
