/* The app's fonts, in one place - every page (public/ and site/) links this
   before its own stylesheet, and styles use the variables below.

   BopBoard is set in the design canvas's fonts (docs/design/), on the
   child's screens and the parent's alike: Fredoka for headings, the brand
   name and labels, Nunito for body text. Nunito's rounded ends match
   Fredoka's, and it stays easy to read at small sizes, so the parent's pages
   read as the same product as the child's. Both are served from here (no
   third-party font requests - the Content-Security-Policy allows fonts from
   'self' only). Both variable, from @fontsource-variable/fredoka 5.3.0 and
   @fontsource-variable/nunito 5.3.0 - SIL Open Font License 1.1, see
   LICENSE-Fredoka.txt and LICENSE-Nunito.txt.

   --font-heading / --font-body are the parent's pages (style.css, login.html,
   site.css); --font-child-heading / --font-child-body the child's
   (child.css). They're the same fonts today, kept apart so either side can
   change on its own.

   Source Serif 4 (Adobe), the template's old heading font, is still declared
   but unused - a browser only downloads a font a page actually uses.
   Variable (weight 200-900), from @fontsource-variable/source-serif-4 5.3.0 -
   SIL Open Font License 1.1, see LICENSE-SourceSerif4.txt. To try another
   heading font: drop its .woff2 files in this folder, add @font-face rules
   for them, and point --font-heading at it.

   latin-ext only downloads when a page uses one of its characters. */

@font-face rules for them, and point --font-heading at it.

   Source Serif 4 (Adobe): variable (weight 200-900), from
   @fontsource-variable/source-serif-4 5.3.0 - SIL Open Font License 1.1, see
   LICENSE-SourceSerif4.txt.
   The child's screens (public/child.html) use the design canvas's fonts
   instead: Fredoka for headings and labels, Nunito for body text
   (--font-child-heading, --font-child-body). Both variable, from
   @fontsource-variable/fredoka 5.3.0 and @fontsource-variable/nunito 5.3.0 -
   SIL Open Font License 1.1, see LICENSE-Fredoka.txt and LICENSE-Nunito.txt.
   A browser only downloads a font a page actually uses.

   latin-ext only downloads when a page uses one of its characters. */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/fredoka-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/fredoka-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght-normal.woff2) format('woff2-variations');
  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 {
  --font-child-heading: 'Fredoka', system-ui, sans-serif;
  --font-child-body: 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
