.navlinks {
  display: flex;
  gap: 28px;
}

.catalog {
  padding: 65px 0 100px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 35px;
}

.section-heading h1 {
  margin: 18px 0 0;
  font: 700 clamp(3rem, 7vw, 6rem) / .9 "Playfair Display", serif;
}

.section-heading > p {
  max-width: 320px;
  color: #5a625c;
}

.category-sections {
  display: grid;
  gap: 58px;
}

.catalog-category,
.catalog-product-section {
  min-width: 0;
  scroll-margin-top: 110px;
}

.category-row-heading {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
  text-align: right;
}

.category-row-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.35;
}

.tile-grid {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent;
}

.tile {
  flex: 0 1 230px;
  min-width: 150px;
  height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  background: #ded8cc;
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
  transition: flex-grow .48s cubic-bezier(.2, .75, .25, 1),
              flex-basis .48s cubic-bezier(.2, .75, .25, 1),
              clip-path .35s ease,
              filter .35s ease;
}

.tile:hover,
.tile:focus-visible {
  flex: 0 0 440px;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  filter: drop-shadow(0 18px 24px rgb(24 33 28 / 16%));
  outline: none;
}

.tile-image {
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #d7e6ac;
}

.tile:nth-child(3n+2) .tile-image {
  background: #d5c7ee;
}

.tile:nth-child(3n) .tile-image {
  background: #f2c29f;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .48s ease;
}

.tile:hover .tile-image img,
.tile:focus-visible .tile-image img {
  transform: scale(1.045);
}

.tile-image span {
  font: 700 5rem "Playfair Display", serif;
  opacity: .65;
}

.tile-copy {
  min-height: 112px;
  padding: 18px 22px 20px;
  overflow: hidden;
}

.tile-copy h2 {
  margin: 0 0 7px;
  overflow: hidden;
  font: 700 clamp(1.1rem, 2vw, 1.7rem) / 1.35 "Playfair Display", serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-copy p,
.tile-copy b {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease .08s, transform .25s ease .08s;
}

.tile-copy p {
  margin: 0 0 14px;
  color: #4e554f;
  white-space: nowrap;
}

.tile-copy b {
  display: flex;
  justify-content: space-between;
}

.tile:hover .tile-copy p,
.tile:hover .tile-copy b,
.tile:focus-visible .tile-copy p,
.tile:focus-visible .tile-copy b {
  opacity: 1;
  transform: translateY(0);
}

.no-tiles {
  width: 100%;
  padding: 60px;
  border: 1px dashed #9d9d93;
  text-align: center;
}

@media (max-width: 750px) {
  .section-heading {
    display: block;
  }

  .catalog {
    padding-top: 35px;
  }

  .category-sections {
    gap: 42px;
  }

  .category-row-heading {
    margin-bottom: 14px;
  }

  .navlinks {
    gap: 14px;
  }

  .tile-grid {
    margin-inline: -8px;
    padding-inline: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

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

  .tile,
  .tile:hover,
  .tile:focus-visible {
    flex: 0 0 48vw;
    min-width: 160px;
    height: 360px;
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
    filter: none;
    scroll-snap-align: start;
  }

  .tile-copy {
    min-height: 88px;
    padding: 13px 16px 15px;
  }

  .tile-copy p,
  .tile-copy b {
    display: none;
  }

  .tile-copy h2 {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile-image img,
  .tile-copy p,
  .tile-copy b {
    transition: none;
  }
}
