/* =========================================================
   JING REN TANG — TYPOGRAPHY SYSTEM
   Version 5.1 — Readability Edition

   Headings: Alice
   Body: Inter
========================================================= */


/* =========================================================
   01 — GLOBAL BODY
========================================================= */

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  color: var(--jrt-ink);
  font-family: var(--jrt-font-body) !important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Divi modules inherit the body font */

.et_pb_module,
.et_pb_module p,
.et_pb_module li,
.et_pb_module span:not(.et-pb-icon) {
  font-family: inherit;
}


/* =========================================================
   02 — HEADINGS
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_text h4,
.et_pb_text h5,
.et_pb_text h6 {
  margin-top: 0;
  font-family: var(--jrt-font-heading) !important;
  font-style: normal;
  font-weight: 400 !important;
  text-transform: none !important;
  text-wrap: balance;
}


/* H1 */

h1,
.et_pb_text h1,
.et_pb_title_container h1,
h1.entry-title {
  margin-bottom: 28px;
  color: var(--jrt-green) !important;
  font-size: clamp(3.2rem, 4.8vw, 5.2rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.034em !important;
}


/* H2 */

h2,
.et_pb_text h2 {
  margin-bottom: 24px;
  color: var(--jrt-green) !important;
  font-size: clamp(2.5rem, 3.7vw, 4.1rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.027em !important;
}


/* H3 */

h3,
.et_pb_text h3 {
  margin-bottom: 18px;
  color: var(--jrt-wine) !important;
  font-size: clamp(1.8rem, 2.3vw, 2.6rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.017em !important;
}


/* H4 */

h4,
.et_pb_text h4 {
  margin-bottom: 14px;
  color: var(--jrt-green-soft) !important;
  font-size: clamp(1.4rem, 1.7vw, 1.8rem) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.01em !important;
}


/* H5 */

h5,
.et_pb_text h5 {
  margin-bottom: 12px;
  color: var(--jrt-green-soft) !important;
  font-family: var(--jrt-font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
}


/* H6 */

h6,
.et_pb_text h6 {
  margin-bottom: 10px;
  color: var(--jrt-gold) !important;
  font-family: var(--jrt-font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}


/* =========================================================
   03 — BODY TEXT
========================================================= */

p,
.et_pb_text p,
.entry-content p {
  color: var(--jrt-ink);
  font-family: var(--jrt-font-body) !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.84;
  letter-spacing: -0.004em;
}

li,
.et_pb_text li,
.entry-content li {
  font-family: var(--jrt-font-body) !important;
  font-size: 18px;
  line-height: 1.78;
  letter-spacing: -0.003em;
}

strong,
b {
  font-weight: 600;
}


/* =========================================================
   04 — EDITORIAL LEAD TEXT
========================================================= */

.jrt-lead,
.fp-lead {
  color: var(--jrt-green);
  font-family: var(--jrt-font-heading) !important;
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}


/* =========================================================
   05 — INTRODUCTORY TEXT
========================================================= */

.jrt-intro,
.fp-intro,
.jrt-section-intro,
.fp-section-intro {
  font-size: clamp(1.12rem, 1.3vw, 1.28rem);
  line-height: 1.78;
  letter-spacing: -0.008em;
}


/* =========================================================
   06 — SMALL TEXT
========================================================= */

small,
.jrt-small,
.fp-small,
.jrt-caption,
.fp-caption,
.et_pb_module small,
.et_pb_text small {
  font-family: var(--jrt-font-body) !important;
  font-size: 0.94rem;
  line-height: 1.7;
}


/* =========================================================
   07 — BLOCKQUOTES
========================================================= */

blockquote,
.entry-content blockquote,
.et_pb_text blockquote {
  margin: 1.75em 0;
  padding: 0 0 0 1.25em;
  border-left: 1px solid var(--jrt-gold);
  color: var(--jrt-green);
  font-family: var(--jrt-font-heading) !important;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.012em;
}


/* =========================================================
   08 — FORM AND BUTTON TYPOGRAPHY
========================================================= */

button,
input,
select,
textarea {
  font-size: 17px;
  line-height: 1.5;
}

.et_pb_button,
.jrt-button,
.fp-button,
button,
input[type="submit"] {
  font-family: var(--jrt-font-body) !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.035em;
}


/* =========================================================
   09 — PROTECT CUSTOM PAGE SYSTEMS
========================================================= */

.fp-no-global-type,
.fp-no-global-type *,
.fp-home,
.fp-home * {
  /* Dedicated page CSS remains responsible for overrides. */
}

.fp-home h1,
.fp-home h2,
.fp-home h3,
.fp-home h4,
.fp-home h5,
.fp-home h6,
.fp-home p,
.fp-home li,
.fp-home a {
  font-family: inherit;
}


/* =========================================================
   10 — TABLET
========================================================= */

@media (max-width: 980px) {

  p,
  .et_pb_text p,
  .entry-content p,
  li,
  .et_pb_text li,
  .entry-content li {
    font-size: 17px;
  }

  p,
  .et_pb_text p,
  .entry-content p {
    line-height: 1.82;
  }

  li,
  .et_pb_text li,
  .entry-content li {
    line-height: 1.76;
  }

}


/* =========================================================
   11 — MOBILE
========================================================= */

@media (max-width: 767px) {

  h1,
  .et_pb_text h1,
  .et_pb_title_container h1,
  h1.entry-title {
    margin-bottom: 22px;
    font-size: clamp(2.65rem, 11.5vw, 3.9rem) !important;
    line-height: 1.01 !important;
    letter-spacing: -0.032em !important;
  }

  h2,
  .et_pb_text h2 {
    margin-bottom: 20px;
    font-size: clamp(2.15rem, 8.8vw, 3.05rem) !important;
    line-height: 1.07 !important;
  }

  h3,
  .et_pb_text h3 {
    margin-bottom: 16px;
    font-size: clamp(1.7rem, 7vw, 2.25rem) !important;
    line-height: 1.17 !important;
  }

  h4,
  .et_pb_text h4 {
    font-size: clamp(1.35rem, 6vw, 1.7rem) !important;
  }

  p,
  .et_pb_text p,
  .entry-content p,
  li,
  .et_pb_text li,
  .entry-content li {
    font-size: 17px;
  }

  p,
  .et_pb_text p,
  .entry-content p {
    line-height: 1.8;
    letter-spacing: -0.002em;
  }

  li,
  .et_pb_text li,
  .entry-content li {
    line-height: 1.74;
  }

  small,
  .jrt-small,
  .fp-small,
  .jrt-caption,
  .fp-caption,
  .et_pb_module small,
  .et_pb_text small {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

}


/* =========================================================
   12 — SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

  h1,
  .et_pb_text h1,
  .et_pb_title_container h1,
  h1.entry-title {
    font-size: clamp(2.42rem, 11vw, 3.25rem) !important;
  }

  h2,
  .et_pb_text h2 {
    font-size: clamp(1.95rem, 9vw, 2.65rem) !important;
  }

}