/* ============================================================
   Nide Solutions — self-hosted webfonts
   ------------------------------------------------------------
   These @font-face rules replace the fonts.googleapis.com /
   fonts.gstatic.com <link> tags that used to sit in every page's
   <head>. Google Fonts transmits the visitor's IP address to
   Google on every page load, and an IP is personal data — serving
   the files from nidesolutions.fi removes that transfer entirely
   and keeps the "tiedot käsitellään EU-datakeskuksissa" claim in
   tietosuoja.html true as written. It's also faster (no extra DNS
   + TLS handshake to a third-party host).

   All four are variable woff2 files pulled from Google Fonts and
   committed to fonts/ — see fonts/README.md for provenance and
   licences (SIL Open Font License 1.1). Font URLs below are
   relative to THIS file, so the stylesheet works from any depth
   (e.g. learn/finance/adapted/).

   Link it BEFORE styles.css:
     <link rel="stylesheet" href="fonts.css">
     <link rel="stylesheet" href="styles.css">
   ============================================================ */

/* --- Inter — body text (--sans), weights 300–700 --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/inter-latin.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;
}

/* --- Inter Tight — headings + hero (--font-display / --font-hero), 500–700 --- */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/inter-tight-latin-ext.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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/inter-tight-latin.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;
}

/* --- JetBrains Mono — eyebrows / numerals / labels (--font-mono), 400–600 --- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.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;
}

/* --- Fredoka — the NIDE wordmark in the logo, and nothing else.
       Subset to exactly the four glyphs N, I, D, E (992 bytes); the
       unicode-range keeps it from being downloaded for any other text. --- */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/fredoka-nide-subset.woff2) format('woff2');
  unicode-range: U+44-45, U+49, U+4E;
}
