/*
 * NabuPilot — the typefaces, declared once (finding 78).
 *
 * The same faces were declared three times, in three different ways: the office
 * loaded four static weight files, the landing page and the mini-app each
 * inlined the variable file in their own <style>, and the mini-app also carried
 * its own copy of the Arabic-range monospace face. Four files where one does the
 * work is also four requests and four caches for a face the browser already has.
 *
 * Vazirmatn is an npm dependency served from /vendor by this same origin, so
 * there is no CDN in the path and no third party to trust. One variable file
 * covers every weight from 100 to 900.
 */

@font-face {
  font-family: "Vazirmatn";
  src: url("/vendor/vazirmatn/Vazirmatn%5Bwght%5D.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/*
 * Code is monospace, except the Persian and Arabic inside it: a monospace face
 * with Arabic glyphs draws them unjoined, so that range comes from Vazirmatn
 * and everything else falls through to the platform's monospace.
 */
@font-face {
  font-family: "NabuCode";
  src: url("/vendor/vazirmatn/Vazirmatn%5Bwght%5D.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
  --nx-font-sans: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nx-font-mono: "NabuCode", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
