:root {
  --ink: #0b0807;
  --paper: #eee8dc;
  --line: rgba(45, 25, 13, 0.22);
  --muted: #766b61;
  --accent: #d95c16;
}

::selection {
  background: #d95c16;
  color: #0b0807;
}

.collection-halloween {
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 92, 22, 0.08), transparent 23rem),
    var(--paper);
}

.collection-halloween .hero,
.collection-halloween .palette,
.collection-halloween .collection-index,
.collection-halloween footer {
  background-color: var(--ink);
}

.collection-halloween .hero-copy {
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 72%, rgba(217, 92, 22, 0.17), transparent 20rem),
    linear-gradient(145deg, #0b0807, #160c08 70%, #241107);
}

.collection-halloween .hero-copy::before,
.collection-halloween .palette::before,
.collection-halloween .collection-gallery::before {
  position: absolute;
  z-index: -1;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  background-image:
    repeating-radial-gradient(circle at 100% 0%, transparent 0 9%, rgba(255, 255, 255, 0.07) 9.15% 9.45%, transparent 9.6% 16%),
    repeating-conic-gradient(from 0deg at 100% 0%, transparent 0 14deg, rgba(255, 255, 255, 0.055) 14.4deg 15deg, transparent 15.4deg 30deg);
  content: "";
  pointer-events: none;
}

.collection-halloween .hero-copy::before {
  top: 0;
  right: 0;
}

.collection-halloween .hero-copy::after {
  border-color: rgba(217, 92, 22, 0.36);
  border-radius: 48% 52% 46% 54%;
}

.collection-halloween .hero h1 {
  font-size: clamp(48px, 5.15vw, 106px);
}

.collection-halloween .signature {
  color: #d95c16;
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 600;
}

.collection-halloween .hero-media img {
  object-position: center 42%;
}

.collection-halloween .hero-media::after {
  background:
    linear-gradient(90deg, rgba(11, 8, 7, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 28%, transparent 70%, rgba(0, 0, 0, 0.54));
}

.collection-halloween .story h2,
.collection-halloween .section-heading h2,
.collection-halloween .palette h2,
.collection-halloween .gallery-heading h2,
.collection-halloween .collection-index__heading h2 {
  text-wrap: balance;
}

.collection-halloween .campaign-card img,
.collection-halloween .gallery-card img,
.collection-halloween .look-card img {
  background: #160c08;
}

.collection-halloween .palette {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(97, 53, 140, 0.16), transparent 26rem),
    linear-gradient(135deg, #0b0807, #1c0d07);
}

.collection-halloween .palette::before {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.collection-halloween .swatches li::before {
  box-shadow: 0 0 32px color-mix(in srgb, var(--swatch), transparent 55%);
}

.collection-halloween .collection-gallery {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.collection-halloween .collection-gallery::before {
  top: 0;
  right: 0;
  z-index: 0;
  filter: invert(1);
  opacity: 0.18;
}

.collection-halloween .gallery-heading,
.collection-halloween .gallery-shell {
  position: relative;
  z-index: 1;
}

.halloween-looks {
  min-height: auto;
  padding-bottom: clamp(90px, 10vw, 170px);
  background:
    radial-gradient(circle at 12% 100%, rgba(217, 92, 22, 0.13), transparent 28rem),
    #0b0807;
}

.looks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(50px, 7vw, 110px);
  background: rgba(255, 255, 255, 0.18);
  border-block: 1px solid rgba(255, 255, 255, 0.18);
}

.look-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: #100d0c;
  color: #fff;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  overflow: hidden;
}

.look-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 450ms ease;
}

.look-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 3, 3, 0.92));
  content: "";
  pointer-events: none;
}

.look-card > span {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 24px;
  left: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: end;
}

.look-card small,
.look-card em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.look-card strong {
  justify-self: end;
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.look-card em {
  grid-column: 2;
  justify-self: end;
}

.look-card:hover img,
.look-card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.look-card:focus-visible {
  outline: 2px solid #d95c16;
  outline-offset: -4px;
}

.collection-halloween footer {
  border-top-color: rgba(217, 92, 22, 0.32);
}

@media (max-width: 980px) {
  .looks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .collection-halloween .hero h1 {
    font-size: clamp(44px, 13.4vw, 66px);
  }

  .collection-halloween .hero-copy::before {
    width: 72vw;
  }

  .collection-halloween .hero-media img {
    object-position: center 38%;
  }

  .collection-halloween .collection-gallery::before {
    width: 72vw;
  }

  .halloween-looks {
    padding-top: 72px;
  }

  .looks-grid {
    display: flex;
    gap: 12px;
    margin-top: 48px;
    padding: 0 24px 8px;
    background: transparent;
    border: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .looks-grid::-webkit-scrollbar {
    display: none;
  }

  .look-card {
    width: calc(100vw - 66px);
    flex: 0 0 calc(100vw - 66px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    scroll-snap-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .look-card img {
    transition-duration: 1.2s;
  }
}
