.collection-index-page {
  --collections-ivory: #fbf9f4;
  --collections-stone: #f2eee6;
  --collections-bronze: #9a7443;
  overflow-x: clip;
  background: var(--collections-ivory);
}

.collection-index-page main {
  overflow: clip;
}

.collections-index-hero {
  position: relative;
  min-height: clamp(40rem, 70svh, 52rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--forest);
}

.collections-index-hero > img,
.collections-index-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.collections-index-hero > img {
  object-fit: cover;
  object-position: 61% 54%;
}

.collections-index-hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 23, 24, 0.73) 0%, rgba(10, 23, 24, 0.36) 42%, rgba(10, 23, 24, 0.04) 72%),
    linear-gradient(180deg, rgba(10, 23, 24, 0.12), rgba(10, 23, 24, 0.18));
}

.collections-index-hero-copy {
  position: relative;
  z-index: 2;
  width: min(51rem, 78vw);
  padding: calc(var(--header-h) + 3rem) var(--page-x) 5rem;
}

.collections-index-hero .kicker,
.collections-index-cta .kicker {
  color: rgba(255, 255, 255, 0.78);
}

.collections-index-hero h1 {
  max-width: 50rem;
  margin: 1.15rem 0 0;
  font-size: clamp(3.4rem, 5.8vw, 5.45rem);
  line-height: 1.02;
  letter-spacing: var(--editorial-tracking);
}

.collections-index-hero-copy > p:not(.kicker) {
  max-width: 35rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.65;
}

.collections-index-button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.9rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 0;
  color: #fff;
  background: rgba(109, 77, 40, 0.78);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.collections-index-button:hover {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
}

.collections-index-hero-caption {
  position: absolute;
  z-index: 2;
  right: var(--page-x);
  bottom: 2.25rem;
  margin: 0;
  text-align: right;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collections-index-hero-caption span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.7);
}

.collections-index-intro {
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(5.5rem, 9vw, 8.5rem) var(--page-x) clamp(4.75rem, 7vw, 7rem);
  text-align: center;
}

.collections-index-intro h2 {
  margin: 1.2rem 0 0;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: var(--editorial-tracking);
}

.collections-index-intro > p:last-child {
  max-width: 52rem;
  margin: 1.7rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.8;
}

.collections-index-intro::after {
  content: "";
  width: 3rem;
  height: 1px;
  display: block;
  margin: 2.1rem auto 0;
  background: var(--collections-bronze);
}

.collections-index-section {
  padding: clamp(3.5rem, 6vw, 6rem) var(--page-x);
}

.collections-index-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.collections-index-section-head h2,
.collections-index-why > h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.collections-index-section-head > span,
.collections-index-featured-controls > span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collections-index-featured {
  padding-top: 1rem;
}

.collections-index-featured-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.collections-index-featured-controls button {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.collections-index-featured-controls button:hover {
  border-color: var(--collections-bronze);
  background: #fff;
}

.collections-index-featured-controls button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  background: transparent;
  border-color: var(--line);
}

.collections-index-featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(17rem, calc((100% - 3rem) / 4));
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.collections-index-featured-rail::-webkit-scrollbar {
  display: none;
}

.collection-index-card {
  position: relative;
  aspect-ratio: 3 / 4;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  background: var(--forest);
}

.collection-index-card img,
.collection-index-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.collection-index-card img {
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-index-card::after {
  content: "";
  background: linear-gradient(180deg, rgba(7, 16, 16, 0.02) 44%, rgba(7, 16, 16, 0.78) 100%);
}

.collection-index-card:hover img {
  transform: scale(1.02);
}

.collection-index-card-copy {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.4rem;
  left: 1.5rem;
}

.collection-index-card h3 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.7rem);
  line-height: 1.06;
}

.collection-index-card p {
  margin: 0.55rem 0 0;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.collection-index-card-arrow {
  position: absolute;
  right: 0;
  bottom: 0.08rem;
  transition: transform 180ms ease;
}

.collection-index-card:hover .collection-index-card-arrow {
  transform: translateX(0.25rem);
}

.collections-index-styles {
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

.collections-index-style-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.collections-index-style {
  min-height: 9rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid transparent;
  color: var(--ink);
  background: var(--collections-stone);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.collections-index-style:hover,
.collections-index-style[aria-pressed="true"] {
  border-color: rgba(154, 116, 67, 0.55);
  background: #fff;
}

.collections-index-style svg,
.collections-index-why svg {
  width: 2.45rem;
  height: 2.45rem;
  fill: none;
  stroke: var(--collections-bronze);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.collections-index-style span {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.collections-index-all {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.collections-index-filter-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -0.25rem 0 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--collections-bronze);
  background: var(--collections-stone);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collections-index-filter-state[hidden] {
  display: none;
}

.collections-index-filter-state button,
.collections-index-empty button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.collections-index-all-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.collections-index-all-item {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.65rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.1;
  transition: color 180ms ease, background 180ms ease;
}

.collections-index-all-item:hover {
  color: var(--collections-bronze);
  background: #fff;
}

.collections-index-all-item span:last-child {
  font-family: var(--sans);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.collections-index-all-item:hover span:last-child {
  transform: translateX(0.25rem);
}

.collections-index-empty {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.collections-index-why {
  padding: clamp(4.5rem, 7vw, 7rem) var(--page-x);
  border-top: 1px solid var(--line);
  background: #f7f3ec;
  text-align: center;
}

.collections-index-why > h2 {
  margin-bottom: 2.25rem;
}

.collections-index-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collections-index-why article {
  padding: 0.5rem clamp(1.5rem, 3vw, 3.5rem);
  border-right: 1px solid var(--line);
}

.collections-index-why article:last-child {
  border-right: 0;
}

.collections-index-why svg {
  width: 2.7rem;
  height: 2.7rem;
}

.collections-index-why h3 {
  margin: 1rem 0 0;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.1;
}

.collections-index-why p {
  max-width: 17rem;
  margin: 0.75rem auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.collections-index-cta {
  position: relative;
  min-height: clamp(29rem, 52vw, 42rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--forest);
}

.collections-index-cta > img,
.collections-index-cta-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.collections-index-cta > img {
  object-fit: cover;
  object-position: 50% 54%;
}

.collections-index-cta-shade {
  background: linear-gradient(90deg, rgba(7, 18, 18, 0.72) 0%, rgba(7, 18, 18, 0.28) 52%, rgba(7, 18, 18, 0.08) 100%);
}

.collections-index-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  padding: clamp(4rem, 8vw, 7.5rem) var(--page-x);
}

.collections-index-cta h2 {
  margin: 0.9rem 0 0;
  font-size: clamp(3.2rem, 5.6vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: var(--editorial-tracking);
}

.collections-index-cta-copy > p:not(.kicker) {
  max-width: 35rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

@media (max-width: 1050px) {
  .collections-index-featured-rail {
    grid-auto-columns: calc((100% - 2rem) / 3);
  }

  .collections-index-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collections-index-all-grid,
  .collections-index-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collections-index-why article:nth-child(2) {
    border-right: 0;
  }

  .collections-index-why article:nth-child(-n + 2) {
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--line);
  }

  .collections-index-why article:nth-child(n + 3) {
    padding-top: 2.25rem;
  }
}

@media (max-width: 760px) {
  .collections-index-hero {
    min-height: 76svh;
    align-items: flex-end;
  }

  .collections-index-hero > img {
    object-position: 66% 50%;
  }

  .collections-index-hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 20, 21, 0.16) 20%, rgba(8, 20, 21, 0.78) 82%),
      linear-gradient(90deg, rgba(8, 20, 21, 0.4), transparent 85%);
  }

  .collections-index-hero-copy {
    width: 100%;
    padding: calc(var(--header-h) + 4rem) var(--page-x) 4.75rem;
  }

  .collections-index-hero h1 {
    max-width: 22rem;
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .collections-index-hero h1 br {
    display: none;
  }

  .collections-index-hero-copy > p:not(.kicker) {
    max-width: 28rem;
    font-size: 0.94rem;
  }

  .collections-index-hero-caption {
    right: var(--page-x);
    bottom: 1.1rem;
  }

  .collections-index-intro {
    padding-top: 4.75rem;
    padding-bottom: 4.5rem;
  }

  .collections-index-intro h2 {
    font-size: clamp(2.7rem, 11vw, 3.65rem);
  }

  .collections-index-section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .collections-index-section-head {
    align-items: flex-end;
  }

  .collections-index-featured-controls > span {
    display: none;
  }

  .collections-index-featured-rail {
    margin-right: calc(var(--page-x) * -1);
    grid-auto-columns: 82vw;
    padding-right: var(--page-x);
  }

  .collections-index-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collections-index-style {
    min-height: 7.8rem;
  }

  .collections-index-all-grid {
    grid-template-columns: 1fr;
  }

  .collections-index-all-item {
    min-height: 4.9rem;
    padding: 1.15rem 1.25rem;
  }

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

  .collections-index-why-grid {
    grid-template-columns: 1fr;
  }

  .collections-index-why article,
  .collections-index-why article:nth-child(-n + 2),
  .collections-index-why article:nth-child(n + 3) {
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .collections-index-why article:first-child {
    padding-top: 0.5rem;
  }

  .collections-index-why article:last-child {
    padding-bottom: 0.5rem;
    border-bottom: 0;
  }

  .collections-index-cta {
    min-height: 38rem;
    align-items: flex-end;
  }

  .collections-index-cta > img {
    object-position: 58% 50%;
  }

  .collections-index-cta-shade {
    background: linear-gradient(180deg, rgba(7, 18, 18, 0.08) 18%, rgba(7, 18, 18, 0.8) 88%);
  }

  .collections-index-cta-copy {
    padding-bottom: 4rem;
  }

  .collections-index-cta h2 {
    font-size: clamp(3rem, 13vw, 4.3rem);
  }
}

@media (max-width: 390px) {
  .collections-index-hero-copy {
    padding-bottom: 4.2rem;
  }

  .collections-index-hero-caption {
    display: none;
  }

  .collections-index-featured-rail {
    grid-auto-columns: 84vw;
  }

  .collections-index-section-head > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-index-card img,
  .collection-index-card-arrow,
  .collections-index-button,
  .collections-index-all-item span:last-child {
    transition: none;
  }

  .collection-index-card:hover img {
    transform: none;
  }
}
