/* ===========================================================
   NOVELLO STONE — Refined responsive editorial type scale

   Keeps the approved typefaces and material treatments intact while
   preventing display copy from overpowering wide and ultra-wide screens.
   The ranges step down deliberately for tablet and phone viewports so the
   same hierarchy and line rhythm survive at every practical screen size.
   =========================================================== */

:root {
  --type-hero-title: clamp(4.15rem, 6.4vw, 7.1rem);
  --type-page-title: clamp(3.7rem, 5.1vw, 6.2rem);
  --type-long-title: clamp(3.55rem, 4.65vw, 5.6rem);
  --type-section-title: clamp(2.45rem, 3.55vw, 4.25rem);
  --type-closing-title: clamp(2.65rem, 4vw, 4.6rem);
  --type-editorial-lead: clamp(1.45rem, 2.15vw, 2.2rem);
}

body[data-page] h1 {
  font-size: var(--type-page-title);
  line-height: 0.96;
}

body[data-page] h2 {
  font-size: var(--type-section-title);
  line-height: 1;
}

body[data-page="home"] .hero h1 {
  max-width: 860px;
  font-size: var(--type-hero-title);
  line-height: 1;
}

body[data-page="about"] .about-intro h1,
body[data-page="our-story"] .about-intro h1,
body[data-page="contact"] .contact-info h1 {
  font-size: var(--type-long-title);
  line-height: 0.98;
}

.page-header h1,
.material-hero h1 {
  max-width: 940px;
}

.intro-strip p {
  font-size: var(--type-editorial-lead);
  line-height: 1.24;
}

.faq-section h2,
.story-pricing-section h2,
.story-closing h2 {
  font-size: var(--type-closing-title);
  line-height: 1;
}

/* Medium laptops and landscape tablets retain confident display type
   without inheriting the larger desktop interpolation. */
@media (max-width: 1180px) {
  :root {
    --type-hero-title: clamp(3.8rem, 7.8vw, 6rem);
    --type-page-title: clamp(3.35rem, 6.5vw, 5.1rem);
    --type-long-title: clamp(3.2rem, 6vw, 4.8rem);
    --type-section-title: clamp(2.3rem, 4.6vw, 3.65rem);
    --type-closing-title: clamp(2.5rem, 5vw, 3.9rem);
    --type-editorial-lead: clamp(1.4rem, 2.75vw, 2rem);
  }
}

/* Portrait tablets: preserve readable line lengths and reduce jumps when
   the navigation collapses. */
@media (max-width: 960px) {
  :root {
    --type-hero-title: clamp(3.45rem, 9vw, 5rem);
    --type-page-title: clamp(3.1rem, 7.8vw, 4.55rem);
    --type-long-title: clamp(2.95rem, 7.3vw, 4.3rem);
    --type-section-title: clamp(2.2rem, 5.7vw, 3.35rem);
    --type-closing-title: clamp(2.35rem, 6.2vw, 3.55rem);
    --type-editorial-lead: clamp(1.35rem, 3.5vw, 1.85rem);
  }

  .page-header h1,
  .material-hero h1,
  body[data-page="home"] .hero h1 {
    max-width: 13ch;
  }
}

/* Phones: use a compact, fluid scale that remains editorial without
   producing single-word lines or clipped italic flourishes. */
@media (max-width: 720px) {
  :root {
    --type-hero-title: clamp(2.95rem, 12.4vw, 4.15rem);
    --type-page-title: clamp(2.72rem, 10.8vw, 3.65rem);
    --type-long-title: clamp(2.62rem, 10.25vw, 3.5rem);
    --type-section-title: clamp(2.08rem, 8.6vw, 3rem);
    --type-closing-title: clamp(2.2rem, 9.2vw, 3.15rem);
    --type-editorial-lead: clamp(1.3rem, 5.8vw, 1.72rem);
  }

  body[data-page] h1,
  body[data-page] h2,
  body[data-page="home"] .hero h1,
  body[data-page="about"] .about-intro h1,
  body[data-page="our-story"] .about-intro h1,
  body[data-page="contact"] .contact-info h1 {
    letter-spacing: -0.018em;
  }

  .page-header h1,
  .material-hero h1,
  body[data-page="home"] .hero h1 {
    max-width: 100%;
  }
}

/* Short landscape screens need less vertical display mass even when their
   width would otherwise select a desktop size. */
@media (min-width: 900px) and (max-height: 760px) {
  :root {
    --type-hero-title: clamp(3.6rem, 6vw, 5.7rem);
    --type-page-title: clamp(3.25rem, 4.8vw, 4.9rem);
    --type-long-title: clamp(3.1rem, 4.4vw, 4.55rem);
    --type-section-title: clamp(2.3rem, 3.35vw, 3.55rem);
  }
}

