* { box-sizing: border-box; }

.links-page {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

.catalog {
  width: min(100% - 32px, 860px);
  margin-inline: auto;
  padding-bottom: 25px;
}

.catalog-header {
  padding: 18px 0 clamp(22px, 5vw, 40px);
  text-align: center;
}

.catalog-home {
  display: inline-block;
  border-radius: 6px;
  vertical-align: top;
}

.catalog-home img {
  display: block;
  width: clamp(150px, 29vw, 218px);
  height: auto;
}

.catalog-header h1 {
  margin: 4px 0 0;
  color: var(--green);
  font: 700 clamp(1.95rem, 6vw, 3.6rem)/1.06 'Playfair Display', Georgia, serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 20px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.catalog-grid li { display: flex; min-width: 0; }

.catalog-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: #fff7cf;
  color: inherit;
  text-decoration: none;
  box-shadow: 2px 3px 0 var(--ink);
}

.catalog-home:focus-visible,
.catalog-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.catalog-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 1px solid var(--ink);
  background: #fffdf4;
}

.catalog-photo--book { object-position: center 18%; }

.catalog-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(10px, 2.3vw, 17px);
}

.catalog-copy h2 {
  margin: 0;
  font: 700 clamp(1rem, 3.65vw, 1.53rem)/1.16 'Playfair Display', Georgia, serif;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}

.catalog-copy small {
  margin-top: 6px;
  color: #50432c;
  font-size: .76rem;
  line-height: 1.35;
}

.catalog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  margin-top: auto;
  border-radius: 6px;
  background: var(--green);
  color: #fff9dc;
  font-size: .81rem;
  font-weight: 700;
}

.catalog-copy > :nth-last-child(2) { margin-bottom: 14px; }

.catalog-cta::after {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 2px;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: rotate(45deg);
}

.catalog-card:hover .catalog-cta { background: #225a3b; }

@media (max-width: 650px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
