.hero-layout { container-type: inline-size; }

.home-page .hero {
  /* Preserve the section and logo dimensions from the original two-column layout. */
  --content-width: min(var(--wrap), calc(100cqi - clamp(2rem, 8vw, 7.5rem)));
  --column-gap: clamp(.8rem, 4.4vw, 3.8rem);
  --art-inset: clamp(.45rem, 2vw, 1.45rem);
  --art-width: calc((var(--content-width) - var(--column-gap)) * .55 - 2 * var(--art-inset));
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: max(clamp(29rem, 51vw, 38rem), calc(8rem + 2 * var(--art-inset) + var(--art-width) / 1.21));
  padding-block: 1.5rem;
  overflow: hidden;
  background-color: #090e23;
  background-image:
    linear-gradient(#7195ff0d 1px, transparent 1px),
    linear-gradient(90deg, #7195ff0d 1px, transparent 1px),
    radial-gradient(ellipse at 52% 51%, #173f62 0%, transparent 54%),
    radial-gradient(ellipse at 19% 91%, #36205e 0%, transparent 59%);
  background-size: 1.15rem 1.15rem, 1.15rem 1.15rem, 100% 100%, 100% 100%;
}
#hex-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.home-page .hero h1 {
  position: relative;
  width: min(27rem, calc((var(--art-width) - 2px) * .77));
}
.home-page .hero h1 img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 2rem #83f9ef50);
}

@media (max-width: 48rem) {
  .home-page .hero {
    --art-width: min(30rem, var(--content-width));
    --vertical-space: 14.93rem;
    min-height: calc(var(--vertical-space) + var(--column-gap) + var(--art-width) / 1.48);
  }
  .home-page .hero h1 { width: calc((var(--art-width) - 2px) * .63); }

  @container (width < 19.875rem) {
    .home-page .hero { --vertical-space: 16.63rem; }
  }
}

@media (forced-colors: active) {
  .home-page .hero { forced-color-adjust: none; }
}
