/* BridgeMD fonts. One family for the whole site: Inter, self-hosted, so no visitor request ever goes to
   fonts.googleapis.com or fonts.gstatic.com (GDPR and PIPEDA posture, and no font swap flash from a
   third party round trip).

   The two files are Inter 4.001 as one variable font with two axes: weight 100 to 900 (wght) and
   optical size 14 to 32 (opsz). They are the latin and latin-ext subsets that Google Fonts publishes for
   family=Inter:opsz,wght@14..32,100..900, copied here unchanged. Inter is licensed under the SIL Open Font
   License 1.1 (fonts/OFL.txt). The unicode-range lines mean a page downloads latin (73 KB) and only
   fetches latin-ext (134 KB) when the text on it needs a character from that range.

   Inter is the only family the public pages load. A rule that names any other family falls through to the
   next family in its stack, which is Inter.

   The preload link in the page head (rel=preload as=font crossorigin) uses the same URL as the latin file
   below, so the browser fetches it once. Replace a font file under a new name if it ever changes, so
   long-lived caches do not serve the old one. */

/* latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin-ext.woff2") format("woff2-variations"),
       url("fonts/inter-var-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin.woff2") format("woff2-variations"),
       url("fonts/inter-var-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;
}

/* "Inter Display" is the name designers use for the large-size cut of Inter. In the variable font that cut
   is the top of the optical size axis (opsz 32) inside the same file, so this alias points at the same two
   files and the browser downloads each of them once. Declaring the name here also stops a copy of Inter
   Display installed on someone's computer from replacing it, so every visitor sees the same letters.
   With font-optical-sizing: auto the axis follows the font size, so a heading of 32px or more already gets
   the Display shapes under either family name, and body text at 14 to 16px gets the text shapes. To pin
   the Display shapes on a heading smaller than 32px, add font-variation-settings: "opsz" 32 to that rule. */

/* latin-ext */
@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin-ext.woff2") format("woff2-variations"),
       url("fonts/inter-var-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: "Inter Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin.woff2") format("woff2-variations"),
       url("fonts/inter-var-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;
}

/* Optical sizing follows the font size on every page. This is the browser default, written out so the
   behaviour is on record and a stray reset cannot switch it off for the whole site. */
:root {
  font-optical-sizing: auto;
}
