@layer components {

.hero {
  position: relative;
  background-color: var(--color-bg-alt);
  z-index: 1;
}

/* Putting the background pattern in ::before allows for opacity changes that don't effect .hero content   */ 
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/assets/images/heartflower.svg') repeat;
  background-size: 8%, auto;
  opacity: 0.9;
  z-index: -1;
}


.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.hero__text {
  max-width: 520px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--brand-primary);
}

.hero__subtitle {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 1.5rem 0;
}

.hero__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

}
