:root {
  --chalk: #f2f0df;
  --lime: #d6e894;
  --ink: #14271f;
  --muted: #bdc8b7;
  --line: #ffffff30;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #111e18;
  color: var(--chalk);
}
button,
a,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
#stage:focus-visible,
summary:focus-visible {
  outline: 3px solid #e6bd69;
  outline-offset: 3px;
}
button {
  border: 0;
}
header {
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 4.7%;
  gap: 4%;
  background: #101b16;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  font:
    25px Georgia,
    serif;
  white-space: nowrap;
}
.brand svg {
  width: 42px;
  height: 29px;
  align-self: center;
  margin-right: 6px;
  color: var(--lime);
}
nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 26px;
  margin: auto;
}
nav a,
nav button {
  display: grid;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  color: #bec8bc;
  background: none;
  border-bottom: 2px solid transparent;
  padding: 2px 0 0;
}
.current,
nav :hover {
  color: var(--chalk);
  border-color: var(--lime);
}
.edition,
.eyebrow,
.locator,
.hud,
.journalHead small,
.bookbar span,
.strip,
.plate span,
aside small,
.chapter small,
.source,
.sub,
.next {
  font:
    10px/1.5 "Courier New",
    monospace;
  letter-spacing: 0.12em;
}
.edition {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c2ccbc;
}
.edition b {
  font-weight: 400;
  border: 1px solid #6e7e6d;
  border-radius: 2px;
  padding: 1px 6px;
  color: var(--lime);
}
#station {
  isolation: isolate;
  position: relative;
  height: clamp(485px, 70svh, 730px);
  overflow: hidden;
  background: #243f36;
}
#forest,
#stage,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#stage {
  cursor: grab;
  touch-action: none;
}
#stage:active {
  cursor: grabbing;
}
#stage canvas {
  display: block;
}
.shade {
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #0a1a15ec 0%,
      #0b1c16d4 22%,
      #0e211980 38%,
      transparent 57%
    ),
    linear-gradient(
      0deg,
      #081811af,
      transparent 14%,
      transparent 90%,
      #0a19182b
    );
}
.intro {
  position: absolute;
  left: 5%;
  top: 48%;
  transform: translateY(-50%);
  width: 33%;
  pointer-events: none;
}
.eyebrow,
.locator,
.hud,
.orbitHint,
.viewTools,
.row,
.strip,
.journalHead,
.bookbar {
  display: flex;
  align-items: center;
}
.eyebrow {
  gap: 10px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.16em;
}
.lime-line {
  width: 28px;
  border-top: 2px solid currentColor;
}
.eyebrow em {
  font-style: normal;
  color: #81927b;
}
.intro h1 {
  margin: 0.24em 0 0.1em;
  font:
    normal clamp(62px, 7.8vw, 122px)/0.9 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.064em;
}
.intro h1 i {
  font-weight: normal;
  color: #d9e6b5;
}
.latin {
  font:
    italic clamp(18px, 1.7vw, 25px) Georgia,
    serif;
  color: #c0cbb6;
  margin: 15px 0 20px;
}
.lede {
  font-size: clamp(14px, 1.11vw, 17px);
  line-height: 1.6;
  max-width: 310px;
  color: #d0d8ca;
  margin: 0 0 23px;
}
.cta {
  background: var(--lime);
  color: #1e3021;
  padding: 12px 15px 12px 17px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-weight: bold;
  font-size: 13px;
  pointer-events: auto;
}
.cta:hover,
.cta:active {
  background: #eaf7b5;
}
.cta span {
  font-size: 19px;
  font-weight: normal;
}
.locator {
  position: absolute;
  right: 4.7%;
  top: 24px;
  color: var(--chalk);
  gap: 7px;
  pointer-events: none;
}
.locator svg {
  width: 13px;
  height: 16px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
}
.plate {
  position: absolute;
  right: 5.1%;
  top: 48%;
  pointer-events: none;
  text-shadow: 0 1px 5px #16281d;
}
.plate:before {
  content: "";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: clamp(18px, 3.7vw, 65px);
  border-top: 1px solid #c7d9b48c;
}
.plate span {
  display: block;
  color: var(--lime);
}
.plate i {
  font:
    italic 14px Georgia,
    serif;
}
.hud,
.orbitHint,
.viewTools {
  position: absolute;
  bottom: 19px;
}
.hud {
  gap: 8px;
  left: 5%;
  color: #dce2cf;
}
.statusdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.orbitHint {
  left: 61%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #dce4d9;
  pointer-events: none;
}
.orbitHint b {
  margin: 0 8px;
}
.viewTools {
  right: 4.7%;
  gap: 1px;
  border: 1px solid #ffffff40;
  border-radius: 3px;
  overflow: hidden;
}
.viewTools button {
  width: 34px;
  height: 30px;
  background: #15261cd9;
  font-size: 19px;
}
.viewTools button:hover {
  background: #4c6049;
}
.strip {
  height: 45px;
  background: #18291f;
  color: #c3d0b9;
  gap: 14px;
  padding: 0 5%;
  border-block: 1px solid var(--line);
  letter-spacing: 0.11em;
}
.strip .cross {
  font-size: 21px;
  color: var(--lime);
}
.strip b {
  height: 14px;
  border-left: 1px solid #73856d;
}
.strip strong {
  font:
    italic 15px Georgia,
    serif;
  letter-spacing: 0;
}
.stripEnd {
  margin-left: auto;
}
.journalHead {
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  margin-bottom: 28px;
}
#journal {
  background: #e8e8d8;
  color: #203629;
  padding: 34px 5% 94px;
  scroll-margin-top: 12px;
}
.journalHead .eyebrow {
  color: #53694c;
}
.journalHead h2,
#book h2,
aside h2 {
  font:
    normal clamp(32px, 3.6vw, 60px)/1.05 Georgia,
    serif;
  letter-spacing: -0.05em;
  margin: 9px 0 0;
}
.journalHead small {
  color: #52634f;
}
.journalHead h2 i {
  color: #536b49;
}
#chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #8e9a82;
}
.chapter {
  background: transparent;
  text-align: left;
  padding: 18px 20px 18px 0;
  color: var(--ink);
  border-right: 1px solid #a7b19b;
}
.chapter + .chapter {
  padding-left: 20px;
}
.chapter:last-child {
  border: 0;
}
.chapter svg {
  width: 55px;
  height: 45px;
  color: #516747;
  display: block;
  margin: 6px 0;
}
.chapter strong {
  font:
    normal 23px Georgia,
    serif;
  letter-spacing: -0.04em;
}
.chapter:hover,
.chapter:active {
  background: #d9dfc9;
}
.chapter small {
  display: flex;
  justify-content: space-between;
  color: #53694c;
}
.chapter p {
  font-size: 13px;
  margin: 8px 0 0;
  color: #4c5b4c;
  line-height: 1.4;
}
#inspect {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 4.7%;
  background: #15251ef8;
  border: 1px solid #64755a;
  padding: 19px 21px;
  width: 31%;
  max-height: 85%;
  overflow: auto;
  border-radius: 3px;
}
.row,
.bookbar {
  justify-content: space-between;
}
.row small {
  color: var(--lime);
}
.row button,
.bookbar button {
  background: transparent;
  color: inherit;
  font-size: 24px;
  width: 32px;
  height: 32px;
}
.row button:hover,
.bookbar button:hover {
  background: #78946b32;
}
aside h2 {
  font-size: 31px;
  margin: 7px 0 16px;
}
#modes,
.actions,
.islands {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#modes button,
.actions button,
.islands button,
.next {
  background: #24372b;
  border: 1px solid #5c7059;
  padding: 7px 9px;
  border-radius: 2px;
  font-size: 12px;
}
#modes button[aria-pressed="true"],
.actions button:hover,
.islands button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}
#instrument p {
  font-size: 14px;
  line-height: 1.5;
  color: #d9ddcf;
}
label {
  display: block;
  font-size: 13px;
}
input[type="range"] {
  display: block;
  width: 100%;
  accent-color: var(--lime);
  margin: 7px 0 13px;
}
.actionNote {
  min-height: 1em;
  font-size: 12px !important;
  color: var(--lime) !important;
}
.examining .intro {
  visibility: hidden;
}
.examining .plate {
  display: none;
}
dialog {
  padding: 0;
  width: min(665px, 94vw);
  max-height: 85svh;
  overflow: auto;
  background: #edecdd;
  color: var(--ink);
  border: 1px solid #66775f;
  border-radius: 4px;
}
dialog::backdrop {
  background: #08150fcc;
  backdrop-filter: blur(3px);
}
.bookbar {
  position: sticky;
  top: 0;
  background: #edecdd;
  border-bottom: 1px solid #a2ad95;
  padding: 8px 22px;
  z-index: 1;
}
#reading {
  padding: 22px 30px 35px;
}
#reading h2 {
  font-size: 43px;
  margin: 8px 0 16px;
}
#reading h3 {
  font:
    normal 22px Georgia,
    serif;
}
#reading p,
details {
  font-size: 15px;
  line-height: 1.6;
}
details {
  border-top: 1px solid #aab49c;
  padding: 11px 0;
}
summary {
  cursor: pointer;
  font-weight: bold;
}
.source,
.sub {
  color: #52674b;
}
#reading a {
  text-underline-offset: 3px;
}
.next,
.islands button {
  color: white;
}
.next {
  margin-top: 18px;
}
.map {
  background: #dae0cd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 12px;
  gap: 14px;
}
.map svg {
  width: 100%;
  height: 185px;
}
.map polygon {
  fill: #99a98f;
  stroke: #637b5b;
}
.map .sel {
  fill: #344e35;
}
.map p {
  margin-bottom: 0;
}
.sourceList li {
  margin: 12px 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
#unavailable {
  position: absolute;
  max-width: 230px;
  left: 58%;
  top: 45%;
  font-size: 14px;
  background: #12231c;
  padding: 14px;
}
[hidden] {
  display: none !important;
}
button:active {
  filter: brightness(0.93);
}
@media (min-width: 1500px) {
  .intro {
    width: 36%;
  }
  .lede {
    max-width: 360px;
  }
}
@media (max-width: 850px) {
  .edition {
    display: none;
  }
  nav {
    margin: 0 0 0 auto;
  }
  .plate {
    right: 3%;
  }
  .plate:before {
    width: 16px;
  }
  .intro {
    width: 39%;
  }
  .journalHead small {
    display: none;
  }
  #inspect {
    width: 39%;
  }
  .stripEnd {
    display: none;
  }
}
@media (max-width: 640px) {
  header {
    height: 55px;
    padding: 0 5%;
    gap: 10px;
  }
  .brand {
    font-size: 21px;
  }
  .brand svg {
    width: 31px;
    margin: 0;
  }
  nav {
    gap: 12px;
  }
  nav a,
  nav button {
    font-size: 11px;
  }
  nav .current {
    display: none;
  }
  #station {
    height: 660px;
    max-height: none;
  }
  .shade {
    background: linear-gradient(
      0deg,
      #0c1e17 1%,
      #0c1e17e8 22%,
      #10251c44 49%,
      transparent 62%
    );
  }
  .intro {
    top: auto;
    bottom: 48px;
    left: 6%;
    width: 86%;
    transform: none;
  }
  .intro h1 {
    font-size: 54px;
    margin: 8px 0;
    line-height: 0.98;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 i:before {
    content: " ";
  }
  .latin {
    font-size: 17px;
    margin: 7px 0;
  }
  .lede {
    font-size: 13px;
    line-height: 1.45;
    max-width: 300px;
    margin: 8px 0 13px;
  }
  .cta {
    padding: 9px 12px;
    gap: 18px;
  }
  .eyebrow,
  .hud,
  .locator,
  .plate span {
    font-size: 9px;
  }
  .locator {
    top: 15px;
    left: 6%;
    right: auto;
  }
  .plate {
    top: 32%;
    right: 5%;
  }
  .plate i {
    font-size: 11px;
  }
  .plate:before {
    width: 13px;
    right: calc(100% + 4px);
  }
  .hud {
    left: 6%;
    bottom: 14px;
  }
  .viewTools {
    right: 6%;
    bottom: 10px;
  }
  .orbitHint {
    display: none;
  }
  .strip {
    height: 40px;
    gap: 10px;
  }
  .journalHead h2 {
    font-size: 32px;
  }
  #journal {
    padding: 26px 6% 70px;
  }
  .journalHead {
    margin-bottom: 19px;
  }
  #chapters {
    grid-template-columns: 1fr 1fr;
  }
  .chapter {
    padding: 13px 9px !important;
  }
  .chapter:nth-child(2) {
    border-right: 0;
  }
  .chapter:nth-child(-n + 2) {
    border-bottom: 1px solid #8e9a82;
  }
  .chapter strong {
    font-size: 19px;
  }
  .chapter p {
    font-size: 12px;
  }
  .chapter svg {
    height: 39px;
  }
  .examining .hud {
    display: none;
  }
  #inspect {
    top: auto;
    bottom: 47px;
    transform: none;
    left: 4%;
    width: 92%;
    max-height: 46%;
    padding: 13px 16px;
  }
  aside h2 {
    font-size: 24px;
    margin: 0 0 10px;
  }
  #instrument p {
    margin: 8px 0;
    font-size: 13px;
  }
  #reading {
    padding: 18px;
  }
  #reading h2 {
    font-size: 33px;
  }
  .map {
    grid-template-columns: 1fr;
  }
  .map svg {
    height: 140px;
  }
  dialog {
    max-height: 83svh;
  }
  #unavailable {
    top: 16%;
    left: 14%;
  }
}
@media (max-height: 500px) and (min-width: 641px) {
  #station {
    height: 450px;
  }
  .intro h1 {
    font-size: 61px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
