:root { --merch-backdrop: #f3efe7; }

.merch-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin: 32px 0 0;
  color: #fff;
  background: var(--green);
}
.merch-hero-copy { align-self: center; padding: clamp(24px, 5vw, 66px); }
.merch-hero .meta { color: #efd2a1; }
.merch-hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: -.045em;
}
.merch-hero p { max-width: 40ch; color: #f1eee6; }
.merch-hero-link {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid #efd2a1;
  color: #efd2a1;
  font-weight: 700;
}
.merch-hero-link:hover, .merch-hero-photo:hover { color: #fff; }
.merch-hero-photo {
  position: relative;
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-height: 370px;
  padding: 16px 18px 48px;
  color: #fff;
  background: var(--merch-backdrop);
}
.merch-hero-photo img { max-height: 315px; }
.merch-hero-photo span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 12px;
  background: #192720;
  font-size: .8rem;
  font-weight: 700;
}
.merch-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.merch-collections a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 700;
}
.merch-section { scroll-margin-top: 16px; }
.merch-section .section-head span { white-space: nowrap; font-size: .82rem; color: var(--muted); }
.merch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.merch-card { min-width: 0; border: 1px solid var(--line); background: #fffdf8; }
.merch-card a { display: block; height: 100%; }
.merch-card-photo, .merch-frame { background: var(--merch-backdrop); }
.merch-hero-photo img, .merch-card-photo img, .merch-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  mask: var(--merch-mask, none) center / 100% 100% no-repeat;
}
.merch-card-photo {
  aspect-ratio: 1.15;
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  padding: 12px;
}
.merch-card-photo img { max-height: 100%; }
.merch-card-copy { padding: 14px; }
.merch-card-copy h3 { font-size: 1.15rem; margin-bottom: 6px; }
.merch-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 18px;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 700;
}
.merch-product {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas: "images details";
  align-items: start;
  gap: clamp(20px, 5vw, 62px);
}
.merch-product-info { grid-area: details; padding-top: 12px; }
.merch-product-info h1 { margin: 9px 0 14px; font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -.04em; }
.merch-product-info dl { margin: 22px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.merch-product-info dt { font-weight: 700; font-size: .86rem; }
.merch-product-info dd { margin: 3px 0 0; color: var(--muted); }
.merch-product-info .merch-note { margin-top: 10px; color: var(--muted); font-size: .86rem; }
.merch-gallery { grid-area: images; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.merch-frame { display: grid; place-items: center; margin: 0; min-height: 120px; padding: clamp(8px, 2vw, 20px); }
.merch-frame:first-child { grid-column: 1 / -1; }
.merch-frame img { max-height: 590px; }
@media (max-width: 960px) {
  .merch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .merch-hero { grid-template-columns: 1fr; margin-top: 18px; }
  .merch-hero-photo { min-height: 265px; }
  .merch-hero-photo img { max-height: 230px; }
  .merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .merch-card-photo { padding: 8px; }
  .merch-card-copy { padding: 10px; }
  .merch-card-copy h3 { font-size: 1rem; }
  .merch-product { grid-template-columns: 1fr; grid-template-areas: "details" "images"; }
  .merch-product-info { padding-top: 0; }
}

.merch-collection-overview {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--merch-backdrop);
}
.merch-collection-overview summary {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 700;
}
.merch-collection-overview img {
  width: 100%;
  height: auto;
}
