/* ============================================================
   Sarabun — self-hosted (PageSpeed 3c, 2569-08-27)
   Files are Google Fonts' own already-subset woff2 output (fetched with a
   Chrome UA to get woff2 instead of ttf), thai + latin ranges only —
   latin-ext/vietnamese dropped, this is a Thai-content site. unicode-range
   values copied verbatim from Google's CSS so the browser still skips
   downloading the Thai file for a Latin-only run and vice versa.
   License: SIL OFL 1.1 — see public/assets/fonts/OFL.txt (required by license,
   not just courtesy).
   weight 300 dropped (2569-08-28, PageSpeed render-blocking investigation): grepped every .css/.html
   site-wide, only one use existed (styles.css .footer__bottom, 13.5px low-contrast line) — switched
   that to 400 and removed both 300 woff2 files, cutting 2 of the 10 font requests fonts.css triggers.
   ============================================================ */

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  /* optional (not swap): this weight is preloaded on index.html's hero/body text — if it
     doesn't arrive in the ~100ms block window we'd rather keep the fallback for this paint
     than swap in later and reflow (CLS regression found 2569-08-27, right after self-hosting) */
  font-display: optional;
  src: url(/assets/fonts/sarabun-thai-400.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/assets/fonts/sarabun-latin-400.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: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/sarabun-thai-500.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/sarabun-latin-500.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: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/sarabun-thai-600.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/sarabun-latin-600.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: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/sarabun-thai-700.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/sarabun-latin-700.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: 'Sarabun';
  font-style: normal;
  font-weight: 800;
  font-display: optional; /* see weight 400 comment above — same reasoning, hero H1 uses this weight */
  src: url(/assets/fonts/sarabun-thai-800.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url(/assets/fonts/sarabun-latin-800.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;
}
