.catalogue { padding-bottom: 56px; }
.catalogue .intro { padding-block: 42px 34px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; padding: 0; margin: 0; list-style: none; }
.guide-card { min-width: 0; }
.guide-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.guide-cover {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2 / 3;
  margin: 2px 7px 7px 1px;
  border-radius: 2px 5px 5px 2px;
  background: #d9d3c8;
  box-shadow: 0 1px 2px #29291f24, 3px 5px 7px #29291f1c, 8px 13px 20px -8px #29291f36;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.guide-cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px -5px -5px 7px;
  border: 1px solid #bdb6a8;
  border-radius: 1px 5px 5px 1px;
  background:
    repeating-linear-gradient(90deg, #dfdbd1 0 1px, #faf8f1 1px 2px) right top / 6px 100% no-repeat,
    repeating-linear-gradient(0deg, #dedacf 0 1px, #f7f4eb 1px 2px) left bottom / 100% 6px no-repeat,
    #f5f1e7;
  box-shadow: 1px 1px 0 #888071, 2px 3px 3px #29291f1a;
  pointer-events: none;
}
.guide-cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.guide-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #332c231f;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #1d1a164f 0%, #1d1a1624 0.7%, #ffffff40 1.3%, #18140f40 2.2%, #ffffff40 2.9%, #29241b0d 4.3%, transparent 6.5%),
    linear-gradient(180deg, #ffffff19, transparent 5%, transparent 96%, #1c18130d);
  box-shadow: inset -1px 0 0 #ffffff33;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .guide-link:hover .guide-cover {
    transform: translateY(-3px);
    box-shadow: 0 1px 2px #29291f24, 4px 7px 9px #29291f1c, 10px 17px 25px -8px #29291f3d;
  }
}
.guide-link:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.guide-card h2 { margin-top: 16px; font-size: clamp(21px, 2.5vw, 29px); line-height: 1.18; text-wrap: balance; }
.guide-author { margin: 7px 0 12px; font-size: 14px; color: var(--muted); }
.guide-date { display: block; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 30px; }
  .catalogue .intro { padding-block: 30px 28px; }
  .guide-card h2 { font-size: 22px; }
}
@media (max-width: 420px) {
  .guide-grid { column-gap: 16px; }
  .guide-card h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-cover { transition: none; }
  .guide-link:hover .guide-cover { transform: none; }
}
