/* ============================================================
   Home Page
   ============================================================ */

/* Orange base sits behind the pattern; pattern has adjustable opacity.
   Full-bleed hero — cancel .site-main padding so it touches page edges
   and the header bottom border. Purple bottom border matches header top border. */
.home-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
  margin-top:   calc(-1 * var(--site-pad-y));
  margin-left:  calc(-1 * var(--site-pad-x));
  margin-right: calc(-1 * var(--site-pad-x));
  margin-bottom: 28px;
  border-bottom: 4px solid var(--color-secondary);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/flower-pattern.png");
  background-repeat: repeat;
  opacity: var(--home-hero-pattern-opacity);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Visual column sits on top with z-index and overlaps the copy panel
   by extending past its column boundary on the right. */
.home-hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-right: -40px;
}

.home-hero-image {
  width: min(100%, 700px);
  height: auto;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.35));
}

.home-hero-copy {
  background: var(--color-tertiary);
  color: var(--color-white);
  border-radius: 4px;
  padding: 20px 20px 20px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-hero-copy h1,
.home-hero-copy p {
  color: var(--color-white);
}

.home-hero-copy h1 {
  margin-bottom: 10px;
}

.home-hero-copy p {
  margin: 0;
}

.home-comics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-comic-card {
  margin: 0;
}

.home-comic-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-comic-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}

/* ============================================================
   Home — Mobile Responsive
   ============================================================ */
@media (max-width: 767px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-hero-visual {
    margin-right: 0;
    padding: 18px 18px 0;
  }

  .home-hero-image {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .home-hero-copy {
    padding: 20px;
    border-radius: 0;
  }

  .home-comics-grid {
    grid-template-columns: 1fr;
  }
}

