/* ============================================================
   CARPCORE — blog ("FIELD NOTES") skin. Ported from
   legacy/shopify-theme/assets/carpcore-blog.css. Styles paper cards,
   ink borders, hard-offset shadows, instrument type — the grid itself
   (.blog-posts-container) is new since the original's grid used
   Shopify-editor-only hero/compact column-span logic with no WordPress
   equivalent; this uses one uniform responsive grid instead. Scoped
   under .cc-herb--blog.
   ============================================================ */

.cc-herb--blog .blog-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}

/* paper cards in place of the stock hairline-bordered items */
.cc-herb--blog .blog-post-item {
  border: 3px solid var(--ink);
  border-radius: 10px 7px 12px 6px;
  background: var(--paper-l);
  box-shadow: var(--sh-sm);
  padding: 0;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
@media (hover: hover) {
  .cc-herb--blog .blog-post-item:hover {
    transform: translate(-2px, -3px);
    box-shadow: var(--sh-md);
  }
}

.cc-herb--blog .blog-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cc-herb--blog .blog-post-card__content {
  padding: 14px 16px 18px;
}
.cc-herb--blog .blog-post-card__image-container {
  display: block;
  border-bottom: 3px solid var(--ink);
  filter: url(#rough);
  overflow: hidden;
}
.cc-herb--blog .blog-post-card__image-container img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* instrument typography on whatever text blocks the card renders */
.cc-herb--blog .blog-post-card h1,
.cc-herb--blog .blog-post-card h2,
.cc-herb--blog .blog-post-card h3 {
  font-family: 'Mochiy Pop P One', sans-serif;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 6px;
}
.cc-herb--blog .blog-post-card time {
  display: block;
  font-family: 'VT323', monospace;
  color: var(--navy);
  letter-spacing: 0.02em;
  font-size: 15px;
  margin-bottom: 8px;
}
.cc-herb--blog .blog-post-card__content p {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.cc-herb--blog .blog-post-card a {
  text-decoration: none;
  color: inherit;
}
.cc-herb--blog .blog-post-card a:hover {
  color: var(--coral);
}

@media (prefers-reduced-motion: reduce) {
  .cc-herb--blog .blog-post-item {
    transition: none;
  }
}
