.catalog-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  background: #211d1d;
  color: #fff8f2;
}

.catalog-hero > img, .catalog-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.catalog-hero > img { object-fit: cover; object-position: 31% center; }
.catalog-hero::after { content: ""; background: linear-gradient(90deg, transparent 45%, #1b15152e 61%, #1b1515b8 100%); }
.catalog-hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; padding-block: 60px; }
.catalog-hero-copy { grid-column: 2; max-width: 440px; padding-left: clamp(12px, 2.4vw, 36px); }
.catalog-hero .eyebrow { color: var(--wine-light); }
.catalog-hero h1 { font-size: clamp(2.65rem, 4.35vw, 4.6rem); letter-spacing: -.045em; }
.catalog-hero-copy > p:not(.eyebrow) { max-width: 23em; margin-top: 1rem; color: #f0e2dd; }
.catalog-hero-copy .button { margin-top: 1.6rem; animation-delay: .18s; }

.collection { padding-bottom: clamp(64px, 7vw, 110px); }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.7rem; justify-content: space-between; padding-block: .9rem; border-bottom: 1px solid var(--rule); }
.catalog-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; }
.catalog-filters a { display: inline-flex; align-items: center; min-height: 43px; padding: .35rem .9rem; border: 1px solid transparent; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.catalog-filters a:hover { border-color: var(--rule); color: var(--wine); }
.catalog-filters a[aria-current] { background: var(--wine); color: var(--white); }
.catalog-note { color: var(--muted); font-size: .8125rem; }

.series { padding-top: clamp(42px, 5.2vw, 73px); }
.series + .series:not([hidden]) { margin-top: clamp(32px, 4.2vw, 58px); border-top: 1px solid var(--rule); }
.series[hidden] + .series:not([hidden]) { margin-top: 0; border-top: 0; }
.series-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 35%); align-items: end; gap: 1rem 2rem; margin-bottom: clamp(20px, 3vw, 38px); }
.series-heading h2 { font-size: clamp(2rem, 3.05vw, 3.15rem); }
.series-heading p { color: var(--muted); }
.series-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); }
.series-product { scroll-margin-top: 12px; }
.series-product:target .product-link { outline: 2px solid var(--wine); outline-offset: 5px; }
.series-product .product-photo { aspect-ratio: 1.37; }
.series-product .product-caption { min-height: 91px; padding-block: .7rem; align-items: center; }
.series-product h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.series-product .product-caption p { font-size: .875rem; }
.series-product .plus { flex: none; color: var(--wine); }
.series-product .product-link:is(:hover, :focus-visible) .plus { color: white; }

.catalog-materials { padding-block: clamp(48px, 6.4vw, 92px); border-top: 1px solid var(--rule); background: var(--white); }
.catalog-material-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 7vw, 108px); align-items: center; }
.catalog-material-photo { aspect-ratio: 1.62; }
.catalog-material-layout h2 { font-size: clamp(2rem, 3.2vw, 3.25rem); }
.catalog-material-layout p:not(.eyebrow) { max-width: 28em; margin-top: 1rem; color: var(--muted); }
.carpet-options { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.25rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--rule); list-style: none; color: var(--wine); font-size: .9375rem; font-weight: 600; }

.catalog-contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .65rem 1.25rem; }
.catalog-contact-actions .button { margin-top: 0; }
.catalog-email { color: #fff0e8; text-decoration: underline; text-underline-offset: .24em; }
.dialog-disclosure { margin: -.65rem 0 1.2rem; font-size: .8125rem; }

@media (max-width: 1020px) {
  .catalog-hero-inner { grid-template-columns: 1.05fr 1fr; }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.55rem; }
  .series-product .product-photo { aspect-ratio: 1.55; }
}

@media (max-width: 760px) {
  .catalog-hero { align-items: end; }
  .catalog-hero > img { object-position: 24% center; }
  .catalog-hero::after { background: linear-gradient(0deg, #150d0df5, #150d0dc0 40%, #150d0d32 75%, transparent); }
  .catalog-hero-inner { display: block; padding: 104px 0 36px; }
  .catalog-hero-copy { padding: 0; }
  .catalog-hero h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .catalog-hero-copy > p:not(.eyebrow) { max-width: 20em; }
  .catalog-hero-copy .button { margin-top: 1.15rem; }
  .catalog-filters { gap: .15rem .25rem; }
  .catalog-filters a { padding-inline: .48rem; font-size: .875rem; }
  .series-heading, .catalog-material-layout { grid-template-columns: 1fr; }
  .series-heading { gap: .6rem; }
  .catalog-contact-actions { justify-content: start; }
}

@media (max-width: 480px) {
  .catalog-filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: .4rem; }
  .catalog-filters a { justify-content: center; border-color: var(--rule); }
}

@media (max-width: 410px) {
  .series-grid { gap: 1rem .7rem; }
  .series-product .product-caption { align-items: start; }
  .series-product .plus { width: 22px; height: 22px; }
}
