@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #e9e6d6;
  background: #29271d;
  --ink: #29271d;
  --cream: #e9e6d6;
  --paper: #eee9d8;
  --green: #244638;
  --gold: #b88c43;
  --rust: #a7684d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: #fff;
  color: #222;
  padding: 0.6rem;
  z-index: 9999;
}
.skip-link:focus {
  top: 1rem;
}
.wrap {
  max-width: 1260px;
  margin: auto;
  padding-left: clamp(20px, 4vw, 52px);
  padding-right: clamp(20px, 4vw, 52px);
}
.masthead {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(20px, 4vw, 52px);
  border-bottom: 1px solid #ffffff21;
}
.masthead .brand {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.02rem;
  text-decoration: none;
  line-height: 1.25;
}
.brand span {
  display: block;
  font:
    500 0.62rem "DM Sans",
    sans-serif;
  letter-spacing: 0.04em;
  margin-top: 0.22rem;
}
.masthead nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.78rem;
}
.masthead nav a {
  text-underline-offset: 0.3em;
}
.heading {
  padding-top: 3.8rem;
  padding-bottom: 2.7rem;
}
.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c6a76b;
  font-weight: 700;
}
.heading h1,
.reading-note h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.04em;
}
.heading h1 {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  margin: 0.55rem 0 1rem;
}
.lede {
  max-width: 720px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(0.92rem, 1.5vw, 1.13rem);
  line-height: 1.85;
  color: #dbddcd;
}
.plate {
  margin-bottom: 3.3rem;
}
.plate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.35rem;
  background: #d4c8a9;
  color: #3a392c;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: 0.68rem;
  border-radius: 3px 3px 0 0;
}
.plate-top p {
  margin: 0;
}
.plate-top span {
  color: #a97b42;
  margin: 0 0.25rem;
}
.plate-top button {
  border: 1px solid #8e8169;
  color: #4c4a39;
  background: transparent;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.plate-top button:hover,
.plate-top button:focus-visible {
  background: #eee7d7;
}
.plate-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 320px);
  border: 1px solid #c9bea2;
  border-top: 0;
  background: var(--paper);
}
.map-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.map-column #map {
  width: 100%;
  height: 650px;
  min-height: 450px;
  background: #d9d7bf;
}
.map-caption {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #d5d0bc;
  color: #605d4c;
  font-size: 0.67rem;
  line-height: 1.4;
}
.key {
  white-space: nowrap;
}
.key i {
  display: inline-block;
  width: 13px;
  height: 10px;
  margin: 0 0.25rem 0 0.75rem;
  vertical-align: middle;
  background: #cda66055;
  border: 2px solid #9e783e;
}
.key i:first-child {
  margin-left: 0;
}
.key .key-mine {
  background: #bf7e6555;
  border-color: #9b563f;
}
.places-panel {
  border-left: 1px solid #c9bea2;
  background: #f4f0e4;
  color: #293d32;
  display: flex;
  flex-direction: column;
  max-height: 696px;
  overflow: hidden;
}
.panel-controls {
  padding: 1.2rem 1.1rem 0.8rem;
  border-bottom: 1px solid #d7d0bd;
}
.panel-controls label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.47rem;
}
.panel-controls input,
.panel-controls select {
  width: 100%;
  border: 1px solid #b4ad99;
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  background: #fffdf6;
  color: #293d32;
  outline-offset: 2px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 1rem;
}
.filter-row button {
  border: 1px solid #a4aa9b;
  color: #345143;
  background: transparent;
  padding: 0.45rem 0.55rem;
  font-size: 0.67rem;
}
.filter-row button[aria-pressed="true"] {
  color: #fff;
  background: #244638;
  border-color: #244638;
}
.panel-controls .small-label {
  margin-top: 0.8rem;
}
.place-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
}
.place-list li {
  border-bottom: 1px solid #d9d3c1;
}
.place-list button {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: start;
  gap: 0.6rem;
  padding: 0.82rem 1rem;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  color: #293d32;
}
.place-list button:hover,
.place-list button:focus-visible,
.place-list button[aria-current="true"] {
  background: #e6e0ca;
}
.place-list .number {
  font-family: "Libre Baskerville", serif;
  color: #977145;
  font-size: 1.1rem;
}
.place-list strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.81rem;
  font-weight: 400;
  line-height: 1.35;
}
.place-list small {
  display: block;
  color: #767d70;
  font-size: 0.64rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}
.detail {
  min-height: 172px;
  background: #f4f0e4;
  color: #283d32;
  border: 1px solid #c9bea2;
  border-top: 0;
  padding: 1.5rem clamp(1.1rem, 3vw, 2.3rem);
}
.detail-intro {
  font-family: "Libre Baskerville", serif;
  color: #60675a;
  line-height: 1.75;
  margin: 1.1rem 0;
  max-width: 640px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 2.2rem;
}
.detail .overline {
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #9a7447;
  margin: 0 0 0.45rem;
}
.detail h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  margin: 0.1rem 0 0.6rem;
}
.detail .period {
  font-size: 0.71rem;
  color: #756f5d;
}
.detail .copy {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.79rem;
  line-height: 1.75;
}
.detail .note {
  font-size: 0.68rem;
  line-height: 1.6;
  color: #666f61;
}
.detail h3 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.63rem;
  color: #806e50;
  margin: 0.1rem 0 0.5rem;
}
.detail ul {
  padding-left: 1rem;
  margin: 0.2rem 0 1.1rem;
}
.detail li {
  font-size: 0.7rem;
  line-height: 1.5;
  margin-bottom: 0.38rem;
}
.detail a {
  text-underline-offset: 0.22em;
  color: #225741;
}
.detail .close {
  float: right;
  border: 0;
  background: none;
  color: #5c695b;
  font-size: 1.2rem;
}
.reading-note {
  padding-top: 1.7rem;
  padding-bottom: 4.2rem;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  border-top: 1px solid #ffffff24;
}
.reading-note h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  max-width: 360px;
  margin: 0.5rem 0;
}
.reading-note p:not(.kicker) {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.79rem;
  color: #d7dacb;
  line-height: 1.85;
}
.footer {
  border-top: 1px solid #ffffff24;
  padding-top: 1.6rem;
  padding-bottom: 2rem;
  color: #b3b7a8;
  font-size: 0.65rem;
}
.embedded {
  background: #d4c8a9;
}
.embedded .masthead,
.embedded .heading,
.embedded .reading-note,
.embedded .footer {
  display: none;
}
.embedded .wrap {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.embedded .plate {
  margin: 0;
}
.embedded .plate-top {
  border-radius: 0;
}
.embedded .map-column #map {
  height: 520px;
}
.leaflet-container {
  font-family: "DM Sans", sans-serif;
}
.leaflet-tile-pane {
  filter: sepia(0.47) saturate(0.68) contrast(0.93);
}
.leaflet-control-attribution {
  font-size: 10px !important;
  background: #f4f0e9d9 !important;
}
.leaflet-control-zoom a {
  color: #3d4f42 !important;
  background: #f7f2e5 !important;
}
.record-label {
  background: #faf4e3;
  border: 2px solid #927343;
  border-radius: 50%;
  color: #59411f;
  box-shadow: 0 2px 6px #403b305c;
  text-align: center;
  line-height: 24px;
  font-weight: 700;
  font-size: 11px;
}
.record-label.mine {
  border-color: #98553e;
  color: #8d4934;
}
.record-label.selected {
  background: #264739;
  color: #fff;
  border-color: #264739;
  transform: scale(1.14);
}
.leaflet-tooltip.record-tooltip {
  font-family: "Libre Baskerville", Georgia, serif;
  background: #f7f1df;
  border: 1px solid #b2a585;
  box-shadow: 0 2px 6px #4337;
  color: #2e4939;
  font-size: 0.7rem;
}
.leaflet-tooltip.record-tooltip:before {
  display: none;
}
.basemap-failure {
  position: absolute;
  z-index: 430;
  left: 10px;
  bottom: 30px;
  padding: 0.35rem 0.6rem;
  background: #f8f1daee;
  color: #4b4734;
  font-size: 0.65rem;
}
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
@media (max-width: 850px) {
  .plate-body {
    grid-template-columns: 1fr;
  }
  .places-panel {
    max-height: none;
    border-left: 0;
    border-top: 1px solid #c9bea2;
  }
  .place-list {
    max-height: 230px;
  }
  .map-column #map {
    height: 56vh;
    min-height: 360px;
  }
  .map-caption {
    flex-wrap: wrap;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .reading-note {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
@media (max-width: 580px) {
  .masthead {
    height: 64px;
  }
  .masthead nav {
    gap: 1rem;
  }
  .heading {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
  .plate {
    padding-left: 0;
    padding-right: 0;
  }
  .plate-top {
    border-radius: 0;
    padding: 0.75rem 1rem;
  }
  .plate-top p {
    max-width: 65%;
    line-height: 1.5;
  }
  .map-column #map {
    height: 52vh;
    min-height: 340px;
  }
  .embedded .map-column #map {
    height: 42vh;
    min-height: 285px;
  }
  .map-caption {
    font-size: 0.63rem;
  }
  .panel-controls {
    padding: 1rem;
  }
  .detail {
    padding: 1.2rem;
  }
  .reading-note {
    padding-top: 1.2rem;
  }
  .leaflet-control-zoom a {
    width: 39px !important;
    height: 39px !important;
    line-height: 39px !important;
  }
}

.masthead nav{flex-wrap:wrap;min-width:0;row-gap:6px}
.masthead nav a[aria-current="page"]{text-decoration:underline}
