:root {
  --bg: #f4f1e8;
  --bg-strong: #ece6d7;
  --surface: #ffffff;
  --surface-soft: #f6f4ee;
  --ink: #163124;
  --muted: #5e6f65;
  --line: rgba(22, 49, 36, 0.12);
  --green: #2f6b3c;
  --green-dark: #1f4e2c;
  --green-soft: #e7f2e7;
  --sage: #dce7d7;
  --gold: #bc8b3c;
  --shadow: 0 22px 60px rgba(20, 38, 28, 0.1);
  --shadow-soft: 0 12px 30px rgba(20, 38, 28, 0.08);
  --radius: 28px;
  --radius-sm: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(202, 154, 63, 0.1), transparent 24%),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
  color: var(--ink);
  font: 16px/1.65 Georgia, "Times New Roman", serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(22, 49, 36, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand-mark { width: 260px; max-width: 100%; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-links a:hover {
  color: var(--ink);
  border-color: rgba(47, 107, 60, 0.3);
}
.nav-admin { opacity: 0.7; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 107, 60, 0.2);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-color: var(--line);
}

section { padding: 40px 0; }
.hero {
  padding: 78px 0 44px;
  background:
    radial-gradient(circle at top right, rgba(111, 169, 93, 0.15), transparent 28%),
    radial-gradient(circle at left, rgba(188, 139, 60, 0.14), transparent 24%),
    linear-gradient(180deg, #fcfbf7 0%, transparent 100%);
}
.hero-grid,
.grid-2,
.grid-3,
.grid-4,
.state-grid,
.story-grid,
.impact-grid,
.trust-grid,
.path-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}
.hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
.hero-grid-home { align-items: stretch; }
.grid-2,
.story-grid,
.mission-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3,
.state-grid,
.impact-grid,
.path-grid,
.footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4,
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow,
.pill,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1, h2, h3 {
  margin: 0 0 10px;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
h2 {
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1.14rem;
  line-height: 1.3;
}
p { margin: 0 0 12px; }
.lead {
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}
.muted, .meta, .card p, .panel p, .topic p, .trust-card p, .state-card p, .feature-card p, .path-card p, .metric-card p { color: var(--muted); }
.meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}
.section-head { margin-bottom: 18px; }
.section-head p { margin: 0; max-width: 72ch; color: var(--muted); }
.section-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.mini-note-card,
.help-panel,
.source-panel,
.panel,
.post-row,
.topic,
.trust-card,
.state-card,
.quote-box,
.feature-card,
.metric-card,
.form-shell,
.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mini-note-card,
.help-panel,
.source-panel,
.panel,
.post-row,
.topic,
.trust-card,
.state-card,
.feature-card,
.metric-card,
.form-shell,
.path-card {
  padding: 22px;
}
.card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-visual {
  position: relative;
  min-height: 520px;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 38, 28, 0.04) 0%, rgba(20, 38, 28, 0.58) 100%);
}
.hero-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}
.hero-badge-wide { max-width: 380px; }
.hero-badge strong,
.metric-number,
.state-card strong,
.trust-card strong,
.path-card h3 { display: block; }
.metric-number {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--green-dark);
}
.path-card,
.state-card,
.news-card,
.topic,
.post-row {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.path-card:hover,
.state-card:hover,
.news-card:hover,
.topic:hover,
.post-row:hover { transform: translateY(-2px); }
.path-link,
.inline-link-row a {
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.inline-link-row { margin-top: 14px; }
.stack-list,
.list,
.footer-links {
  display: grid;
  gap: 14px;
}
.stack-item,
.trust-list-item {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(22, 49, 36, 0.08);
}
.stack-item:last-child,
.trust-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.stack-item span,
.trust-list-item span { color: var(--muted); }
.trust-list { margin-top: 18px; }

.trust-strip-section { padding-top: 6px; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.trust-strip-item {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 49, 36, 0.08);
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.soft-section {
  background: linear-gradient(180deg, rgba(220, 231, 215, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
}
.mission-box {
  display: grid;
  align-content: center;
  padding: 30px;
  background: linear-gradient(135deg, #1f4e2c 0%, #356f44 100%);
  color: #eef6ef;
}
.mission-box p { color: rgba(238, 246, 239, 0.84); }
.quote-box {
  padding: 28px;
  background: linear-gradient(135deg, #1f4e2c 0%, #2f6b3c 100%);
  color: #eef6ef;
  box-shadow: 0 24px 50px rgba(20, 38, 28, 0.18);
}
.quote-box p { color: rgba(238, 246, 239, 0.84); }

.post-media,
.article img.hero-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.post-media {
  height: 210px;
  object-fit: cover;
  margin-bottom: 14px;
}
.content { max-width: 800px; }
.article-kickers { margin-bottom: 16px; }
.article img.hero-img { margin: 18px 0; }

.featured-news {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-bottom: 18px;
}
.news-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news-feed-compact { grid-template-columns: 1fr; }
.news-card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.news-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.news-card-body { padding: 16px 16px 18px; }
.lead-news-card .news-card-media { aspect-ratio: 16 / 8; }
.lead-news-card .news-card-body { padding: 20px 20px 22px; }
.lead-news-card .news-card-title {
  font-size: 1.45rem;
  line-height: 1.28;
}
.news-card-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.news-card-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}
.news-card-excerpt {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.96rem;
}
.news-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}
.source-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.filter-chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.source-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.source-list span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.source-list strong { display: block; }

.footer {
  padding: 40px 0 48px;
  color: var(--muted);
}
.footer-stack {
  display: grid;
  gap: 18px;
}
.footer-grid { align-items: start; }
.footer-brand p { margin-bottom: 18px; }
.footer-links a {
  color: var(--muted);
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.footer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.footer-card strong,
.footer-card span {
  display: block;
}
.footer-card span { margin-top: 6px; }
.footer-meta {
  font-size: 0.94rem;
  font-family: Arial, Helvetica, sans-serif;
}

.stack { display: grid; gap: 14px; }
form input,
form select,
form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(22, 49, 36, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
form textarea {
  min-height: 160px;
  resize: vertical;
}
form input[type="file"] {
  padding: 10px 0;
  border: 0;
  background: transparent;
}

@media (max-width: 1040px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .path-grid,
  .state-grid,
  .impact-grid,
  .trust-grid,
  .featured-news,
  .news-feed,
  .footer-grid,
  .footer-trust,
  .trust-strip,
  .hero-note-grid {
    grid-template-columns: 1fr;
  }

  .nav { align-items: flex-start; }
  .brand-mark { width: 220px; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.8rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .panel,
  .post-row,
  .topic,
  .trust-card,
  .state-card,
  .quote-box,
  .feature-card,
  .metric-card,
  .form-shell,
  .path-card,
  .help-panel,
  .source-panel,
  .mini-note-card {
    padding: 18px;
  }
  .news-card-footer { flex-direction: column; align-items: flex-start; }
}
