/* Atkinson Hyperlegible, served from THIS origin.
 *
 * The accessibility posture names this face and also forbids a remote font, and ten
 * served pages were loading it from fonts.googleapis.com: the six standalone pages,
 * site_src/index.html and docs.html, and _base.html, which is every
 * account page. So the posture's own font was being delivered by the mechanism the
 * posture bans. On a filtered or offline school network that means no Atkinson at
 * all, and on any network it announces every pupil's browser to a third party.
 *
 * The binaries live beside this file and are served by the existing
 * /assets/accounts/<path> route, so a same-origin file rather than a data URI: these
 * pages are ordinary web pages that benefit from the font being cached once across
 * the whole site. The GENERATED apps cannot do that, because non-negotiable 13 makes
 * them self-contained, so they inline the same font as base64 (frontend/shared/css/base.css).
 *
 * Latin subset only (17 kB per weight), which covers the English this product is
 * written in. Licence: SIL OFL 1.1, Braille Institute of America. See fonts/OFL.txt.
 */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

/* OpenDyslexic, served from THIS origin, on the same terms as Atkinson above.
 *
 * The settings dialog has offered this face since the app was written and it was
 * never shipped: the rule that selects it named "OpenDyslexic" with no @font-face
 * anywhere and no binary in the tree, so a pupil who chose the dyslexia font got the
 * next entry in the stack, which is Comic Sans MS. On a product whose whole posture
 * is dyslexia-first, that was the one option that most needed to work.
 *
 * Latin subset, about 21 kB per weight, subset from the upstream 103 kB and 108 kB
 * compiled woff2 with the same unicode ranges Atkinson uses. Italic faces exist
 * upstream and are deliberately not shipped: the posture forbids italics for
 * emphasis, so nothing here would ever ask for one.
 *
 * Licence: SIL OFL 1.1, Abbie Gonzalez, with Reserved Font Name OpenDyslexic. See
 * fonts/OFL-OpenDyslexic.txt, which is a DIFFERENT licence file from OFL.txt beside
 * it: same licence, different copyright holder, so both are kept.
 */
@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/opendyslexic-400.woff2") format("woff2");
}
@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/opendyslexic-700.woff2") format("woff2");
}
