/* Page content (sections/main-page.liquid): page title with eyebrow and ornament rule, page body in .rte */

.main-page__inner { position: relative; z-index: 1; }

.main-page__header { margin-bottom: clamp(28px, 4vw, 44px); }
.main-page__title { margin: 0; }
.main-page__header .ornament-rule { margin-top: 20px; }

.main-page--space-small { padding-bottom: clamp(20px, 3vw, 36px); }
.main-page--space-none { padding-bottom: 0; }

.main-page__content {
  max-width: 72ch;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.main-page__content h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.main-page__content h3 { font-size: 1.45rem; }

/* Short introductions (centered): read like the flyer's line under the rule */
.main-page--center .main-page__content {
  max-width: 640px;
  text-align: center;
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  color: var(--c-ink-soft);
  text-wrap: balance;
}
.main-page--center .main-page__content ul li { text-align: left; }

@media (max-width: 749px) {
  .main-page__sparkles { opacity: .8; }
}
/* Short headers: the lower sparkles (3rd and 4th) would land on the intro text, so keep the top corners only */
@media (max-width: 989px) {
  .main-page__sparkles .sparkle:nth-child(n+3) { display: none; }
}

/* Last section on the page: extra room because the footer wave overlaps the bottom edge */
.content-for-layout > .shopify-section:last-child > .main-page {
  padding-bottom: calc(var(--section-space) + clamp(20px, 4vw, 56px));
}
