/*
  Layout-only pass.
  The approved background artwork, snowfall, palette, portrait, and lower-page
  visual system remain defined in styles.css without replacement.
*/

.hero {
  height: 100svh;
  min-height: 680px;
  max-height: 940px;
}

.hero-content {
  grid-template-columns: minmax(350px, .86fr) minmax(0, 1.14fr);
  grid-template-areas: "portrait copy";
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding: 7.2rem 0 2.5rem;
}

.homer-portrait {
  grid-area: portrait;
  align-self: start;
  justify-self: start;
  width: min(100%, 540px);
  margin: 0;
  transform: none;
}

.hero-copy {
  grid-area: copy;
  align-self: start;
  max-width: 690px;
  padding-top: 1.2rem;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.6rem, 6.4vw, 6.6rem);
  line-height: .88;
}

.hero-intro {
  max-width: 640px;
  margin-bottom: 1.15rem;
  font-size: 1rem;
  line-height: 1.58;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  width: min(100%, 650px);
  margin-top: 0;
}

.magic-button {
  min-width: 0;
  min-height: 62px;
  padding: .7rem .9rem;
  border-radius: .9rem;
}

.magic-button-note {
  color: #2d210b;
  background: linear-gradient(145deg, #f7e5b2, #d7a84d);
  border-color: rgba(255, 240, 193, .8);
}

.magic-button-calendar {
  background: linear-gradient(145deg, rgba(42, 102, 109, .92), rgba(10, 50, 60, .95));
}

.scroll-cue {
  bottom: .65rem;
}

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: minmax(310px, .8fr) minmax(0, 1.2fr);
    gap: 1.5rem;
  }

  h1 {
    font-size: clamp(3.2rem, 6.2vw, 5rem);
  }
}

@media (max-width: 980px) {
  .hero {
    height: 100svh;
    min-height: 700px;
  }

  .hero-content {
    grid-template-columns: minmax(245px, .82fr) minmax(0, 1.18fr);
    min-height: 100svh;
    padding: 6.5rem 0 1.25rem;
  }

  .hero-copy {
    padding-top: .35rem;
  }

  .hero-intro {
    font-size: .9rem;
    line-height: 1.48;
  }

  .magic-button {
    min-height: 56px;
    padding: .6rem .7rem;
    font-size: .8rem;
  }

  .magic-button small {
    font-size: .58rem;
  }

  .button-flake {
    font-size: 1.35rem;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    height: 100svh;
    min-height: 568px;
    max-height: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "copy";
    align-content: start;
    gap: .35rem;
    min-height: 100svh;
    padding: 4.8rem 0 .6rem;
    text-align: left;
  }

  .homer-portrait {
    order: initial;
    justify-self: start;
    width: min(74vw, 285px);
    transform: none;
  }

  .homer-portrait figcaption {
    right: -.65rem;
    bottom: 4%;
    padding: .45rem .7rem .5rem;
  }

  .homer-portrait figcaption span {
    font-size: .95rem;
  }

  .homer-portrait figcaption small {
    font-size: .5rem;
  }

  .hero-copy {
    order: initial;
    max-width: none;
    padding-top: 0;
    text-align: left;
  }

  .kicker {
    margin-bottom: .3rem;
    font-size: .6rem;
  }

  h1 {
    margin-bottom: .55rem;
    font-size: clamp(2.65rem, 12vw, 3.5rem);
    line-height: .86;
  }

  .hero-intro {
    margin: 0 0 .65rem;
    font-size: .82rem;
    line-height: 1.42;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    width: 100%;
  }

  .magic-button {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    gap: .45rem;
    padding: .45rem .55rem;
    font-size: .73rem;
  }

  .magic-button small {
    display: none;
  }

  .button-flake {
    font-size: 1.05rem;
  }
}

@media (max-width: 440px) and (max-height: 680px) {
  .site-header {
    padding-top: .65rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  .nav-call {
    padding: .45rem .7rem;
    font-size: .74rem;
  }

  .hero-content {
    gap: .15rem;
    padding-top: 3.9rem;
    padding-bottom: .35rem;
  }

  .homer-portrait {
    width: min(66vw, 220px);
  }

  .homer-portrait figcaption {
    padding: .32rem .5rem .36rem;
  }

  .homer-portrait figcaption span {
    font-size: .8rem;
  }

  .homer-portrait figcaption small {
    display: none;
  }

  .kicker {
    display: none;
  }

  h1 {
    margin-bottom: .35rem;
    font-size: clamp(2.25rem, 11.5vw, 2.7rem);
    line-height: .84;
  }

  .hero-intro {
    margin-bottom: .4rem;
    font-size: .74rem;
    line-height: 1.32;
  }

  .hero-actions {
    gap: .35rem;
  }

  .magic-button {
    min-height: 46px;
    font-size: .67rem;
  }
}
