:root {
  color-scheme: light;
  --background: #f8f6f0;
  --ink: #292921;
  --muted: #666357;
  --line: #d6d0be;
  --panel: #ece8dc;
  --bronze: #76603a;
  --green: #334638;
}
.dark {
  color-scheme: dark;
  --background: #191a16;
  --ink: #eee9db;
  --muted: #b9b4a5;
  --line: #444337;
  --panel: #24271f;
  --bronze: #cbb282;
  --green: #cbb282;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font:
    15px/1.7 Arial,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select {
  background: var(--background);
  border: 1px solid var(--line);
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
  line-height: 1.15;
}
.site-header,
main,
footer {
  width: min(1400px, calc(100% - 80px));
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  font:
    22px/1.08 Georgia,
    serif;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--bronze);
}
.page-heading {
  padding: 42px 0 32px;
  max-width: 850px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}
h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
  letter-spacing: -0.04em;
  margin: 12px 0 20px;
}
.lead {
  max-width: 710px;
  font-size: 17px;
  color: var(--muted);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 30px;
}
.map-column {
  min-width: 0;
}
.map-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12px;
}
.map-tools label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.map-tools input {
  accent-color: var(--bronze);
}
.zoom-tools {
  display: flex;
  gap: 6px;
}
.zoom-tools button {
  min-height: 36px;
  padding: 5px 12px;
  font-size: 13px;
}
.map-frame {
  border: 1px solid var(--line);
  background: #eeede4;
  overflow: hidden;
}
#city-map {
  display: block;
  width: 100%;
  height: 850px;
}
.district-region {
  --district: #647a58;
  outline: none;
  cursor: pointer;
}
.district-region.monastery {
  --district: #82718b;
}
.district-region.fortress {
  --district: #9d814e;
}
.district-region.hypothesis {
  --district: #ad7858;
}
.district-region polygon {
  fill: #647a58;
  fill-opacity: 0.16;
  stroke: #647a58;
  stroke-width: 2;
  stroke-dasharray: 7 5;
  stroke-linejoin: round;
}
.district-region.fortress polygon {
  stroke-dasharray: none;
  fill-opacity: 0.22;
}
.district-region.monastery polygon {
  fill: #82718b;
  stroke: #82718b;
}
.district-region.fortress polygon {
  fill: #9d814e;
  stroke: #9d814e;
}
.district-region.hypothesis polygon {
  fill: #ad7858;
  stroke: #ad7858;
}
.district-region.monastery .map-dot {
  fill: #82718b;
}
.district-region.fortress .map-dot {
  fill: #9d814e;
}
.district-region.hypothesis .map-dot {
  fill: #ad7858;
}
.monastery-point {
  fill: #eeede4;
  stroke: #647a58;
  stroke-width: 3;
}
.map-dot {
  fill: #647a58;
}
.district-label {
  fill: #334638;
  font:
    25px Georgia,
    serif;
  paint-order: stroke;
  stroke: #eeede4;
  stroke-width: 5;
  stroke-linejoin: round;
}
.district-label tspan + tspan {
  font-size: 20px;
}
.label-leader {
  fill: none;
  stroke: #647a58;
  stroke-width: 1;
  opacity: 0.6;
}
.district-region[aria-current] polygon,
.district-region:hover polygon,
.district-region:focus-visible polygon {
  fill-opacity: 0.32;
  stroke-width: 4;
}
.district-region[aria-current] .district-label,
.district-region:hover .district-label,
.district-region:focus-visible .district-label {
  fill: #775629;
  stroke-width: 7;
}
.district-region:focus-visible .map-dot {
  stroke: #eeede4;
  stroke-width: 6;
  r: 10;
}
.water-label {
  font:
    italic 26px Georgia,
    serif;
  fill: #5f878b;
  paint-order: stroke;
  stroke: #eeede4;
  stroke-width: 4;
}
.north-arrow {
  fill: none;
  stroke: #554b35;
  stroke-width: 2;
}
.north-arrow text {
  stroke: none;
  fill: #554b35;
  font:
    22px Georgia,
    serif;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 16px 0 12px;
  font-size: 11px;
}
.map-legend span:before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 7px;
  border: 1px dashed #647a58;
  background: #647a5833;
}
.map-legend .hypothesis:before {
  border-color: #ad7858;
  background: #ad785833;
}
.map-legend .monastery:before {
  border-color: #82718b;
  background: #82718b33;
}
.map-legend .fortress:before {
  border-style: solid;
  border-color: #9d814e;
  background: #9d814e33;
}
.map-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.full-map {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
}
.district-inspector {
  position: sticky;
  top: 20px;
  padding: 25px;
  background: var(--panel);
  border-top: 2px solid var(--bronze);
}
.district-inspector > label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.district-inspector select {
  width: 100%;
  padding: 10px 8px;
  font-size: 13px;
}
.district-card {
  padding-top: 24px;
  scroll-margin-top: 20px;
}
.district-card h2 {
  font-size: 32px;
  margin: 9px 0 13px;
}
.location-status {
  display: inline-block;
  font-size: 11px;
  color: var(--bronze);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.district-card h3 {
  font:
    12px/1.5 Arial,
    sans-serif;
  color: var(--muted);
  margin: 0 0 7px;
}
.district-card p {
  font-size: 14px;
  line-height: 1.75;
}
.district-card .eyebrow {
  font-size: 10px;
}
.district-card .district-description {
  margin-top: 18px;
}
.uncertainty {
  border-left: 2px solid var(--bronze);
  padding-left: 15px;
  margin-top: 22px;
}
.uncertainty p {
  color: var(--muted);
  font-size: 13px;
}
.district-card details {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.district-card summary {
  cursor: pointer;
}
.district-card ul {
  padding-left: 17px;
}
.text-link {
  display: inline-block;
  font-size: 12px;
  margin-top: 16px;
}
.district-card .map-note {
  margin-top: 16px;
  font-size: 12px;
}
.district-index {
  padding: 38px 0;
  border-block: 1px solid var(--line);
  margin-top: 40px;
}
.district-index h2,
.sources h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 10px 0 22px;
}
.district-index ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.district-index li {
  border-bottom: 1px solid var(--line);
}
.district-index a {
  display: block;
  text-decoration: none;
  padding: 10px 0;
  font-size: 14px;
}
.district-index a[aria-current] {
  color: var(--bronze);
}
.district-index a span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.district-index h3 {
  font-size: 24px;
  margin: 28px 0 12px;
}
.sources {
  padding: 42px 0;
  max-width: 900px;
}
.sources > p:not(.eyebrow) {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}
.sources ol {
  padding-left: 21px;
  font-size: 14px;
}
.sources li {
  padding: 10px 0 14px 8px;
  scroll-margin-top: 20px;
}
.sources li p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 24px;
  font-size: 12px;
  color: var(--muted);
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 4px;
}
.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px;
  background: var(--background);
  z-index: 10;
}
@media (max-width: 1050px) {
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
  }
  .district-inspector {
    padding: 20px;
  }
  .district-card h2 {
    font-size: 28px;
  }
  #city-map {
    height: 760px;
  }
  .district-index ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .site-header {
    align-items: flex-start;
    padding-block: 18px;
  }
  .site-header nav {
    gap: 7px;
    flex-direction: column;
    text-align: right;
    font-size: 12px;
  }
  .brand {
    font-size: 20px;
  }
  .page-heading {
    padding-block: 30px 24px;
  }
  .lead {
    font-size: 15px;
  }
  .map-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .district-inspector {
    position: static;
  }
  #city-map {
    height: 650px;
  }
  .district-index ul {
    grid-template-columns: 1fr;
  }
  .map-tools {
    font-size: 11px;
  }
  .zoom-tools button {
    padding: 6px 9px;
  }
  .district-card h2 {
    font-size: 30px;
  }
}
