/* Fraunces, self-hosted (SIL Open Font License, OFL-Fraunces.txt): Google's latin subset, axes opsz 9-144, wght
   400-700, SOFT 0-100, WONK 0-1. Brian chose the type chart's option 01, "Soft old-style", on Nov 18. It has three
   voices: headlines (opsz 144, SOFT 100, WONK 1), body (opsz 14, SOFT 60, WONK 0) and labels (weight 600, opsz 9,
   SOFT 0, WONK 0). The pages set type with the font shorthand, which resets font-variation-settings on the element
   it is declared on, so the one rule below (!important) reads the voice from --fvs, a custom property the
   shorthand does not touch; a rule picks a voice by setting --fvs, and children inherit it. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fraunces-roman.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;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fraunces-italic.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;
}

:root {
  --ms-font: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --fv-head: "opsz" 144, "SOFT" 100, "WONK" 1;
  --fv-body: "opsz" 14, "SOFT" 60, "WONK" 0;
  --fv-label: "opsz" 9, "SOFT" 0, "WONK" 0;
  --fvs: var(--fv-body);
}

*,
*::before,
*::after {
  font-variation-settings: var(--fvs) !important;
}

/* Form controls do not inherit the page's font by default. */
button,
input,
select,
textarea {
  font-family: var(--ms-font);
}

h1,
h2,
h3,
.ms-head {
  --fvs: var(--fv-head);
}

.ms-label,
.ms-theme-toggle {
  --fvs: var(--fv-label);
}

.ms-theme-toggle {
  font-weight: 600;
}
