/* Shared hierarchy, independent of the colour study.
   A page opening, a section heading and a heading inside a panel have
   different jobs. Script and heading form a pair, with a smaller panel pair. */
.refined-page {
  --heading-section: clamp(48px, 4.2vw, 60px);
  --heading-panel: clamp(42px, 3.5vw, 48px);
  --heading-script: 30px;
  --heading-script-panel: 28px;
  --heading-pair-gap: 12px;
  --heading-copy-gap: 26px;
}
.refined-page main :is(.home-hero, .subpage-heading) h1 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.refined-page main :is(.home-hero, .subpage-heading) h1 > span {
  font-size: .8em;
  font-weight: 350;
  line-height: inherit;
}
.refined-page main :is(.home-treatments, .home-kim-copy, .kim-desktop-scene, .home-practice, .home-faq, .about-craft, .about-visit-intro) h2 {
  font-size: var(--heading-section);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.refined-page main :is(.question-content, .contact-form, .contact-location) h2 {
  font-size: var(--heading-panel);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.refined-page main :is(.home-faq, .about-craft, .about-visit-intro, .question-content, .contact-form, .contact-location) h2 > span {
  font-size: 1em;
  font-weight: 350;
  line-height: inherit;
}
.refined-page main .home-treatments h2 > :is(.desktop-copy, .mobile-copy) {font-weight: inherit}
.refined-page main :is(.home-kim-copy, .kim-scene-heading, .home-practice-title-group) > .handwritten-intro {
  font-size: var(--heading-script);
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 var(--heading-pair-gap);
}
.refined-page main .home-practice-title-group > .practice-welcome {
  margin: var(--heading-pair-gap) 0 0;
}
.refined-page main .question-content > .question-welcome {
  font-size: var(--heading-script-panel);
  line-height: 1.25;
  margin: 0 0 var(--heading-pair-gap);
}
.refined-page main :is(.home-kim-copy, .about-craft, .question-content, .contact-location) h2 {
  margin-bottom: var(--heading-copy-gap);
}
.refined-page main .contact-form h2 {margin-bottom: 30px}
.refined-page main :is(.home-choice h3, .treatment-card h2) {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .refined-page {--heading-section: 48px; --heading-panel: 42px; --heading-script: 28px; --heading-script-panel: 26px}
}
@media (max-width: 760px) {
  .refined-page {
    --heading-section: clamp(32px, 9.75vw, 40px);
    --heading-panel: clamp(30px, 8.72vw, 36px);
    --heading-script: 26px;
    --heading-script-panel: 25px;
    --heading-pair-gap: 10px;
    --heading-copy-gap: 22px;
  }
  /* The approved short mobile title stays on one line. */
  .refined-page main .home-treatments h2 {font-size: clamp(27px, 8.5vw, 36px)}
  .refined-page main :is(.home-choice h3, .treatment-card h2) {font-size: 30px}
  .refined-page main .contact-form h2 {margin-bottom: 26px}
}
