/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */

html,
body {
  overflow-x: clip;
}

.home-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  align-items: center;
}

.home-hero h1 {
  max-width: none;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.6vw, 6.8rem);
  font-weight: 700;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.hero-screenshot {
  width: min(100%, 23rem);
  margin: var(--space-xl) auto;
  min-width: 0;
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-card);
}

.hero-screenshot figcaption {
  max-width: 20rem;
  margin: var(--space-md) auto 0;
  color: var(--color-ink-soft);
  text-align: center;
  font-size: var(--text-sm);
}

@media (max-width: 54rem) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero .hero-copy,
  .home-hero .hero-lede {
    width: calc(100vw - 4rem);
    min-width: 0;
    max-width: 100%;
  }

  .home-hero .hero-copy p {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-screenshot {
    width: min(calc(100vw - 2.5rem), 20rem);
    grid-column: 1 / -1;
    justify-self: start;
    margin-inline: 0;
  }
}

@media (max-width: 38rem) {
  .home-hero {
    padding-top: var(--space-2xl);
  }

  .home-hero h1 {
    font-size: clamp(1.9rem, 8.8vw, 3.2rem);
  }

  .hero-screenshot {
    width: min(calc(100vw - 2.5rem), 19rem);
    margin-top: var(--space-lg);
  }
}
