/* Work and Supply Co. share the printed index treatment. */
.work-portfolio,
.supply-collection {
  --catalog-paper: #f4f0e9;
  --catalog-ink: #201e1b;
  --catalog-muted: #575047;
  --catalog-rule: #c9c0b2;
  background: var(--catalog-paper);
  color: var(--catalog-ink);
}

.showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(235px, .65fr);
  align-items: end;
  gap: 1.15rem 2.5rem;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 2px solid currentColor;
}

.showcase-kicker,
.collection-count,
.artwork-caption > span,
.monthly-date,
.monthly-art-bar,
.product-category,
.product-image > span,
.supply-photo-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.showcase-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.showcase-kicker > span:first-child {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 2rem;
  padding: .18rem .35rem;
  color: #fff;
  background: var(--red);
}

.showcase-heading .display {
  margin-top: .85rem;
  font-size: clamp(1.9rem, 4.7vw, 4.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

.showcase-heading .display > span,
.archive-heading .display > span {
  color: var(--red);
}

.showcase-heading > p,
.archive-heading > p {
  max-width: 36ch;
  color: var(--catalog-muted);
}

.collection-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1.2rem;
  margin: 1rem 0 clamp(1.1rem, 3vw, 2.3rem);
}

.collection-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.collection-filter-options button {
  min-height: 44px;
  border: 1px solid var(--catalog-rule);
  border-radius: 3px;
  padding: .5rem .85rem;
  font-size: .88rem;
  font-weight: 700;
  transition: color .15s, background-color .15s, border-color .15s;
}

.collection-filter-options button:hover {
  border-color: var(--catalog-ink);
}

.collection-filter-options button[aria-pressed="true"] {
  background: var(--catalog-ink);
  color: #fff;
  border-color: var(--catalog-ink);
}

.collection-count {
  color: var(--catalog-muted);
}

.work-portfolio :focus-visible,
.supply-collection :focus-visible {
  outline-color: var(--red);
}

/* November feature */
.monthly-feature {
  border-block: 1px solid #5c2831;
  background:
    radial-gradient(ellipse at 81% 56%, #511420 0%, transparent 53%),
    repeating-linear-gradient(145deg, #ffffff05 0 1px, transparent 1px 24px),
    #211719;
}

.monthly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.8rem, 5vw, 5rem);
  align-items: center;
}

.monthly-copy .tag { color: #f1dfd6; }
.monthly-date { color: var(--gold-bright); margin-top: .4rem; }
.monthly-copy h2 {
  margin: 1.05rem 0 1.25rem;
  font-size: clamp(2.6rem, 6.3vw, 5.65rem);
}
.monthly-desc { max-width: 40ch; color: #e4d9d5; margin-bottom: 1.4rem; }
.monthly-copy .link-arrow { display: inline-flex; align-items: center; gap: .6rem; }
.monthly-art {
  display: block;
  width: min(100%, 425px);
  margin-inline: auto;
  padding: .48rem;
  background: #191414;
  color: #f8efe7;
  border: 1px solid #7d4d52;
  box-shadow: 10px 10px 0 #100e0e;
  text-decoration: none;
  cursor: zoom-in;
  transition: border-color .18s, transform .18s;
}
.monthly-art:hover { transform: translateY(-3px); border-color: var(--gold); }
.monthly-art img { width: 100%; height: auto; }
.monthly-art-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .34rem .25rem;
  color: #efdad1;
}
.monthly-art-bar:last-child { padding-block: .48rem .2rem; }
.monthly-art-bar:last-child > span:last-child { color: var(--gold-bright); font-size: 1rem; }

/* Barton project and portfolio archive */
.work-portfolio { padding-top: clamp(3rem, 6vw, 5.5rem); }
.barton-collection {
  display: grid;
  grid-template:
    "lead intro" auto
    "lead posters" 1fr / minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.3rem, 3vw, 2.4rem);
  padding: clamp(1.15rem, 3vw, 2.35rem);
  border: 1px solid #5a2d32;
  background:
    radial-gradient(ellipse at 0% 0%, #45151d, transparent 64%),
    repeating-linear-gradient(145deg, #ffffff06 0 1px, transparent 1px 24px),
    #1c1718;
  color: #fff6ef;
}

.barton-intro { grid-area: intro; }
.barton-intro .showcase-kicker { color: #e1ccc1; }
.barton-season {
  color: #ffe1ae;
  padding-left: .65rem;
  border-left: 1px solid #815e5a;
}

.barton-intro h3 {
  margin: .9rem 0 1rem;
  font-size: clamp(1.6rem, 3.45vw, 3.35rem);
  line-height: 1.04;
}
.barton-intro h3 em {
  color: #f1c988;
  transform: none;
  text-shadow: none;
}
.barton-intro > p:last-child { max-width: 44ch; color: #e0cdc5; }

.barton-posters {
  grid-area: posters;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: .8rem;
}

.artwork-link {
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}
.artwork-lead { grid-area: lead; }
.artwork-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e9dfd2;
}
.barton-collection .artwork-image {
  background: #211a1b;
  outline: 1px solid #765459;
  outline-offset: -1px;
}
.artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.artwork-zoom {
  position: absolute;
  right: .48rem;
  bottom: .48rem;
  display: grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid #e2d8cf;
  background: #1c1918;
  color: #fff7ee;
  font-size: 1.05rem;
  transition: background-color .2s, color .2s;
}
.artwork-link:hover .artwork-zoom,
.artwork-link:focus-visible .artwork-zoom { background: #f5e9d8; color: #1c1918; }
.barton-collection .artwork-link:focus-visible { outline-color: var(--gold-bright); }
.artwork-caption { display: grid; gap: .17rem; padding: .66rem 0 .1rem; }
.artwork-caption > span { color: var(--catalog-muted); font-size: .65rem; }
.barton-collection .artwork-caption > span { color: #f2caa5; }
.artwork-caption > strong { font-size: .99rem; line-height: 1.2; }
.artwork-lead .artwork-caption > strong { font-size: 1.2rem; }

.work-archive { margin-top: clamp(2.7rem, 6vw, 5.15rem); }
.barton-collection[hidden] + .work-archive { margin-top: 0; }
.archive-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: .85rem 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--catalog-rule);
  margin-bottom: 1.25rem;
}
.archive-heading h3 { font-size: clamp(1.6rem, 3.3vw, 3rem); margin-top: .65rem; line-height: 1.06; }
.work-archive-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.15vw, 2rem);
}

/* Merch */
.supply-hero {
  padding-block: clamp(2.4rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse at 5% 60%, #391b20, transparent 60%),
    repeating-linear-gradient(145deg, #ffffff08 0 1px, transparent 1px 26px),
    #191919;
  border-bottom: 4px solid var(--red);
}
.supply-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(1.6rem, 4.6vw, 4.2rem);
  align-items: center;
}
.supply-copy .showcase-kicker { color: #f2e4d3; }
.supply-copy h1 { font-size: clamp(2.45rem, 6vw, 5.6rem); line-height: 1; margin: 1.05rem 0 1.15rem; }
.supply-desc { color: #e5d9d1; max-width: 34ch; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.supply-actions { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; align-items: center; margin-top: 1.6rem; }
.supply-primary,
.supply-secondary {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 48px;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
}
.supply-primary {
  justify-content: space-between;
  padding: .6rem .95rem;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  transition: background-color .18s;
}
.supply-primary:hover { background: #a70b17; }
.supply-secondary { color: #f6e9d9; padding-inline: .15rem; text-decoration: underline; text-underline-offset: .28rem; }
.supply-secondary:hover { color: var(--gold-bright); }

.supply-feature {
  display: block;
  background: #eee9e2;
  color: #201e1b;
  border: 1px solid #d9ccbd;
  box-shadow: 9px 9px 0 #0d0d0d;
  text-decoration: none;
}
.supply-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.16;
  background: #fff;
}
.supply-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 33%;
  transition: transform .25s;
}
.supply-photo-label {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .35rem .6rem;
  background: #201e1b;
  color: #fff6ec;
}
.supply-feature-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  min-height: 48px;
  padding: .75rem .9rem;
  border-top: 1px solid #d9ccbd;
  font-size: .9rem;
  line-height: 1.25;
}
.supply-feature-caption > span { color: var(--red); font-size: 1.25rem; }

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--catalog-rule);
  background: #fffdf8;
}
.product-image { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.product-image > span { position: absolute; top: .55rem; left: .55rem; min-width: 1.9rem; padding: .12rem .26rem; text-align: center; background: #222; color: #fff; }
.product-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  gap: .4rem;
  padding: clamp(.7rem, 1.6vw, 1.1rem);
  border-top: 1px solid var(--catalog-rule);
}
.product-details h3 { font-size: clamp(.95rem, 1.65vw, 1.2rem); line-height: 1.18; }
.product-details p { color: var(--catalog-muted); font-size: .87rem; line-height: 1.45; }
.product-details .product-category { color: #92111a; font-size: .62rem; }
.product-details .product-state { padding: .15rem .45rem; background: #f6e7db; color: #7c342a; font-size: .75rem; }
.product-shop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .45rem;
  width: 100%;
  min-height: 44px;
  padding-top: .3rem;
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: .22rem;
  font-size: .88rem;
  font-weight: 700;
}
.product-shop:hover { color: var(--red); }
.product-shop > span { color: var(--red); }
.supply-store-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.5rem;
  padding: clamp(1rem, 2.6vw, 1.9rem);
  border: 1px solid var(--catalog-rule);
  margin-top: clamp(2.2rem, 5vw, 3.7rem);
  background: #ebe3d7;
}
.supply-store-note h3 { font-size: 1.1rem; }
.supply-store-note p { color: var(--catalog-muted); }

@media (hover: hover) {
  .artwork-link:hover img,
  .supply-feature:hover img,
  .product-image:hover img { transform: scale(1.035); }
}

@media (max-width: 950px) {
  .work-archive-grid,
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  .showcase-heading,
  .monthly-grid,
  .supply-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .barton-collection {
    grid-template: "intro" "lead" "posters" / minmax(0, 1fr);
  }
  .barton-intro h3 { font-size: clamp(1.75rem, 6.7vw, 3rem); }
  .artwork-lead { width: min(100%, 410px); justify-self: center; }
  .work-archive-grid,
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supply-copy h1 { font-size: clamp(2.5rem, 10.5vw, 4.4rem); }
  .supply-feature { max-width: 490px; }
}

@media (max-width: 520px) {
  .barton-posters { grid-template-columns: minmax(0, 1fr); gap: .82rem; }
  .barton-posters .artwork-link {
    display: grid;
    grid-template-columns: minmax(0, .77fr) minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    border-top: 1px solid #744951;
    padding-top: .82rem;
  }
  .barton-posters .artwork-caption { padding: 0; }
  .work-archive-grid,
  .product-grid { gap: .85rem; }
  .supply-photo-label { top: .5rem; left: .5rem; padding: .26rem .4rem; font-size: .57rem; }
  .product-details h3 { font-size: .95rem; }
  .product-details p { font-size: .8rem; }
}
