/* ==========================================================================
   Winning Gym Owners — font tokens. THE ONLY PLACE FONT FAMILIES ARE NAMED.
   To swap fonts: change the Typekit/Google <link> tags in each page <head>
   (and scripts/build-articles.js), then the tokens below. The links sit in
   <head> (not @import) so the font CSS is discovered on first parse.
   Every page links this file (<link rel="stylesheet" href="/fonts.css">) and
   all CSS / inline styles reference these tokens.
   These are the original Wealthy Gym Owners faces, restored at Will's request
   (Nov 29): Dharma Gothic E (Adobe Fonts kit ofg8wou) for headlines, Outfit for
   body, Fraunces for the serif accent. Bebas Neue is the headline fallback.
   ========================================================================== */

/* Metric-matched stand-in for Dharma Gothic E while the Adobe kit loads.
   Arial Bold scaled to Dharma's average advance width (30.3 vs 60.3 per 100px
   uppercase) with Dharma's ascent/descent (0.85/0.21 em), so headings wrap to
   the same line count and the page doesn't jump when Dharma swaps in.
   Overrides are divided by size-adjust because they are applied before it. */
@font-face {
  font-family: 'dharma-fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Helvetica Bold'), local('Arial'), local('Liberation Sans');
  font-weight: 100 900;
  size-adjust: 50.25%;
  ascent-override: 169%;
  descent-override: 41.8%;
  line-gap-override: 0%;
}
/* Same idea for Android, which ships Roboto instead of Arial (55.65 per 100px). */
@font-face {
  font-family: 'dharma-fallback-roboto';
  src: local('Roboto Bold'), local('Roboto-Bold'), local('Roboto');
  font-weight: 100 900;
  size-adjust: 54.4%;
  ascent-override: 156.3%;
  descent-override: 38.6%;
  line-gap-override: 0%;
}

:root {
  /* Headlines: Dharma Gothic E (condensed display) */
  --font-display: 'dharma-gothic-e', 'dharma-fallback', 'dharma-fallback-roboto', 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-display-weight: 600;
  /* Body */
  --font-body: 'Outfit', system-ui, sans-serif;
  /* Accent: serif */
  --font-accent: 'Fraunces', 'Georgia', serif;
  /* Stylesheet URL handed to Stripe Elements (iframes can't read the tokens above).
     Keep it pointing at a CSS file that defines the --font-body family. */
  --font-stripe-css: 'https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap';
}
