/* Self-hosted faces (plan 53 X2, 2026-11-19). All SIL OFL 1.1; licence beside each file.
   Cinzel (display) and Alegreya Sans (text): Latin subsets cut from the google/fonts sources with
   fonttools (neither declares a Reserved Font Name). IBM Plex Mono: IBM's own Latin1 split files from
   @ibm/plex-mono 2.5.0, unmodified (Plex is a Reserved Font Name, so we do not cut our own subset).
   Each "<Face> Fallback" is a local system face scaled to the web face's metrics, so the swap
   from fallback to web font does not move the layout. */

@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("/static/fonts/cinzel/cinzel-latin-var.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Alegreya Sans";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    size-adjust: 115%;
    src: url("/static/fonts/alegreya-sans/alegreya-sans-latin-light.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Alegreya Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    size-adjust: 115%;
    src: url("/static/fonts/alegreya-sans/alegreya-sans-latin-regular.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Alegreya Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    size-adjust: 115%;
    src: url("/static/fonts/alegreya-sans/alegreya-sans-latin-medium.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Alegreya Sans is drawn small (x-height 0.458 em; Inter's was 0.546): size-adjust 115% keeps body
   copy about as large as it was without touching every font-size in the CSS. */
/* Alegreya Sans has no SemiBold: 600 and 800 use the Bold rather than a synthesised weight. */
@font-face {
    font-family: "Alegreya Sans";
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    size-adjust: 115%;
    src: url("/static/fonts/alegreya-sans/alegreya-sans-latin-bold.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/static/fonts/ibm-plex-mono/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("/static/fonts/ibm-plex-mono/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

/* Metric fallbacks: widths measured against Liberation Serif / Sans / Mono (metric twins of
   Times New Roman, Arial, Courier New). */
@font-face {
    font-family: "Cinzel Fallback";
    src: local("Times New Roman"), local("Liberation Serif"), local("TimesNewRomanPSMT");
    size-adjust: 127.76%;
    ascent-override: 76.39%;
    descent-override: 29.12%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Alegreya Sans Fallback";
    src: local("Arial"), local("Liberation Sans"), local("ArialMT"), local("Helvetica");
    size-adjust: 99.91%;
    ascent-override: 92.08%;
    descent-override: 23.02%;
    line-gap-override: 23.02%;
}

@font-face {
    font-family: "IBM Plex Mono Fallback";
    src: local("Courier New"), local("Liberation Mono"), local("CourierNewPSMT");
    size-adjust: 100%;
    ascent-override: 102.52%;
    descent-override: 27.5%;
    line-gap-override: 0%;
}
