/* Styles for hero.hbs — the landing hero.
   Ported from the legacy `components/pages/home/HomeHero.vue`; the 600/1000
   breakpoints and every size below are the legacy values. */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  color: var(--gray-900);
  font-size: 24px;
  font-weight: 900;
  line-height: 39px;
  text-align: center;
}

.hero-description {
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
}

/* `.btn`/`.btn--primary` carry the shape and colour; the hero only sets the
   spacing that makes it a hero button rather than a chrome button. */
.hero-cta {
  gap: 8px;
  margin-top: 24px;
  padding: 8px 14px;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--identity);
}

.hero-poster {
  width: 100%;
  transition: opacity 200ms ease;
}

.hero-poster.is-hidden {
  opacity: 0;
}

/* Stacked on the poster and revealed only once its first frame has painted —
   fading in an empty box would blink the artwork away. */
.hero-animation {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 200ms ease;
}

.hero-animation.is-visible {
  opacity: 1;
}

@media (min-width: 600px) {
  .hero-media {
    width: 70%;
  }
}

@media (min-width: 1000px) {
  .hero {
    flex-direction: row;
  }

  .hero-content {
    align-items: start;
  }

  .hero-title {
    font-size: 36px;
    line-height: 58px;
    text-align: start;
  }

  .hero-description {
    margin-top: 16px;
    font-size: 20px;
    text-align: start;
  }

  .hero-cta {
    padding: 12px 26px;
  }

  .hero-media {
    width: 40%;
  }
}
