/* Bloomclicks display-heading refinement — inspired by the supplied reference.
   Scope: primary page and section headings only. Body copy, cards, metadata,
   navigation, controls and footer typography intentionally remain unchanged. */
:root {
  --bc-display-impact: "Archivo Black", "Arial Black", Impact, sans-serif;
}

body main :is(h1, h2) {
  font-family: var(--bc-display-impact) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: -0.043em !important;
  line-height: 0.94 !important;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  font-synthesis: none;
}

/* Preserve the existing page-specific font sizes and color treatments while
   making the display face consistent across the named sections. */
body main h1 {
  letter-spacing: -0.047em !important;
  line-height: 0.91 !important;
}

body main h2 {
  letter-spacing: -0.042em !important;
  line-height: 0.94 !important;
}

body main :is(h1, h2) :is(span, em, strong) {
  font-family: inherit !important;
  font-weight: inherit;
  text-transform: inherit;
}

/* Prevent the heavier uppercase face from causing narrow-screen collisions. */
@media (max-width: 900px) {
  body main :is(h1, h2) {
    letter-spacing: -0.038em !important;
    line-height: 0.97 !important;
    text-wrap: pretty;
  }
}

@media (max-width: 600px) {
  body main h1 {
    letter-spacing: -0.034em !important;
    line-height: 0.98 !important;
    overflow-wrap: break-word;
  }
  body main h2 {
    letter-spacing: -0.033em !important;
    line-height: 1.0 !important;
    overflow-wrap: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  body main :is(h1, h2) { scroll-behavior: auto; }
}
