/* 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;
}

/* 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; */
