/* Blog styles — builds on the shared tokens defined in style.css */

.blog-hero {
  background: linear-gradient(180deg, var(--green-50), #fff);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 40px;
}
.blog-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 6px; }
.blog-hero .lead { margin-top: 18px; }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--green-100); }
.post-card-link { display: block; padding: 26px 28px; color: inherit; }
.post-card-link:hover { text-decoration: none; }
.post-date, .post-meta { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.post-card-title { font-size: 24px; margin: 8px 0 10px; color: var(--ink); }
.post-card-desc { color: var(--ink-soft); margin: 0; }
.read-more { display: inline-block; margin-top: 14px; color: var(--green-700); font-weight: 600; font-size: 15px; }

/* Tags */
.tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--green-700); background: var(--green-100);
  padding: 4px 11px; border-radius: 999px;
}

/* Single post */
.crumbs { margin-bottom: 18px; font-weight: 500; font-size: 15px; }
.post-header h1 { font-size: clamp(30px, 4.5vw, 46px); }
.post-header .post-meta { margin: 14px 0 0; }
.post-header .tag-row { margin-top: 16px; }
.post-hero-img { width: 100%; border-radius: var(--radius); margin: 26px 0 0; }

/* Prose — readable article body */
.prose { margin-top: 30px; font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  border-left: 4px solid var(--green-500);
  padding: 4px 0 4px 20px; margin-left: 0;
  color: var(--ink-soft); font-style: italic;
}
.prose code {
  background: var(--green-50); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; font-size: .9em;
}
.prose pre {
  background: var(--ink); color: #f5f7f6; padding: 18px 20px;
  border-radius: 12px; overflow-x: auto;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose img { border-radius: 12px; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--green-50); font-family: 'Inter', sans-serif; }

/* In-article CTA */
.post-cta {
  margin-top: 44px; padding: 28px;
  background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: var(--radius); text-align: center;
}
.post-cta h3 { font-size: 22px; }
.post-cta p { color: var(--ink-soft); margin: 10px auto 18px; max-width: 46ch; }
