/* Hero scene: the yellow hero band is the golden hour sky of Pip's world.
   Hills and a garden road close the band, the pod car drives along the road,
   and a big moon sits just behind the example card. */

.hero-band { overflow: hidden; }
.site-header { position: relative; z-index: 2; }

.hero {
  position: relative;
  z-index: 1;
  padding: 36px var(--gutter) 0;
  align-items: flex-start;
}
.hero__copy { padding-top: 40px; }
.hero__art { position: relative; left: -44px; margin-top: 64px; }

/* The moon: part of the background sky (no outline), large, with only a little of it
   tucked behind the card's top right corner. */
.hero__moon {
  position: absolute;
  z-index: 0;
  top: -96px;
  right: -204px;
  width: 300px;
  height: auto;
  max-width: none;
}
.clip { position: relative; z-index: 2; }
.day-card { position: relative; z-index: 1; }

/* Hills, road and car. The strip is the bottom edge of the band. */
.hero-scene {
  position: relative;
  height: 300px;
  margin-top: -120px;
  pointer-events: none;
}
.hero-scene__hills {
  position: absolute;
  bottom: 0;
  left: calc(50% - 1600px);
  width: 3200px;
  max-width: none;
  height: 300px;
}
.hero-scene__car {
  position: absolute;
  bottom: 30px;
  left: calc(50% - 236px);
  width: 310px;
  height: auto;
}

/* Very wide screens: the landscape stretches so it always reaches both edges. */
@media (min-width: 3200px) {
  .hero-scene__hills { left: 0; width: 100%; }
}

/* Tight two column widths: pull the card in so the moon stays on screen. */
@media (min-width: 980px) and (max-width: 1199px) {
  .hero__art { left: -84px; }
}

/* Narrower than the two column layout: text, then card, then the scene. */
@media (max-width: 979px) {
  .hero { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 96px; }
  .hero__copy { flex: none; padding-top: 0; }
  .hero__art { left: -30px; margin-top: 0; flex: none; align-self: center; width: 100%; max-width: 400px; }
  .hero__moon { top: -104px; right: -120px; width: 230px; }
  .hero-scene { margin-top: -28px; }
  .hero-scene__car { left: calc(50% - 150px); }
}

/* Phones */
@media (max-width: 539px) {
  .hero__art { left: 0; }
  .hero__moon { top: -92px; right: -48px; width: 170px; }
  .clip { margin-left: -14px; transform-origin: 0 50%; transform: rotate(-4deg) scale(0.84); }
  .hero-scene { height: 240px; margin-top: 10px; }
  .hero-scene__hills { width: 2560px; height: 240px; left: calc(50% - 1380px); }
  .hero-scene__car { width: 290px; bottom: 24px; left: calc(50% - 128px); }
}

/* Card lines break evenly, never one word alone on the last line. */
.day-card .note__text { text-wrap: balance; }
