/* ==============================================================================
   HERO BLOCK
   ============================================================================== */

.block-hero {
  display: grid;
  gap: var(--spacing-lg);
}

.hero__media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
}

.hero__copy h1 {
  font-size: var(--font-size-hero);
  margin-bottom: var(--spacing-sm);
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

/* Side by side once there is room for the image not to crowd the copy. */
@media (min-width: 768px) {
  .block-hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

/* The hero's title is set in Fraunces, the face of the AurisPass name
   (03-components/brand.css loads it, ADR-039), in the ink of the brand
   (--wordmark-ink, which turns to the theme's light text in dark mode).
   Fraunces is served at weight 650 only, so the title asks for exactly
   that and the browser never synthesises a bold. */
.hero__copy h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--wordmark-ink);
}

/* A hero without an image (block-hero--text, the opening of the root) is
   the title and the subtitle centred on their own, at a reading width,
   with some air above and below so it still reads as the page's banner.
   It stays one column at every width: there is no media to sit beside. */
.block-hero--text {
  display: block;
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.block-hero--text .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}
