/* Home feature cards: same-width photo panels with the site's warm pastel tones. */
.hc {
  --hc-ink: #493321;
  --hc-copy: #66594c;
  position: relative;
  z-index: 4;
  padding: clamp(20px, 2.4vw, 34px) 24px clamp(34px, 3.2vw, 46px);
  background: #fff;
}
.hc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 1.5vw, 22px);
  max-width: 1240px;
  margin: 0 auto;
}
.hc-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(73, 51, 33, .07);
  border-radius: 18px;
  background: var(--hc-card-tone);
  box-shadow: 0 8px 20px rgba(74, 45, 25, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hc-card--reader { --hc-card-tone: #e9ebdf; }
.hc-card--poet { --hc-card-tone: #f1e1c8; }
.hc-card--event { --hc-card-tone: #eedcda; }
.hc-card--library { --hc-card-tone: #eee5d6; }
.hc-media {
  position: relative;
  flex: none;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: transparent;
}
.hc-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.hc-image--reader, .hc-image--event { object-position: left center; }
.hc-image--poet { object-position: center center; }
.hc-image--library { object-position: center center; }
.hc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 16px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hc-ink);
}
.hc-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border: 1px solid rgba(128, 86, 51, .16);
  border-radius: 999px;
  background: rgba(255, 253, 249, .58);
  color: #805633;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.hc-info h2 {
  margin: 9px 0 4px;
  color: var(--hc-ink);
  font-family: inherit;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 750;
  line-height: 1.35;
  text-wrap: balance;
}
.hc-info p {
  flex: 1;
  margin: 0 0 13px;
  color: var(--hc-copy);
  font-size: 13px;
  line-height: 1.55;
}
.hc-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid rgba(128, 86, 51, .28);
  border-radius: 999px;
  color: #69452a;
  background: rgba(255, 253, 249, .55);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.hc-button span:last-child { font-size: 18px; line-height: 1; transition: transform .2s ease; }
.hc-card:hover, .hc-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(74, 45, 25, .18);
}
.hc-card:hover .hc-image, .hc-card:focus-within .hc-image { transform: scale(1.035); }
.hc-button:hover, .hc-button:focus-visible {
  border-color: #805633;
  color: #fffaf2;
  background: #805633;
  outline: none;
}
.hc-button:hover span:last-child { transform: translateX(3px); }
.hc-button:active { transform: scale(.985); }
.hc-button:focus-visible { outline: 2px solid #493321; outline-offset: 3px; }

@media (max-width: 1120px) {
  .hc { padding-right: 0; padding-left: 0; }
  .hc-grid {
    display: flex;
    max-width: none;
    gap: 14px;
    overflow-x: auto;
    padding: 0 24px 18px;
    scroll-padding-inline: 24px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hc-grid::-webkit-scrollbar { display: none; }
  .hc-card { flex: 0 0 clamp(230px, 31vw, 270px); scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .hc { padding-top: 18px; padding-bottom: 28px; }
  .hc-grid { gap: 14px; padding-right: 16px; padding-left: 16px; scroll-padding-inline: 16px; }
  .hc-card { flex-basis: min(88vw, 340px); }
  .hc-info { padding: 14px 14px 15px; }
  .hc-info h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-card, .hc-image, .hc-button, .hc-button span:last-child { transition: none; }
}
