/* Typography review using unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
 * Keep approved words, artwork, colors, surfaces, components and section order.
 */
.home-hero .home-hero-title,
.ai-hero-section .ai-hero-title {
  max-inline-size: 100%;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.contact-page-panel .contact-page-title {
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section-kicker {
  letter-spacing: .09em;
}

.home-hero .home-hero-copy,
.ai-hero-section .ai-hero-copy,
.contact-page-panel .contact-page-copy {
  line-height: 1.65;
  text-wrap: pretty;
}

/* Let the existing API example shrink with its column, not the whole page. */
main .section-shell [class~="lg:grid-cols-[0.95fr_1.05fr]"]:has(pre) > *,
main .section-shell [class~="bg-slate-950"]:has(> pre) {
  min-inline-size: 0;
  max-inline-size: 100%;
}

main .section-shell [class~="bg-slate-950"] > pre {
  max-inline-size: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

@media (min-width: 1024px) {
  main .section-shell [class~="lg:grid-cols-[0.95fr_1.05fr]"]:has(pre) {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  }
}

@media (max-width: 639px) {
  .home-hero .home-hero-title,
  .ai-hero-section .ai-hero-title {
    font-size: clamp(2rem, 8.4vw, 2.625rem);
    line-height: 1.12;
  }

  .contact-page-panel .contact-page-title {
    font-size: clamp(1.75rem, 7.3vw, 2.375rem);
    line-height: 1.16;
  }
}
