/* ==========================================================================
   Self-hosted typefaces.

   docs/DESIGN.md §3 names three: Fraunces for display, Inter for text, IBM Plex
   Mono for data. All three are SIL OFL, so they travel with the project instead
   of being fetched from Google at every visit — which also happens to be the
   only lawful option here, because a request to fonts.gstatic.com sends the
   visitor's IP to a third party before any consent has been given.

   Latin and latin-ext only: the site is Italian, English and German. Cyrillic
   and Greek would be files downloaded by everyone and used by nobody.

   THE AXES, read out of the fvar table of the files actually in this directory,
   not copied from a specimen page:

     Fraunces   opsz  9 → 144   (default 9)
                wght  100 → 900 (default 900)
     Inter      wght  100 → 900 (default 400)
     Plex Mono  no axes: two static instances, 400 and 500

   Two consequences, and both are in site.css rather than here:

   - the declared font-weight range has to be the REAL range. It used to say
     300 900 for Fraunces and 300 700 for Inter; a browser asked for weight 100
     or 800 then clamped to the declared end and the whole scale collapsed onto
     two weights. The mockup uses 450, 550, 650 and 900, and it only gets them
     because the range below is right.

   - opsz is the axis that makes Fraunces look drawn rather than scaled. With
     font-optical-sizing at its default the browser sets opsz to the used font
     size in px, so a 12px eyebrow would get the 12pt drawing — high contrast,
     spindly serifs. site.css therefore pins 'opsz' 120 on the headings and
     'opsz' 20 on the brand name, which is the one place a display face is set
     at text size.

   Regenerate the subsets with pyftsubset from the upstream variable fonts; keep
   the file names, they are referenced here and nowhere else.
   ========================================================================== */

@font-face {
    font-family: 'Fraunces';
    src: url('/assets/font/fraunces-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    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: 'Fraunces';
    src: url('/assets/font/fraunces-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    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: 'IBM Plex Mono';
    src: url('/assets/font/plex-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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: 'IBM Plex Mono';
    src: url('/assets/font/plex-latin-ext-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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: 'IBM Plex Mono';
    src: url('/assets/font/plex-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    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: 'IBM Plex Mono';
    src: url('/assets/font/plex-latin-ext-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    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';
    src: url('/assets/font/inter-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    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: 'Inter';
    src: url('/assets/font/inter-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    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;
}
