:root {
  --ink: #18352f;
  --ink-soft: #49645e;
  --forest: #0b5f4c;
  --forest-dark: #07483a;
  --mint: #d9f1e7;
  --mint-light: #eef9f5;
  --cream: #f8f5ed;
  --paper: #fffef9;
  --coral: #e86f51;
  --line: #cfddd7;
  --shadow: 0 20px 50px rgba(24, 53, 47, 0.1);
  --radius: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--forest);
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 8px;
}

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

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(207, 221, 215, 0.8);
  background: rgba(248, 245, 237, 0.92);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50% 50% 44% 56%;
  background: var(--forest);
  color: white;
  transform: rotate(-6deg);
}

.brand-mark svg {
  width: 23px;
  transform: rotate(6deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--forest);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: white !important;
  padding: 0.65rem 1.1rem;
  font-weight: 750;
  text-decoration: none;
  transition: 160ms ease;
}

.nav-cta:hover,
.button:hover {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--forest) !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8.5rem) 0 5.5rem;
  background:
    radial-gradient(circle at 83% 10%, rgba(217, 241, 231, 0.9) 0 10%, transparent 34%),
    linear-gradient(145deg, var(--paper), var(--cream));
}

.hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -12rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid var(--line);
  border-radius: 46% 54% 58% 42%;
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: var(--coral);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 850px;
  margin: 1rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 500;
}

.hero h1 em {
  color: var(--forest);
  font-weight: 500;
}

.hero-copy {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.evidence-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 30px 30px 80px 30px;
  background: rgba(255, 254, 249, 0.9);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.evidence-card .mini-map {
  height: 230px;
  border-radius: 18px 18px 58px 18px;
  background:
    radial-gradient(circle at 25% 28%, var(--coral) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 42%, var(--coral) 0 4px, transparent 5px),
    radial-gradient(circle at 67% 68%, var(--coral) 0 4px, transparent 5px),
    radial-gradient(circle at 74% 30%, var(--coral) 0 4px, transparent 5px),
    url("/assets/world.svg") center / 88% no-repeat,
    var(--mint-light);
}

.evidence-card strong {
  display: block;
  margin-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.stat {
  padding: 2rem;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat b {
  display: block;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.tint {
  background: var(--mint-light);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section h2,
.page-intro h1 {
  margin: 0.6rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 500;
}

.section-heading p,
.page-intro p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

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

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.65rem;
}

.feature-number {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-weight: 850;
}

.feature h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

.page-intro {
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
  background: var(--paper);
}

.page-intro h1 {
  max-width: 850px;
}

.page-intro p {
  max-width: 760px;
}

.finder-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0 5rem;
}

.filters {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.25rem;
}

.filters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filters-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--forest);
  padding: 0;
  font-size: 0.85rem;
  font-weight: 750;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 0.62rem 0.7rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(11, 95, 76, 0.16);
  border-color: var(--forest);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.search-row input {
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.results-toolbar h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.results-toolbar p {
  margin: 0;
  color: var(--ink-soft);
}

.view-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0.25rem;
}

.view-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.45rem 0.85rem;
  font-weight: 750;
}

.view-tabs button[aria-selected="true"] {
  background: var(--mint);
  color: var(--forest);
}

.result-list {
  display: grid;
  gap: 0.8rem;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.4rem;
  transition: 160ms ease;
}

.result-card:hover {
  border-color: #9cbcaf;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(24, 53, 47, 0.07);
}

.result-card h3 {
  margin: 0.4rem 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.result-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.result-card p {
  margin: 0;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag,
.location {
  display: inline-flex;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
}

.tag {
  background: var(--mint-light);
  color: var(--forest);
  padding: 0.28rem 0.65rem;
}

.location {
  color: var(--ink-soft);
}

.map-panel {
  position: relative;
}

#map {
  z-index: 1;
  height: 610px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9f3ef;
}

.map-dot {
  display: grid;
  width: 22px !important;
  height: 22px !important;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 3px 10px rgba(24, 53, 47, 0.35);
}

.map-count {
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.leaflet-popup-content a {
  font-weight: 750;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination button {
  min-height: 42px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  padding: 0.5rem 1rem;
  font-weight: 750;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.empty,
.error {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 3rem 1.5rem;
  text-align: center;
}

.error {
  border-color: #d99b8b;
  color: #7b2f1c;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose li + li {
  margin-top: 0.6rem;
}

.side-note {
  border-left: 3px solid var(--coral);
  padding-left: 1.2rem;
}

.side-note h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.case-shell {
  min-height: 60vh;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.case-meta div {
  background: var(--paper);
  padding: 1rem;
}

.case-meta dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0.25rem 0 0;
  font-weight: 750;
}

.callout {
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.callout h2 {
  margin-top: 0;
  color: white;
}

.callout p {
  color: rgba(255, 255, 255, 0.8);
}

.form-card {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.site-footer .brand {
  color: white;
}

.site-footer h2 {
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.82rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    inset: 74px 1rem auto;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 5.2rem);
  }

  .evidence-card {
    max-width: 560px;
  }

  .finder-shell {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    max-height: none;
  }

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

@media (max-width: 640px) {
  .feature-grid,
  .stats-bar,
  .footer-grid,
  .case-meta {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .filters-fields {
    grid-template-columns: 1fr;
  }

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

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

