:root {
  --ink: #173035;
  --deep: #0e2428;
  --deeper: #0b1e21;
  --paper: #f4efe4;
  --sand: #eae2d1;
  --line: #d4c9b4;
  --gold: #e0b779;
  --gold-dark: #855c2a;
  --muted: #4c5b55;
  --white: #f8f1e3;
  --serif: "Baskerville","Iowan Old Style",Georgia,serif;
  --sans: "Avenir Next",Avenir,system-ui,sans-serif;
  --mono: "SFMono-Regular",Consolas,monospace;
  --max: 1300px;
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.62 var(--sans);
}

button,a,input {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

p,h1,h2,h3,h4,figure {
  margin: 0;
}

h1,h2,h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: .99;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible {
  outline: 3px solid #09787f;
  outline-offset: 4px;
}

.hero :focus-visible,.site-header :focus-visible,.site-footer :focus-visible,.map-board :focus-visible {
  outline-color: #ffe2a6;
}

.wrap {
  width: min(var(--max),calc(100% - 112px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 0 max(34px,calc((100% - 1370px)/2));
  background: var(--deeper);
  color: var(--white);
  border-bottom: 1px solid #ffffff22;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 24px/1 var(--serif);
  white-space: nowrap;
  text-decoration: none;
}

.brand em {
  font-weight: 500;
  color: #ddc39a;
}

.compass {
  position: relative;
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dcb77991;
  border-radius: 50%;
  flex: none;
  color: var(--gold);
}

.compass::before {
  content: "✦";
  font: 25px/1 Georgia,serif;
  transform: rotate(-14deg);
}

.compass::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #dcb77955;
  border-radius: 50%;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: .88rem;
  font-weight: 600;
  color: #e4e9e4;
}

.site-header nav a {
  text-decoration: none;
  padding: 12px 0;
  white-space: nowrap;
}

.site-header nav a:hover,.site-footer button:hover {
  color: var(--gold);
}

.passport-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d9b77966;
  padding: 7px 11px;
  background: none;
  color: var(--white);
  border-radius: 4px;
  font-size: .83rem;
  white-space: nowrap;
  font-weight: 600;
}

.passport-button:hover {
  background: #ffffff12;
}

.passport-icon {
  width: 11px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 2px;
}

.passport-icon:before {
  content: "✦";
  font-size: 7px;
  color: var(--gold);
}

#header-progress {
  font: 600 .72rem var(--mono);
  color: var(--gold);
  border-left: 1px solid #ffffff30;
  padding-left: 8px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 590px;
  display: flex;
  background: #203234;
  color: var(--white);
  overflow: hidden;
}

.hero-visual,.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-visual {
  left: 18%;
  background: #426064;
  overflow: hidden;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
  filter: grayscale(1) contrast(1.13);
  mix-blend-mode: luminosity;
}

.hero-shade {
  background: linear-gradient(90deg,#10262a 1%,#10262aeb 17%,#10262a8c 45%,#142c3014 76%),linear-gradient(0deg,#0b1d21c9,transparent 40%),linear-gradient(180deg,#10262a42,transparent 34%);
}

.hero-content {
  display: flex;
  align-items: center;
  position: relative;
  padding-block: 62px 85px;
}

.hero-copy {
  position: relative;
  max-width: 730px;
}

.hero h1 {
  font-size: clamp(5rem,9.6vw,9.9rem);
  letter-spacing: -.069em;
  text-shadow: 0 3px 30px #132a2b42;
  line-height: .83;
}

.hero h1 em {
  font-weight: 400;
  color: #ecc793;
  display: inline-block;
}

.hero-copy p {
  max-width: 435px;
  margin: 27px 0 25px;
  font-size: 1.09rem;
  color: #f3ecdb;
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  min-height: 47px;
  padding: 10px 17px;
  text-decoration: none;
  font-size: .89rem;
  font-weight: 750;
  line-height: 1.25;
}

.primary {
  background: var(--gold);
  color: #182920;
}

.primary:hover {
  background: #f3cb91;
}

.play {
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  border-left: 7px solid currentColor;
  margin-right: 1px;
}

.ghost {
  border-color: #ebdac193;
  background: #10262a52;
  color: var(--white);
}

.ghost:hover {
  background: #0d2327c9;
}

.hero-caption {
  position: absolute;
  bottom: 28px;
  right: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: #102327b8;
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--white);
  line-height: 1.3;
}

.hero-caption:hover {
  background: #102327;
}

.hero-caption strong,.hero-caption small {
  display: block;
}

.hero-caption strong {
  font-size: .84rem;
}

.hero-caption small,.hero-coordinates {
  font: .7rem var(--mono);
  color: #f2d9a9;
  margin-top: 4px;
}

.small-rule {
  width: 17px;
  height: 1px;
  background: var(--gold);
}

.photo-open {
  margin-left: 4px;
  font-size: 1rem;
  color: var(--gold);
}

.hero-coordinates {
  position: absolute;
  bottom: 29px;
  left: 0;
  letter-spacing: .1em;
}

.timeline {
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 26px;
}

.section-heading h2,.chapter h2 {
  font-size: clamp(2.7rem,5.25vw,5.35rem);
  letter-spacing: -.056em;
}

.section-heading>p {
  max-width: 340px;
  color: var(--muted);
  font-size: .95rem;
}

.eyebrow {
  font: 700 .72rem/1.4 var(--mono);
  letter-spacing: .15em;
  color: var(--gold-dark);
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 9px;
}

.eyebrow span {
  width: 17px;
  height: 1px;
  background: currentColor;
}

.era-navigation {
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.era {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-height: 94px;
  padding: 12px 11px;
  text-decoration: none;
  text-align: left;
  background: #faf6ec;
  border: 0;
  border-right: 1px solid var(--line);
}

.era:last-child {
  border: 0;
}

.era:hover {
  background: #e9e1cf;
}

.era:focus-visible {
  outline-offset: -4px;
}

.era[aria-current="step"] {
  background: #193b3b;
  color: var(--white);
  box-shadow: inset 0 3px var(--gold);
}

.era-year {
  font: 700 .69rem var(--mono);
  letter-spacing: .025em;
  color: var(--gold-dark);
}

.era[aria-current="step"] .era-year {
  color: #edc68c;
}

.era-name {
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 750;
}

.era-stamp {
  position: absolute;
  right: 6px;
  top: 4px;
  color: var(--gold-dark);
  font-size: .69rem;
}

.era[aria-current="step"] .era-stamp {
  color: var(--gold);
}

.chapter {
  padding: 49px 0 57px;
}

.chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.chapter-head .chapter-lead {
  max-width: 440px;
  color: var(--muted);
  font-size: 1rem;
}

.chapter-body {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: clamp(25px,4vw,65px);
  align-items: start;
}

.exhibit-photo {
  border: 1px solid var(--line);
  padding: 8px;
  background: #faf7ef;
  border-radius: 4px;
}

.exhibit-photo [hidden] {
  display: none;
}

.scene {
  position: relative;
  display: grid;
  place-items: center;
  background: #d9d1bf;
  aspect-ratio: 1.55;
  overflow: hidden;
}

.scene img {
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.scene-clues {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 5px 6px;
  border-bottom: 1px solid var(--line);
}

.scene-clues span {
  margin-right: 3px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
}

.inspect-pin {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 2px solid #fff0d3;
  border-radius: 50%;
  background: #12383ce8;
  color: #ffe1a9;
  font: 800 .85rem var(--mono);
  box-shadow: 0 0 0 2px #10252940;
}

.inspect-pin:hover,.inspect-pin.is-active {
  background: #edc38b;
  color: #1a342f;
  border-color: #1a342f;
}

.exhibit-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 5px 3px;
  font-size: .83rem;
  color: var(--muted);
}

.text-button {
  background: none;
  border: 0;
  color: #254f49;
  padding: 3px 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .24em;
  font-size: .86rem;
  font-weight: 750;
}

.text-button:hover {
  color: var(--gold-dark);
}

.story-copy p+p {
  margin-top: 12px;
}

.story-copy>p {
  line-height: 1.64;
}

.content-note {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-left: 3px solid #967044;
  background: #e9dfcb;
  color: #4d3d2f;
  font-size: .82rem;
}

.clue-box {
  padding: 16px 0 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.clue-box h3,.challenge h3 {
  font-size: 1.62rem;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}

.clue-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.clue-list button,.filters button,.place-list button {
  padding: 6px 10px;
  border: 1px solid #bfb19b;
  border-radius: 3px;
  background: #faf7ef;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 650;
}

.clue-list button:hover,.filters button:hover,.place-list button:hover {
  background: #e9e0cf;
}

.clue-list button[aria-pressed="true"],.filters button[aria-pressed="true"],.place-list button[aria-pressed="true"] {
  background: #214545;
  color: #fff8e8;
  border-color: #214545;
}

.clue-panel {
  margin-top: 12px;
  color: #374b45;
  min-height: 47px;
  font-size: .94rem;
}

.clue-panel strong {
  color: var(--ink);
}

.clue-panel div {
  margin-top: 6px;
}

.chapter-sources {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
  color: var(--muted);
  font-size: .79rem;
}

.chapter-sources a:hover {
  color: var(--gold-dark);
}

.challenge {
  background: #eae2d1;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 23px 24px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(210px,.8fr) minmax(0,1.2fr);
  gap: 15px 28px;
  align-items: center;
}

.challenge .eyebrow {
  margin-bottom: 5px;
}

.challenge h3 {
  margin: 0 0 6px;
}

.challenge-choices {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.challenge-choices button {
  background: #f8f3e8;
  border: 1px solid #b7a88e;
  padding: 7px 10px;
  border-radius: 3px;
  font-size: .84rem;
  font-weight: 650;
}

.challenge-choices button:hover {
  background: #d8c5a5;
}

.challenge-choices .right {
  background: #214545;
  color: #fff8e8;
  border-color: #214545;
}

.challenge-choices .wrong {
  border-color: #a14934;
  color: #803420;
  background: #f4e0d6;
}

.challenge-feedback {
  grid-column: 2;
  color: #284e43;
  font-size: .88rem;
  min-height: 20px;
}

.challenge-feedback:empty {
  display: none;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
}

.secondary {
  border-color: #9e927b;
  background: #f9f4e9;
}

.secondary:hover {
  background: #e6dcc9;
}

.compare {
  margin-top: 17px;
}

.compare summary {
  cursor: pointer;
  color: #254f49;
  font-weight: 750;
  font-size: .89rem;
}

.compare-row {
  --comparison-image-ratio: 1.65;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.compare-row button {
  padding: 0;
  text-align: left;
  background: #faf7ef;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  font-size: .78rem;
}

.compare-row button:hover {
  border-color: #46625a;
}

.compare-row img {
  aspect-ratio: var(--comparison-image-ratio);
  object-fit: cover;
}

.comparison-caption {
  display: block;
  padding: 5px 7px;
}

.clue-comparison button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
}

.clue-comparison {
  --comparison-image-ratio: 1.43;
}

.clue-comparison img {
  object-fit: contain;
  background: #d9d1bf;
}

.marked-photo-frame,
.marked-photo {
  display: block;
}

.marked-photo {
  position: relative;
}

.compare-row .marked-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--comparison-image-ratio);
  container-type: inline-size;
  background: #d9d1bf;
}

.compare-row .marked-photo img {
  width: auto;
  max-width: 100cqw;
  max-height: calc(100cqw / var(--comparison-image-ratio));
  aspect-ratio: auto;
}

.photo-marker {
  position: absolute;
  width: clamp(12px, 5%, 27px);
  aspect-ratio: 1;
  border: 2px solid #ffda66;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #201909, inset 0 0 0 1px #201909;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.photo-marker-area {
  border-radius: 6px;
}

.comparison-note {
  margin: 9px 5px 3px;
  color: var(--muted);
  font-size: .85rem;
}

.map-section {
  padding: 56px 0 48px;
  background: #e8e0cf;
  border-block: 1px solid var(--line);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(300px,.75fr);
  min-height: 390px;
  border: 1px solid #8b927d;
  border-radius: 4px;
  overflow: hidden;
}

.map-board {
  position: relative;
  container-type: inline-size;
  min-height: 390px;
  background: #294849;
}

#map-canvas,.map-markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-markers {
  display: block;
}

.map-point {
  position: absolute;
  transform: translate(-50%,-50%);
  width: 32px;
  height: 32px;
  border: 1px solid #f3dbab;
  border-radius: 50%;
  background: #153b3d;
  color: #f9dfac;
  display: grid;
  place-items: center;
  font: 700 .77rem var(--mono);
  box-shadow: 0 2px 5px #10212472;
}

@container (max-width: 530px) {
  .map-point {
    margin-left: var(--compact-pin-offset);
  }
}

.map-point:hover,.map-point[aria-pressed="true"] {
  background: #edc48b;
  color: #143436;
  border-color: #143436;
  z-index: 2;
}

.map-water {
  position: absolute;
  left: 37%;
  bottom: 12%;
  font: italic 1.45rem var(--serif);
  letter-spacing: .09em;
  color: #e4e4cb;
  pointer-events: none;
}

.map-north {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #fff4d4;
  font: 700 .68rem var(--mono);
  pointer-events: none;
}

.place-detail {
  background: #f6f0e4;
  padding: 22px;
}

.place-detail h3 {
  font-size: 2.15rem;
  margin-bottom: 7px;
}

.place-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(106px,100%),1fr));
  gap: 8px;
  margin: 12px 0;
}

.place-photo {
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #faf7ef;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.place-photo:hover {
  border-color: #49716a;
}

.place-photo img {
  aspect-ratio: 2.1;
  object-fit: cover;
}

.place-photo span {
  display: block;
  padding: 5px 7px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.3;
}

.place-detail p:not(.eyebrow) {
  font-size: .88rem;
  margin-bottom: 12px;
}

.place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.place-list button {
  font-size: .74rem;
  padding: 3px 7px;
}

.map-note {
  font-size: .81rem;
  color: var(--muted);
  margin-top: 9px;
}

.archive {
  padding: 55px 0 68px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  background: #faf6ec;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
}

.archive-card:hover {
  border-color: #49716a;
  box-shadow: 0 3px 12px #19333519;
}

.archive-card picture {
  display: block;
  min-width: 0;
}

.archive-card img {
  aspect-ratio: 1.5;
  object-fit: cover;
  background: #e0d6c4;
}

.archive-card .archive-comparison-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 0;
}

.archive-comparison-images img {
  aspect-ratio: .9;
}

.archive-card div {
  padding: 11px 13px 13px;
  display: grid;
  gap: 5px;
}

.archive-card strong {
  font: 700 1.28rem/1.05 var(--serif);
}

.archive-card small {
  color: #79562f;
  font: 700 .68rem var(--mono);
}

.site-footer {
  background: var(--deeper);
  color: var(--white);
  padding: 28px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.site-footer p {
  font-size: .84rem;
  color: #d0d9d0;
}

.site-footer .text-button {
  color: #ead1a7;
}

dialog {
  background: #f8f2e7;
  border: 1px solid #a29174;
  border-radius: 5px;
  color: var(--ink);
  width: min(880px,calc(100% - 26px));
  max-height: 90dvh;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 70px #071718a3;
}

dialog::backdrop {
  background: #091e22c9;
}

.dialog-frame {
  display: flex;
  flex-direction: column;
  max-height: calc(90dvh - 2px);
}

.dialog-shell {
  padding: 23px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog-shell h2 {
  font-size: clamp(2.1rem,5vw,3.75rem);
  letter-spacing: -.045em;
  margin: 0 29px 11px 0;
}

.close {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #ac9c81;
  border-radius: 50%;
  background: #f8f2e7;
  font-size: 24px;
  line-height: 1;
}

.close:hover {
  background: #e1d6bf;
}

.lightbox-image {
  width: 100%;
  max-height: 55dvh;
  object-fit: contain;
  background: #dcd3c1;
  margin-top: 12px;
}

#dialog-content > .marked-photo-frame,
.lightbox-full-image > .marked-photo-frame {
  margin-top: 12px;
}

.marked-photo .lightbox-image,
.lightbox-full-image .marked-photo img {
  max-height: none;
  margin-top: 0;
}

.photo-comparison-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 8px;
}

.photo-comparison-links button {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lightbox-full-image img {
  margin-top: 10px;
}

.lightbox-info {
  margin-top: 10px;
  font-size: .91rem;
}

.lightbox-credit {
  margin-top: 7px;
  font-size: .82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.lightbox-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 12px 23px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}

.lightbox-controls[hidden] {
  display: none;
}

#lightbox-position {
  white-space: nowrap;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin-top: 18px;
}

.stamp {
  border: 1px dashed #a99574;
  border-radius: 3px;
  text-align: center;
  min-height: 97px;
  padding: 10px 5px;
  color: #5c5e52;
  background: #eee8da;
  font-size: .79rem;
}

.stamp b {
  display: block;
  font: 700 1.55rem var(--serif);
  color: #756444;
}

.stamp-earned {
  background: #e2ebdd;
  border-color: #58735c;
  color: #244739;
}

.stamp-earned b {
  color: #244739;
}

.source-list {
  margin: 13px 0 0;
  padding-inline-start: 20px;
}

.source-list li {
  margin-bottom: 7px;
}

.credits-list {
  columns: 2;
  column-gap: 23px;
}

.noscript {
  padding: 20px;
  position: fixed;
  bottom: 0;
  background: #fff2d4;
  width: 100%;
  z-index: 5;
}

@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 70px);
  }

  .era {
    padding: 10px 8px;
  }

  .era-year {
    font-size: .65rem;
  }

  .archive-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .site-header {
    padding: 10px 18px;
    flex-wrap: wrap;
    gap: 0;
    min-height: auto;
  }

  .brand {
    font-size: 21px;
  }

  .site-header nav {
    order: 3;
    justify-content: center;
    gap: 28px;
    width: 100%;
    border-top: 1px solid #ffffff26;
    margin-top: 9px;
    font-size: .82rem;
  }

  .site-header nav a {
    padding: 8px 0 1px;
  }

  .passport-button {
    padding: 6px 8px;
  }

  .hero {
    min-height: 565px;
  }

  .hero-visual {
    left: 0;
  }

  .hero-visual img {
    object-position: 61% 48%;
  }

  .hero-shade {
    background: linear-gradient(90deg,#10262adf 0%,#10262a84 67%,#10262a3b),linear-gradient(0deg,#0b1d21da,transparent 36%);
  }

  .hero h1 {
    font-size: clamp(4.4rem,14vw,7rem);
  }

  .hero-content {
    padding-block: 65px 95px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-coordinates {
    display: none;
  }

  .hero-caption {
    bottom: 16px;
  }

  .section-heading,.chapter-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading {
    margin-bottom: 21px;
  }

  .timeline {
    padding: 32px 0 27px;
  }

  .era-navigation {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .era {
    min-height: 76px;
  }

  .era:nth-child(4) {
    border-right: 0;
  }

  .era:nth-child(-n+4) {
    border-bottom: 1px solid var(--line);
  }

  .chapter,.map-section,.archive {
    padding: 37px 0;
  }

  .chapter-body,.map-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .map-layout {
    gap: 0;
  }

  .map-board {
    min-height: 340px;
  }

  .challenge {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .challenge-feedback {
    grid-column: 1;
  }

  .site-footer .wrap {
    flex-wrap: wrap;
  }

  .site-footer p {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 460px) {
  .wrap {
    width: calc(100% - 30px);
  }

  .hero h1 {
    font-size: clamp(3.58rem,14vw,5rem);
  }

  .hero {
    min-height: 495px;
  }

  .hero-copy p {
    margin: 22px 0;
    font-size: .97rem;
  }

  .actions .button {
    padding: 9px 11px;
    font-size: .82rem;
  }

  .hero-caption {
    font-size: .8rem;
  }

  .era {
    padding: 8px 5px;
  }

  .era-year {
    font-size: .61rem;
  }

  .era-name {
    font-size: .72rem;
  }

  .archive-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }

  .archive-card div {
    padding: 8px;
  }

  .archive-card strong {
    font-size: 1.1rem;
  }

  .map-board {
    min-height: 285px;
  }

  .map-point {
    width: 28px;
    height: 28px;
  }

  .credits-list {
    columns: 1;
  }

  .stamp-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .dialog-shell {
    padding: 15px;
  }

  .lightbox-controls {
    padding: 10px 15px;
  }

  .chapter-nav .button {
    font-size: .76rem;
    padding: 8px;
  }

  .chapter-nav {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    scroll-behavior: auto!important;
    animation: none!important;
  }
}

@media (max-width: 460px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 6px;
  }

  .site-header nav {
    grid-column: 1/-1;
    margin-top: 2px;
  }

  .site-header .brand {
    font-size: 18px;
    gap: 6px;
  }

  .site-header .compass {
    width: 24px;
    height: 24px;
  }

  .site-header .compass::before {
    font-size: 21px;
  }

  .passport-button {
    font-size: .72rem;
    gap: 5px;
  }

  #header-progress {
    padding-left: 5px;
  }

  .hero-visual img {
    object-position: 56% center;
  }
}

.local-stories {
  background: #123034;
  color: var(--white);
  padding: 52px 0 57px;
}

.local-stories .section-heading>p,.local-stories .local-caption {
  color: #d8e0d5;
}

.local-stories .eyebrow {
  color: #e7bd82;
}

.local-stories .filters button {
  background: #193d41;
  color: #fff3dc;
  border-color: #849b90;
}

.local-stories .filters button:hover {
  background: #2a5252;
}

.local-stories .filters button[aria-pressed="true"] {
  background: #e8bf85;
  color: #152d2b;
  border-color: #e8bf85;
}

.local-stories :focus-visible {
  outline-color: #ffde9d;
}

.local-story {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  border-block: 1px solid #59716a;
  gap: clamp(22px,4vw,52px);
  padding: 20px 0;
  align-items: start;
}

.local-figure button {
  display: block;
  width: 100%;
  border: 1px solid #647e76;
  padding: 0;
  background: #0e2528;
  border-radius: 3px;
  overflow: hidden;
}

.local-figure button:hover {
  border-color: #e8bf85;
}

.local-figure img {
  aspect-ratio: 1.65;
  max-height: 365px;
  object-fit: cover;
}

.local-caption {
  font-size: .81rem;
  padding: 7px 0 0;
}

.local-story h3 {
  font-size: clamp(2.1rem,4vw,3.9rem);
  margin: 5px 0 12px;
  letter-spacing: -.045em;
}

.local-story .story-copy {
  color: #f0ebdd;
}

.local-story .chapter-sources {
  color: #e2e6d6;
}

.local-story .chapter-sources a:hover {
  color: var(--gold);
}

.local-gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.local-gallery button {
  background: none;
  color: #ffdea9;
  border: 1px solid #b699694f;
  padding: 5px 9px;
  border-radius: 3px;
  font-size: .82rem;
}

.local-gallery button:hover {
  background: #264b49;
}

.chapter-sources [data-story] {
  background: none;
  border: 0;
  text-decoration: underline;
  padding: 0;
  color: #204c47;
  font-size: inherit;
  font-weight: 750;
}

@media (max-width: 760px) {
  .local-stories {
    padding: 37px 0;
  }

  .local-story {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-header nav {
    gap: clamp(10px,4vw,28px);
  }
}

@media (max-width: 380px) {
  .site-header nav {
    font-size: .72rem;
    gap: 11px;
  }
}
