/* Self-hosted UI typefaces.
 *
 * The brand draws its English in Parabolica / CoFo Sans and its Thai in Manop.
 * None of the three is licensed for the web, and the CI's own fallback tier
 * (page 15, "for Canva") is Helvetica Now / Helvetica Thai - a neo-grotesque.
 * So: Inter for Latin, the closest freely-licensed face to Helvetica Now, and
 * Anuphan for Thai, drawn by Cadson Demak, the house behind Manop. Both are
 * SIL OFL, so shipping them from here is allowed.
 *
 * They are served from this host rather than fonts.googleapis.com. That is one
 * fewer third party in the request path of an application that shows patient
 * photographs - and it REPLACES the Kanit call the site used to make, so it is
 * a dependency removed, not added.
 *
 * Both files are variable fonts. Each weight is declared separately pointing at
 * the same file, exactly as Google's own stylesheet does, so the browser
 * instances a real weight and never synthesises a fake bold.
 *
 * The unicode-range split does the script routing: a Latin codepoint is drawn
 * by Inter and a Thai one by Anuphan, in the same line, with no markup.
 *
 * ⚠️ ANUPHAN CARRIES NO unicode-range, AS ON THE MARKETING SITE (2026-09-30).
 * The file is a Thai subset that also contains U+0020, and NOTHING ELSE Latin:
 * no letters, no digits, no dashes. Measured with CDP getPlatformFontsForNode
 * on "Before CO2 laser 28 Sep 2026" in `Anuphan, Inter`: Anuphan draws the 5
 * spaces and Inter the other 23 glyphs (khg5, confirmed by g2). So headings,
 * buttons and the navbar's links, which name Anuphan first
 * (--glow-font-head), draw Thai and their spaces in Anuphan, while Latin,
 * digits and dashes still fall through to Inter because the Anuphan file has
 * no glyphs for them. That is exactly the apex's own behaviour and wording
 * (glow-marketing site/src/styles/global.css section 1). Body text names Inter
 * first, so nothing changes there.
 *
 * 🔴 An earlier version of this note claimed the file had Latin glyphs, from a
 * WIDTH test: "Listing Upload Admin 0123" in `Anuphan, monospace` came out
 * narrower than monospace. It was the fallback drawing the letters and
 * Anuphan's narrower spaces making up the difference. Measure glyph coverage
 * with getPlatformFontsForNode, never with widths.
 *
 * Anuphan is preloaded on every page, English ones included, and that is
 * deliberate - see the note on the preload in navbar.php.
 *
 * 🔴 THE FILENAMES CARRY A CONTENT HASH, AND THAT IS LOAD-BEARING, NOT DECORATION.
 * The Caddyfile serves /assets/* with `Cache-Control: immutable, max-age=1y`, which
 * tells every browser never to revalidate. That rule is only safe for a file whose
 * NAME changes when its BYTES change, and these two were the one hole in it: the
 * stylesheet around them is busted on its mtime by $__glow_v (navbar.php:53), but a
 * url() inside a stylesheet is not, so a bare `fonts/inter-latin.woff2` would have
 * been pinned in staff browsers for a year with no way to push a correction.
 * The hash is the first 12 hex of the file's sha256, matching the convention
 * glow-tw-900a5b96fc9f.css already uses.
 *
 * ⚠️ SO: REPLACING A FONT MEANS RENAMING IT. Drop the new .woff2 in, recompute
 *     sha256sum assets/fonts/<file> | cut -c1-12
 * and update both the filename and the four src: lines that point at it. Editing a
 * font file in place while keeping its name ships a change nobody will ever see.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin-3100e775e861.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: 500;
  font-display: swap;
  src: url(fonts/inter-latin-3100e775e861.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-3100e775e861.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: 700;
  font-display: swap;
  src: url(fonts/inter-latin-3100e775e861.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: 'Anuphan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/anuphan-thai-8a03cb45df9d.woff2) format('woff2');
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/anuphan-thai-8a03cb45df9d.woff2) format('woff2');
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/anuphan-thai-8a03cb45df9d.woff2) format('woff2');
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/anuphan-thai-8a03cb45df9d.woff2) format('woff2');
}
