@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
body.embedded .masthead,
body.embedded .explorer,
body.embedded .reading-path,
body.embedded footer,
body.embedded .connections,
body.embedded .world-controls,
body.embedded .skip {
  display: none;
}
body.embedded main {
  display: block;
}
body.embedded .world {
  height: 100vh;
  min-height: 0;
}
body.embedded .scene-heading {
  top: 20px;
  left: 20px;
}
body.embedded .scene-heading h1 {
  font-size: 30px;
}
body.embedded .scene-heading .intro {
  display: none;
}
body.embedded .gesture {
  font-size: 9px;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #173a3b;
  background: #f6f5ee;
  font-synthesis: none;
  --ink: #173a3b;
  --muted: #536c68;
  --paper: #f6f5ee;
  --line: #d7ded3;
  --teal: #176b66;
  --gold: #8b631d;
  --coral: #a64230;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible,
summary:focus-visible {
  outline: 3px solid #b84e35;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
button:hover {
  color: #8e432d;
}
button[aria-pressed="true"] {
  color: var(--ink);
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 100;
  background: var(--paper);
  padding: 14px;
}
.masthead {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.025em;
}
.wordmark span {
  font-weight: 400;
  color: #8a9991;
  padding: 0 8px;
}
.back-link {
  font-size: 12px;
  text-decoration: none;
}
.back-link span {
  margin-left: 16px;
  font-size: 20px;
}
main > * {
  min-width: 0;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
}
.world {
  position: relative;
  min-height: 670px;
  height: calc(100svh - 220px);
  background: #eaece2;
  isolation: isolate;
  overflow: hidden;
}
.scene-heading {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 32px;
  pointer-events: none;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 650;
  margin: 0 0 13px;
}
.scene-heading .eyebrow span {
  margin: 0 7px;
  color: #647971;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(39px, 4.3vw, 68px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 0;
}
h1 em {
  font-weight: 400;
  color: #267368;
}
.intro {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 19px;
  color: #48645e;
}
#scene,
#labels {
  position: absolute;
  inset: 0;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#labels {
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.station-label {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 9px 12px;
  background: #f9f8eff2;
  border: 1px solid #ccd5c7;
  border-radius: 3px;
  box-shadow: 0 3px 12px #1743420b;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background 0.15s;
}
.station-label .index {
  font-size: 9px;
  color: #65817a;
  font-variant-numeric: tabular-nums;
}
.station-label[aria-pressed="true"] {
  background: #173e3e;
  color: white;
  border-color: #173e3e;
}
.station-label[aria-pressed="true"] .index {
  color: #a2c9b9;
}
.station-label::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 22px;
  background: #536c6880;
  top: 100%;
  left: 50%;
}
.station-label::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #365b53;
  top: calc(100% + 20px);
  left: calc(50% - 1px);
}
.scene-status {
  position: absolute;
  top: 28px;
  right: 23px;
  font-size: 9px;
  line-height: 1.5;
  display: flex;
  gap: 7px;
  align-items: center;
  max-width: 210px;
  color: var(--muted);
}
.live-dot,
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}
.world-controls {
  position: absolute;
  right: 24px;
  bottom: 66px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
}
.world-controls button {
  height: 36px;
  min-width: 36px;
  background: #f7f7eff0;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 19px;
}
.world-controls #motion {
  font-size: 10px;
  padding: 0 10px;
  margin-left: 5px;
}
.connections {
  position: absolute;
  bottom: 68px;
  left: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.control-caption {
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-right: 6px;
}
.connections button {
  font-size: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #f6f5ee90;
}
.connections button[aria-pressed="true"] {
  border-color: #9fb6a7;
  background: #fcfbf6;
}
.dot.gold {
  background: var(--gold);
}
.dot.coral {
  background: var(--coral);
}
.gesture {
  position: absolute;
  bottom: 24px;
  left: 28px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
  margin: 0;
}
.loading {
  position: absolute;
  inset: 52% 10% auto;
  text-align: center;
  color: #345e57;
  font-size: 13px;
}
.loading.error {
  background: var(--paper);
  padding: 20px;
  line-height: 1.6;
  z-index: 5;
}
.explorer {
  border-left: 1px solid var(--line);
  padding: 27px 24px 24px;
  height: calc(100svh - 220px);
  min-height: 670px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.scene-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0 13px;
}
.scene-switch button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  padding: 10px;
  font-size: 12px;
}
.scene-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.view-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
}
.connections summary {
  font-size: 11px;
  cursor: pointer;
  min-height: 40px;
  padding: 10px 12px;
  background: #f9f8eff2;
  border-radius: 5px;
}
.cast-label {
  white-space: normal;
  max-width: 155px;
  text-align: center;
  justify-content: center;
  line-height: 1.3;
  min-height: 40px;
}
.cast-pager {
  position: absolute;
  bottom: 175px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 4;
  font-size: 12px;
  background: #f7f7eff0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px;
}
.cast-label::before,
.cast-label::after {
  display: none;
}
.cast-pager button {
  width: 40px;
  height: 36px;
  border: 0;
  background: transparent;
}
.cast-pager button:disabled {
  opacity: 0.3;
  cursor: default;
}
html[data-diorama-view="cast"] .scene-heading h1 {
  font-size: 43px;
}
html[data-diorama-view="cast"] .scene-heading .intro {
  display: none;
}
@media (max-width: 760px) {
  .cast-label {
    max-width: 100px;
    font-size: 10px;
    padding: 7px;
  }
  html[data-diorama-view="cast"] .scene-heading h1 {
    font-size: 32px;
  }
}
.panel-head .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.spoiler {
  font-size: 9px;
  color: #975b38;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-top: 22px;
  gap: 18px;
}
.tabs button {
  font-size: 11px;
  padding: 11px 0;
  position: relative;
  color: var(--muted);
}
.tabs button[aria-pressed="true"] {
  font-weight: 700;
}
.tabs button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--ink);
}
.search-label {
  position: relative;
  display: block;
  margin: 16px 0 12px;
}
.search-label input {
  width: 100%;
  background: #eeefe5;
  border: 1px solid transparent;
  padding: 10px 30px 10px 11px;
  font-size: 11px;
  border-radius: 3px;
  color: var(--ink);
}
.search-label input::placeholder {
  color: #657970;
}
.search-label > span:last-child {
  position: absolute;
  right: 11px;
  top: 7px;
  font-size: 20px;
  pointer-events: none;
}
.entity-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 122px;
  overflow-y: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.entity-list button {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 8px;
  text-align: left;
  line-height: 1.25;
}
.entity-list button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.entity-list p {
  font-size: 12px;
  color: var(--muted);
}
#detail {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.detail-kind {
  font-size: 9px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.detail-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 9px;
}
.detail-kicker {
  font-size: 11px;
  color: #755333;
  line-height: 1.6;
  font-weight: 550;
  margin: 0 0 17px;
}
.detail-body {
  font-size: 12px;
  line-height: 1.85;
  margin: 0 0 16px;
}
.evidence {
  font-size: 9px;
  color: #5a7066;
  line-height: 1.7;
  border-left: 2px solid #b5c9b4;
  padding-left: 11px;
  margin: 0 0 21px;
}
.relations-title {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 7px;
}
.relation {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid #e0e4d9;
  font-size: 11px;
  line-height: 1.4;
}
.relation strong {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.relation small {
  display: block;
  font-size: 9px;
  color: #64766b;
  padding: 4px 0 0 13px;
}
.relation .arrow {
  margin-left: auto;
}
.reading-note {
  background: #e8ecde;
  padding: 13px;
  font-size: 11px;
  line-height: 1.7;
  border-radius: 3px;
  margin-bottom: 19px;
}
.reading-note span {
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: block;
  margin-bottom: 7px;
}
.reading-note p {
  margin: 6px 0 0;
}
.reading-note .time {
  font-size: 10px;
  color: #596948;
  border-top: 1px solid #ccd4bd;
  padding-top: 8px;
  margin-top: 9px;
}
.reading-path {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding: 20px 32px 22px;
  background: #f6f5ee;
}
.path-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.path-head .eyebrow {
  margin-bottom: 5px;
}
.path-head p:last-child {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}
.path-head p span {
  margin: 0 5px;
  color: #a76d37;
}
.step-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-controls button {
  font-size: 19px;
  width: 28px;
  height: 28px;
}
.step-controls span {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 9px;
}
.timeline button {
  border-top: 2px solid #ccd5c7;
  text-align: left;
  padding: 10px 7px 4px 0;
  position: relative;
  min-height: 62px;
}
.timeline button[aria-current="step"] {
  border-color: #a85d39;
}
.timeline button[aria-current="step"]::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  background: #a85d39;
  border-radius: 50%;
}
.timeline span {
  display: block;
  font-size: 8px;
  color: #60776d;
  letter-spacing: 0.045em;
  margin-bottom: 7px;
}
.timeline strong {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 550;
  display: block;
}
.timeline button[aria-current="step"] strong {
  color: #934a2f;
}
footer {
  padding: 18px 32px 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 50px;
  font-size: 9px;
  line-height: 1.7;
}
footer > p {
  margin: 0;
  flex: 1;
}
footer details {
  max-width: 500px;
  flex: 1;
}
footer summary {
  cursor: pointer;
  text-align: right;
}
footer details p {
  margin: 13px 0;
}
footer a {
  font-size: 10px;
}
.connection-description {
  position: absolute;
  left: 28px;
  bottom: 109px;
  font-size: 10px;
  max-width: 330px;
  line-height: 1.6;
  color: var(--muted);
  background: #f6f5eecc;
  padding: 6px 9px;
  z-index: 4;
}
@media (min-width: 1600px) {
  main {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
  .explorer {
    padding: 32px;
  }
  .detail-body {
    font-size: 13px;
  }
  .detail-title {
    font-size: 37px;
  }
  .world {
    min-height: 730px;
  }
  .explorer {
    min-height: 730px;
  }
}
@media (max-width: 1100px) {
  main {
    grid-template-columns: minmax(0, 1fr) 325px;
  }
  .scene-status {
    display: none;
  }
  .scene-heading {
    left: 24px;
  }
  .world-controls {
    bottom: 117px;
    right: 17px;
  }
  .connections {
    left: 20px;
  }
  .gesture {
    left: 20px;
  }
  .explorer {
    padding: 24px 20px;
  }
  .tabs {
    gap: 15px;
  }
  .connection-description {
    bottom: 155px;
    left: 20px;
    max-width: 230px;
  }
  .scene-heading h1 {
    font-size: 44px;
  }
}
@media (max-width: 760px) {
  .masthead {
    height: 58px;
    padding: 0 18px;
  }
  .wordmark {
    font-size: 12px;
  }
  .back-link {
    font-size: 10px;
  }
  .back-link span {
    margin-left: 5px;
  }
  main {
    grid-template-columns: minmax(0, 1fr);
  }
  .world {
    height: 650px;
    min-height: 0;
  }
  .scene-heading {
    top: 23px;
    left: 20px;
  }
  .scene-heading .eyebrow {
    font-size: 8px;
  }
  .scene-heading h1 {
    font-size: 44px;
  }
  .intro {
    font-size: 11px;
    margin-top: 14px;
  }
  .world-controls {
    right: 15px;
    bottom: 115px;
  }
  .station-label {
    font-size: 10px;
    padding: 7px 9px;
  }
  .station-label .index {
    display: none;
  }
  .connections {
    bottom: 67px;
    gap: 3px;
    left: 16px;
    right: 12px;
  }
  .connections button {
    padding: 0 7px;
  }
  .control-caption {
    width: 100%;
    margin: 0 0 4px;
  }
  .gesture {
    bottom: 24px;
    font-size: 8px;
    left: 17px;
  }
  .explorer {
    height: auto;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 22px;
  }
  .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .panel-head .eyebrow {
    margin: 0;
  }
  .tabs {
    margin-top: 13px;
    gap: 28px;
  }
  .entity-list {
    max-height: 100px;
  }
  .detail-title {
    font-size: 34px;
  }
  .detail-body {
    font-size: 13px;
    max-width: 60ch;
  }
  .reading-path {
    grid-row: 2;
    padding: 20px 18px;
  }
  .timeline {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    padding-top: 5px;
  }
  .timeline button {
    min-width: 123px;
    scroll-snap-align: start;
  }
  .timeline strong {
    font-size: 11px;
  }
  .timeline span {
    font-size: 9px;
  }
  .path-head {
    margin-bottom: 10px;
  }
  .step-controls {
    gap: 6px;
  }
  footer {
    padding: 20px;
    display: block;
    font-size: 9px;
  }
  footer details {
    margin-top: 12px;
  }
  footer summary {
    text-align: left;
  }
  .connection-description {
    bottom: 159px;
    max-width: 200px;
    left: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
