/* Self-hosted, latin subset only, no network fonts. Sources and licences: ../fonts/README.txt */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/kanit-latin-600-normal.woff2") 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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") 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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") 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;
}
/* Metric-matched local fallbacks (D-042): while a webfont loads, Arial is scaled to its width and line box, so
   the swap moves nothing (the large hero h1 otherwise re-wraps and shifts the page: phone CLS 0.19 on v15).
   Values from the font tables over the Home first-screen text: Kanit 600 vs Arial Bold, Inter vs Arial. */
@font-face {
  font-family: "Kanit Fallback";
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 95.33%;
  ascent-override: 115.39%;
  descent-override: 41.43%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 400;
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.39%;
  ascent-override: 91.05%;
  descent-override: 22.67%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 102.65%;     /* R-020 #1: x1.019, the measured Inter 600 / fallback width on buttons and links (was 100.74%); with it the late
                               swap re-wraps nothing (Home desktop CLS 0.051 -> 0.000), so 600 needs no preload (+100 ms FCP on phones) */
  ascent-override: 94.37%;  /* line box unchanged: the overrides scale with size-adjust */
  descent-override: 23.49%;
  line-gap-override: 0%;
}
