/* Hyper Endurance Fitness | typefaces
   ------------------------------------------------------------------
   Self hosted rather than pulled from Google. Three reasons: it cannot
   fail when their CDN is slow, it removes a third party request from
   an Irish site, and it loads on the same connection as everything
   else so the text paints sooner.

   Reading face   Inter. A serif at reading weight goes thin against a
                  near black ground, so prose is set in the same face as
                  the controls, one step heavier than its default.
   Source Serif 4 Retained for italics and any editorial emphasis.
   Headings       Satoshi, unchanged, still from Fontshare.

   These are variable fonts, so one file covers every weight. Do not
   replace them with static weight files without checking the size.
*/

/* ---------- Source Serif 4, the reading face ---------- */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* A real italic, not a slanted upright. This is what stops emphasis
   inside an article looking synthetic. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-latin-wght-italic.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Accented characters outside the basic latin set. Loaded only when a
   page actually contains one. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Inter, the interface face ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Typographic defaults for the reading face ----------
   Source Serif ships with proper old style and lining figures and a
   full set of ligatures. Turning them on is most of the difference
   between a serif that looks bought and one that looks set. */

:root {
  --font-read: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-ui:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
}

p, li, dd, dt, blockquote, figcaption,
.standfirst, .article-standfirst, .lead, .pull {
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: 'kern' 1, 'liga' 1, 'clig' 1;
  text-rendering: optimizeLegibility;
}

/* Numerals inside prose sit better lining and tabular than the serif's
   default, particularly in the pricing lines. */
.price, .card-meta, .hp-price, table, td, th {
  font-variant-numeric: lining-nums tabular-nums;
}
