/* KB#3957 — the one owner of PocketNode's typeface on every page and every host (Decision #446, #447, #453).
   Brygada 1918 (OFL 1.1, official google/fonts; OFL.txt beside the files): one variable WOFF2 per style, weights
   400–700, Latin, Cyrillic, Greek, Vietnamese. Served from /shared/ so pocketnode.org, admin. and app. load the same
   bytes. Stylesheets name a token, never a family:
     --pn-font-ui     text everywhere; on languages the face does not cover it is the system UI font, so a line never
                      mixes two faces;
     --pn-font-brand  the serif even there (the PocketNode wordmark);
     --pn-font-mono   machine strings only — addresses, hashes, IDs, codes, keys, terminal — read character by character.
   Change the typeface here and nowhere else. */
@font-face {
  font-family: "Brygada 1918";
  src: url("/shared/fonts/brygada-1918/brygada-1918-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brygada 1918";
  src: url("/shared/fonts/brygada-1918/brygada-1918-italic-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
:root {
  --pn-font-brand: "Brygada 1918", Georgia, "Times New Roman", serif;
  --pn-font-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --pn-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --pn-font-ui: var(--pn-font-brand);
}
/* Scripts outside Latin, Cyrillic and Greek: Arabic, Hebrew, Georgian, Armenian, Indic, Thai, Burmese, CJK. */
:root:is(:lang(ar), :lang(he), :lang(fa), :lang(ur), :lang(ka), :lang(hy), :lang(hi), :lang(mr), :lang(bn), :lang(pa),
  :lang(ta), :lang(te), :lang(kn), :lang(ml), :lang(th), :lang(my), :lang(ko), :lang(ja), :lang(zh)) {
  --pn-font-ui: var(--pn-font-system);
}
/* Zero specificity: a page without its own body font still reads the brand, and controls never fall back to the
   browser's own face; any stylesheet rule wins over these. */
:where(body) { font-family: var(--pn-font-ui); }
:where(button, input, select, textarea, optgroup) { font-family: inherit; }
