/*
 * EUROFERT TYPOGRAPHY — the ONE place fonts are defined ("one place, one change").
 *
 * To change a font anywhere on the site, edit it HERE and nowhere else:
 *   - which typeface a role uses  -> the --font-* variables below
 *   - which weight a role uses    -> the --font-weight-* variables below
 *   - adding/replacing a font file -> the @font-face rules below
 * No other file (SCSS, PHP, templates) names a font family or a font file.
 * Loaded by eurofert_files() in functions.php.
 *
 * Roles (client brand sheet):
 *   Trueno Light (300)    body text: paragraphs, product text, contact form
 *   Trueno Bold (700)     headings
 *   Trueno SemiBold (600) buttons
 *   Montserrat            no longer used; kept below so reverting the heading
 *                         experiment is one line (--font-primary)
 *   Inter                 small unit text such as kg/ha (unchanged)
 *
 * Trueno is licensed under the SIL Open Font License (fonts/trueno/OFL.txt),
 * which permits web embedding.
 */

/* ---------- Font files ---------- */

/* Trueno (self-hosted from fonts/trueno/) */
@font-face {
  font-family: 'Trueno';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('trueno/trueno-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Trueno';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('trueno/trueno-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Trueno';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('trueno/trueno-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Trueno';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('trueno/trueno-700.woff2') format('woff2');
}

/* Montserrat: one variable file covers 400-700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('google-fonts/montserrat-variable.woff2') format('woff2');
}

/* Inter: small-size unit/label text (kg/ha, ml/100 L). One variable file
   covers the weights used (500, 700); strong tabular figures. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('google-fonts/inter-variable.woff2') format('woff2');
}

/* ---------- Roles ---------- */

:root {
  --font-trueno: 'Trueno', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Headings, navigation, labels. Trial: Trueno SemiBold. To revert to
     Montserrat, set this to 'Montserrat', system-ui, -apple-system, sans-serif */
  --font-primary: var(--font-trueno);
  --font-secondary: var(--font-trueno); /* body text, descriptions, contact form */
  --font-menu: var(--font-trueno);
  --font-button: var(--font-trueno); /* buttons and CTAs */
  --font-unit: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Numbers in the Application Recommendations table (.reco-num). Kept out of
     Trueno on purpose: Trueno's full-height digits read larger than the
     table's previous numbers. This is the previous look, the stack that
     "Baskerville, Georgia, serif" actually rendered as (Baskerville was never
     loaded, so Georgia showed). Change this one line to restyle the numbers. */
  --font-number: Georgia, 'Times New Roman', serif;

  --font-weight-body: 300; /* Trueno Light */
  --font-weight-heading: 700; /* Trueno Bold: every heading (h1-h6 and title classes) */
  --font-weight-button: 600; /* Trueno SemiBold: buttons */
  --font-weight-small: 400; /* Trueno Regular: text of about 15px and below, where Light is too thin to read */
  --font-weight-ui: 400; /* Trueno Regular: tab labels, size pills, secondary table text */
  --font-weight-formula: 700; /* Inter Bold: product formulas such as 15-15-30 + TE */
}

/* ---------- Small text ----------
 * Trueno Light (300) is the body weight, but it is too thin at about 15px and
 * below, so small text uses Regular. This is the one list of small-text
 * elements: add a selector here when a new small piece of text appears.
 * None of these rules sets a weight of its own, so this one applies.
 */
.page-banner__breadcrumb,
.about-hero__path,
.category-card__tagline,
.category-card__description,
.about-values__text,
.footer-subtitle,
.footer-legal-link,
.contact-page__pills p,
.contact-modal__list p,
.contact-modal__hours,
.contact-modal__consent label,
.contact-modal__counter {
  font-weight: var(--font-weight-small);
}
