/* A compact editorial entrance to the four catalog collections. */
.collection-entry {
  padding: 76px var(--side) 68px;
  border-bottom: 1px solid var(--line-soft);
}

.collection-entry-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
}

.collection-entry-heading .eyebrow { margin-bottom: 17px; }
.collection-entry-heading h2 { font-size: clamp(40px, 4.6vw, 64px); }
.collection-entry-heading .text-link { flex-shrink: 0; margin-bottom: 4px; }

.collection-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}

.collection-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  text-align: left;
  border-radius: 0;
}

.collection-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(174px, 17.5vw, 270px);
  overflow: hidden;
  background: var(--photo-backdrop);
}

.collection-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 650ms var(--ease-out);
}

.collection-card-index {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.collection-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
}

.collection-card-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(27px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}

.collection-card-count {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .035em;
}

.collection-card-arrow {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}

.collection-card:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 7px;
}

@media (hover: hover) {
  .collection-card:hover .collection-card-image { transform: scale(1.025); }
  .collection-card:hover .collection-card-arrow {
    background: var(--wine);
    border-color: var(--wine);
    color: var(--cream);
  }
}

.collection-card.is-entering {
  animation: collection-entry-reveal 650ms var(--ease-out) both;
  animation-delay: var(--collection-delay, 0ms);
}

@keyframes collection-entry-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .collection-entry { padding-top: 48px; padding-bottom: 44px; }
  .collection-entry-heading { align-items: flex-start; gap: 16px; margin-bottom: 26px; }
  .collection-entry-heading .eyebrow { max-width: 180px; margin-bottom: 12px; }
  .collection-entry-heading h2 { max-width: 260px; font-size: clamp(34px, 7vw, 44px); }
  .collection-entry-heading .text-link {
    gap: 7px;
    margin-top: 4px;
    font-size: 10px;
    white-space: nowrap;
  }
  .collection-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .collection-card-media { height: auto; aspect-ratio: 1; }
  .collection-card-copy { gap: 8px; padding-top: 12px; }
  .collection-card-name { font-size: 28px; }
  .collection-card-count { margin-top: 5px; font-size: 10px; }
  .collection-card-index { top: 11px; left: 11px; font-size: 9px; }
  .collection-card-arrow { width: 28px; height: 28px; flex-basis: 28px; font-size: 15px; }
}

@media (max-width: 380px) {
  .collection-entry-heading { flex-wrap: wrap; gap: 14px; }
  .collection-entry-heading h2 { max-width: none; }
  .collection-entry-heading .text-link { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card.is-entering { animation: none; }
  .collection-card-image,
  .collection-card-arrow { transition: none; }
  .collection-card:hover .collection-card-image { transform: none; }
}
