/* ── Self-hosted: Harlow Duo Serif Plain ─────────────────────
   Headings font — NOT in Typekit kit pvn2mej ("Location: Shared" in Figma). */
@font-face {
  font-family : "Harlow Duo Serif Plain";
  src         : url("fonts/harlow-duo-serif-plain/HarlowDuoSerifPlain.woff2") format("woff2");
  font-weight : 400;
  font-style  : normal;
  font-display: swap;
}

:root {

  /* ── Fluid type scale (375px → 1728px) ───────────────────── */
  --text-xxl     : clamp(2.250rem, 1.834rem + 1.774vw, 3.750rem);  /* 36px → 60px */
  --text-xl      : clamp(1.750rem, 1.196rem + 2.365vw, 3.750rem);  /* 28px → 60px */
  --text-lg      : clamp(2.000rem, 1.654rem + 1.478vw, 3.250rem);  /* 32px → 52px */
  --text-md      : clamp(1.500rem, 1.223rem + 1.183vw, 2.500rem);  /* 24px → 40px */
  --text-sm      : clamp(1.000rem, 0.723rem + 1.183vw, 2.000rem);  /* 16px → 32px */
  --text-sub-xl  : clamp(1.500rem, 1.223rem + 1.183vw, 2.500rem);  /* 24px → 40px */
  --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(1.000rem, 1.000rem + 0.000vw, 1.000rem);  /* 16px fixed  */
  --text-body-xl : clamp(1.250rem, 1.181rem + 0.296vw, 1.500rem);  /* 20px → 24px */
  --text-body-lg : clamp(1.000rem, 0.931rem + 0.296vw, 1.250rem);  /* 16px → 20px */
  --text-body-md : clamp(1.000rem, 1.000rem + 0.000vw, 1.000rem);  /* 16px fixed  */
  --text-body-md-italic : clamp(1.000rem, 0.965rem + 0.148vw, 1.125rem);  /* 16px → 18px */
  --text-body-sm : clamp(0.875rem, 0.840rem + 0.148vw, 1.000rem);  /* 14px → 16px */

}


h1, h2, h3, h4, h5, h6 { padding-bottom: 0; color: inherit; }


/* ── Font weight ──────────────────────────────────────────── */
/* Loaded: ofelia-display 100–800 + italics (kit pvn2mej); Harlow Duo Serif Plain 400 (self-hosted) */
.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 ───────────────────────────────────────────── */
/* line-height and letter-spacing come from Figma per token    */
/* Override line-height per instance using .leading-* classes  */
.heading-xxl { font-size: var(--text-xxl); font-family: var(--font-harlow-duo-serif-plain); font-weight: 400; line-height: 0.929; }
.heading-xxl h1, .heading-xxl h2, .heading-xxl h3,
.heading-xxl h4, .heading-xxl h5, .heading-xxl h6,
.heading-xxl p  { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.heading-xl { font-size: var(--text-xl); font-family: var(--font-harlow-duo-serif-plain); font-weight: 400; line-height: 0.929; }
.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-harlow-duo-serif-plain); 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-harlow-duo-serif-plain); font-weight: 400; 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-harlow-duo-serif-plain); 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-xl { font-size: var(--text-sub-xl); font-family: var(--font-ofelia-display); font-weight: 400; line-height: normal; letter-spacing: 0.05em; }
.subheading-xl h1, .subheading-xl h2, .subheading-xl h3,
.subheading-xl h4, .subheading-xl h5, .subheading-xl h6,
.subheading-xl p, .subheading-xl li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }

.subheading-lg { font-size: var(--text-sub-lg); font-family: var(--font-ofelia-display); font-weight: 400; line-height: normal; letter-spacing: 0.1em; }
.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; }

.subheading-md { font-size: var(--text-sub-md); font-family: var(--font-ofelia-display); font-weight: 700; line-height: normal; letter-spacing: 0.13em; }
.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; }

.subheading-sm { font-size: var(--text-sub-sm); font-family: var(--font-ofelia-display); font-weight: 700; line-height: normal; letter-spacing: 0.13em; }
.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; }

.body-xl { font-size: var(--text-body-xl); font-family: var(--font-ofelia-display); font-weight: 400; line-height: normal; letter-spacing: 0.04em; }
.body-xl p, .body-xl li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }

.body-lg { font-size: var(--text-body-lg); font-family: var(--font-ofelia-display); 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-md { font-size: var(--text-body-md); font-family: var(--font-ofelia-display); font-weight: 400; line-height: 1.375; letter-spacing: 0.1em; }
.body-md p, .body-md li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }

/* Italic body variant — own Figma token (18px desktop vs 16px M Body); bold via .font-bold */
.body-md-italic { font-size: var(--text-body-md-italic); font-family: var(--font-ofelia-display); font-weight: 400; font-style: italic; line-height: normal; letter-spacing: 0.14em; }
.body-md-italic p, .body-md-italic li { font-size: inherit; font-family: inherit; font-weight: inherit; font-style: inherit; line-height: inherit; letter-spacing: inherit; }

.body-sm { font-size: var(--text-body-sm); font-family: var(--font-ofelia-display); 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; }


/* ── Responsive type override — pair with a base body class:
      e.g. "body-lg body-sm-mobile" = body-lg desktop, body-sm ≤1024px ── */
@media (max-width: 1024px) {
  .body-sm-mobile { font-size: var(--text-body-sm); line-height: normal; letter-spacing: 0.1em; }
  .body-sm-mobile p, .body-sm-mobile li { font-size: inherit; line-height: inherit; letter-spacing: inherit; }
}

/* ── Rich text ────────────────────────────────────────────── */
/* Apply to Code modules or WP editor content outside Divi's control */
.rich-text h1 { font-size: var(--text-xxl); font-family: var(--font-harlow-duo-serif-plain); font-weight: 400; line-height: 0.929; }
.rich-text h2 { font-size: var(--text-xl); font-family: var(--font-harlow-duo-serif-plain); font-weight: 400; line-height: 0.929; }
.rich-text h3 { font-size: var(--text-lg); font-family: var(--font-harlow-duo-serif-plain); font-weight: 400; line-height: normal; }
.rich-text h4 { font-size: var(--text-md); font-family: var(--font-harlow-duo-serif-plain); font-weight: 400; line-height: normal; }
.rich-text h5,
.rich-text h6 { font-size: var(--text-sm); font-family: var(--font-harlow-duo-serif-plain); font-weight: 400; line-height: normal; }

.rich-text p,
.rich-text li {
  font-size      : var(--text-body-xl);
  font-family    : var(--font-ofelia-display);
  font-weight    : 400;
  line-height    : normal;
  letter-spacing : 0.04em;
}

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

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