:root {
  --c-forest: #1F6448;
  --c-forest-deep: #164A34;
  --c-sage: #4D8B6D;
  --c-sage-light: #82B59A;
  --c-cream: #E9DACE;
  --c-cream-warm: #DEC5B3;
  --c-earth: #8B7B6A;
  --c-earth-light: #C4B4A2;
  --c-white: #FFFFFF;
  --c-text: #2A2A25;
  --c-text-muted: #6B6B60;
  --c-accent: #8668A0;
  --c-accent-hover: #755D94;

  --f-display: 'Lora', Georgia, serif;
  --f-body: 'Comfortaa', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.blog-body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--c-forest); text-decoration: none; }
a:hover { color: var(--c-forest-deep); text-decoration: underline; }

/* ===== HEADER ===== */
.blog-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-cream);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 16px 24px;
}
.blog-header nav { display: flex; gap: 24px; flex: 1; }
.blog-header nav a {
  font-size: 14px;
  color: var(--c-text);
  font-weight: 500;
}
.blog-header nav a.is-active { color: var(--c-forest); }
.header-cta {
  background: var(--c-forest); color: var(--c-white);
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
}
.header-cta:hover { background: var(--c-forest-deep); color: var(--c-white); text-decoration: none; }
.mobile-toggle { display: none; background: none; border: 0; }

/* ===== MAIN / READING COLUMN ===== */
.blog-main { min-height: 60vh; padding: 48px 0 80px; }
.article-column {
  max-width: 680px; margin: 0 auto; padding: 0 24px;
}
.article-column h1 {
  font-family: var(--f-display);
  font-size: 40px; line-height: 1.15;
  color: var(--c-forest-deep);
  margin-bottom: 16px;
}
.article-column h2 {
  font-family: var(--f-display);
  font-size: 28px; margin: 40px 0 16px;
  color: var(--c-forest-deep);
}
.article-column h3 {
  font-family: var(--f-display);
  font-size: 22px; margin: 32px 0 12px;
  color: var(--c-forest-deep);
}
.article-column p { margin: 0 0 20px; font-size: 18px; line-height: 1.75; }
.article-column ul, .article-column ol { margin: 0 0 20px 24px; font-size: 18px; line-height: 1.75; }
.article-column img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.article-column video { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; display: block; }
.article-column blockquote {
  border-left: 4px solid var(--c-sage);
  padding: 8px 20px; margin: 24px 0;
  color: var(--c-text-muted); font-style: italic;
}

.article-meta {
  font-size: 14px; color: var(--c-text-muted);
  margin-bottom: 32px;
}
.article-meta a { color: var(--c-sage); }

.article-hero {
  max-width: 960px; margin: 0 auto 32px;
  padding: 0 24px;
}
.article-hero img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 540px;
  width: auto;
  height: auto;
  border-radius: 16px;
}

.article-footer {
  max-width: 680px; margin: 48px auto 0; padding: 32px 24px 0;
  border-top: 1px solid var(--c-cream);
  font-size: 14px; color: var(--c-text-muted);
}
.article-footer .tag-list a {
  display: inline-block; background: var(--c-cream);
  color: var(--c-forest-deep); padding: 4px 12px;
  border-radius: 999px; margin: 4px 4px 0 0; font-size: 13px;
}
.article-footer .tag-list a:hover { background: var(--c-cream-warm); text-decoration: none; }

/* ===== FAQ ===== */
.faq { max-width: 680px; margin: 48px auto 0; padding: 0 24px; }
.faq h2 {
  font-family: var(--f-display); font-size: 28px;
  color: var(--c-forest-deep); margin-bottom: 20px;
}
.faq details {
  border-bottom: 1px solid var(--c-cream);
  padding: 16px 0;
}
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  font-size: 17px; color: var(--c-forest-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; display: inline-block; width: 24px;
  color: var(--c-sage); font-weight: 700;
}
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 12px 0 0 24px; color: var(--c-text); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: 680px; margin: 0 auto 24px; padding: 0 24px;
  font-size: 13px; color: var(--c-text-muted);
}
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-forest); }
.breadcrumbs .separator { margin: 0 8px; }

/* ===== LIST / CARDS ===== */
.list-header {
  max-width: 1200px; margin: 0 auto 32px; padding: 0 24px;
}
.list-header h1 {
  font-family: var(--f-display);
  font-size: 42px; color: var(--c-forest-deep);
  margin-bottom: 8px;
}
.list-header p { color: var(--c-text-muted); font-size: 16px; }

.card-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  background: var(--c-white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--c-cream);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease;
}
.post-card:hover { transform: translateY(-2px); }
.post-card a { color: inherit; text-decoration: none; display: block; }
.post-card .hero {
  aspect-ratio: 16 / 9; background: var(--c-cream);
  overflow: hidden;
}
.post-card .hero img { width: 100%; height: 100%; object-fit: cover; }
.post-card .hero:empty {
  background:
    radial-gradient(circle at 50% 55%, rgba(31, 100, 72, 0.06) 0%, transparent 65%),
    linear-gradient(135deg, var(--c-cream) 0%, #F4ECE3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card .hero:empty::before {
  content: "";
  width: 88px; height: 88px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231F6448' fill-opacity='0.22'><path d='M17 8C8 10 5.9 16.17 3.82 21.34L5.71 22l1-2.3c.5.12 1 .18 1.5.18C19 19.88 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.post-card .body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card h2 {
  font-family: var(--f-display); font-size: 22px;
  color: var(--c-forest-deep); margin-bottom: 8px; line-height: 1.3;
}
.post-card p { color: var(--c-text-muted); font-size: 15px; flex: 1; }
.post-card .meta {
  margin-top: 16px; font-size: 13px; color: var(--c-text-muted);
  display: flex; gap: 12px;
}

/* ===== PAGINATION ===== */
.pagination {
  max-width: 1200px; margin: 48px auto 0; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 12px 8px; justify-content: center;
}
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--c-cream); font-size: 14px;
}
.pagination .is-current {
  background: var(--c-forest); color: var(--c-white); border-color: var(--c-forest);
}

/* ===== FOOTER (mirror landing) ===== */
.blog-footer {
  background: var(--c-forest-deep); color: var(--c-white);
  padding: 64px 0 32px; margin-top: 80px;
}
.blog-footer a { color: var(--c-sage-light); }
.blog-footer a:hover { color: var(--c-white); }
.blog-footer .footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.blog-footer .footer-brand p { color: var(--c-cream); margin-top: 16px; font-size: 14px; }
.blog-footer h3 { font-size: 16px; margin-bottom: 16px; color: var(--c-white); }
.blog-footer ul { list-style: none; }
.blog-footer ul li { margin-bottom: 8px; font-size: 14px; }
.blog-footer .footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; color: var(--c-sage-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-header nav { display: none; }
  .mobile-toggle { display: block; }
  .mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--c-text); margin: 5px 0; }
  .article-column h1 { font-size: 32px; }
  .article-column p, .article-column ul, .article-column ol { font-size: 16px; }
  .blog-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .list-header h1 { font-size: 32px; }
}
