:root {
  --paper: #050505;
  --ink: #f4f1e8;
  --muted: #9da39d;
  --line: rgba(255, 255, 255, .16);
  --moss: #0b0b0b;
  --sand: #181818;
}

html,
body,
.home-library,
.hero,
.library,
footer {
  background: #050505;
  color: var(--ink);
}

.site-header {
  background: rgba(5, 5, 5, .92);
}

.brand-mark {
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.04em;
}

.subscribe-mark {
  font-family: var(--sans);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
}

.mobile-nav.open,
.manifesto,
.membership,
.category-dialog,
.subscribe-dialog {
  background: #0a0a0a;
  color: var(--ink);
}

.home-library .library-heading .section-index {
  background: #171b17;
  color: #d7f23a;
}

.home-library .library-heading h2,
.home-library .library-heading > p,
.hero-intro,
.dialog-description,
.taxon-path,
.taxon-panel h3 small {
  color: var(--ink);
}

.home-library .library-heading > p,
.hero-intro,
.dialog-description,
.taxon-path,
.taxon-panel h3 small {
  color: var(--muted);
}

.subscribe-button,
.primary-link {
  background: var(--ink);
  color: #050505;
}

.play-link,
.empty-state button,
.sort-field select,
.view-controls button,
.dialog-close {
  color: var(--ink);
}

.view-controls button.active {
  background: #1a1a1a;
}

.carousel-actions button {
  background: rgba(255, 255, 255, .06);
}

.carousel-actions button:hover {
  background: var(--ink);
  color: #050505;
}

.category-card,
.category-grid.list-mode .category-card {
  background: #0b0b0b;
}

.category-card:hover {
  background: #151515;
}

.membership-card {
  background: #111;
  color: var(--ink);
}

.membership-card li:before {
  color: var(--lime);
}

.taxon-panel {
  border-color: var(--line);
  background: #101010;
}

.taxon-status {
  background: #282b1c;
  color: #d7f23a;
}

.taxon-sources > span,
.taxon-sources a {
  color: var(--muted);
}

.lock-pill {
  background: var(--ink);
  color: #050505;
}

.locked-copy {
  background: linear-gradient(rgba(20, 20, 20, .8), #0a0a0a);
}

.subscribe-dialog input {
  background: #fff;
  color: #111;
}

@media (prefers-color-scheme: dark) {
  html { color-scheme: dark; }
}

@media (max-width: 650px) {
  .site-header .brand { font-size: 18px; }
  .site-header .brand-mark { width: 28px; height: 28px; }
}

/* A clear mobile menu control, with navigation inside the menu. */
@media(max-width:980px){
 .home-page .menu-button{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:84px;min-height:44px;padding:10px 12px;border:1px solid #d7f23a;border-radius:6px;background:#d7f23a;color:#050505;cursor:pointer}
 .home-page .menu-button .menu-label{margin:0;border:0;font:600 13px/1 var(--sans)}
 .home-page .menu-button .menu-icon{display:grid;gap:4px;width:17px}
 .home-page .menu-button .menu-icon i{display:block;width:17px;border-top:2px solid currentColor}
 .home-page .menu-button:hover,.home-page .menu-button[aria-expanded=true]{background:#d7f23a}
 .home-page .menu-button:focus-visible{outline:2px solid white;outline-offset:3px}
}
@media(max-width:650px){.home-page .site-header{padding-inline:12px;gap:8px}.home-page .site-header .brand{font-size:18px;gap:6px}.home-page .mobile-nav.open{top:70px;max-height:calc(100dvh - 70px);overflow:auto}}
