:root {
  color-scheme: dark;
  --ink: #101716;
  --paper: #f1eade;
  --muted: #b9c0b6;
  --brass: #e3c18c;
  --rule: #ffffff25;
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 5; background: var(--ink); color: var(--paper); padding: .8rem; }
.wrap { width: min(1280px, 90%); margin-inline: auto; }
.site-contact { padding-block: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); }
.site-contact a { margin-inline-start: .35em; color: var(--brass); text-decoration: underline; text-underline-offset: .2em; }
.mast { background: #111b19; border-bottom: 1px solid #bca57a55; }
.mast-inner, nav, .brand { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; min-height: 66px; gap: 1rem; }
.brand { gap: .7rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 650; font-size: .91rem; }
.brand img { border-radius: 2px; }
nav { gap: clamp(.8rem, 3vw, 2.6rem); font-size: .9rem; }
nav a { padding-block: .7rem; }
nav a:hover, .scene:hover, .art-link:hover h3 { color: var(--brass); }
.hero { position: relative; isolation: isolate; background: #28322a; border-bottom: 1px solid #dbbd8a55; }
.cover, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cover { object-fit: cover; object-position: 62% 51%; }
.hero::after { content: ""; background: linear-gradient(90deg, #101716f7, #101716b8 32%, #10171619 71%), linear-gradient(0deg, #101716cc, transparent 28%); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(420px, 56vh, 620px); padding-block: 3.6rem; }
.intro { max-width: 33rem; }
.kicker, .kind, .scene-label { color: var(--brass); font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .16em; }
.kicker span { margin-inline: .45em; opacity: .7; }
h1, h2, h3, .scene { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: .8rem 0 1.1rem; font-size: clamp(3.8rem, 7.2vw, 6.8rem); line-height: .93; letter-spacing: -.048em; }
.lede { max-width: 29rem; color: #eeeae1; text-wrap: pretty; }
.cta { display: inline-flex; align-items: center; gap: 1.6rem; padding: .65rem 1.05rem; margin-top: 1.55rem; color: #18201d; background: var(--brass); font-size: .9rem; font-weight: 650; }
.cta:hover { background: #f1d4a6; }
.scene { position: absolute; bottom: 1.35rem; right: 0; font-size: 1.2rem; text-shadow: 0 1px 5px #000; }
.scene-label { display: block; font-family: "Segoe UI", sans-serif; font-size: .62rem; }
.collection { padding-block: clamp(2.4rem, 5vw, 4.5rem); }
.collection-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 1.2rem; margin-bottom: 1.6rem; }
h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.12; letter-spacing: -.04em; }
.filters, .viewer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
button, .viewer-controls a { min-height: 42px; padding: .45rem .8rem; background: transparent; color: var(--muted); border: 1px solid var(--rule); font-size: .87rem; }
button:hover, .viewer-controls a:hover { color: var(--paper); border-color: var(--brass); }
.filters button[aria-pressed="true"] { background: #e3c18c16; color: var(--brass); border-color: #e3c18c98; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.art-link { display: block; }
.frame { position: relative; aspect-ratio: 3/2; margin-bottom: .8rem; border: 1px solid var(--rule); background: #28312c; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.reference-model { display: inline-block; color: var(--brass); text-decoration: underline; text-underline-offset: .22em; margin-block: .35rem; }
.mast nav { flex-wrap: wrap; }
.art-link:hover .frame { border-color: var(--brass); }
.expand { position: absolute; right: .45rem; bottom: .45rem; width: 1.85rem; text-align: center; background: #101716d9; color: var(--paper); font-size: 1.25rem; }
.kind { font-size: .64rem; }
.roster h1 { font-size: clamp(3rem, 6vw, 5rem); }
.roster-intro { max-width: 46rem; color: var(--muted); margin-bottom: 1.5rem; }
.roster .frame { aspect-ratio: 1; background: #9c9188; }
.roster .frame img { object-fit: contain; }
.roster .ability { color: var(--muted); font-size: .9rem; }
.roster summary { cursor: pointer; margin-top: .55rem; color: var(--brass); }
.roster details p { margin-top: .4rem; }
.wildlife-atlas dl { margin: .7rem 0; }
.wildlife-atlas dt { color: var(--brass); font-weight: 600; }
.wildlife-atlas dd { margin: 0 0 .6rem; }
.wildlife-atlas article:target { outline: 2px solid var(--brass); outline-offset: .4rem; scroll-margin-top: 5rem; }
h3 { font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.12; margin: .22rem 0 .5rem; }
.card p, #view-caption { color: var(--muted); font-size: .93rem; }
dialog { margin: auto; width: min(1160px, 95vw); max-height: 96dvh; padding: 0; background: var(--ink); color: var(--paper); border: 1px solid #e3c18c66; }
dialog::backdrop { background: #080e0df2; }
body:has(dialog[open]) { overflow: hidden; }
.viewer { padding: clamp(.75rem, 2vw, 1.4rem); }
.viewer-head, .viewer-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.viewer-head { padding-bottom: .6rem; }
#view-image { width: 100%; height: min(64dvh, 690px); object-fit: contain; background: #0b1110; }
.viewer-foot { margin-top: .8rem; }
.viewer-foot h2 { font-size: clamp(1.65rem, 3.1vw, 2.5rem); margin-bottom: .2rem; }
.viewer-controls { flex-shrink: 0; }
@media (max-width: 850px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) {
  .wrap { width: 91%; }
  .brand { font-size: .75rem; gap: .4rem; }
  nav { font-size: .8rem; }
  .hero-inner { min-height: 500px; align-items: end; padding: 8rem 0 4rem; }
  .hero::after { background: linear-gradient(0deg, #101716 0%, #101716e8 28%, #1017168c 65%, #10171619 100%); }
  .scene { bottom: .65rem; font-size: .94rem; }
  .scene-label { display: inline; margin-right: .4rem; }
  .grid { grid-template-columns: minmax(0,1fr); gap: 1.8rem; }
  .filters { gap: .35rem; }
  .filters button { font-size: .78rem; padding-inline: .6rem; }
  .viewer-foot { align-items: start; flex-direction: column; }
  #view-image { height: auto; max-height: 52dvh; }
}
