/* The Geocaching type scale, shared by title and content panels. */
body {
  --mn-font: Inter, ui-sans-serif, system-ui, sans-serif;
  font-family: var(--mn-font);
}
body :is(button, input, select, textarea) {
  font-family: var(--mn-font);
}
body:is(.subpage-page, .home-page) main {
  --mn-body-size: 1.0625rem;
  --mn-source-size: .875rem;
  font-size: var(--mn-body-size);
}
body:is(.subpage-page, .home-page) main :is(p, li) {
  font-size: var(--mn-body-size) !important;
  line-height: 1.72 !important;
}
body:is(.subpage-page, .home-page) main :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--mn-font) !important;
  line-height: 1.28 !important;
  text-wrap: pretty;
}
body:is(.subpage-page, .home-page) main :is(.section-title, .rubric-title) {
  font-size: clamp(2rem, 3.7vw, 3rem) !important;
  line-height: 1.12 !important;
}
body:is(.subpage-page, .home-page) main :is(h2:not([data-heading-level]), [data-heading-level="2"]) {
  font-size: clamp(1.45rem, 2.25vw, 1.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.025em;
}
body:is(.subpage-page, .home-page) main :is(h3:not([data-heading-level]), [data-heading-level="3"]) {
  font-size: clamp(1.2rem, 1.65vw, 1.35rem) !important;
  font-weight: 600 !important;
  letter-spacing: normal;
}
body:is(.subpage-page, .home-page) main :is(h4:not([data-heading-level]), [data-heading-level="4"]) {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: normal;
}
body:is(.subpage-page, .home-page) main :is(.eyebrow, .page-kicker) {
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Keep sources, route details, and status labels readable without competing with headings. */
body:is(.subpage-page, .home-page) main :is(
  small, figcaption, .service-note, .video-note, .merch-note, .hiking-note,
  .restaurant-note, .leisure-note, .update-note, .weather-note,
  .gallery-credit-note, .discover-photo-credit, .scenic-photo-credit,
  .excursion-checked, .excursion-freshness, .route-checked, .holiday-empty,
  .holiday-weekdays, .holiday-month-events li > span, .beach-price-place > summary small,
  .beach-price-detail small
) {
  font-size: var(--mn-source-size) !important;
  line-height: 1.55 !important;
}
body:is(.subpage-page, .home-page) main .hiking-meta span {
  font-size: .875rem !important;
  line-height: 1.4 !important;
}
body:is(.subpage-page, .home-page) main .beach-price-teaser {
  font-size: .9rem !important;
  line-height: 1.4 !important;
}

@media (max-width: 700px) {
  body:is(.subpage-page, .home-page) main { --mn-body-size: 1.02rem; }
  body:is(.subpage-page, .home-page) main :is(.section-title, .rubric-title) {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
  }
  body:is(.subpage-page, .home-page) main :is(h2:not([data-heading-level]), [data-heading-level="2"]) { font-size: 1.4rem !important; }
  body:is(.subpage-page, .home-page) main :is(h3:not([data-heading-level]), [data-heading-level="3"]) { font-size: 1.18rem !important; }
  body:is(.subpage-page, .home-page) main :is(h4:not([data-heading-level]), [data-heading-level="4"]) { font-size: 1.05rem !important; }
}
