:root {
  color-scheme: light;
  --olive: #edf0da;
  --paper: #faf9ef;
  --ink: #1e3a2f;
  --muted: #5d6d5c;
  --rust: #c66a2e;
  --rust-soft: #f4dfc9;
  --line: #cbd4b6;
  --leaf: #b7c58d;
  --leaf-dark: #7c8f5e;
  --good: #5d8b4c;
  --watch: #d29a32;
  --attention: #c35b3c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--olive);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: var(--rust);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 0.6rem 0;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}

.brand img {
  width: 172px;
  height: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.35rem 0.6rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 0.55rem;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  background: var(--rust-soft);
  color: var(--ink);
}

main .wrap {
  padding-block: 2.4rem 4rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--rust);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: 1.5rem 3rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.button-link,
.button-link.quiet {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0.7rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

.button-link.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button-link.quiet:hover {
  background: var(--rust-soft);
  color: var(--ink);
  border-color: var(--rust);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  box-shadow: 0 16px 36px rgba(30, 58, 47, 0.08);
}

.panel h2 {
  font-size: 1.35rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.mini-tile {
  padding: 0.8rem;
  background: var(--olive);
  border-radius: 0.8rem;
}

.mini-tile strong,
.mini-tile span {
  display: block;
}

.mini-tile strong {
  font-size: 1.25rem;
}

.mini-tile span {
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  margin-top: 3.2rem;
}

.section-head {
  max-width: 700px;
  margin-bottom: 1.25rem;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.doc-card {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.card p,
.doc-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.card h3,
.doc-card h3 {
  margin-bottom: 0.45rem;
}

.doc-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.doc-card:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
}

.map-card {
  overflow: hidden;
}

.map-card > p {
  color: var(--muted);
  font-size: 0.9rem;
}

.tree-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem;
  background: #e2e8cb;
  border: 1px dashed var(--leaf-dark);
  border-radius: 0.9rem;
}

.tree-cell {
  position: relative;
  min-width: 0;
  min-height: 7.6rem;
  padding: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.tree-cell::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--leaf);
  opacity: 0.75;
}

.tree-cell::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  right: 0.8rem;
  width: 0.25rem;
  height: 1.2rem;
  background: var(--leaf-dark);
  transform: rotate(14deg);
}

.tree-cell strong,
.tree-cell .species {
  display: block;
  position: relative;
  z-index: 1;
}

.tree-cell strong {
  font-size: 0.9rem;
}

.tree-cell .species {
  max-width: 8rem;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.health {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 650;
}

.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--good);
}

.health.watch .dot,
.dot.watch {
  background: var(--watch);
}

.health.attention .dot,
.dot.attention {
  background: var(--attention);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.table-card {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.table-card h2 {
  font-size: 1.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

caption {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.83rem;
  text-align: left;
}

th,
td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

thead th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.page-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.breadcrumb {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.prose {
  max-width: 76ch;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.6rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose code {
  padding: 0.1rem 0.3rem;
  background: var(--rust-soft);
  border-radius: 0.3rem;
  font-size: 0.9em;
}

.steps {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 2rem;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.step-number {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--rust-soft);
  color: var(--rust);
  font-weight: 800;
}

.step h3 {
  margin-bottom: 0.35rem;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--rust-soft);
  border-left: 4px solid var(--rust);
  border-radius: 0.5rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--paper);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tree-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.5rem, 1120px);
  }

  .header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    width: 100%;
    gap: 0.25rem;
  }

  main .wrap {
    padding-block: 1.6rem 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  .mini-grid,
  .card-grid,
  .doc-grid,
  .tree-grid {
    grid-template-columns: 1fr;
  }

  .section {
    margin-top: 2.4rem;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tbody tr {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }

  tbody td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 2fr);
    gap: 0.5rem;
    padding: 0.3rem 0.25rem;
    border-bottom: 0;
  }

  tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .footer-row {
    flex-direction: column;
  }
}
