/* Self-hosted web fonts (§11 #11, D22).

   Every page used to pull its faces from Google Fonts, which means every
   visitor's IP address - members included - reached Google before the first
   paint. Nothing about a research panel needs a third party to know who
   opened it, so the two Latin families ship with the app instead.

   Sources, woff2 only, straight from the projects' own GitHub releases:
     Public Sans    v2.001  https://github.com/uswds/public-sans (OFL 1.1)
     JetBrains Mono v2.304  https://github.com/JetBrains/JetBrainsMono (OFL 1.1)
   The licence text of each family sits beside the files in static/fonts/.

   Only the weights the design language actually names are here - Public Sans
   400 / 500 / 600 / 700 plus 400 italic, JetBrains Mono 400 / 600 - because a
   woff2 that nothing asks for is bytes the browser may still fetch.

   Noto Sans TC is deliberately NOT self-hosted (D22): a CJK face is several
   megabytes per weight, far more than a phone on 4G should pay for. The stack
   in staff.css / participant.css already falls through to PingFang TC (Apple),
   Microsoft JhengHei (Windows) and the system font, all of which every reader
   of Traditional Chinese already has; and the privacy point is met by not
   making the request at all.

   font-display: swap - the text is readable in the fallback face immediately
   and reflows when the real one lands. On a slow connection a paragraph that
   is late is worse than a paragraph that shifts. */

/* --- Public Sans (Latin UI text) ---------------------------------------- */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PublicSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/PublicSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/PublicSans-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PublicSans-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PublicSans-Italic.woff2") format("woff2");
}

/* --- JetBrains Mono (pseudonyms, coupon codes, job output) --------------- */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
}
