:root {
  color-scheme: light;
  --paper: #f8f7ef;
  --ink: #1e352b;
  --muted: #53675b;
  --line: #cdd1c1;
  --green: #254d3a;
  --lime: #ddefaa;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding: 20px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
button,
select,
input {
  font: inherit;
}
a {
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button,
a,
select,
summary,
input {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #a95625;
  outline-offset: 4px;
}
.wrap {
  width: min(1280px, 91vw);
  margin: auto;
}
.mast,
.mast nav,
.brand,
.buttons,
.section-head,
.counters,
footer .wrap,
.dialog-head,
.controls,
.line,
.card-foot {
  display: flex;
  align-items: center;
}
.mast {
  height: 75px;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  gap: 9px;
  font: 600 24px var(--serif);
  letter-spacing: -1px;
}
.brand img {
  width: 39px;
}
.mast nav {
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.mast nav a,
.buttons a {
  text-decoration: none;
}
.topcta,
.primary,
.desk-link {
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: white;
  font-weight: 650;
  text-decoration: none;
  padding: 10px 17px;
}
.topcta span,
.ghost span {
  margin-left: 8px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #faf9e7;
  background: #223c30;
}
.cover,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.cover {
  object-fit: cover;
  object-position: 65% 54%;
}
.shade {
  background: linear-gradient(
    90deg,
    rgba(10, 31, 25, 0.93) 0%,
    rgba(15, 34, 24, 0.79) 29%,
    rgba(16, 35, 24, 0.19) 60%,
    transparent 82%
  );
}
.hero-inner {
  min-height: clamp(350px, 29.8vw, 460px);
  display: flex;
  align-items: center;
  padding: 44px 0 51px;
}
.hero-copy {
  max-width: 620px;
}
.eyebrow,
.meta,
.plate-note,
.kicker,
.badge,
.metric label,
.selectlabel,
.fignum,
.slot-meta {
  font: 600 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.45px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #456244;
}
.eyebrow i {
  width: 20px;
  height: 2px;
  background: #788446;
}
.hero-label {
  color: #dfebb3;
}
.hero-label i {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #d6ea9c;
  box-shadow: 0 0 0 4px #d9ea9a24;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(64px, 6.35vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 21px 0 17px;
}
h1 em {
  color: #e3ecbd;
  font-weight: 400;
}
.hero-copy > p {
  max-width: 475px;
  font-size: 17px;
  line-height: 1.55;
  color: #eff1df;
}
.buttons {
  margin-top: 27px;
  gap: 23px;
}
.primary {
  background: var(--lime);
  color: #203628;
  padding: 12px 18px;
  font-size: 14px;
}
.primary span {
  font-size: 11px;
  margin-right: 7px;
}
.ghost {
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.plate-note {
  position: absolute;
  bottom: 16px;
  right: 4.5vw;
  color: white;
  letter-spacing: 1.5px;
  font-size: 9px;
  text-shadow: 0 1px 3px #172c1b;
  background: #182e2199;
  padding: 3px 7px;
}
.band {
  background: #e7ebdb;
  border-bottom: 1px solid var(--line);
}
.counters {
  min-height: 48px;
  gap: 22px;
  color: #4c604c;
  font: 12px var(--mono);
}
.counters span + span {
  border-left: 1px solid #b2bba7;
  padding-left: 22px;
}
.counters b {
  color: var(--ink);
}
.archive {
  padding: 43px 0 62px;
}
.section-head {
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 3px;
}
h2 {
  font-size: clamp(39px, 3.6vw, 56px);
  letter-spacing: -0.055em;
  line-height: 1.14;
}
.intro {
  color: var(--muted);
  font-size: 15px;
}
.selectlabel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.selectlabel select,
.controls button,
.dialog-head button,
.smallbutton,
.controls select {
  appearance: auto;
  background: #fbfaf2;
  color: var(--ink);
  border: 1px solid #aeb9a9;
  border-radius: 4px;
  padding: 9px 12px;
  font: 600 13px var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.cards {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid #b9c3ad;
  border-radius: 7px;
  background: #fdfcf5;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #83947f;
  box-shadow: 0 4px 18px #24351c12;
}
.card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}
.card-body {
  padding: 18px 19px 14px;
  flex: 1;
}
.meta {
  color: #506449;
  font-size: 10px;
  letter-spacing: 1.3px;
}
.card h3 {
  font-size: clamp(24px, 2.05vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.16;
  margin: 7px 0;
}
.by {
  font-size: 12px;
  color: var(--muted);
}
.card-foot {
  justify-content: space-between;
  border-top: 1px solid #d9ddce;
  margin-top: 15px;
  padding-top: 11px;
  font: 12px var(--mono);
  gap: 4px;
}
.card-foot b {
  font-size: 16px;
  line-height: 1;
}
.card-foot .open {
  color: #476145;
  font: 600 12px var(--sans);
}
#slots {
  border-top: 1px solid var(--line);
  margin-top: 52px;
  padding-top: 36px;
}
.desk-link {
  display: inline-block;
  margin-top: 21px;
}
.slot-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.slot {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfbf3;
}
.slot summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  list-style: none;
}
.slot summary::-webkit-details-marker {
  display: none;
}
.slot summary img {
  width: 94px;
  flex: 0 0 94px;
  border-radius: 3px;
}
.slot summary strong {
  display: block;
  font: 500 20px var(--serif);
}
.slot summary:after {
  content: '+';
  margin-left: auto;
  padding: 0 8px;
}
.slot[open] summary:after {
  content: '−';
}
.slot-meta {
  display: block;
  margin: 3px 0;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #586a56;
}
.slot-goal {
  font: 600 13px/1.4 var(--sans);
}
.slot-info {
  padding: 0 15px 16px;
  font-size: 14px;
}
.slot-info ul {
  padding-left: 20px;
}
.slot-info a {
  font-weight: 600;
}
footer {
  border-top: 1px solid var(--line);
  background: #e8ecdf;
  padding: 23px 0;
}
footer .wrap {
  justify-content: space-between;
  gap: 10px;
}
footer .brand {
  font-size: 19px;
}
footer .brand img {
  width: 28px;
}
footer span {
  font-size: 12px;
}
#status:empty {
  display: none;
}
#status {
  margin-top: 18px;
}
.skip {
  position: absolute;
  left: -1000px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
  padding: 8px;
  z-index: 4;
}
dialog {
  padding: 0;
  border: 1px solid #a5b29e;
  border-radius: 10px;
  width: min(920px, 94vw);
  max-height: 92dvh;
  color: var(--ink);
  background: var(--paper);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #13251dd9;
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 3;
  justify-content: space-between;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
#notebook {
  padding: 22px;
}
.detail-title {
  margin: 3px 0 6px;
}
.detail-copy {
  margin: 8px 0 17px;
  max-width: 68ch;
}
.stage {
  width: 100%;
  display: block;
  border-radius: 5px;
  background: #dce7d6;
}
.controls {
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0;
}
.controls button:hover,
.smallbutton:hover {
  background: #dee6d5;
}
.timeline {
  flex: 1;
  min-width: 75px;
  accent-color: var(--green);
}
.readout {
  font: 12px var(--mono);
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.metric {
  background: #f1f2e7;
  padding: 10px;
}
.metric label {
  display: block;
  font-size: 9px;
}
.metric strong {
  font: 500 22px var(--serif);
}
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.detail-columns h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.chart {
  width: 100%;
  height: 87px;
  background: #e5ebdd;
  border-radius: 3px;
}
.motor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  font: 11px var(--mono);
}
meter {
  width: 55%;
  accent-color: #517756;
}
.line {
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0 3px;
}
.smallbutton {
  text-decoration: none;
  display: inline-block;
}
.race-key {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  font-size: 12px;
}
@media (max-width: 720px) {
  .mast {
    height: 60px;
  }
  .mast nav {
    gap: 12px;
  }
  .mast nav > a:first-child {
    display: none;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 32px;
  }
  .mast nav a {
    font-size: 12px;
  }
  .topcta {
    padding: 7px 10px;
  }
  .hero-inner {
    min-height: 385px;
    padding: 95px 0 29px;
    align-items: flex-end;
  }
  .cover {
    object-position: 66% center;
  }
  .shade {
    background: linear-gradient(0deg, #0e281ef5 3%, #162c1fca 40%, #172e2330 80%);
  }
  h1 {
    font-size: clamp(52px, 12vw, 78px);
    margin: 13px 0;
  }
  .hero-copy > p {
    font-size: 15px;
    max-width: 390px;
  }
  .buttons {
    gap: 15px;
    margin-top: 20px;
  }
  .plate-note {
    top: 10px;
    bottom: auto;
    font-size: 8px;
  }
  .counters {
    gap: 8px;
    justify-content: space-between;
    font-size: 10px;
  }
  .counters span {
    max-width: 31%;
  }
  .counters span + span {
    padding-left: 8px;
  }
  .archive {
    padding-top: 29px;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .selectlabel {
    font-size: 0;
    gap: 0;
  }
  .selectlabel select {
    max-width: 135px;
    font-size: 12px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 18px;
  }
  .card h3 {
    font-size: 29px;
  }
  .card-body {
    padding: 16px;
  }
  .slot-list,
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .intro {
    font-size: 14px;
  }
  .data-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dialog-head,
  #notebook {
    padding: 12px;
  }
  .dialog-head .eyebrow {
    font-size: 9px;
  }
  .controls button {
    padding: 8px;
  }
  .detail-title {
    font-size: 34px;
  }
  .hero-label,
  .eyebrow {
    font-size: 10px;
  }
  .plate-note {
    right: 4vw;
  }
  footer .wrap {
    flex-wrap: wrap;
  }
  .brand,
  nav a {
    white-space: nowrap;
  }
  #slots .section-head {
    align-items: center;
  }
  #slots h2 {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}
@media (max-width: 450px) {
  .mast nav > a:not(.topcta) {
    display: none;
  }
  .mast .brand {
    flex-shrink: 0;
  }
  .counters a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .selectlabel select {
    max-width: 120px;
  }
  .section-head .selectlabel {
    margin: 4px 0;
  }
  .ghost span {
    margin-left: 2px;
  }
}
.browse-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.browse-tools [hidden] {
  display: none;
}
.bone-toggle {
  font: 12px var(--sans);
  display: flex;
  align-items: center;
  gap: 4px;
}
.bone-toggle input {
  accent-color: var(--green);
}
.counters a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#station {
  margin: 1.4rem 0;
  border-block: 1px solid var(--line);
  padding: .9rem 0;
}
.station-heading, .station-actions, #history-tools:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
}
.station-heading { justify-content: space-between; }
.station-heading h3 { margin: 0; font: 1.4rem var(--serif); }
#station button, #station select {
  padding: .35rem .55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}
#station a { font-weight: 650; }
#activity-feed, #history-count { color: var(--muted); margin: .6rem 0 0; }
#history-tools label { display: inline-flex; align-items: center; gap: .4rem; }
#history-tools input { max-width: 100%; }
.card[data-id], .slot[data-id] { position: relative; }
.station-badge { display: block; font-size: .83rem; color: var(--green); font-weight: 650; }
.slot[data-state] { border-inline-start: 4px solid #947945; }
.slot[data-state="submitted"], .slot[data-state="checked"], .slot[data-state="agreeing"] { animation: checking 1.8s ease-in-out infinite alternate; }
.card[data-arrived] { animation: landed 1.1s ease-out; }
.visitor-marker { position: absolute; z-index: 1; width: 10px; height: 10px; background: #ad4725; border: 2px solid white; border-radius: 50%; pointer-events: none; }
@keyframes checking { to { border-inline-start-color: #386d6b; } }
@keyframes landed { from { box-shadow: 0 0 0 4px #698f78; } }
@media (prefers-reduced-motion: reduce) { .slot[data-state], .card[data-arrived] { animation: none; } }
#station [hidden], #former[hidden], #slots[hidden] { display: none; }

/* Hero: the copy beside a live plate of built specimens (replaces the painted panorama). */
.hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-plate {
  margin: 0;
  background: #f4efdd;
  border: 1px solid #d6dcb8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 40px #0a1f1966;
}
.hero-plate canvas {
  display: block;
  width: 100%;
}
.hero-plate figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1a3127;
  color: #dfe8c4;
  font: 11px/1.4 var(--mono);
}
.hero-plate .plate-note {
  position: static;
  background: none;
  padding: 0;
  text-shadow: none;
  color: #f4f2dc;
}
#count-line a {
  color: inherit;
}
@media (max-width: 720px) {
  .hero .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 34px 0 30px;
    gap: 24px;
  }
  .hero-plate .plate-note {
    font-size: 9px;
  }
  .counters #count-line {
    max-width: 68%;
  }
}
