/* Every face the site uses, served from this repo.
 *
 * Bangers, Comic Neue, Nunito and Patrick Hand: all SIL Open Font
 * License, all served from here rather than from Google. Three reasons,
 * in order of how much they matter:
 *
 *   1. A child's device makes no request to a third party to read a book.
 *   2. A book already on the device keeps its lettering with no wifi.
 *   3. The lettering cannot change out from under the layout gate.
 *
 * Before this file the nine older pages each fetched these from Google on
 * every load, which is the third-party request and the offline break this
 * removes.
 *
 * These are the latin subsets only — 125KB for the whole set, less than
 * one of the drawings. The licences sit beside them in sc/fonts/, which
 * is what the OFL asks for.
 *
 * font-display: swap means the words are readable in a fallback face
 * before the real one arrives. A child waiting on a blank page is worse
 * than a child watching the letters change once.
 */
@font-face {
  font-family: 'Bangers';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/bangers-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Comic Neue';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/comicneue-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Comic Neue';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/comicneue-700.woff2') format('woff2');
}
/* one variable file covers every weight the UI asks for */
@font-face {
  font-family: 'Nunito';
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('fonts/nunito-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Patrick Hand';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/patrickhand-400.woff2') format('woff2');
}
