@layer base, components, utilities;

@layer components {
  /* Both homes use the roomier Korean line boxes for the same layout. */
  .docs-home {
    --type-docs-home-display-line: 1.25;
    --type-docs-home-heading-line: 1.45;
    --type-docs-home-body-line: 1.6;
  }

  .docs-home .docs-home-hero h1 {
    line-height: var(--type-docs-home-display-line);
  }

  .docs-home .docs-home-lead,
  .docs-home .docs-home-grid a,
  .docs-home .docs-home-release-product h3 {
    line-height: var(--type-docs-home-body-line);
  }

  .docs-home .docs-home-section h2 {
    line-height: var(--type-docs-home-heading-line);
  }

  /* Reserve a second line where the single-column or split banner can wrap. */
  @media (max-width: 479px), (860px <= width < 1024px) {
    .docs-home .docs-home-lead {
      min-block-size: calc(2 * var(--type-body-lg-size) * var(--type-docs-home-body-line));
    }
  }
}
