/* ==========================================================================
   fonts.css — self-hosted Syne + DM Sans
   Consequence Consulting / Action & Consequence AB

   Replaces the Google Fonts <link>. Once this is live, no visitor's browser
   contacts fonts.googleapis.com or fonts.gstatic.com, so no IP address
   leaves the site before a cookie choice has been made.

   Expects these five files in /fonts/ :

     fonts/syne-latin-wght-normal.woff2
     fonts/syne-latin-ext-wght-normal.woff2
     fonts/dm-sans-latin-wght-normal.woff2
     fonts/dm-sans-latin-ext-wght-normal.woff2
     fonts/dm-sans-latin-wght-italic.woff2

   These are VARIABLE fonts — one file covers the whole weight range, so
   every weight the site uses is a real drawn weight rather than one the
   browser fakes by thickening outlines.

   The unicode-range on each block means the latin-ext files are only
   downloaded if a character in that range actually appears on the page.
   For the current content they never will, so they cost nothing at
   runtime while protecting against a future Polish, Czech or Turkish
   name rendering in a fallback font mid-word.

   >>> VERIFY THE TWO unicode-range VALUES against the CSS file included in
   >>> your Fontsource download. Google adjusts these ranges occasionally,
   >>> and a stale range means characters silently falling back.

   Load first in <head>, before article.css or any inline <style>.
   ========================================================================== */


/* ==========================================================================
   SYNE — display face (headings, buttons, logo). Weights 400-800.
   ========================================================================== */

/* Syne - latin */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/syne-latin-wght-normal.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;
}

/* Syne - latin-ext */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/syne-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==========================================================================
   DM SANS — body face. Weights 100-1000.
   ========================================================================== */

/* DM Sans - latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/dm-sans-latin-wght-normal.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;
}

/* DM Sans - latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans - latin, italic
   Used in two places site-wide: article blockquotes and testimonial quotes.
   There is deliberately no latin-ext italic file. If you ever set an italic
   quote containing a Polish or Czech name, that character will fall back,
   and you'd add fonts/dm-sans-latin-ext-wght-italic.woff2 at that point. */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/dm-sans-latin-wght-italic.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;
}


/* DM Sans carries an optical-size axis (opsz 9-40): small text gets
   slightly sturdier letterforms, large text finer ones. Browsers apply
   this automatically, but it is stated explicitly so a future edit
   does not quietly lose it. */
html {
  font-optical-sizing: auto;
}
