@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --site-font: "Plus Jakarta Sans", Arial, sans-serif;
  --sans: var(--site-font);
  --serif: var(--site-font);
  --type-h1: clamp(32px, 4.1vw, 56px);
  --type-h2: clamp(26px, 3vw, 40px);
  --type-h3: clamp(21px, 2vw, 26px);
  --type-h4: 20px;
  --type-h5: 18px;
  --type-h6: 16px;
  --type-body: 16px;
  --type-small: 14px;
}

html body,
html body :is(h1, h2, h3, h4, h5, h6, p, li, a, button, input, select, textarea, label, legend, summary, th, td, dt, dd, output) {
  font-family: var(--site-font) !important;
}

html body[data-backend="php"][data-mobile-site] main :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--site-font) !important;
  font-weight: 500 !important;
  letter-spacing: -.025em !important;
  line-height: 1.25 !important;
  text-wrap: balance;
  overflow-wrap: break-word;
}

html body[data-backend="php"][data-mobile-site] main h1 { font-size: var(--type-h1) !important; }
html body[data-backend="php"][data-mobile-site] main h2 { font-size: var(--type-h2) !important; }
html body[data-backend="php"][data-mobile-site] main h3 { font-size: var(--type-h3) !important; }
html body[data-backend="php"][data-mobile-site] main h4 { font-size: var(--type-h4) !important; }
html body[data-backend="php"][data-mobile-site] main h5 { font-size: var(--type-h5) !important; }
html body[data-backend="php"][data-mobile-site] main h6 { font-size: var(--type-h6) !important; }

html body[data-backend="php"][data-mobile-site] main .hero-home-story > :is(h1, h2) {
  font-size: var(--type-h1) !important;
}

html body[data-backend="php"][data-mobile-site] main :is(h1, h2, h3, h4, h5, h6) > :is(span, strong, em, a) {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

html body[data-backend="php"][data-mobile-site] main :is(p, li, dt, dd) {
  font-size: var(--type-body) !important;
  line-height: 1.75 !important;
  letter-spacing: normal;
}

html body[data-backend="php"][data-mobile-site] main :is(p, li) :is(a, strong, em, span) {
  font-size: inherit;
  line-height: inherit;
}

html body[data-backend="php"][data-mobile-site] main :is(button, .btn, .ref-pill, .ref-text-link, .hero-home-primary, .hero-home-secondary, .btn-calc-submit, .review-submit-button) {
  font-size: var(--type-small) !important;
  line-height: 1.4 !important;
  font-weight: 500;
}

html body[data-backend="php"][data-mobile-site] main :is(label, legend, summary, input, select, textarea) {
  font-size: var(--type-small) !important;
  line-height: 1.5 !important;
}

html body[data-backend="php"][data-mobile-site] main :is(th, td) {
  font-size: var(--type-small) !important;
  line-height: 1.65 !important;
}

html body[data-backend="php"][data-mobile-site] main :is(.eyebrow, .ref-eyebrow, .editorial-label, .faq-page-label, .calc-sec-tag) {
  font-size: 12px !important;
  line-height: 1.5 !important;
  letter-spacing: .12em !important;
}

html body[data-backend="php"][data-mobile-site] main :is(.small, .review-privacy-note, .calc-payout-desc, .managed-article-meta, .cafe-byline) {
  font-size: var(--type-small) !important;
  line-height: 1.7 !important;
}

html body[data-backend="php"][data-mobile-site] main .calc-manual-amount input {
  font-size: clamp(34px, 4vw, 52px) !important;
  font-weight: 500;
  line-height: 1.15 !important;
  letter-spacing: -.03em;
}

html body[data-backend="php"][data-mobile-site] .article-enquiry-dialog :is(h2, h3) {
  font-family: var(--site-font) !important;
  font-size: clamp(22px, 2.2vw, 28px) !important;
  line-height: 1.3 !important;
  font-weight: 500;
  letter-spacing: -.02em;
}

html body[data-backend="php"][data-mobile-site] .article-enquiry-dialog :is(input, select, textarea, label, legend, button) {
  font-family: var(--site-font) !important;
}

html body[data-backend="php"][data-mobile-site] main .home-blog-card h3 {
  font-size: var(--type-h4) !important;
}

html body[data-backend="php"][data-mobile-site] main .cafe-article h2 {
  font-size: var(--type-h3) !important;
}

::selection { background: #e7f449; color: #293321; }

@media (max-width: 768px) {
  :root {
    --type-h1: 34px;
    --type-h2: 28px;
    --type-h3: 23px;
    --type-h4: 20px;
    --type-body: 16px;
  }

  html body[data-backend="php"][data-mobile-site] main :is(input, select, textarea),
  html body[data-backend="php"][data-mobile-site] .article-enquiry-dialog :is(input, select, textarea) {
    font-size: 16px !important;
  }
}

@media (max-width: 360px) {
  :root { --type-h1: 30px; --type-h2: 26px; --type-h3: 22px; }
}
