/* =====================================================================
   Self-hosted fonts — two steps to activate
   =====================================================================

   Why: the pages currently load Manrope and Inter from Google Fonts.
   Google is blocked in mainland China, so partners there would see the
   site in a fallback system font. Hosting the files yourself fixes that
   and makes the site load a little faster everywhere.

   Step 1. Download both families from fonts.google.com (button
           "Download family") and put these two files into /fonts:

             fonts/Manrope[wght].ttf
             fonts/Inter[opsz,wght].ttf

           Optional but recommended: also convert each file to .woff2
           (e.g. with fonttools: `pyftsubset Inter[opsz,wght].ttf --flavor=woff2
           --unicodes="U+0000-00FF,U+2000-206F,U+20AC" --output-file=...`).
           WOFF2 is ~3x smaller; the .ttf stays as a fallback.

   Step 2. Uncomment the @font-face block below, then in every .html file
           uncomment the two <link rel="preload"> lines and delete the
           Google Fonts <link> underneath them.

   Until then the Google Fonts link stays in charge and the metric
   fallbacks below keep the layout stable — nothing is broken either way.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Metric-adjusted fallbacks (always active).
   While the web fonts load — or if they cannot load at all — the browser
   uses the system font, scaled so that text takes roughly the same width
   as Manrope / Inter. Headlines keep their line count and the hero does
   not jump when the real fonts arrive. Nothing to configure here.
   ------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Segoe UI"), local("Roboto"), local("Liberation Sans");
  size-adjust: 102%;
  ascent-override: 98%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Segoe UI"), local("Roboto"), local("Liberation Sans");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/*
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope[wght].woff2") format("woff2"),
       url("../fonts/Manrope[wght].ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter[opsz,wght].woff2") format("woff2"),
       url("../fonts/Inter[opsz,wght].ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
*/
