:root {
  --forest: #154734;
  --forest-deep: #0e3527;
  --cream: #FCFBF7;
  --sage: #E7ECE6;
  --sage-line: #C9D4C7;
  --ink: #1C2620;
  --ink-soft: #4A564E;
  --gold: #B99B5C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--forest);
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 24px; } }

.label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}

/* ---------- Header (matches homepage) ---------- */
header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(252,251,247,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21,71,52,0.09);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
header .site-logo { height: 34px; width: auto; display: block; }
nav.center-links { display: flex; gap: 40px; }
nav.center-links a { font-size: 0.82rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.02em; transition: color 0.2s; }
nav.center-links a:hover, nav.center-links a.active { color: var(--forest); }
.nav-cta { background: var(--forest); color: var(--cream) !important; padding: 10px 22px; border-radius: 2px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; }
.nav-links { display: flex; align-items: center; gap: 40px; }
@media (max-width: 780px) { nav.center-links { display: none; } }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--forest); transition: transform 0.25s ease, opacity 0.2s ease; }
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-panel { display: none; position: fixed; top: 76px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid rgba(21,71,52,0.09); box-shadow: 0 16px 28px rgba(14,53,39,0.1); z-index: 99; }
.mobile-menu-panel.open { display: block; }
.mobile-menu-panel a { display: block; padding: 17px 40px; font-size: 0.95rem; font-weight: 500; color: var(--ink); border-top: 1px solid rgba(21,71,52,0.07); }
.mobile-menu-panel a:first-child { border-top: none; }

@media (max-width: 780px) { .mobile-menu-toggle { display: flex; } }

/* ---------- Blog hero ---------- */
.blog-hero { background: var(--forest); color: var(--cream); padding: 150px 0 80px; }
.blog-hero .label { color: rgba(252,251,247,0.65); margin-bottom: 20px; }
.blog-hero h1 { color: var(--cream); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.16; max-width: 680px; }
.blog-hero p { color: rgba(252,251,247,0.78); font-size: 1.05rem; max-width: 560px; margin-top: 18px; font-weight: 300; }

/* ---------- Category filter tabs ---------- */
.filter-bar { padding: 40px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tab { border: 1px solid var(--sage-line); background: var(--sage); color: var(--forest-deep); padding: 9px 18px; border-radius: 2px; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.2s, color 0.2s; }
.filter-tab:hover { background: var(--sage-line); }
.filter-tab.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.category-badge { display: inline-block; font-size: 0.72rem; background: var(--sage); color: var(--forest-deep); padding: 4px 11px; border-radius: 2px; border: 1px solid var(--sage-line); margin-bottom: 10px; }

/* ---------- Post list ---------- */
.post-list { padding: 80px 0 120px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--sage-line); border: 1px solid var(--sage-line); margin-top: 10px; }
.post-card { background: var(--cream); padding: 40px; transition: background 0.25s; display: flex; flex-direction: column; }
.post-card:hover { background: var(--sage); }
.post-card .post-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 2px; margin-bottom: 22px; background: var(--sage); }
.post-card .post-date { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.post-card h2 { font-size: 1.3rem; line-height: 1.32; margin-bottom: 12px; }
.post-card p { color: var(--ink-soft); font-size: 0.94rem; flex-grow: 1; }
.post-card .read-more { margin-top: 18px; font-size: 0.8rem; font-weight: 600; color: var(--forest); letter-spacing: 0.03em; }
@media (max-width: 780px) { .post-grid { grid-template-columns: 1fr; } }
.empty-state { color: var(--ink-soft); padding: 40px 0; }

/* ---------- Single post ---------- */
.post-article { padding: 150px 0 100px; }
.post-article-inner { max-width: 740px; margin: 0 auto; }
.post-article .post-date { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.post-article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; margin-bottom: 28px; }
.post-article .post-thumb { width: 100%; border-radius: 3px; margin-bottom: 40px; aspect-ratio: 16/9; object-fit: cover; }
.post-body { color: var(--ink); font-size: 1.06rem; }
.post-body p { margin-bottom: 22px; }
.post-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.post-body h3 { font-size: 1.22rem; margin: 32px 0 14px; }
.post-body ul, .post-body ol { margin: 0 0 22px 24px; color: var(--ink); }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { border-left: 3px solid var(--gold); padding-left: 22px; font-style: italic; color: var(--ink-soft); margin: 28px 0; }
.post-body img { max-width: 100%; border-radius: 2px; margin: 10px 0 28px; }
.back-link { display: inline-block; margin-bottom: 34px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.back-link:hover { color: var(--forest); }

.post-disclaimer { margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--sage-line); font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Footer (matches homepage) ---------- */
footer { background: var(--forest-deep); padding: 34px 0; }
footer .footer-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .footer-logo { height: 26px; width: auto; }
footer .footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
footer .footer-links { display: flex; gap: 20px; }
footer .footer-link { font-size: 0.76rem; color: rgba(252,251,247,0.55); transition: color 0.2s; }
footer .footer-link:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
footer .copyright { font-size: 0.76rem; color: rgba(252,251,247,0.4); }
@media (max-width: 640px) { footer .footer-right { align-items: flex-start; } }
