/*
  Atkinson Hyperlegible Next, self-hosted.
  Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors. SIL Open Font License 1.1 (see /fonts/OFL.txt).

  Source: Google Fonts v7, Latin subset, woff2 (34 KB), with the zero redrawn for Tot Up (see below).
  Google serves this family as one variable font (wght axis 200-800). The same file covers
  500, 700 and 800, so there is one request and one preload:
    <link rel="preload" href="/fonts/atkinson-hyperlegible-next-totup-latin.woff2" as="font" type="font/woff2" crossorigin>

  The face is declared as weight 500-800. A lighter request, such as a default 400, renders
  at 500, which is the brief's minimum weight.
  The font has tnum (tabular figures), frac, pnum and a plain zero (zero redrawn from upstream for Tot Up; OFL). Its digits are lining by default.
  The Latin subset does not contain these glyphs, so they come from the next font in the stack:
  check, cross, warning sign, arrows and the numero sign. Use inline SVG for icons. ‹ › − × ÷ £ € … ’ are included.

  Suggested stack:
    font-family: 'Atkinson Hyperlegible Next', 'Atkinson Fallback', 'Atkinson Fallback Android',
                 system-ui, -apple-system, 'Segoe UI', sans-serif;
  The two fallback families below are metric-matched local system fonts. They make text set in
  the fallback before the swap about as wide and tall as the final font, so the swap barely reflows.
  Each size-adjust was measured in Chromium. It is the width of six lines of UI copy in Atkinson
  divided by their width in the local font, taken separately for 500, 700 and 800.
  ascent-override and descent-override are Atkinson's 0.984 and 0.316 em divided by size-adjust,
  so line boxes keep the same height. Safari applies only size-adjust.
  Atkinson's digits are wider than Arial's (0.66em against 0.56em), so blocks made only of digits
  still widen a little at the swap. Give number containers a fixed or min width.
*/

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-totup-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;
}

/* Fallback for iOS, macOS, Windows and Linux: Arial, or its metric clones Liberation Sans and Arimo.
   There are three faces so that 500, 700 and 800 each get their own width match. Arial has only
   regular and bold, so 700 and 800 both use Arial Bold with a different size-adjust. */
@font-face {
  font-family: 'Atkinson Fallback';
  font-style: normal;
  font-weight: 400 600;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Arimo');
  size-adjust: 100.7%;
  ascent-override: 97.7%;
  descent-override: 31.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Atkinson Fallback';
  font-style: normal;
  font-weight: 601 750;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Arimo-Bold');
  size-adjust: 98.2%;
  ascent-override: 100.2%;
  descent-override: 32.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Atkinson Fallback';
  font-style: normal;
  font-weight: 751 900;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Arimo-Bold');
  size-adjust: 101.9%;
  ascent-override: 96.6%;
  descent-override: 31.0%;
  line-gap-override: 0%;
}

/* Fallback for Android, which has no Arial. */
@font-face {
  font-family: 'Atkinson Fallback Android';
  font-style: normal;
  font-weight: 400 600;
  src: local('Roboto'), local('Roboto-Regular');
  size-adjust: 102.0%;
  ascent-override: 96.5%;
  descent-override: 31.0%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Atkinson Fallback Android';
  font-style: normal;
  font-weight: 601 750;
  src: local('Roboto Bold'), local('Roboto-Bold');
  size-adjust: 104.9%;
  ascent-override: 93.8%;
  descent-override: 30.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Atkinson Fallback Android';
  font-style: normal;
  font-weight: 751 900;
  src: local('Roboto Bold'), local('Roboto-Bold');
  size-adjust: 108.7%;
  ascent-override: 90.5%;
  descent-override: 29.1%;
  line-gap-override: 0%;
}
