/* Self-hosted fonts (latin subset only). Files are in /fonts/ and come from
   the @fontsource packages; licences are in /fonts/LICENSES.txt.

   Each family also has a metric-matched fallback face. The browser draws the
   fallback until the web font arrives, and size-adjust plus the vertical
   overrides make it occupy the same space, so the swap does not reflow the
   page. Values are computed from the font files: size-adjust is the ratio of
   average letter widths (uppercase for the display face, lowercase and
   spaces for body text); the ascent, descent and line-gap overrides are the
   web font's own metrics divided by size-adjust. */

@font-face {
    font-family: 'Saira Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/saira-condensed-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Saira Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/saira-condensed-latin-800-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/public-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Public Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/public-sans-latin-400-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/public-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

/* Fallbacks */
@font-face {
    font-family: 'Saira Condensed Fallback';
    font-weight: 700 800;
    src: local('Arial Narrow Bold'), local('Arial Narrow'), local('Liberation Sans Narrow Bold'), local('Liberation Sans Narrow');
    size-adjust: 84.5%;
    ascent-override: 134.3%;
    descent-override: 51.9%;
    line-gap-override: 0%;
}
/* Regular-width sans, scaled down to Saira Condensed's uppercase width, for
   machines that have no Arial Narrow (Arial Bold's uppercase average is about
   0.6726 em against Saira 800's 0.4658, so size-adjust is 69.25%). */
@font-face {
    font-family: 'Saira Condensed Fallback Wide';
    font-weight: 700 800;
    src: local('Arial Bold'), local('Arial'), local('Helvetica Neue Bold'), local('Helvetica Neue'),
         local('Roboto Bold'), local('Roboto'), local('Liberation Sans Bold'), local('Liberation Sans');
    size-adjust: 69.25%;
    ascent-override: 163.9%;
    descent-override: 63.4%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Public Sans Fallback';
    font-weight: 400 600;
    src: local('Arial'), local('Liberation Sans');
    size-adjust: 105.6%;
    ascent-override: 90%;
    descent-override: 21.3%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'IBM Plex Mono Fallback';
    font-weight: 400 600;
    src: local('Courier New'), local('Liberation Mono');
    size-adjust: 100%;
    ascent-override: 102.5%;
    descent-override: 27.5%;
    line-gap-override: 0%;
}
