:root {

  /* ── Fluid type scale (375px → 1728px) ───────────────────── */
  --text-lg      : clamp(1.875rem, 1.459rem + 1.774vw, 3.375rem);  /* 30px → 54px */
  --text-md      : clamp(1.75rem,  1.404rem + 1.478vw, 3rem);      /* 28px → 48px */
  --text-sm      : clamp(1.5rem,   1.223rem + 1.183vw, 2.5rem);    /* 24px → 40px */
  --text-xs      : clamp(1.5rem,   1.361rem + 0.591vw, 2rem);      /* 24px → 32px */
  --text-sub-md        : 1.25rem;                                        /* 20px fixed  */
  --text-sub-sm        : 1rem;                                          /* 16px fixed  */
  --text-body-lg       : clamp(1.25rem,  1.181rem + 0.296vw, 1.5rem);    /* 20px → 24px */
  --text-body-md       : clamp(1.125rem, 1.090rem + 0.148vw, 1.25rem);   /* 18px → 20px */
  --text-body-sm       : clamp(1rem,     0.931rem + 0.296vw, 1.25rem);   /* 16px → 20px */
  --text-footer-heading: clamp(0.75rem,  0.681rem + 0.296vw, 1rem);      /* 12px → 16px */
  --text-footer-body   : 0.75rem;                                        /* 12px fixed  */

}


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


/* ── Font weight ──────────────────────────────────────────── */
.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 ───────────────────────────────────────────── */
.heading-lg { font-size: var(--text-lg); font-family: var(--font-ivy-ora-text); font-weight: 300; 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-ivy-ora-text); 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-ivy-ora-text); font-weight: 300; 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; }

.heading-xs { font-size: var(--text-xs); font-family: var(--font-ivy-ora-text); font-weight: 400; font-style: italic; line-height: normal; }
.heading-xs h1, .heading-xs h2, .heading-xs h3,
.heading-xs h4, .heading-xs h5, .heading-xs h6,
.heading-xs p  { font-size: inherit; font-family: inherit; font-weight: inherit; font-style: inherit; line-height: inherit; }

.subheading-md { font-size: var(--text-sub-md); font-family: var(--font-brother-1816); font-weight: 400; line-height: normal; letter-spacing: 0.15em; 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; }

.body-lg { font-size: var(--text-body-lg); font-family: var(--font-brother-1816); font-weight: 350; line-height: normal; }
.body-lg p, .body-lg li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.body-md { font-size: var(--text-body-md); font-family: var(--font-brother-1816); font-weight: 350; line-height: normal; }
.body-md p, .body-md li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.body-sm { font-size: var(--text-body-sm); font-family: var(--font-brother-1816); font-weight: 350; line-height: normal; }
.body-sm p, .body-sm li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

.hero-subheading { color: var(--creme); font-family: var(--font-brother-1816); font-size: 1.25rem; font-weight: 400; line-height: normal; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-subheading h1, .hero-subheading h2, .hero-subheading h3,
.hero-subheading h4, .hero-subheading h5, .hero-subheading h6,
.hero-subheading p,  .hero-subheading li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
@media (min-width: 981px) {
  .hero-subheading { font-size: 1.5rem; font-weight: 350; letter-spacing: 0.15em; }
}

.footer-heading { font-size: var(--text-footer-heading); font-family: var(--font-brother-1816); font-weight: 400; line-height: normal; letter-spacing: 0.3em; text-transform: uppercase; }
.footer-heading h1, .footer-heading h2, .footer-heading h3,
.footer-heading h4, .footer-heading h5, .footer-heading h6,
.footer-heading p,  .footer-heading li { font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; }

.footer-body { font-size: var(--text-footer-body); font-family: var(--font-brother-1816); font-weight: 400; line-height: normal; letter-spacing: 0.1em; }
.footer-body p, .footer-body li { font-size: inherit; font-family: inherit; font-weight: 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-lg); font-family: var(--font-ivy-ora-text); font-weight: 300; line-height: normal; }
.rich-text h2 { font-size: var(--text-md); font-family: var(--font-ivy-ora-text); font-weight: 300; line-height: normal; }
.rich-text h3 { font-size: var(--text-sm); font-family: var(--font-ivy-ora-text); font-weight: 300; line-height: normal; }
.rich-text h4,
.rich-text h5,
.rich-text h6 { font-size: var(--text-xs); font-family: var(--font-ivy-ora-text); font-weight: 400; font-style: italic; line-height: normal; }

.rich-text p,
.rich-text li {
  font-size   : var(--text-body-lg);
  font-family : var(--font-brother-1816);
  font-weight : 350;
  line-height : normal;
}

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

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