:root {
  --ink: #17211f;
  --muted: #65706d;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --brand: #23695f;
  --brand-dark: #12463f;
  --leaf: #8aad4f;
  --sun: #e6aa45;
  --water: #2e7ca6;
  --line: #dfe5dc;
  --shadow: 0 18px 60px rgba(24, 42, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 229, 220, 0.8);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 50%;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #33413e;
  font-size: 15px;
}

.hero {
  position: relative;
  min-height: 88vh;
  padding: 140px 0 96px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 22, 18, 0.78), rgba(8, 22, 18, 0.42) 52%, rgba(8, 22, 18, 0.16)),
    linear-gradient(0deg, rgba(8, 22, 18, 0.65), rgba(8, 22, 18, 0.05) 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 30px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-search {
  display: flex;
  width: min(680px, 100%);
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
}

.hero-search button,
.search-row select,
.ghost-button,
.quick-tags button,
.card button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.hero-search button {
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: var(--brand);
  font-weight: 800;
}

.stats-band {
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 72px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-band div {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  color: var(--brand-dark);
  font-size: 32px;
  line-height: 1;
}

.stats-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.search-section,
.feature-band,
.knowledge-section,
.ad-slot-wide {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 84px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 16px;
  color: #71807a;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(35, 105, 95, 0.08), rgba(230, 170, 69, 0.08)),
    #fbfcf9;
  border: 1px dashed #b9c7c1;
  border-radius: 8px;
}

.ad-slot span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot-wide {
  margin-top: -32px;
}

.ad-slot-sidebar {
  min-height: 300px;
  position: sticky;
  top: 88px;
}

.ad-slot-infeed {
  grid-column: 1 / -1;
  min-height: 120px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.side-note {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 42, 37, 0.08);
}

.side-note h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.side-note p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading.compact {
  max-width: none;
}

.section-heading h2,
.knowledge-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.knowledge-copy p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
}

.search-panel {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 36px rgba(24, 42, 37, 0.08);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 170px;
  gap: 12px;
}

.search-row input,
.search-row select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  background: #fbfcf9;
  padding: 0 14px;
  color: var(--ink);
}

.search-row input:focus,
.search-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(35, 105, 95, 0.13);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-tags button,
.ghost-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--brand-dark);
  background: #edf4e5;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 18px;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 42, 37, 0.08);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.latin {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.type-pill {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 9px;
  color: white;
  background: var(--water);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.type-pill.plant {
  background: var(--brand);
}

.card p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 16px;
}

.tags span {
  padding: 3px 8px;
  color: #44514d;
  background: #f0f1eb;
  border-radius: 999px;
  font-size: 12px;
}

.card button {
  min-height: 42px;
  color: white;
  background: var(--brand-dark);
  font-weight: 800;
}

.empty {
  grid-column: 1 / -1;
  padding: 44px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.feature-band {
  padding-top: 8px;
}

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

.topic-grid article {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.topic-grid h3,
.topic-grid p {
  margin-right: 18px;
  margin-left: 18px;
}

.topic-grid h3 {
  margin-top: 16px;
  margin-bottom: 6px;
}

.topic-grid p {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--muted);
}

.knowledge-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
  padding: 44px;
  background: #e8efe6;
  border: 1px solid #d1decd;
  border-radius: 8px;
}

.seo-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.seo-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(209, 222, 205, 0.9);
  border-radius: 8px;
}

.seo-list span {
  color: var(--muted);
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 16, 0.68);
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  padding: 34px;
}

.modal-body h2 {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.1;
}

.modal-body dl {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.modal-body dt {
  font-weight: 800;
}

.modal-body dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer {
  padding: 34px 16px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  background: #13231f;
}

.footer p {
  margin: 4px 0;
}

@media (max-width: 860px) {
  .nav {
    height: 62px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding-top: 112px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .stats-band,
  .cards-grid,
  .topic-grid,
  .knowledge-section,
  .content-layout,
  .modal-card {
    grid-template-columns: 1fr;
  }

  .ad-slot-sidebar {
    position: static;
    min-height: 160px;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .knowledge-section {
    padding: 26px;
  }

  .seo-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .modal-card img {
    min-height: 240px;
    max-height: 320px;
  }
}

@media (max-width: 560px) {
  .hero-search {
    display: grid;
    gap: 8px;
  }

  .hero-search input,
  .hero-search button {
    min-height: 46px;
  }

  .result-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-body {
    padding: 24px;
  }
}
