/*
 * DM Sans, the phone app's own typeface (constants/fonts.ts), served from Brio's own
 * address (/app/styles/fonts/), not from Google.
 *
 * WHY HERE: a font from Google is only asked for once the page draws text in it, so a
 * fresh tab drew its first frame in the fallback font and swapped a moment later, and
 * every line moved a few pixels (web/checks/fontFirstFrame.mjs, 8 failures). Now
 * index.html preloads the file with the page, and main.js draws nothing until it is
 * in (up to a limit), so the first frame is already DM Sans.
 *
 * THE FONT DOES NOT CHANGE. These are the exact two files Google Fonts sends Chrome
 * for `DM Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700` (v17, 7 November
 * 2026): fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHQ.woff2 (latin) and
 * rP2Hp2ywxg089UriCZ2IHSeH.woff2 (latin-ext), one variable file per subset holding
 * every weight and the optical sizes, with Google's own subset ranges. Drawn in
 * Chromium they are the same pixels as Google's own stylesheet (fontFirstFrame.mjs
 * SAME). Google listed the same file once per weight (400, 500, 600, 700); one face
 * over 400 to 700 is that file drawn the same way (a weight in between, or outside,
 * is matched exactly as before), and it means one face to wait for, not four.
 * Spanish needs only the latin file (á é í ó ú ñ ü ¿ ¡ and the en dash are all in
 * it). Licence: OFL.txt beside the files.
 */

/* latin-ext */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin.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;
}
