/* Geist for headings, Inter for body and caption, as the Figma typography collection names them.

   All three are variable fonts, so one file per face covers the whole 100-900 weight range and the
   font-weight descriptor is a range rather than a single number. Inter also carries an optical size
   axis (opsz 14-32); browsers apply it automatically through font-optical-sizing, so nothing here
   sets it.

   No local() sources: a locally installed static Inter or Geist would otherwise win over the
   variable web font and silently lose every weight between the installed ones. */

/* geist - variable, weight 100-900 */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./geist-variable.woff2') format('woff2');
}

/* inter - variable, weight 100-900, split by script as Google Fonts serves it.

   The full Inter is 352 KB (2,900 glyphs: Latin, Greek, Cyrillic, Vietnamese and symbols); the site
   needs Latin. Each face is cut into a Latin file, which every page downloads, and a Latin
   Extended one, which the browser fetches only for a page that uses one of its characters -- an
   author's name from the publications API, say. Anything in neither falls back per character to
   the system fonts in the stack. The italic is cut the same way; no page sets italic today, so it
   is not downloaded at all.

   Both axes (wght, opsz) and the default OpenType features are kept; the site sets no optional
   ones. To regenerate, from Inter 4.001 (github.com/rsms/inter, web/InterVariable.woff2 and
   web/InterVariable-Italic.woff2 -- the full files this replaced are in git at 2e93f71405):

       pyftsubset InterVariable.woff2 --flavor=woff2 --output-file=inter-latin.woff2
           --unicodes="<the unicode-range of the rule below, commas and all>"

   and the same for latin-ext and for the italic. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./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+2070-209F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./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: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('./inter-italic-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+2070-209F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('./inter-italic-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;
}
