/**
 * Collections index — hero background, typography, and grid card height alignment.
 */

/* ---- Hero strip height & padding ---- */
.collections-index-page-top {
  min-height: 22rem;
}

.collections-index-page-top .collections-index-hero__inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .collections-index-page-top {
    min-height: 26rem;
  }

  .collections-index-page-top .collections-index-hero__inner {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .collections-index-page-top {
    min-height: 32rem;
  }

  .collections-index-page-top .collections-index-hero__inner {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* ---- Hero vertical rhythm ---- */
.collections-index-page-top .collections-index-hero__kicker {
  margin-bottom: 1.5rem;
}

.collections-index-page-top #collections-index-hero-heading {
  margin-bottom: 1rem;
}

.collections-index-page-top .collections-index-hero__stats {
  margin-top: 2.5rem;
}

/* ---- Hero typography ---- */
.collections-index-page-top #collections-index-hero-heading {
  font-size: var(--text-4xl);
  line-height: var(--text-4xl--line-height);
  font-weight: 500;
  color: var(--brand-ink);
}

@media (min-width: 640px) {
  .collections-index-page-top #collections-index-hero-heading {
    font-size: var(--text-5xl);
    line-height: var(--text-5xl--line-height);
  }
}

.collections-index-page-top .collections-index-hero__intro {
  max-width: 26rem;
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

@media (min-width: 640px) {
  .collections-index-page-top .collections-index-hero__intro {
    max-width: 28rem;
  }
}

.collections-index-page-top .collections-index-hero__stats span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-gray-dark);
}

/* ---- Hero background image ---- */
.collections-index-page-top .collections-index-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.collections-index-page-top .collections-index-hero-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  opacity: 1;
}

@media (min-width: 1024px) {
  .collections-index-page-top .collections-index-hero-bg__img {
    object-position: center;
  }
}

.collections-index-grid {
  align-items: stretch;
}

.collections-index-grid > .collections-index-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.collections-index-card__media {
  flex-shrink: 0;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collections-index-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 9.5rem;
}

.collections-index-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 2.75rem;
}

@media (min-width: 640px) {
  .collections-index-card__title {
    min-height: 3.25rem;
  }
}

.collections-index-card__intro {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  flex: 1 1 auto;
  margin-top: auto;
  min-height: 2.5rem;
}
