/*
 * Self-hosted rather than linked from Google Fonts.
 *
 * This app is self-hosted on purpose, and a webfont link puts a third-party
 * request on every page — including the sign-in page, before anyone has
 * agreed to anything. About 100KB of woff2 in the repo avoids that entirely,
 * and there is no build step to complicate it.
 *
 * Since the Denison rename (November 2026): Inter for everything a person reads,
 * Josefin Sans for labels and the public pages' headings, Yellowtail for one
 * greeting. Inter and Josefin Sans are variable: one file per subset.
 * Newsreader (8 November 2026, #83) sets the home and /features headlines and a
 * blog post's drop cap. It is pinned to one instance (opsz 72, weight 500) by
 * tools/build-display-font.py, a roman and an italic, because Google's two-axis
 * files are about 140 KB each and every declared face is precached.
 *
 * Older faces stay in public/fonts/ with no @font-face here: Caprasimo, Outfit,
 * Public Sans and Figtree. Every email already sent names its face by URL, and an
 * old issue reopened should not lose its headings. Nothing in the app loads them
 * and the service worker does not precache them. tools/build-og-image.py still
 * draws its caption in Figtree from the file.
 *
 * The unicode-range values are Google's own subsetting (the newer faces carry
 * its current latin-ext range, which runs to U+20C4). latin-ext is included
 * because saved article titles carry accented characters and the fallback
 * would otherwise show through mid-word.
 *
 * All four families are SIL OFL 1.1 (Yellowtail is Apache 2.0); the licences ship beside them in this
 * directory, which is what the licence requires.
 */


/*
 * Their licences sit beside them.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    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;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('/fonts/josefin-sans-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;
}

@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('/fonts/josefin-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Yellowtail';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/yellowtail-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;
}

@font-face {
    font-family: 'Yellowtail';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/yellowtail-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/newsreader-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;
}

@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/newsreader-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Newsreader';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/newsreader-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Newsreader';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/newsreader-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * METRIC-MATCHED FALLBACKS (25 October 2026).
 *
 * `font-display: swap` shows the next face in the stack until a woff2 lands,
 * and system-ui is not Inter's width, so the page used
 * to reflow as each one painted: titles rewrapped and cards changed height
 * under the reader's eye. These faces are the reader's own Arial, scaled to
 * the web font's average width and given its ascent and descent, so the swap
 * changes letterforms and leaves the lines where they were.
 *
 * The numbers are measured, not tuned by eye: tools/font-fallback-metrics.py
 * prints these blocks from the woff2 files beside this one. Re-run it if
 * either file is replaced. Weights are declared so a browser picks Arial Bold
 * rather than synthesising bold over Arial (or over Arial Bold, twice). A
 * device with no Arial skips the face and falls through to system-ui as
 * before.
 *
 * Josefin Sans and Newsreader joined on 13 November 2026 (#94): Josefin's
 * fallback is Arial Bold matched on capitals, since it only sets capitals, and
 * Newsreader's is Times New Roman, roman and italic. Inter gained 500 and 600,
 * the weights its titles and headings ask for, which had been falling to the
 * 400 face and rewrapping on the swap.
 */

@font-face {
    font-family: 'Inter Fallback';
    font-weight: 400;
    src: local('Arial'), local('ArialMT');
    size-adjust: 106.55%;
    ascent-override: 90.92%;
    descent-override: 22.64%;
    line-gap-override: 0.00%;
}

@font-face {
    font-family: 'Inter Fallback';
    font-weight: 500;
    src: local('Arial'), local('ArialMT');
    size-adjust: 107.65%;
    ascent-override: 89.99%;
    descent-override: 22.41%;
    line-gap-override: 0.00%;
}

@font-face {
    font-family: 'Inter Fallback';
    font-weight: 600;
    src: local('Arial Bold'), local('Arial-BoldMT');
    size-adjust: 101.14%;
    ascent-override: 95.79%;
    descent-override: 23.85%;
    line-gap-override: 0.00%;
}

@font-face {
    font-family: 'Inter Fallback';
    font-weight: 700;
    src: local('Arial Bold'), local('Arial-BoldMT');
    size-adjust: 102.14%;
    ascent-override: 94.85%;
    descent-override: 23.62%;
    line-gap-override: 0.00%;
}

@font-face {
    font-family: 'Josefin Sans Fallback';
    font-weight: 600;
    src: local('Arial Bold'), local('Arial-BoldMT');
    size-adjust: 102.55%;
    ascent-override: 73.14%;
    descent-override: 24.38%;
    line-gap-override: 0.00%;
}

@font-face {
    font-family: 'Josefin Sans Fallback';
    font-weight: 700;
    src: local('Arial Bold'), local('Arial-BoldMT');
    size-adjust: 103.82%;
    ascent-override: 72.24%;
    descent-override: 24.08%;
    line-gap-override: 0.00%;
}

@font-face {
    font-family: 'Newsreader Fallback';
    font-weight: 500;
    src: local('Times New Roman'), local('TimesNewRomanPSMT');
    size-adjust: 114.21%;
    ascent-override: 64.36%;
    descent-override: 23.20%;
    line-gap-override: 0.00%;
}

@font-face {
    font-family: 'Newsreader Fallback';
    font-style: italic;
    font-weight: 500;
    src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
    size-adjust: 106.51%;
    ascent-override: 69.01%;
    descent-override: 24.88%;
    line-gap-override: 0.00%;
}
