.home-page {
  --sky: #fbc10a;
  --ocean: #255e88;
  --deep-ocean: #173f61;
  background: var(--sky);
  color: var(--deep-ocean);
}

@media (color-gamut: p3) {
  .home-page {
    --sky: color(display-p3 0.94902 0.76471 0.26667);
  }
}

.home-hero {
  --poster-width: min(65vw, 102svh, 62rem);
  --water-width: calc((100vw - var(--poster-width)) / 2);
  --horizon-height: calc(var(--poster-width) * 284 / 1320);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-block-size: 100svh;
  overflow: clip;
}

.home-copy {
  --side-margin: clamp(1.25rem, 4.5vw, 4.75rem);
  --clearance: clamp(.875rem, 1.5vw, 1.5rem);
  --sky-edge: calc(50vw - var(--poster-width) * .375);
  grid-area: 1 / 1;
  z-index: 1;
  align-self: end;
  justify-self: start;
  /* Reserva el espacio de cielo a la izquierda del sol y por encima del horizonte. */
  inline-size: min(27rem, calc(var(--sky-edge) - var(--side-margin) - var(--clearance)));
  margin-inline-start: var(--side-margin);
  margin-block-end: calc(var(--horizon-height) + clamp(1.5rem, 3.9svh, 3rem));
}

.home-copy h1 {
  margin: 0;
  color: var(--ocean);
  font-family: var(--display);
  font-size: clamp(2rem, 3.65vw, 4rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.home-copy h1 span {
  white-space: nowrap;
}

.home-bio {
  display: grid;
  gap: .375rem;
  max-inline-size: 26ch;
  margin-block-start: 1rem;
  font-size: clamp(1.125rem, 1.75vw, 1.5rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.home-bio p {
  margin: 0;
}

.home-poster {
  position: relative;
  grid-area: 1 / 1;
  isolation: isolate;
  align-self: end;
  justify-self: center;
  inline-size: var(--poster-width);
  margin: 0;
}

.home-poster img {
  position: relative;
  inline-size: 100%;
  /* Excluye el bloque de información impreso en el afiche original. */
  clip-path: polygon(0 0, 55% 0, 55% 16.5%, 64.4% 16.5%, 64.4% 26.5%, 69% 26.5%, 69% 30.7%, 100% 30.7%, 100% 100%, 0 100%);
}

.home-water {
  position: absolute;
  inset-block-end: 0;
  block-size: calc(var(--horizon-height) + 2px);
  overflow: hidden;
}

.home-water--left {
  inset-inline-end: calc(100% - 3px);
  inline-size: calc(var(--water-width) + 3px);
  transform: scaleX(-1);
}

.home-water--right {
  --blend: 1.5rem;
  z-index: 1;
  inset-inline-start: calc(100% - var(--blend));
  inline-size: calc(var(--water-width) + var(--blend));
  mask-image: linear-gradient(to right, transparent, black var(--blend));
}

.home-water::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  /* Reutiliza el agua fuera del sol y conserva la altura del horizonte. */
  inline-size: calc(1320 / 176 * 100%);
  block-size: calc(var(--poster-width) * 1263 / 1320);
  background: url("afiche-conconcierto.png") left bottom / 100% 100% no-repeat;
}

.home-water--right::before {
  inset-inline-start: calc(-36 / 140 * 100%);
  inline-size: calc(1320 / 140 * 100%);
}

@media (max-width: 50rem), (max-height: 27rem) {
  .home-hero {
    --poster-width: min(100vw, 35rem);
    grid-template-rows: minmax(min-content, 1fr) auto;
  }

  .home-copy {
    align-self: center;
    justify-self: center;
    inline-size: min(90%, 35rem);
    margin: 0;
    padding: clamp(1.5rem, 6vw, 3rem) 0 .5rem;
  }

  .home-copy h1 {
    font-size: clamp(2rem, 8.5vw, 3.75rem);
  }

  .home-bio {
    margin-block-start: .65rem;
  }

  .home-poster {
    grid-area: 2 / 1;
  }
}

@media (max-width: 35rem) {
  .home-water {
    display: none;
  }
}
