:root {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --surface-2: #eef4e8;
  --text: #223126;
  --muted: #5f6f61;
  --line: #dbe5d7;
  --primary: #2f7d4b;
  --primary-strong: #1d5e35;
  --chip: #edf5ee;
  --shadow: 0 10px 25px rgba(34, 49, 38, 0.08);
}

[data-theme="dark"] {
  --bg: #101611;
  --surface: #182019;
  --surface-2: #1d281f;
  --text: #edf5ee;
  --muted: #adc2b1;
  --line: #2d3b2f;
  --primary: #7fd18c;
  --primary-strong: #5cb56b;
  --chip: #223026;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.nav nav { display: flex; gap: 18px; flex-wrap: wrap; }
.logo { font-weight: 800; letter-spacing: -0.02em; }
#theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.hero, .page-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  padding: 56px 0 28px;
}
.page-hero { grid-template-columns: 1fr; padding-bottom: 18px; }
.hero h1, .section h2, .site-footer h2, .article-body h2, .article-body h3 { line-height: 1.2; letter-spacing: -0.03em; }
.hero h1, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 12px; }
.lead { font-size: 1.06rem; color: var(--muted); }
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-actions, .hero-points, .meta-row, .footer-links, .tags, .topic-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; }
.hero-points li, .tag, .topic-chips span {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn.secondary { background: var(--surface); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.ad-slot, .ad-inline { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.ad-inline { margin: 18px 0; }
.ad-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.small { color: var(--muted); font-size: 0.92rem; }
.trust-bar, .legal-grid, .article-grid, .related-grid, .guide-grid, .plant-grid, .footer-grid, .toc-grid, .two-col {
  display: grid;
  gap: 18px;
}
.trust-bar { grid-template-columns: repeat(3, 1fr); padding: 0 0 12px; }
.section { padding: 34px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.filters label { display: grid; gap: 6px; font-weight: 700; }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 140px; }
.plant-grid { grid-template-columns: repeat(3, 1fr); }
.plant-card h3, .article-card h3, .guide-card h3 { margin: 0 0 8px; }
.plant-card p, .article-card p, .guide-card p { margin: 8px 0; }
.meta span, .tags span {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
}
.two-col { grid-template-columns: repeat(2, 1fr); }
.checklist ol, .article-body ul, .article-body ol, .prose ul, .prose ol { margin: 0; padding-left: 20px; }
.faq-list { display: grid; gap: 12px; }
summary { cursor: pointer; font-weight: 700; }
.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(420px, 100%);
}
.newsletter-form button {
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  padding: 0 18px;
  font-weight: 700;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
}
.footer-grid { grid-template-columns: repeat(3, 1fr); }
.footer-links { margin-top: 16px; color: var(--muted); }
.hidden { display: none; }
.prose { display: grid; gap: 18px; }
.prose .card h2, .prose .card h3 { margin-top: 0; }
.legal-grid { grid-template-columns: repeat(4, 1fr); }
.legal-card, .article-card, .guide-card { transition: transform 0.18s ease, border-color 0.18s ease; }
.legal-card:hover, .article-card:hover, .guide-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.info-table th { background: var(--surface-2); }
.callout { border-left: 4px solid var(--primary); padding-left: 16px; }
.breadcrumbs { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.article-body .card, .article-sidebar .card { margin-bottom: 18px; }
.article-body h2 { margin: 0 0 12px; }
.article-body h3 { margin: 0 0 10px; }
.article-body p { margin: 0 0 14px; }
.toc-grid { grid-template-columns: 1fr; }
.guide-grid, .article-grid, .related-grid { grid-template-columns: repeat(3, 1fr); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.92rem; }
.checklist-box li + li { margin-top: 8px; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.note { color: var(--muted); font-size: 0.95rem; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

@media (max-width: 960px) {
  .hero, .footer-grid, .legal-grid, .guide-grid, .article-grid, .related-grid, .newsletter, .article-layout { grid-template-columns: 1fr 1fr; }
  .hero, .article-layout { grid-template-columns: 1fr; }
  .plant-grid, .filters, .footer-grid, .legal-grid, .guide-grid, .article-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { display: grid; }
}

@media (max-width: 640px) {
  .nav { align-items: flex-start; }
  .nav nav { font-size: 0.92rem; }
  .trust-bar, .filters, .plant-grid, .two-col, .footer-grid, .legal-grid, .guide-grid, .article-grid, .related-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .newsletter-form { grid-template-columns: 1fr; }
}

/* Round 2: Visual Enhancements */
:root {
  --font-heading: "Boska", Georgia, serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
}

body { font-family: var(--font-body); }
h1, h2, h3, .logo { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; }

.article-hero-img {
  width: 100%; height: 320px;
  object-fit: cover; border-radius: 24px;
  margin-bottom: 32px;
  background: var(--line); 
}

.plant-card img {
  width: calc(100% + 40px); aspect-ratio: 4/3;
  object-fit: cover; border-radius: 12px 12px 0 0;
  margin: -20px -20px 20px;
}

#guide-search {
  width: 100%; max-width: 600px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  margin: 0 auto 40px;
  display: block;
  transition: border-color 0.2s;
}
#guide-search:focus { border-color: var(--accent); outline: none; }

/* Contact Form Styling */
.contact-form {
  margin-top: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}
.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 125, 75, 0.1);
}
.contact-form button.btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
}
