/* ── Keep reading — recommendation cards (case studies + articles) ── */

.more-reading {
  position: relative;
  z-index: 20;
  max-width: 1280px;
  margin: 96px auto 80px;
  padding: 0 32px;
  box-sizing: border-box;
}

.more-reading__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 23, 18, 0.42);
  margin: 0 0 28px;
}

.more-reading__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card ── */
.rec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  overflow: visible;
  transition: transform 0.3s ease;
}

.rec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(27, 23, 18, 0.22);
  pointer-events: none;
  filter: url(#sketch-filter);
  z-index: 1;
}

.rec-card__color-bar {
  display: block;
  height: 36px;
  width: 100%;
  position: relative;
  z-index: 0;
  opacity: 0.85;
}

.rec-card__thumb {
  display: block;
  width: 100%;
  height: 152px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  background-color: rgba(27, 23, 18, 0.04);
}

.rec-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tinted swatch beneath the image edge — anchors the card to its color */
.rec-card__thumb::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-color: var(--rec-card-color, transparent);
  opacity: 0.85;
}

.rec-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #1b1712;
  padding: 26px 22px 0;
  position: relative;
  z-index: 2;
  flex: 1;
}

.rec-card__hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(27, 23, 18, 0.5);
  padding: 18px 22px 22px;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

/* Washi-tape badge — same SVG language as the project popover NDA tag */
.rec-card__tape {
  position: absolute;
  top: 14px;
  right: -12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1b1712;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'><path d='M 7 5 L 233 3 L 236 10 L 232 16 L 237 22 L 233 28 L 236 34 L 8 36 L 3 30 L 7 24 L 2 18 L 6 12 Z' fill='%23e8d69a' fill-opacity='0.9' stroke='%231b1712' stroke-opacity='0.28' stroke-width='0.8'/><line x1='24' y1='12' x2='216' y2='12' stroke='%231b1712' stroke-opacity='0.07' stroke-width='0.9'/><line x1='24' y1='28' x2='216' y2='28' stroke='%231b1712' stroke-opacity='0.07' stroke-width='0.9'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: rotate(-2.5deg);
  transform-origin: center;
}

/* Hover — desktop only (touch devices skip via the prior @media (hover) gating) */
@media (hover: hover) {
  .rec-card:hover {
    transform: translateY(-3px);
  }
  .rec-card:hover .rec-card__hint {
    color: #1b1712;
    gap: 10px;
  }
}

.rec-card:focus-visible {
  outline: 2px solid #5e5448;
  outline-offset: 4px;
}

/* ── Tablet ── */
@media (max-width: 1023px) {
  .more-reading {
    margin: 80px auto 64px;
    padding: 0 24px;
  }
  .more-reading__grid {
    gap: 18px;
  }
  .rec-card__title {
    font-size: 1.35rem;
    padding: 22px 20px 0;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .more-reading {
    margin: 64px auto 48px;
    padding: 0 20px;
  }
  .more-reading__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rec-card {
    min-height: 180px;
  }
  .rec-card__thumb {
    height: 168px;
  }
  .rec-card__title {
    font-size: 1.4rem;
    padding: 22px 20px 0;
  }
  .rec-card__hint {
    padding: 14px 20px 18px;
  }
  .rec-card__tape {
    top: 12px;
    right: -8px;
    padding: 6px 14px;
    font-size: 0.62rem;
  }
}

.rec-card__arrow {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.18em;
  margin-left: 0.2em;
  flex-shrink: 0;
}
