:root {
  --forest: #2f4a3c;
  --forest-deep: #213527;
  --forest-soft: #3d5e4d;
  --gold: #c9a24b;
  --gold-soft: #e6cf94;
  --cream: #f7f3ea;
  --cream-card: #fffdf8;
  --ink: #2c2a24;
  --ink-soft: #5a564c;
  --line: #e4ddcd;
  --shadow: 0 6px 24px rgba(33, 53, 39, 0.08);
  --radius: 14px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--forest); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
  line-height: 1.2;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.3px;
}
.brand-tagline {
  font-size: 0.82rem;
  color: var(--gold-soft);
  font-style: italic;
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home ---------- */
.intro {
  text-align: center;
  max-width: 720px;
  margin: 3rem auto 2rem;
}
.intro h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--forest-deep);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.intro p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 2rem 0;
}
.filter-bar button {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--forest);
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-bar button:hover { border-color: var(--gold); }
.filter-bar button.active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 4rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(33, 53, 39, 0.13);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--forest-deep);
  background: var(--gold-soft);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.card-date { font-size: 0.82rem; color: var(--ink-soft); }
.post-card h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--forest-deep);
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
.post-card p { margin: 0 0 1rem; color: var(--ink-soft); }
.card-read {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
}
.empty-state { text-align: center; color: var(--ink-soft); padding: 3rem 0 4rem; }

/* ---------- Post ---------- */
.post-article { max-width: 720px; margin: 2.5rem auto 4rem; }
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.post-header { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--forest-deep);
  line-height: 1.15;
  margin: 0.8rem 0 1rem;
}
.post-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.post-byline .author { font-weight: 600; color: var(--forest); }
.post-byline .dot { color: var(--gold); }

.post-body { font-size: 1.08rem; }
.post-body p { margin: 0 0 1.4rem; }
.post-body h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--forest-deep);
  margin: 2.2rem 0 0.9rem;
}
.post-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body a { word-break: break-word; }

.callout {
  background: #eef3ec;
  border-left: 4px solid var(--forest);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.6rem;
  color: var(--forest-deep);
}
.callout p { margin: 0 0 0.8rem; }
.callout p:last-child { margin-bottom: 0; }

.crisis-note {
  background: #fbf3e3;
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.4rem;
  margin: 2.5rem 0 1.6rem;
  font-weight: 500;
  color: var(--ink);
}
.crisis-note strong { color: var(--forest-deep); }

/* ---------- About / Contact ---------- */
.page { max-width: 720px; margin: 2.8rem auto 4rem; }
.page h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--forest-deep);
  margin: 0 0 1.5rem;
}
.page p { margin: 0 0 1.3rem; font-size: 1.08rem; }
.page .lead { font-size: 1.15rem; color: var(--ink-soft); }
.contact-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  margin-top: 1.5rem;
}
.contact-card .email {
  font-family: var(--serif);
  font-size: 1.35rem;
  display: inline-block;
  margin-top: 0.5rem;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  margin-top: 3rem;
  padding: 2.5rem 0;
}
.footer-inner { text-align: center; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 0.4rem; }
.footer-tagline { color: var(--gold-soft); font-style: italic; margin: 0 0 0.9rem; font-size: 0.92rem; }
.footer-contact { margin: 0 0 0.9rem; }
.footer-contact a { color: var(--cream); }
.footer-copy { font-size: 0.82rem; color: rgba(247, 243, 234, 0.65); margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  background: var(--forest);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 50;
}
.back-to-top:hover { background: var(--forest-soft); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--forest-deep);
    border-bottom: 3px solid var(--gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    z-index: 40;
  }
  .site-header { position: relative; }
  .site-nav.open { max-height: 260px; }
  .site-nav a {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }
  .post-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
