/* Self-hosted fonts for brandonlehmanshow.com.
   WOFF2 files are Latin-1 subsets (U+0000-00FF, curly quotes, ellipsis, em dash,
   bullet) with all layout features kept, produced by pyftsubset from the TTFs
   next to them. The TTFs stay as the fallback source and as the unsubsetted
   originals. Preload only the three hero faces (see README, "Redesign build
   notes"). Barlow Condensed is no longer declared: it was used only by the
   retired motion-study label scene. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./newsreader-400.v1.woff2) format("woff2"),
       url(./newsreader-regular.ttf) format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./manrope-400.v1.woff2) format("woff2"),
       url(./brand-font-2.ttf) format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./manrope-500.v1.woff2) format("woff2"),
       url(./brand-font-3.ttf) format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./manrope-600.v1.woff2) format("woff2"),
       url(./brand-font-4.ttf) format("truetype");
}
/* 700 is not used by the canonical pages; kept unsubsetted for the archived
   studies so nothing regresses. It is fetched only if a rule asks for it. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./brand-font-5.ttf) format("truetype");
}

/* Metric-compatible fallbacks so the swap from Georgia/Arial does not shift
   layout. Derived from the font tables: size-adjust = webfont average
   [a-z, space] advance / fallback average; ascent and descent are the
   webfont's hhea values divided by size-adjust. Inputs: Newsreader upm 2000,
   ascent 1470, descent 530, avg 0.4761 em; Georgia avg 0.4896 em. Manrope upm
   2000, ascent 2132, descent 600, avg 0.5107 em; Arial avg 0.4817 em.
   Use them in the stacks:
     --font-display: "Newsreader", "Newsreader Fallback", Georgia, serif;
     --font-body: "Manrope", "Manrope Fallback", Arial, sans-serif; */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 97.24%;
  ascent-override: 75.59%;
  descent-override: 27.25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 106.03%;
  ascent-override: 100.54%;
  descent-override: 28.30%;
  line-gap-override: 0%;
}
