/* Fredoka (display) and Nunito (text), self-hosted.

   Served from our own origin so the first screen does not wait on two extra
   connections to Google. index.html links this file and preloads the two
   latin files the first screen needs; latin-ext and italics load only when a
   page uses them. URLs are relative so the standalone preview builds
   (publicDir: false) can bundle this file from client/public/fonts/.
   Files are the Google Fonts variable woff2s (Fredoka v17, Nunito v32).
   A changed file gets a new name (-v2), never the same name, and that
   includes this file (fonts-v2.css, relinked from the four HTML pages): the
   service worker caches /fonts/ cache-first and the server marks /fonts/
   immutable for a year, so an edit under the same name never reaches phones.

   font-display: swap shows text at once in the fallback faces below, which
   are sized to these fonts so the swap does not move anything. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fredoka-latin-v1.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: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fredoka-latin-ext-v1.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;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./nunito-latin-v1.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: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./nunito-latin-ext-v1.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;
}
@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("./nunito-italic-latin-v1.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: "Nunito";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("./nunito-italic-latin-ext-v1.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;
}

/* Metric-matched fallbacks. While the web fonts load, text is set in a local
   font scaled to the same width (size-adjust, measured on the offer page's
   own copy) with the same ascent and descent, so lines wrap where they will
   wrap in Fredoka/Nunito and nothing jumps on swap.
   Two families each: Arial (iOS, macOS, Windows; Liberation Sans on Linux is
   metric-identical) and Roboto (Android and its in-app browsers, which have
   no Arial). When a family's local() fonts are missing, the browser skips it
   and tries the next one in the stack. */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"),
    local("LiberationSans"), local("Helvetica");
  font-weight: 300 500;
  size-adjust: 101%;
  ascent-override: 100.1%;
  descent-override: 35%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"),
    local("Liberation Sans Bold"), local("LiberationSans-Bold"),
    local("Helvetica Bold");
  font-weight: 600 900;
  size-adjust: 97%;
  ascent-override: 104.2%;
  descent-override: 36.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback Roboto";
  src: local("Roboto"), local("Roboto Regular"), local("Roboto-Regular");
  font-weight: 300 500;
  size-adjust: 101.7%;
  ascent-override: 99.4%;
  descent-override: 34.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback Roboto";
  src: local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 600 900;
  size-adjust: 104.1%;
  ascent-override: 97.1%;
  descent-override: 33.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fredoka Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"),
    local("Liberation Sans Bold"), local("LiberationSans-Bold"),
    local("Helvetica Bold");
  font-weight: 500 700;
  size-adjust: 94.4%;
  ascent-override: 103.2%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fredoka Fallback Roboto";
  src: local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 500 700;
  size-adjust: 100%;
  ascent-override: 97.4%;
  descent-override: 23.6%;
  line-gap-override: 0%;
}
