:root {
  --cream: #f7f2e8;
  --green: #314d3d;
  --sage: #d9e3d3;
  --gold: #c58b3f;
  --ink: #26312b;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(38, 49, 43, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--green); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  min-height: 85vh;
  background: linear-gradient(135deg, rgba(49,77,61,.92), rgba(49,77,61,.72)), url('https://images.unsplash.com/photo-1518098268026-4e89f1a2cd8e?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.page-header { background: var(--green); color: var(--white); }
.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand { color: inherit; font-size: 1.4rem; font-weight: 800; }
.logo { margin-right: .35rem; }
.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-links a { color: inherit; }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; margin: .5rem 0 1rem; }
.hero-copy { font-size: 1.25rem; max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--gold); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button, button {
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.25rem;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
}
.primary { background: var(--gold); color: var(--ink); }
.secondary { background: rgba(255,255,255,.16); color: var(--white); border: 1px solid rgba(255,255,255,.45); }
.hero-card, .report-card, .report-full, .walk-form, .map-placeholder {
  background: var(--white);
  color: var(--ink);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section-heading { max-width: 720px; margin-bottom: 1.5rem; }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.report-card h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.date { color: #6f756f; font-weight: 700; }
.species-list { padding-left: 1.25rem; }
.muted { background: var(--sage); }
.map-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: center; }
.map-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--sage), var(--white));
  border: 2px dashed rgba(49,77,61,.25);
}
.map-placeholder span { font-size: 2rem; font-weight: 800; color: var(--green); }

.map-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 28px;
  padding: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

#walk-map {
  min-height: 380px;
  width: 100%;
  border-radius: 22px;
  z-index: 1;
}

.leaflet-popup-content {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.45;
}

.leaflet-popup-content p {
  margin: .5rem 0;
}

.walk-form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid #c9d2c5;
  border-radius: 14px;
  padding: .85rem;
  font: inherit;
  background: #fffdf8;
}
textarea { min-height: 110px; resize: vertical; }
button { background: var(--green); color: var(--white); justify-self: start; }
.note { background: var(--sage); padding: 1rem; border-radius: 18px; }
.footer { text-align: center; padding: 2rem 1rem; background: var(--green); color: var(--white); }
.report-page { max-width: 960px; margin: 0 auto; padding: 3rem 1.25rem; }
.report-full h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; color: var(--green); }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; overflow: hidden; }
th, td { text-align: left; border-bottom: 1px solid #dfe6da; padding: .8rem; }
th { background: var(--sage); color: var(--green); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery div { min-height: 130px; display: grid; place-items: center; background: var(--sage); border-radius: 18px; text-align: center; padding: 1rem; }

@media (max-width: 760px) {
  .hero, .cards, .map-section { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
}


.tally-section {
  padding-top: 2rem;
}

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

.tally-card {
  background: var(--white);
  border-radius: 22px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tally-card span {
  font-weight: 800;
  color: var(--green);
}

.tally-card strong {
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--ink);
  font-size: 1.1rem;
}

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


/* Clickable bird tally report links */
.tally-card {
  background: var(--white);
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tally-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tally-card summary::-webkit-details-marker {
  display: none;
}

.tally-card[open] summary {
  border-bottom: 1px solid rgba(49,77,61,.14);
}

.tally-report-list {
  margin: 0;
  padding: .85rem 1.15rem 1rem 2rem;
}

.tally-report-list li {
  margin: .25rem 0;
}

.tally-report-list span {
  color: #6f756f;
  font-size: .9rem;
}


/* Bird tally link cards */
.tally-link {
  text-decoration: none;
}

.tally-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.tally-card {
  background: var(--white);
  border-radius: 22px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tally-card span {
  font-weight: 800;
  color: var(--green);
}

.tally-card strong {
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--ink);
  font-size: 1.1rem;
}
