/*
 * fonts.css — self-hosted @font-face declarations
 *
 * Brand guide specifies:
 *   Headlines / Subheads:  Prompt (Semibold 600, Medium 500)
 *   Body copy:             Bai Jamjuree (Regular 400, Medium 500)
 *
 * Both cover Latin + Thai in a single font file, no script-switching.
 *
 * Sarabun is kept for one release as a rollback safety net; remove on the
 * release after Prompt + Bai Jamjuree validate in production.
 *
 * Files downloaded via gwfh.mranftl.com (subsets=latin,thai, format=woff2).
 * See assets/fonts/README.md for regeneration instructions.
 *
 * Rationale for self-hosting:
 *   - No 3rd-party requests on race day (CDN unreliable in Thai networks)
 *   - PDPA-friendly (no Google IPs in browser logs)
 *   - ~15% faster load once cached
 */

/* ---- Prompt (headings) --------------------------------------------------- */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/prompt-v12-latin_thai-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/prompt-v12-latin_thai-600.woff2') format('woff2');
}

/* ---- Bai Jamjuree (body) ------------------------------------------------- */
@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bai-jamjuree-v13-latin_thai-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/bai-jamjuree-v13-latin_thai-500.woff2') format('woff2');
}

/* ---- Sarabun (deprecated — kept for one release as rollback) ------------ */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sarabun-v17-latin_thai-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/sarabun-v17-latin_thai-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sarabun-v17-latin_thai-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sarabun-v17-latin_thai-700.woff2') format('woff2');
}
