/* ---- Doll Stories collection page ---- */
.ps-story-index {
  --ps-index-bg: var(--fsd-bg, #050505);
  --ps-index-surface: var(--fsd-surface, #111111);
  --ps-index-surface-soft: var(--fsd-surface-elevated, #171717);
  --ps-index-text: var(--fsd-ink, #f3ead7);
  --ps-index-muted: var(--fsd-muted, #a89878);
  --ps-index-accent: var(--fsd-accent, #c9a227);
  --ps-index-line: var(--fsd-border-subtle, rgba(201, 162, 39, .24));
  min-height: 60vh;
  padding: clamp(1.5rem, 4vw, 3.75rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 78% 0%, rgba(201, 162, 39, .08), transparent 30rem),
    var(--ps-index-bg);
  color: var(--ps-index-text);
}

.ps-story-index__crumb {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--ps-index-muted);
  font-size: .78rem;
  letter-spacing: .04em;
}

.ps-story-index__crumb a {
  color: inherit;
  text-decoration: none;
}

.ps-story-index__crumb a:hover,
.ps-story-index__crumb a:focus-visible {
  color: var(--ps-index-accent);
}

.ps-story-index__hero {
  position: relative;
  max-width: 800px;
  margin-bottom: clamp(2.25rem, 6vw, 5rem);
  padding-left: clamp(1rem, 2vw, 1.5rem);
}

.ps-story-index__hero::before {
  position: absolute;
  inset: .2rem auto .2rem 0;
  width: 2px;
  background: linear-gradient(var(--ps-index-accent), rgba(201, 162, 39, .1));
  content: '';
}

.ps-story-index__eyebrow,
.ps-story-feature__label,
.ps-story-card__label {
  margin: 0 0 .65rem;
  color: var(--ps-index-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ps-story-index__hero h1 {
  margin: 0;
  color: var(--ps-index-text);
  font-size: clamp(2.35rem, 7vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
}

.ps-story-index__intro {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--ps-index-muted);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
}

.ps-story-index__count {
  margin: 1rem 0 0;
  color: var(--ps-index-accent);
  font-size: .76rem;
}

.ps-story-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  min-height: 430px;
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
  border: 1px solid var(--ps-index-line);
  background: var(--ps-index-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.ps-story-feature__media,
.ps-story-card__media {
  display: block;
  overflow: hidden;
  background: #0b0b0b;
}

.ps-story-feature__media img,
.ps-story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.ps-story-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 4rem);
}

.ps-story-feature__body h2,
.ps-story-library__heading h2,
.ps-story-card h3,
.ps-story-index__empty h2 {
  color: var(--ps-index-text);
  font-weight: 500;
}

.ps-story-feature__body h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.12;
}

.ps-story-feature__body h2 a,
.ps-story-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ps-story-feature__body > p:not(.ps-story-feature__label) {
  margin: 0;
  color: var(--ps-index-muted);
  line-height: 1.8;
}

.ps-story-feature__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.ps-story-index .ps-story-index__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 44px;
  padding: .7rem 1.2rem;
  border: 1px solid var(--ps-index-accent);
  background: transparent;
  color: var(--ps-index-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.ps-story-index .ps-story-index__button:hover,
.ps-story-index .ps-story-index__button:focus-visible {
  background: var(--ps-index-accent);
  color: #080808;
}

.ps-story-index__product-link,
.ps-story-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ps-index-muted);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}

.ps-story-index__product-link:hover,
.ps-story-card__link:hover,
.ps-story-index__product-link:focus-visible,
.ps-story-card__link:focus-visible {
  color: var(--ps-index-accent);
}

.ps-story-library__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ps-index-line);
}

.ps-story-library__heading .ps-story-index__eyebrow {
  margin-bottom: 0;
}

.ps-story-library__heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.ps-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.ps-story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--ps-index-line);
  background: var(--ps-index-surface);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.ps-story-card__media {
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--ps-index-line);
}

.ps-story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.ps-story-card h3 {
  margin: 0 0 .85rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.35;
}

.ps-story-card__excerpt {
  display: -webkit-box;
  margin: 0 0 1.25rem;
  overflow: hidden;
  color: var(--ps-index-muted);
  font-size: .85rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ps-story-card__link {
  margin-top: auto;
  color: var(--ps-index-accent);
}

.ps-story-feature:hover .ps-story-feature__media img,
.ps-story-card:hover .ps-story-card__media img {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.ps-story-card:hover {
  transform: translateY(-3px);
  border-color: var(--ps-index-accent);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

.ps-story-index__empty {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem;
  border: 1px solid var(--ps-index-line);
  background: var(--ps-index-surface);
  text-align: center;
}

.ps-story-index__empty > i {
  display: block;
  margin-bottom: 1rem;
  color: var(--ps-index-accent);
  font-size: 2.25rem;
}

.ps-story-index__empty h2 {
  margin-bottom: .75rem;
}

.ps-story-index__empty p {
  margin: 0 0 1.5rem;
  color: var(--ps-index-muted);
}

.ps-story-index__pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.ps-story-index__pagination .pagination {
  margin-bottom: 0;
}

.ps-story-index__pagination .page-link {
  border-color: var(--ps-index-line);
  background: var(--ps-index-surface);
  color: var(--ps-index-muted);
}

.ps-story-index__pagination .page-item.active .page-link,
.ps-story-index__pagination .page-link:hover {
  border-color: var(--ps-index-accent);
  background: var(--ps-index-accent);
  color: #080808;
}

@media (max-width: 991.98px) {
  .ps-story-feature {
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
  }

  .ps-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ps-story-feature {
    grid-template-columns: 1fr;
  }

  .ps-story-feature__media {
    aspect-ratio: 16 / 10;
  }

  .ps-story-feature__body {
    padding: 1.4rem;
  }

  .ps-story-library__heading {
    display: block;
  }

  .ps-story-library__heading .ps-story-index__eyebrow {
    margin-bottom: .45rem;
  }
}

@media (max-width: 575.98px) {
  .ps-story-index {
    padding-top: 1.25rem;
  }

  .ps-story-index__crumb {
    margin-bottom: 2rem;
  }

  .ps-story-index__hero {
    margin-bottom: 2.25rem;
  }

  .ps-story-index__hero h1 {
    font-size: clamp(2.2rem, 15vw, 3.5rem);
  }

  .ps-story-grid {
    grid-template-columns: 1fr;
  }

  .ps-story-feature {
    margin-bottom: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-story-feature__media img,
  .ps-story-card,
  .ps-story-card__media img {
    transition: none;
  }

  .ps-story-card:hover,
  .ps-story-feature:hover .ps-story-feature__media img,
  .ps-story-card:hover .ps-story-card__media img {
    transform: none;
  }
}
