
/* VOCABULARY GARDEN - HERO ART FIX */

.hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: center;
}

/* Garden illustration */
.hero .hero-family {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  overflow: visible;
  padding: 5px;
  border: 1px solid #eee7d8;
  border-radius: 17px;
  background: #fffdf6;
  box-shadow: 0 12px 30px rgba(50,65,43,.13);
  transform: rotate(-1deg);
}

.hero .hero-family img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 10px;
}

/* Diagonal vocabulary cards */
.hero .hero-art {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 350px;
  overflow: visible;
}

.hero .hero-art .hero-tile {
  box-sizing: border-box;
  transform-origin: center center;
}

/* Cat: larger card, upper left */
.hero .hero-art .tile-one {
  width: 205px;
  left: 0;
  right: auto;
  top: 28px;
  z-index: 2;
  transform: rotate(-8deg) !important;
}

/* Chick: smaller card, lower right, overlapping slightly */
.hero .hero-art .tile-two {
  width: 178px;
  left: auto;
  right: 0;
  top: 105px;
  z-index: 3;
  transform: rotate(9deg) !important;
}

.hero .hero-art .art-doodle {
  right: 4px;
  top: 10px;
  font-size: 15px;
}

.hero .hero-art .art-caption {
  left: 10px;
  bottom: 2px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr);
    gap: 22px;
  }

  .hero .hero-family {
    max-width: 340px;
    grid-column: 1;
    grid-row: 2;
  }

  .hero .hero-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    max-width: 390px;
    justify-self: center;
  }
}

@media (max-width: 650px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hero .hero-family {
    grid-column: 1;
    grid-row: auto;
    max-width: 340px;
    margin: 4px auto;
  }

  .hero .hero-art {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 390px;
    height: 320px;
    margin: 0 auto;
  }

  .hero .hero-art .tile-one {
    width: 190px;
    left: 4px;
    top: 32px;
    transform: rotate(-8deg) !important;
  }

  .hero .hero-art .tile-two {
    width: 164px;
    right: 4px;
    top: 105px;
    transform: rotate(9deg) !important;
  }
}
