:root {

  /* ── Fluid type scale (375px → 1728px) — regenerate via eos-type-scale ── */
  --text-xl      : clamp(2.500rem, 1.807rem + 2.956vw, 5.000rem);  /* 40px → 80px */
  --text-lg      : clamp(2.000rem, 1.446rem + 2.365vw, 4.000rem);  /* 32px → 64px */
  --text-md      : clamp(1.750rem, 1.473rem + 1.183vw, 2.750rem);  /* 28px → 44px */
  --text-sm      : clamp(1.500rem, 1.361rem + 0.591vw, 2.000rem);  /* 24px → 32px */
  --text-sub-lg  : clamp(1.000rem, 0.861rem + 0.591vw, 1.500rem);  /* 16px → 24px */
  --text-sub-md  : clamp(1.000rem, 0.896rem + 0.443vw, 1.375rem);  /* 16px → 22px */
  --text-sub-sm  : clamp(0.938rem, 0.920rem + 0.074vw, 1.000rem);  /* 15px → 16px */
  --text-body-xl : clamp(1.250rem, 1.181rem + 0.296vw, 1.500rem);  /* 20px → 24px */
  --text-body-lg : clamp(1.125rem, 1.090rem + 0.148vw, 1.250rem);  /* 18px → 20px */
  --text-body-sm : clamp(0.875rem, 0.858rem + 0.074vw, 0.938rem);  /* 14px → 15px */
  --text-button-md : clamp(1.125rem, 1.021rem + 0.443vw, 1.500rem);  /* 18px → 24px */
  --text-button-sm : clamp(1.000rem, 0.931rem + 0.296vw, 1.250rem);  /* 16px → 20px */

}


/* ── Heading reset — strip Divi's padding-bottom, inherit color ── */
h1, h2, h3, h4, h5, h6 { padding-bottom: 0; color: inherit; }


/* ── Font weight ──────────────────────────────────────────── */
/* Loaded weights: freight-display-pro 300, 400 · brandon-grotesque 400, 500 */
.font-thin       { font-weight: 100 !important; }
.font-extralight { font-weight: 200 !important; }
.font-light      { font-weight: 300 !important; }
.font-normal     { font-weight: 400 !important; }
.font-medium     { font-weight: 500 !important; }
.font-semibold   { font-weight: 600 !important; }
.font-bold       { font-weight: 700 !important; }
.font-extrabold  { font-weight: 800 !important; }
.font-black      { font-weight: 900 !important; }

/* ── Line height ──────────────────────────────────────────── */
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.1; }
.leading-snug    { line-height: 1.25; }
.leading-normal  { line-height: normal; }
.leading-relaxed { line-height: 1.5; }
.leading-loose   { line-height: 1.75; }

/* ── Type scale — per-token Figma values; override line-height per instance with .leading-* ── */
.heading-xl { font-size: var(--text-xl); font-family: var(--font-freight-display-pro); font-weight: 300; line-height: normal; }
.heading-xl h1, .heading-xl h2, .heading-xl h3,
.heading-xl h4, .heading-xl h5, .heading-xl h6,
.heading-xl p  { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.heading-lg { font-size: var(--text-lg); font-family: var(--font-freight-display-pro); font-weight: 400; line-height: normal; }
.heading-lg h1, .heading-lg h2, .heading-lg h3,
.heading-lg h4, .heading-lg h5, .heading-lg h6,
.heading-lg p  { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.heading-md { font-size: var(--text-md); font-family: var(--font-freight-display-pro); font-weight: 300; line-height: normal; }
.heading-md h1, .heading-md h2, .heading-md h3,
.heading-md h4, .heading-md h5, .heading-md h6,
.heading-md p  { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.heading-sm { font-size: var(--text-sm); font-family: var(--font-freight-display-pro); font-weight: 400; line-height: normal; }
.heading-sm h1, .heading-sm h2, .heading-sm h3,
.heading-sm h4, .heading-sm h5, .heading-sm h6,
.heading-sm p  { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.subheading-lg { font-size: var(--text-sub-lg); font-family: var(--font-brandon-grotesque); font-weight: 500; line-height: normal; letter-spacing: 0.3em; text-transform: uppercase; }
.subheading-lg h1, .subheading-lg h2, .subheading-lg h3,
.subheading-lg h4, .subheading-lg h5, .subheading-lg h6,
.subheading-lg p, .subheading-lg li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; }

.subheading-md { font-size: var(--text-sub-md); font-family: var(--font-brandon-grotesque); font-weight: 400; line-height: normal; letter-spacing: 0.3em; text-transform: uppercase; }
.subheading-md h1, .subheading-md h2, .subheading-md h3,
.subheading-md h4, .subheading-md h5, .subheading-md h6,
.subheading-md p, .subheading-md li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; }

.subheading-sm { font-size: var(--text-sub-sm); font-family: var(--font-brandon-grotesque); font-weight: 400; line-height: normal; letter-spacing: 0.3em; text-transform: uppercase; }
.subheading-sm h1, .subheading-sm h2, .subheading-sm h3,
.subheading-sm h4, .subheading-sm h5, .subheading-sm h6,
.subheading-sm p, .subheading-sm li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; }

.body-xl { font-size: var(--text-body-xl); font-family: var(--font-brandon-grotesque); font-weight: 400; line-height: normal; }
.body-xl p, .body-xl li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.body-lg { font-size: var(--text-body-lg); font-family: var(--font-brandon-grotesque); font-weight: 400; line-height: 1.4; letter-spacing: 0.1em; }
.body-lg p, .body-lg li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }

.body-sm { font-size: var(--text-body-sm); font-family: var(--font-brandon-grotesque); font-weight: 400; line-height: normal; letter-spacing: 0.1em; }
.body-sm p, .body-sm li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }

/* Button labels — Figma "Buttons M" / "Buttons S". Pair with a .btn-* class from css/global/buttons.css. */
.button-text-md { font-size: var(--text-button-md); font-family: var(--font-brandon-grotesque); font-weight: 400; line-height: normal; letter-spacing: 0.3em; text-transform: uppercase; }
.button-text-md p, .button-text-md a, .button-text-md span { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; }

.button-text-sm { font-size: var(--text-button-sm); font-family: var(--font-brandon-grotesque); font-weight: 450; line-height: normal; letter-spacing: 0.3em; text-transform: uppercase; }   /* Figma 450 — kit loads 400/500, browsers resolve 450 to the 500 face */
.button-text-sm p, .button-text-sm a, .button-text-sm span { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; }


/* ── Rich text — Code modules / WP content outside Divi's control ── */
.rich-text h1 { font-size: var(--text-lg); font-family: var(--font-freight-display-pro); font-weight: 400; line-height: normal; }
.rich-text h2 { font-size: var(--text-md); font-family: var(--font-freight-display-pro); font-weight: 300; line-height: normal; }
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 { font-size: var(--text-sm); font-family: var(--font-freight-display-pro); font-weight: 400; line-height: normal; }

.rich-text p,
.rich-text li {
  font-size      : var(--text-body-lg);
  font-family    : var(--font-brandon-grotesque);
  font-weight    : 400;
  line-height    : 1.4;
  letter-spacing : 0.1em;
}

.rich-text ol,
.rich-text ul  { padding-left: 1.5em; }

.rich-text a   { text-decoration: underline; color: inherit; }
