:root {
  --forest-950: #062f29;
  --forest-900: #073f34;
  --forest-800: #095744;
  --green-600: #00a877;
  --green-500: #17c690;
  --sky-500: #52a7d8;
  --yellow-400: #ffd84d;
  --ink: #11201d;
  --muted: #5f706c;
  --paper: #f7faf8;
  --white: #fff;
  --line: rgba(8, 63, 52, .15);
  --display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--white);
  background: var(--forest-900);
  box-shadow: 0 1px 0 rgba(255,255,255,.12);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; font-weight: 750; font-size: 1.12rem; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 24px; color: rgba(255,255,255,.8); font-size: .9rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--white); }
.nav-cta, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 6px; font-weight: 750; text-decoration: none; }
.nav-cta { border: 1px solid rgba(255,255,255,.45); color: var(--white); font-size: .9rem; }
.nav-cta:hover { background: var(--white); color: var(--forest-900); }

.breadcrumb { padding: 22px 0 0; color: var(--muted); font-size: .86rem; }
.breadcrumb a { color: var(--forest-800); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.content-hero { padding: 48px 0 76px; color: var(--white); background: var(--forest-900); }
.content-hero .breadcrumb { color: rgba(255,255,255,.66); }
.content-hero .breadcrumb a { color: rgba(255,255,255,.88); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--yellow-400); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; }
h1 { max-width: 800px; margin-bottom: 22px; font-size: clamp(3rem, 7vw, 5.8rem); }
.hero-lead { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.79); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; }
.content-main { padding: 82px 0 112px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 76px; align-items: start; }
.prose { min-width: 0; }
.prose h2 { margin: 54px 0 14px; color: var(--forest-950); font-size: clamp(2rem, 4vw, 3.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 8px; color: var(--forest-900); font-size: 1.65rem; }
.prose p { max-width: 760px; color: var(--muted); }
.prose ul, .prose ol { max-width: 760px; margin: 0 0 22px; padding-left: 1.35rem; color: var(--muted); }
.prose li { margin: 7px 0; padding-left: 5px; }
.answer-box { margin: 0 0 36px; padding: 26px 28px; border-left: 4px solid var(--green-600); background: #e9f4ef; }
.answer-box strong { display: block; margin-bottom: 5px; color: var(--forest-950); }
.answer-box p { margin-bottom: 0; color: var(--forest-800); }
.callout { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.callout strong { color: var(--forest-950); }
.callout p { margin-bottom: 0; }
.side-card { position: sticky; top: 104px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.side-card h2 { margin-bottom: 14px; color: var(--forest-950); font-family: var(--sans); font-size: 1rem; font-weight: 800; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li + li { margin-top: 10px; }
.side-card a { color: var(--forest-800); font-size: .94rem; text-decoration: none; }
.side-card a:hover { color: var(--green-600); text-decoration: underline; }
.screen-card { margin: 34px 0; padding: 28px; border-radius: 6px; background: var(--forest-950); }
.screen-card img { width: min(100%, 340px); margin: 0 auto; border-radius: 26px; box-shadow: 0 24px 48px rgba(0,0,0,.3); }
.screen-card figcaption { margin-top: 18px; color: rgba(255,255,255,.66); text-align: center; font-size: .86rem; }
.button-primary { color: var(--forest-950); background: var(--yellow-400); }
.button-dark { color: var(--white); background: var(--forest-950); }
.button-outline { border: 1px solid var(--line); color: var(--forest-900); background: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.related { padding: 70px 0 88px; border-top: 1px solid var(--line); background: var(--white); }
.related h2 { margin-bottom: 28px; color: var(--forest-950); font-size: clamp(2.2rem, 4vw, 3.7rem); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { min-height: 168px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); text-decoration: none; }
.related-card:hover { border-color: var(--green-600); transform: translateY(-2px); }
.related-card strong { display: block; margin-bottom: 7px; color: var(--forest-950); font-size: 1.05rem; }
.related-card span { color: var(--muted); font-size: .9rem; }
.faq-list { display: grid; gap: 12px; max-width: 820px; }
details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
summary { cursor: pointer; color: var(--forest-950); font-weight: 750; }
details p { margin: 12px 0 0; color: var(--muted); }
.species-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.fact { padding: 17px; border-top: 2px solid var(--green-600); background: var(--white); }
.fact-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.fact-value { color: var(--forest-950); font-weight: 750; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.directory-heading h2 { margin-bottom: 10px; color: var(--forest-950); font-size: clamp(2rem, 4vw, 3.2rem); }
.directory-heading p { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.directory-count { flex: 0 0 auto; margin-bottom: 12px; color: var(--forest-800); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.species-directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.species-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.species-card:hover { border-color: var(--green-600); transform: translateY(-2px); }
.species-card > img, .species-card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--forest-950); }
.species-card-body { display: grid; gap: 5px; padding: 15px 16px 17px; }
.species-card-body strong { color: var(--forest-950); font-family: var(--display); font-size: 1.25rem; line-height: 1.08; }
.species-card-body em { color: var(--forest-800); font-size: .82rem; }
.species-card-body > span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.species-card-image-empty { background: linear-gradient(135deg, var(--forest-800), var(--green-600)); }
.species-cover { position: relative; width: 100%; margin: 0 0 34px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--forest-950); cursor: zoom-in; text-align: left; }
.species-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.species-cover-label, .gallery-feature-label { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 4px; color: var(--white); background: rgba(6,47,41,.82); font-size: .76rem; font-weight: 750; }
.species-gallery { margin: 54px 0 18px; padding-top: 4px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.species-gallery h2 { margin-bottom: 10px; }
.gallery-intro { max-width: 760px; margin-bottom: 22px; color: var(--muted); }
.gallery-count { flex: 0 0 auto; margin-bottom: 22px; color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.gallery-stage { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--forest-950); }
.gallery-feature { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; text-align: left; }
.gallery-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .25s ease; }
.gallery-feature:hover img, .species-cover:hover img { transform: scale(1.025); }
.gallery-rail { display: flex; gap: 10px; padding: 12px 0 4px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 92px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 5px; background: var(--forest-950); cursor: pointer; }
.gallery-thumb.is-active { border-color: var(--green-600); }
.gallery-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity .2s ease; }
.gallery-thumb:not(.is-active):hover img { opacity: .78; }
.lightbox { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 28px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(3, 24, 20, .86); }
.lightbox-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 14px; width: min(100%, 1080px); max-height: calc(100vh - 56px); }
.lightbox-figure { min-width: 0; margin: 0; overflow: hidden; border-radius: 6px; background: var(--white); box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.lightbox-figure img { width: 100%; max-height: calc(100vh - 190px); object-fit: contain; background: var(--forest-950); }
.lightbox-figure figcaption { display: grid; gap: 3px; padding: 13px 16px 15px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.lightbox-figure figcaption strong { color: var(--forest-950); font-size: .92rem; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--white); background: rgba(6,47,41,.82); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.lightbox-close { top: -12px; right: -12px; }
.lightbox-nav { position: relative; border-color: rgba(255,255,255,.42); font-size: 2.3rem; }
.lightbox-nav:hover, .lightbox-close:hover { background: var(--green-600); }
body.lightbox-open { overflow: hidden; }
.species-sounds { margin: 54px 0 18px; }
.sound-list { display: grid; gap: 12px; }
.sound-item { display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.sound-item-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sound-item-top > div { display: grid; gap: 3px; min-width: 0; }
.sound-item strong { color: var(--forest-950); font-size: .92rem; }
.sound-item-top span, .sound-progress-row span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.sound-play { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--white); background: var(--forest-900); cursor: pointer; }
.sound-play:hover, .sound-play.is-playing { background: var(--green-600); }
.sound-progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.sound-progress-row input { width: 100%; accent-color: var(--green-600); }
[hidden] { display: none !important; }
.link-list { display: grid; gap: 12px; margin: 20px 0; }
.link-list a { color: var(--forest-800); font-weight: 700; }
.link-list a:hover { color: var(--green-600); }
footer { padding: 34px 0 52px; color: var(--muted); font-size: .86rem; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--forest-950); font-weight: 750; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--forest-900); }

@media (max-width: 860px) {
  .shell { width: min(100% - 36px, 680px); }
  .nav { min-height: 68px; }
  .nav-links { display: none; }
  .article-grid { grid-template-columns: 1fr; gap: 48px; }
  .side-card { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .species-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .shell { width: min(100% - 28px, 520px); }
  .nav-cta { min-height: 38px; padding: 0 13px; font-size: .82rem; }
  .content-hero { padding: 34px 0 58px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .content-main { padding: 58px 0 80px; }
  .prose h2 { margin-top: 40px; }
  .species-facts { grid-template-columns: 1fr; }
  .directory-heading { align-items: flex-start; flex-direction: column; gap: 0; }
  .directory-count { margin: -8px 0 18px; }
  .species-directory { grid-template-columns: 1fr; }
  .gallery-heading { align-items: flex-start; flex-direction: column; gap: 0; }
  .gallery-count { margin: -8px 0 16px; }
  .gallery-thumb { flex-basis: 76px; }
  .lightbox { padding: 14px; }
  .lightbox-dialog { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; }
  .lightbox-close { top: -8px; right: -8px; }
  .lightbox-nav { width: 34px; height: 34px; font-size: 1.8rem; }
  .lightbox-figure img { max-height: calc(100vh - 160px); }
  .screen-card { padding: 18px; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}
