/* Global heading rhythm safety layer — typography only. */
:root {
  --heading-leading-display: 1.15;
  --heading-leading-section: 1.16;
  --heading-leading-card: 1.18;
  --heading-leading-small: 1.20;
}

h1 {
  line-height: var(--heading-leading-display) !important;
}

h2 {
  line-height: var(--heading-leading-section) !important;
}

h3 {
  line-height: var(--heading-leading-card) !important;
}

h4,
h5,
h6,
.site-footer h2,
.home-hero__steps h2,
.philosophy-item h3 {
  line-height: var(--heading-leading-small) !important;
}

/* The footer label is 0.68rem uppercase; its accented capitals need extra ink room. */
.site-footer h2 {
  line-height: 1.30 !important;
}

/* Non-semantic editorial/display text that functions visually as a heading. */
.mobile-panel nav a,
.testimonial blockquote,
.article-lead,
.article-takeaway p {
  line-height: 1.20 !important;
}

.project-card__metrics strong,
.metric strong {
  line-height: 1.12 !important;
}

@media (max-width: 900px) {
  :root {
    --heading-leading-display: 1.16;
    --heading-leading-section: 1.18;
    --heading-leading-card: 1.20;
  }
}

@media (max-width: 520px) {
  :root {
    --heading-leading-display: 1.18;
    --heading-leading-section: 1.20;
  }
}
