:root {
  --pine: #244b3a;
  --forest: #183d31;
  --ink: #263f35;
  --lake: #9fc9cc;
  --cream: #f7f5ef;
  --sand: #eee8da;
  --rust: #b35f38;
  --gold: #d1a13a;
  --sage: #738b72;
  --white: #fff;
  --muted: #66756f;
  --good: #dbe8d4;
  --goodink: #315b37;
  --mixed: #f4e4bd;
  --mixedink: #765516;
  --poor: #ead8d0;
  --poorink: #7b3d2e;
}

/* Scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scroll-animate {
  opacity: 0;
}

.scroll-animate.in-view {
  animation: fadeInUp 0.6s ease-out forwards;
}

.scroll-animate.slide-left.in-view {
  animation: slideInLeft 0.6s ease-out forwards;
}

.scroll-animate.slide-right.in-view {
  animation: slideInRight 0.6s ease-out forwards;
}

.jaeger-card.scroll-animate.in-view {
  animation: slideInLeft 0.6s ease-out forwards;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: #faf9f5;
}

a {
  color: inherit;
}

.hero {
  background: linear-gradient(135deg, var(--forest), #315d49);
  color: #fff;
  padding: 18px max(3vw, 20px) 46px;
  overflow: hidden;
}

.hero nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1240px;
  margin: auto;
  flex-wrap: wrap;
}

.brand {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.brand span {
  font-weight: 550;
  opacity: 0.75;
}

.hero-grid {
  max-width: 1240px;
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  color: #e8bd58;
  margin: 0 0 9px;
}

.eyebrow.dark {
  color: var(--rust);
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  font-weight: 500;
}

.hero h1 em {
  font-weight: 400;
  color: #d8e4dc;
}

.lede {
  font-size: 15px;
  line-height: 1.5;
  max-width: 620px;
  color: #e0ebe8;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.button, .donate, .outlook-button {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: 11px 15px;
  border-radius: 4px;
  font-size: 13px;
}

.button, .donate {
  background: var(--rust);
  color: #fff;
}

.outlook-button {
  background: #fff;
  color: var(--forest);
  border: 2px solid #fff;
}

.donate.small {
  padding: 8px 11px;
  font-size: 11px;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 50px #031a1380;
  display: block;
}

.hero-photo figcaption {
  font-size: 9px;
  opacity: 0.7;
  margin-top: 5px;
}

.section {
  padding: 48px max(3vw, 20px);
  max-width: 1360px;
  margin: auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-head > div:first-child {
  max-width: 760px;
}

.section h2, .support h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.section-head p {
  font-size: 14px;
  line-height: 1.48;
  margin: 0;
}

.outlook {
  background: var(--cream);
  max-width: none;
}

.outlook > .section-head, .outlook > .weather-grid, .outlook > .method-note {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.weather-card {
  background: #fff;
  padding: 16px 17px;
  border-radius: 5px;
  border: 1px solid #ddd8cc;
  border-top: 4px solid var(--sage);
}

.weather-card.good {
  border-top-color: #4f7d4d;
}

.weather-card.mixed {
  border-top-color: var(--gold);
}

.weather-card.poor {
  border-top-color: var(--rust);
}

.weather-card .day {
  font-weight: 850;
  letter-spacing: 0.07em;
  font-size: 10px;
}

.rating {
  display: inline-block;
  margin: 7px 0 10px;
  padding: 4px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
}

.good .rating {
  background: var(--good);
  color: var(--goodink);
}

.mixed .rating {
  background: var(--mixed);
  color: var(--mixedink);
}

.poor .rating {
  background: var(--poor);
  color: var(--poorink);
}

.weather-card .wind {
  font-family: Georgia, serif;
  font-size: 26px;
}

.weather-card .details {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-top: 7px;
  font-size: 11px;
}

.weather-loading {
  grid-column: 1 / -1;
  padding: 18px;
  background: #fff;
}

.method-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px !important;
}

.method-note a {
  color: #4f7d4d;
  text-decoration: none;
  font-weight: 600;
}

.method-note a:hover {
  text-decoration: underline;
}

.jaegers {
  background: var(--forest);
  color: #fff;
  max-width: none;
}

.jaegers > .section-head, .jaegers > .tabs, .jaegers > .chart-card, .jaegers > .jaeger-cards {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  text-align: right;
}

.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 23px;
  color: #e8bd58;
}

.stat span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
}



.chart-card {
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 16px 18px 10px;
}

.chart-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-top h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0;
}

.chart-top p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.passage-window {
  font-size: 12px;
  color: #b95b36;
  font-weight: 700;
  margin: 6px 0 0 0 !important;
}

.chart-container {
  position: relative;
  margin-bottom: 8px;
}

canvas {
  width: 100%;
  display: block;
  cursor: crosshair;
}

.tooltip {
  position: absolute;
  background: #263f35;
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #263f35;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.chart-legend, .month-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  gap: 4px;
}

.jaeger-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px !important;
}

.jaeger-cards article {
  background: #285342;
  border: 2px solid #ffffff18;
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 140px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jaeger-cards article:hover {
  background: #2f5f4d;
  border-color: #ffffff42;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.jaeger-cards article.active {
  background: #fff;
  border-color: #fff;
  color: var(--forest);
}

.jaeger-cards article.active .card-content h3,
.jaeger-cards article.active .card-content p,
.jaeger-cards article.active .card-content small {
  color: var(--forest);
}

.jaeger-cards img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.jaeger-cards .card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jaeger-cards h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  margin: 0 0 5px;
}

.jaeger-cards p {
  color: #d0dfda;
  line-height: 1.35;
  font-size: 11px;
  margin: 0 0 6px;
}

.jaeger-cards small {
  opacity: 0.6;
  font-size: 9px;
}

.jaeger-cards article.active p,
.jaeger-cards article.active small {
  color: #66756f;
}

.jaeger-cards article.active small {
  opacity: 0.7;
}

.explorer {
  background: #fff;
}

.explorer select {
  font: inherit;
  font-weight: 750;
  padding: 9px 32px 9px 10px;
  background: #fff;
  border: 1px solid #c7c7c0;
  border-radius: 4px;
  font-size: 13px;
  max-width: 100%;
  margin-bottom: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23263f35' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.species-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border: 1px solid #e2e0d8;
  border-radius: 4px;
}

.species-copy h3 {
  font-family: Georgia, serif;
  font-size: 32px;
  margin: 0 0 14px;
}

.species-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.species-stats strong {
  display: block;
  font-size: 16px;
}

.species-stats span {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: 2px;
}

.species-copy > p:last-child {
  line-height: 1.45;
  color: var(--muted);
  margin-top: 12px;
  font-size: 12px;
}

.mini-chart {
  min-width: 0;
}

.place-section {
  max-width: none;
  background: #315d49;
  color: #fff;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding-left: max(3vw, calc((100vw - 1240px) / 2 + 20px));
  padding-right: max(3vw, calc((100vw - 1240px) / 2 + 20px));
}

.place-section p {
  line-height: 1.5;
  color: #d9e4e0;
  font-size: 13px;
  margin: 0 0 12px;
}

.text-link {
  color: #f1c75e;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}

.text-link:hover {
  text-decoration: underline;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.map-photo {
  margin: 0;
}

.map-link {
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-link:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.map-photo img {
  width: 100%;
  height: auto;
  max-height: 270px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.map-photo figcaption {
  font-size: 9px;
  color: #d9e4e0;
  opacity: 0.75;
  margin-top: 5px;
}

.map-photo figcaption a {
  color: #f1c75e;
  font-weight: 800;
  text-decoration: none;
}

.map-photo figcaption a:hover {
  text-decoration: underline;
}

.support {
  text-align: center;
  padding: 52px max(3vw, 20px);
  background: var(--sand);
}

.support p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.5;
  font-size: 14px;
}

.support h2 {
  margin-bottom: 10px;
}

footer {
  padding: 18px max(3vw, 20px);
  background: #153329;
  color: #aabdb6;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  font-size: 9px;
  flex-wrap: wrap;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .hero-grid, .place-section {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    max-height: 280px;
  }

  .section-head {
    display: block;
  }

  .section-head > * + * {
    margin-top: 14px;
  }

  .stat {
    text-align: left;
    margin-top: 12px;
  }

  .weather-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .jaeger-cards {
    grid-template-columns: 1fr;
  }

  .jaeger-cards article {
    grid-template-columns: 30% 70%;
    min-height: 120px;
  }

  .jaeger-cards article.active {
    grid-template-columns: 1fr;
  }

  .jaeger-cards article.active img {
    display: none;
  }

  .species-panel {
    grid-template-columns: 1fr;
  }

  .species-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 14px 16px 32px;
  }

  .hero nav {
    gap: 8px;
    justify-content: flex-start;
  }

  .brand {
    font-size: 9px;
    order: 1;
  }

  .brand span {
    display: none;
  }

  .donate.small {
    order: 2;
    margin-left: auto;
    padding: 6px 9px;
    font-size: 9px;
  }

  .hero-grid {
    gap: 16px;
    margin: 24px auto 0;
  }

  .hero h1 {
    font-size: clamp(32px, 8vw, 48px);
    margin-bottom: 12px;
  }

  .lede {
    font-size: 13px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .button, .donate, .outlook-button {
    padding: 8px 12px;
    font-size: 11px;
  }

  .section {
    padding: 32px 16px;
  }

  .section h2 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .section-head p {
    font-size: 13px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .weather-card .wind {
    font-size: 20px;
  }

  .weather-card .details {
    flex-direction: column;
    gap: 4px;
  }

  .tabs {
    gap: 5px;
  }

  .tabs button {
    padding: 6px 10px;
    font-size: 10px;
  }

  .chart-card {
    padding: 12px 14px 8px;
  }

  .chart-top {
    flex-direction: column;
    gap: 8px;
  }

  .chart-top h3 {
    font-size: 18px;
  }

  .explorer select {
    font-size: 12px;
    padding: 8px 28px 8px 9px;
    margin-bottom: 12px;
  }

  .species-panel {
    padding: 14px;
    gap: 14px;
    border-radius: 3px;
  }

  .species-copy h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .species-stats {
    gap: 10px;
    margin-bottom: 10px;
  }

  .species-stats strong {
    font-size: 14px;
  }

  .species-stats span {
    font-size: 7px;
  }

  .species-copy > p:last-child {
    font-size: 11px;
    margin-top: 10px;
  }

  .place-section {
    padding-left: 16px;
    padding-right: 16px;
    gap: 16px;
  }

  .place-section p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .support {
    padding: 36px 16px;
  }

  .support p {
    font-size: 12px;
  }

  footer {
    padding: 14px 16px;
    font-size: 8px;
    gap: 8px;
  }
}
