:root {
  color-scheme: light;
  --ink: #1b3029;
  --muted: #64736c;
  --forest: #18372e;
  --leaf: #bbdb77;
  --paper: #f7f8f3;
  --line: #dfe5dc;
  --coral: #e8795f;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar { height: 76px; padding: 0 7.1%; display: flex; align-items: center; justify-content: space-between; background: #fff; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: 0; }
.wordmark-mark { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: var(--leaf); color: var(--forest); font-family: "DM Sans", sans-serif; font-size: 16px; font-weight: 700; }
.navigation { display: flex; gap: 35px; margin-left: 50px; color: #53625b; font-size: 13px; }
.navigation a:hover, .site-footer a:hover { color: #527b38; }
.topbar-link { font-size: 12px; font-weight: 700; }
.topbar-link span { padding-left: 5px; color: #648d48; }

.hero { position: relative; min-height: 580px; height: min(680px, calc(100svh - 76px)); display: flex; align-items: center; overflow: hidden; color: #fff; background: #304337 url("https://images.unsplash.com/photo-1551316679-9c6ae9dec224?auto=format&fit=crop&w=2200&q=85") center 48% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 35, 29, .83) 0%, rgba(19, 40, 31, .62) 43%, rgba(13, 30, 25, .12) 100%), linear-gradient(0deg, rgba(11, 28, 23, .35), transparent 28%); }
.hero-content { position: relative; z-index: 1; width: min(1120px, 85.8%); margin: 0 auto; padding-bottom: 12px; animation: appear .7s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #708475; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.hero-eyebrow { color: #d7e1d5; font-size: 11px; }
.hero-eyebrow > span { background: var(--leaf); }
.hero h1 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(68px, 9.3vw, 126px); font-weight: 500; line-height: .98; letter-spacing: 0; }
.hero h1 span { color: var(--leaf); }
.hero-copy { margin: 22px 0 29px; color: #e0e8df; font-size: 17px; line-height: 1.65; }
.hero-button { display: inline-flex; align-items: center; gap: 23px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.55); font-size: 12px; font-weight: 600; transition: background .2s, color .2s; }
.hero-button:hover { background: var(--leaf); border-color: var(--leaf); color: var(--forest); }
.hero-caption, .hero-index { position: absolute; z-index: 1; bottom: 24px; margin: 0; color: rgba(255,255,255,.78); font-size: 10px; }
.hero-caption { left: 7.1%; }
.hero-index { right: 7.1%; }
.hero-index span { color: var(--leaf); }

.atlas-section { max-width: 1280px; margin: 0 auto; padding: 94px 6.4% 68px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 13px; }
h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: 0; }
.section-heading h2, .about-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.section-note { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.atlas-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.search-box { display: flex; align-items: center; gap: 11px; width: 250px; height: 42px; padding: 0 11px; border: 1px solid var(--line); background: #fff; }
.search-icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; border: 1.5px solid #68776f; border-radius: 50%; }
.search-icon::after { position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.5px; transform: rotate(45deg); background: #68776f; content: ""; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #89958e; }
.search-box kbd { color: #94a097; font-family: inherit; font-size: 10px; }
.filter-list { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-button { min-height: 35px; padding: 0 13px; border: 1px solid transparent; background: transparent; color: #64736c; cursor: pointer; font-size: 11px; transition: .2s ease; }
.filter-button:hover { border-color: var(--line); color: var(--ink); }
.filter-button.is-active { border-color: var(--forest); background: var(--forest); color: #fff; }
.animal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 31px 20px; }
.animal-card { min-width: 0; animation: appear .45s ease-out both; }
.animal-image-wrap { position: relative; aspect-ratio: 1.31; overflow: hidden; background: #dce5da; }
.animal-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.animal-card:hover .animal-image { transform: scale(1.045); }
.animal-habitat { position: absolute; left: 12px; bottom: 12px; padding: 7px 9px; background: rgba(255,255,255,.93); color: var(--forest); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.save-button { position: absolute; top: 11px; right: 11px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font-size: 18px; transition: .2s; }
.save-button:hover, .save-button.is-saved { background: var(--leaf); }
.save-button.is-saved { color: #35572b; }
.card-copy { padding: 14px 1px 0; }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-title-row h3 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 23px; font-weight: 500; }
.card-number { color: #a0aaa3; font-size: 10px; }
.animal-latin { margin: 4px 0 10px; color: #7a8980; font-family: "Fraunces", Georgia, serif; font-size: 12px; font-style: italic; }
.card-description { display: -webkit-box; min-height: 39px; margin: 0 0 13px; overflow: hidden; color: #627068; font-size: 11px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.details-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 10px; font-weight: 700; }
.details-link span { color: #668f4c; transition: transform .2s; }
.details-link:hover span { transform: translateX(4px); }
.empty-state { padding: 48px 0; color: var(--muted); text-align: center; font-size: 13px; }
.atlas-footer { display: flex; align-items: center; gap: 11px; margin-top: 37px; padding-top: 17px; border-top: 1px solid var(--line); color: #78867d; font-size: 10px; }
.atlas-footer span:first-child { color: var(--ink); font-weight: 700; }
.footer-dot { color: var(--coral); }

.about-section { display: flex; min-height: 330px; align-items: center; justify-content: space-between; padding: 60px max(calc((100vw - 1060px) / 2), 8%); background: #e7eee2; }
.about-copy { max-width: 510px; }
.about-copy .eyebrow { margin-bottom: 13px; }
.about-copy h2 { font-size: 42px; }
.about-copy > p:not(.eyebrow) { max-width: 440px; margin: 17px 0 19px; color: #627168; font-size: 12px; line-height: 1.8; }
.text-link { font-size: 11px; font-weight: 700; }
.text-link span { padding-left: 7px; color: #648d48; }
.about-aside { position: relative; width: 185px; height: 185px; padding: 37px 25px; border: 1px solid #bac9b5; border-radius: 50%; }
.about-number { font-family: "Fraunces", Georgia, serif; font-size: 31px; }
.about-number span { color: #8b9b8c; font-size: 16px; }
.about-aside p { margin: 5px 0; color: #69786d; font-size: 10px; line-height: 1.6; }
.about-spark { position: absolute; top: 17px; right: 22px; color: var(--coral); font-size: 21px; }
.hub-section { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: center; padding: 66px max(calc((100vw - 1060px) / 2), 8%); background: var(--forest); color: #fff; }
.hub-heading .eyebrow { margin-bottom: 12px; color: #c1d0c3; }
.hub-heading .eyebrow > span { background: var(--leaf); }
.hub-heading h2 { margin: 0; font-size: 42px; }
.hub-heading > p:last-child { margin: 11px 0 0; color: #c1d0c3; font-size: 11px; }
.hub-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hub-link { position: relative; display: flex; min-height: 115px; flex-direction: column; justify-content: center; gap: 9px; padding: 16px 38px 16px 0; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); transition: border-color .2s, color .2s; }
.hub-link:hover { border-color: var(--leaf); color: var(--leaf); }
.hub-link-label { color: #c1d0c3; font-size: 9px; }
.hub-link-title { font-family: "Fraunces", Georgia, serif; font-size: 20px; }
.hub-link-arrow { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); color: var(--leaf); font-size: 19px; }
.site-footer { display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 0 7.1%; background: #fff; color: #78867d; font-size: 10px; }
.footer-wordmark { color: var(--ink); font-size: 15px; }
.footer-wordmark .wordmark-mark { width: 25px; height: 25px; font-size: 17px; }

.animal-dialog { position: fixed; width: min(760px, calc(100% - 32px)); max-width: none; max-height: min(620px, calc(100% - 32px)); padding: 0; overflow: auto; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(13, 30, 24, .3); }
.animal-dialog::backdrop { background: rgba(14, 28, 24, .72); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #fff; cursor: pointer; font-size: 23px; }
.dialog-image { display: block; width: 100%; height: 280px; object-fit: cover; background: #dce5da; }
.dialog-content { padding: 28px 34px 32px; }
.dialog-content .eyebrow { margin-bottom: 10px; }
.dialog-content h2 { margin: 0; font-size: 38px; }
.dialog-latin { margin: 5px 0 16px; color: #78867d; font-family: "Fraunces", Georgia, serif; font-size: 14px; font-style: italic; }
.dialog-description { max-width: 570px; color: #58675e; font-size: 13px; line-height: 1.8; }
.dialog-fact { display: flex; gap: 11px; margin-top: 20px; padding: 14px; background: #e7eee2; }
.fact-mark { color: var(--coral); }
.dialog-fact p { margin: 0; color: #536158; font-size: 11px; line-height: 1.7; }

@keyframes appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 5%; }
  .wordmark { font-size: 17px; }
  .navigation { gap: 17px; margin-left: 0; font-size: 11px; }
  .topbar-link { display: none; }
  .hero { height: 590px; min-height: 0; max-height: calc(100svh - 64px); background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(14, 35, 29, .78), rgba(19, 40, 31, .28)), linear-gradient(0deg, rgba(11, 28, 23, .35), transparent 30%); }
  .hero-content { width: 88%; }
  .hero h1 { font-size: clamp(66px, 14vw, 100px); }
  .hero-caption { left: 6%; max-width: 70%; font-size: 9px; }
  .hero-index { right: 6%; }
  .atlas-section { padding: 67px 6% 52px; }
  .section-heading { align-items: start; flex-direction: column; gap: 11px; margin-bottom: 25px; }
  .section-heading h2, .about-copy h2 { font-size: 38px; }
  .atlas-tools { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-list { gap: 4px; }
  .filter-button { padding: 0 10px; }
  .animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 14px; }
  .animal-image-wrap { aspect-ratio: 1.12; }
  .card-title-row h3 { font-size: 20px; }
  .card-description { min-height: 56px; }
  .about-section { min-height: 0; padding: 54px 7%; }
  .hub-section { grid-template-columns: 1fr; gap: 28px; padding: 54px 7%; }
  .hub-links { gap: 13px; }
  .about-aside { width: 130px; height: 130px; flex: 0 0 auto; padding: 27px 17px; margin-left: 15px; }
  .about-number { font-size: 24px; }
  .about-aside p { font-size: 9px; }
  .site-footer { padding: 0 5%; }
}
@media (max-width: 430px) {
  .navigation { gap: 13px; }
  .hero { height: 540px; }
  .hero-copy { font-size: 15px; }
  .animal-grid { grid-template-columns: 1fr; gap: 27px; }
  .animal-image-wrap { aspect-ratio: 1.35; }
  .card-description { min-height: 0; }
  .about-section { align-items: start; }
  .about-aside { display: none; }
  .hub-links { grid-template-columns: 1fr; }
  .hub-link { min-height: 88px; }
  .site-footer { gap: 10px; font-size: 9px; }
  .footer-wordmark { gap: 7px; font-size: 13px; }
  .dialog-image { height: 210px; }
  .dialog-content { padding: 23px 22px 25px; }
}