:root {
  --bg-sand: #FAF7F2;
  --bg-card: #FFFFFF;
  --text-main: #23272A;
  --text-muted: #6B7280;
  --primary-green: #205E44;
  --primary-hover: #184834;
  --accent-gold: #F4C430;
  --accent-soft-green: #E8F3EE;
  --accent-salmon: #FFE9E3;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
  background-color: var(--bg-sand);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.text-center { text-align: center; }
.italic-serif { font-family: var(--font-serif); font-style: italic; color: var(--primary-green); }

/* Announcement */
.announcement-bar {
  background: var(--accent-soft-green);
  color: var(--primary-green);
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(32, 94, 68, 0.12);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.25rem;
}

.brand-badge {
  font-size: 1.4rem;
}

.brand-name strong {
  color: var(--primary-green);
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--primary-green);
}

.cite-chip {
  background: var(--accent-gold);
  color: #553C00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn-primary {
  background: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #ECE5DC;
}

.btn-outline {
  background: #FFF;
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: #f1ede6;
}

/* Hero */
.hero-section {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.tag-pill {
  display: inline-block;
  background: #EDE6DC;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 18px;
}

.tag-pill.light {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.trust-indicators {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual-card {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.floating-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-badge .badge-icon {
  font-size: 1.6rem;
}

.floating-badge small {
  display: block;
  color: var(--text-muted);
}

/* Section Shared */
.section-padding {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-green);
  display: block;
  margin-bottom: 8px;
}

.subtext {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 8px auto 0;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-card.highlighted-pillar {
  border: 2px solid var(--primary-green);
  background: #FAFDFC;
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cite-link {
  color: var(--primary-green);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Matcher Tool */
.matcher-section {
  padding: 50px 0;
}

.matcher-box {
  background: var(--primary-green);
  color: #fff;
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.matcher-header h2 {
  font-size: 2rem;
  margin: 6px 0 8px;
}

.matcher-header p {
  color: #D3E7DC;
}

.vibe-buttons {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.vibe-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.vibe-btn.active, .vibe-btn:hover {
  background: #fff;
  color: var(--primary-green);
}

.vibe-result-card {
  background: #fff;
  color: var(--text-main);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

/* Articles Grid */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: #EDE7DE;
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary-green);
  color: #fff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.article-card.featured-article {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.card-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-gold);
  color: #4A3500;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.article-preview-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body-pad {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  color: var(--primary-green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-cite-btn {
  background: #F1ECE3;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--primary-green);
}

/* Newsletter */
.newsletter-wrap {
  padding: 60px 0;
}

.newsletter-card {
  background: #EDE6DC;
  padding: 54px 24px;
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: 0 auto;
}

.pill-chip {
  background: #DFD5C6;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 24px auto 12px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  outline: none;
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #ECE5DB;
  border-top: 1px solid var(--border-light);
  padding: 48px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-links h4, .footer-disclaimer h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-disclaimer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #FFF;
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.source-item {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3F1ED;
}

.source-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.source-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.source-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillars-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .hero-title { font-size: 2.2rem; }
}