/* ============================================================
 * site/fonts.css  -  the typefaces, served from this site
 *
 * Self-hosted rather than linked from Google Fonts. Two reasons, and
 * the second is the one that matters: it saves a connection to a third
 * party on every page load, and hotlinking Google Fonts sends every
 * visitor's IP address to Google, which German courts have already
 * held to be a GDPR breach. For a UK trade site taking enquiries from
 * the public, serving the files ourselves removes the question.
 *
 * The files are in assets/fonts/ and are the same ones Google serves.
 * Both are open licence: Archivo and Newsreader are SIL OFL, as is
 * Oswald.
 *
 * font-display:swap so text is readable immediately on a slow
 * connection rather than invisible until the font arrives.
 * ============================================================ */

/* Archivo - structural: headings, buttons, navigation, labels */
@font-face{font-family:"Archivo";src:url("assets/fonts/archivo-latin-500-normal.woff2") format("woff2");
  font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Archivo";src:url("assets/fonts/archivo-latin-600-normal.woff2") format("woff2");
  font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Archivo";src:url("assets/fonts/archivo-latin-700-normal.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Archivo";src:url("assets/fonts/archivo-latin-800-normal.woff2") format("woff2");
  font-weight:800;font-style:normal;font-display:swap}

/* Newsreader - reading: body copy and quotations */
@font-face{font-family:"Newsreader";src:url("assets/fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url("assets/fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight:500;font-style:normal;font-display:swap}

/* Oswald - the condensed face er-electrical uses for its section
   headings. Loaded so the match can be switched on with one line
   (--font-head in the theme) rather than a rebuild. */
@font-face{font-family:"Oswald";src:url("assets/fonts/oswald-latin-500-normal.woff2") format("woff2");
  font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Oswald";src:url("assets/fonts/oswald-latin-600-normal.woff2") format("woff2");
  font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Oswald";src:url("assets/fonts/oswald-latin-700-normal.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap}
