/* Blog-specific styling, layered on top of the site styles.css tokens. */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8e0d3; }
.post-date { font-size: 0.8rem; color: var(--faint); font-family: var(--font-mono); }
.post-card h2 { font-size: 1.2rem; margin: 0; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.post-more { color: var(--green-dark); font-weight: 700; font-size: 0.9rem; }

/* Article body */
.article { max-width: 760px; margin-inline: auto; }
.article .post-date { display: block; margin-bottom: 8px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.article .lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 32px; }
.article h2 { font-size: 1.4rem; margin-top: 36px; }
.article p, .article li { color: #3a3f36; font-size: 1.02rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 8px; }
.article-cta {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.article-cta h2 { color: #fff; margin-top: 0; }
.article-cta p { color: rgba(255,255,255,0.9); }
.article-cta .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

@media (prefers-color-scheme: dark) {
  .article p, .article li { color: #c8cfc1; }
}
