/*
 * Self-hosted webfonts (latin subset, SIL OFL — licences in app/assets/fonts).
 * The two files used above the fold (Fell italic, Spectral regular) are
 * preloaded from the layout; keep those preload_link_tag calls in sync with
 * the file names here.
 */

@font-face {
  font-family: 'IM FELL French Canon';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/im-fell-french-canon-latin-400-normal-9773d2d8.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: 'IM FELL French Canon';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/im-fell-french-canon-latin-400-italic-d3399ecc.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: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/spectral-latin-400-normal-82f8bc22.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: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/spectral-latin-400-italic-6841867a.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: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/spectral-latin-600-normal-555b4b83.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;
}

/*
 * Metric-matched fallbacks: Georgia resized to each webfont's advance width
 * and vertical metrics (measured with fontTools on the files above), so the
 * swap from fallback to webfont moves nothing.
 */
@font-face {
  font-family: 'Spectral Fallback';
  src: local("Georgia");
  size-adjust: 99.98%;
  ascent-override: 105.92%;
  descent-override: 46.31%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Fell Fallback';
  font-style: normal;
  src: local("Georgia");
  size-adjust: 95.71%;
  ascent-override: 95.30%;
  descent-override: 27.04%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Fell Fallback';
  font-style: italic;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 88.54%;
  ascent-override: 103.02%;
  descent-override: 29.23%;
  line-gap-override: 0%;
}
