/* Archivo, served from this site (no page asks Google or any other server for a font).
   Loaded by templates/base.html (the website, the design pages, the Studio page) and
   templates/admin/base.html, before the tokens file; the tokens name the families.

   The files: static/fonts/, the variable font with its width (62% to 125%) and weight
   (400 to 800) axes, as WOFF2, cut into the Latin and Latin Extended sets; the browser
   fetches a set only when the page has a character in its unicode-range. The license
   (SIL Open Font License 1.1) is static/fonts/OFL.txt.

   Each address carries ?v=<the first 10 hex digits of the file's sha256>, the same version
   asset() gives, so the file is cached for a year and base.html can preload exactly this
   address. tests/test_fonts.py checks that every ?v= here is the file's current hash: a
   new font file needs its new hash written here.

   "Archivo Fallback" is Arial resized to Archivo's measure, so text set before the font
   arrives wraps the same way and nothing moves when it swaps in. The numbers were measured
   in Chromium and WebKit (width of a paragraph and a heading, Archivo / Arial):
   text 400 0.987, text 600 against Arial Bold 0.951, headings 800 at width 125% against
   Arial Bold 1.275, text 400 at width 125% 1.257. Ascent 0.88 em and descent 0.21 em, divided by the same factor. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2?v=4c98b9d490") 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: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2?v=a75c792f98") 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;
}

/* The fallback, by weight and width, so each kind of text gets its own measure. */
@font-face {
  font-family: "Archivo Fallback";
  font-weight: 400 599;
  font-stretch: 50% 112%;
  src: local("Arial"), local("ArialMT");
  size-adjust: 98.7%;
  ascent-override: 89.2%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Archivo Fallback";
  font-weight: 600 900;
  font-stretch: 50% 112%;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 95.1%;
  ascent-override: 92.5%;
  descent-override: 22.1%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Archivo Fallback";
  font-weight: 400 599;
  font-stretch: 113% 200%;
  src: local("Arial"), local("ArialMT");
  size-adjust: 125.7%;
  ascent-override: 70%;
  descent-override: 16.7%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Archivo Fallback";
  font-weight: 600 900;
  font-stretch: 113% 200%;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 127.5%;
  ascent-override: 69%;
  descent-override: 16.5%;
  line-gap-override: 0%;
}
