:root {
  color-scheme: light;
  --bg: #f5f3ec;
  --ink: #1f2a24;
  --muted: #647067;
  --line: #d8d5cb;
  --panel: #ffffff;
  --accent: #2f7658;
  --accent-dark: #20523d;
  --leaf: #6aa14e;
  --sheet: #2a6f97;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(31, 42, 36, 0.18);
  background: #fbfaf6;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 18px;
}

.site-header nav a {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.brand:hover {
  color: var(--accent-dark);
}

.eyebrow,
.subtitle,
.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  max-width: 920px;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #27352b;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 26, 18, 0.8), rgba(13, 26, 18, 0.38) 54%, rgba(13, 26, 18, 0.12)),
    linear-gradient(0deg, rgba(13, 26, 18, 0.82), rgba(13, 26, 18, 0) 48%);
}

.hero-copy {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 11vh;
  color: #ffffff;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.55;
}

.primary-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  min-width: 148px;
  margin-top: 28px;
  padding: 0 18px;
}

.primary-link:hover,
.button-link:hover {
  background: var(--accent-dark);
}

.landing-section {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.credits-section {
  padding-top: 48px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
}

.credits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credits-list li {
  color: #465149;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
}

.credits-list li strong {
  color: #243026;
  font-weight: 700;
}

.credits-conference {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(47, 118, 88, 0.06);
  border-radius: 0 8px 8px 0;
  color: #2c3a31;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.65;
}

.credits-conference a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.credits-conference a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #edebe2;
  padding: 44px 24px;
}

.footer-container {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-logos a {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logos a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.footer-logo {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.project-story {
  max-width: 820px;
}

.project-story h2 {
  max-width: 720px;
  margin-bottom: 28px;
  color: #243026;
}

.project-story p:not(.eyebrow):not(.credits-conference) {
  margin: 0;
  color: #465149;
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.project-story p:not(.eyebrow):not(.credits-conference) + p {
  margin-top: 18px;
}

.project-story > p:last-child {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: #2c3a31;
  font-weight: 650;
}

.map-page {
  height: 100vh;
  overflow: hidden;
}

.map-header {
  min-height: 62px;
  justify-content: flex-start;
}

.home-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(31, 42, 36, 0.18);
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-dark);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(31, 42, 36, 0.08);
  transition: all 0.2s ease;
}

.home-link svg {
  display: block;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.home-link:hover {
  border-color: var(--accent);
  background: #eef3ec;
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 118, 88, 0.12);
}

.home-link:hover svg {
  transform: scale(1.05);
}

.home-link:focus-visible {
  outline: 3px solid rgba(47, 118, 88, 0.24);
  outline-offset: 2px;
}

.shell {
  height: calc(100vh - 62px);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  position: relative;
  overflow: hidden;
}

.sidebar {
  position: relative;
  z-index: 20;
  padding: 16px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel + .panel {
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field + .field {
  margin-top: 12px;
}

label {
  font-size: 0.85rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bfc8bf;
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(47, 118, 88, 0.22);
  border-color: var(--accent);
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.metrics div {
  min-height: 76px;
  padding: 12px;
  border-radius: 8px;
  background: #eef3ec;
}

.metrics strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.legend h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.legend p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.legend .muted {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.details h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.latin {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-style: italic;
}

.detail-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid #ece9df;
}

.detail-row dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-row dd {
  margin: 0;
  font-weight: 650;
}

.button-link {
  min-width: 112px;
  margin-top: 16px;
  padding: 0 13px;
}

.map-wrap,
#map {
  min-width: 0;
  height: 100%;
}

.map-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#map {
  background: #dce5d5;
}

.leaflet-container {
  z-index: 1;
}

.tree-icon {
  background: transparent;
  border: 0;
}

.tree-marker,
.legend-dot {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #6f9c5e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(31, 42, 36, 0.26);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
}

.tree-marker.has-sheet,
.legend-dot.has-sheet {
  width: 38px;
  height: 38px;
  border: 3px solid #ffffff;
  background: #1668a6;
  box-shadow:
    0 0 0 3px rgba(22, 104, 166, 0.28),
    0 4px 14px rgba(20, 50, 70, 0.42);
  font-size: 0.78rem;
}

.leaflet-tooltip.tree-label,
.plant-label {
  border: 0;
  border-radius: 5px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #243026;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 1px 5px rgba(31, 42, 36, 0.2);
}

.leaflet-tooltip.plant-label {
  background: rgba(255, 255, 255, 0.86);
  color: #1f2a24;
}

.leaflet-popup-content {
  margin: 12px 14px;
  min-width: 180px;
}

.popup-title {
  margin: 0 0 3px;
  font-weight: 850;
}

.popup-text {
  margin: 0;
  color: #4f5b53;
}

@media (max-width: 920px) {
  .landing-section {
    padding-top: 52px;
  }
}

@media (max-width: 800px) {
  .site-header {
    padding: 0 16px;
  }

  .map-page {
    height: auto;
    overflow: auto;
  }

  .shell {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
  }

  .sidebar {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .map-wrap {
    height: 62vh;
    min-height: 390px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 12px;
  }

  .hero {
    min-height: calc(100vh - 91px);
  }

  .hero-copy {
    padding-bottom: 9vh;
  }

  .landing-section {
    width: min(100% - 32px, 1040px);
    padding: 44px 0 60px;
  }

  .project-story h2 {
    margin-bottom: 22px;
  }
}
