/*
 * usda.gov typography, measured rather than assumed.
 *
 * On 2026-09-08 the live usda.gov homepage was loaded in a real browser and its
 * computed styles read off at 1440px:
 *
 *   h1  Public Sans  80px  w200      h3    Public Sans  34px  w400
 *   h2  Public Sans  40px  w300      body  Public Sans  17px
 *
 * Merriweather appears on one element only -- the "official website of the
 * United States government" banner, 12px -- so it is NOT the body face here
 * either, despite the USWDS default pairing suggesting otherwise.
 *
 * Sizes below follow that scale except h1: their 80px is a homepage hero
 * display size, too large for interior pages, so it is scaled to 3rem.
 *
 * Public Sans is declared here from the theme's bundled font files
 * (assets/fonts/public-sans — no external requests). Merriweather Web
 * @font-face ships in styles.css (300/400/700) and stays available.
 */

@font-face {
  font-family: "Public Sans Web";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(../fonts/public-sans/PublicSans-ExtraLight.woff2) format("woff2"),
       url(../fonts/public-sans/PublicSans-ExtraLight.woff) format("woff");
}

@font-face {
  font-family: "Public Sans Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/public-sans/PublicSans-Regular.woff2) format("woff2"),
       url(../fonts/public-sans/PublicSans-Regular.woff) format("woff");
}

@font-face {
  font-family: "Public Sans Web";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/public-sans/PublicSans-Italic.woff2) format("woff2"),
       url(../fonts/public-sans/PublicSans-Italic.woff) format("woff");
}

@font-face {
  font-family: "Public Sans Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/public-sans/PublicSans-SemiBold.woff2) format("woff2"),
       url(../fonts/public-sans/PublicSans-SemiBold.woff) format("woff");
}

@font-face {
  font-family: "Public Sans Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/public-sans/PublicSans-Bold.woff2) format("woff2"),
       url(../fonts/public-sans/PublicSans-Bold.woff) format("woff");
}

@font-face {
  font-family: "Public Sans Web";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/public-sans/PublicSans-BoldItalic.woff2) format("woff2"),
       url(../fonts/public-sans/PublicSans-BoldItalic.woff) format("woff");
}

/* Headings: Public Sans at usda.gov's weights.
 *
 * Prefixed with `html` on purpose. The previous `h1, h2, ...` form was a
 * single-element selector (0,0,1) and lost to a later USWDS rule of the same
 * weight, so headings had been computing to Source Sans Pro Web ever since this
 * file was added -- the Public Sans it names never actually applied. `html h1`
 * is (0,0,2), which wins that tie while still yielding to any component rule
 * that sets a heading font by class (0,1,0) or higher.
 */
html h1, html h2, html h3, html h4, html h5, html h6,
.usa-prose h1, .usa-prose h2, .usa-prose h3,
.usa-prose h4, .usa-prose h5, .usa-prose h6 {
  font-family: "Public Sans Web", "Source Sans Pro Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.2;
}

/* Sizes and weights per usda.gov, measured 2026-09-08. Their headings get
   lighter as they get larger -- h1 is the thinnest thing on the page, not the
   boldest -- which is what gives the site its airy feel. */
html h1, .usa-prose h1 { font-size: 3rem;     font-weight: 200; }
html h2, .usa-prose h2 { font-size: 2.5rem;   font-weight: 300; }
html h3, .usa-prose h3 { font-size: 2.125rem; font-weight: 400; }
html h4, .usa-prose h4 { font-size: 1.25rem;  font-weight: 600; }
html h5, .usa-prose h5 { font-size: 1.09rem;  font-weight: 600; }
html h6, .usa-prose h6 { font-size: 1rem;     font-weight: 600; }

/* Body copy: Merriweather at the USWDS reading size, with the roomier
   line-height a serif needs (as on usda.gov). */
/* Body copy: Public Sans 17px, as measured on usda.gov -- not Merriweather.
   Merriweather is still loaded and still correct for the government banner
   line, which is the only place usda.gov uses it. */
html p, .usa-prose p {
  font-family: "Public Sans Web", "Source Sans Pro Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.06rem;
  line-height: 1.6;
}
