:root {
  --ink: #20201d;
  --muted: #66645d;
  --paper: #f7f3ea;
  --panel: #fffaf0;
  --line: #d8cdbb;
  --accent: #8b2f22;
  --accent-2: #2f5f60;
  --deep: #1e3434;
  --gold: #b18a43;
  --shadow: 0 16px 40px rgba(44, 38, 27, 0.18);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 18px;
  line-height: 1.62;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(32, 32, 29, 0.12);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  gap: 1px;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.top-nav a {
  color: var(--deep);
  text-decoration: none;
}

.hero {
  min-height: min(86vh, 820px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  background: #1f2521;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 18, 18, 0.76), rgba(12, 18, 18, 0.42) 48%, rgba(12, 18, 18, 0.12)),
    linear-gradient(0deg, rgba(247, 243, 234, 0.98), rgba(247, 243, 234, 0) 34%);
}

.hero-content {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 112px 0 92px;
  color: #fffaf0;
}

.kicker {
  margin: 0 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f2d083;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.page-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(36px, 5vw, 72px);
  padding: 72px 0;
}

.article {
  min-width: 0;
}

.article section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.article h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
}

.article p {
  max-width: 760px;
  margin: 0 0 18px;
}

.article p:last-child {
  margin-bottom: 0;
}

.evidence-matrix {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 24px 0 0;
}

.matrix-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.matrix-row strong {
  color: var(--deep);
}

.matrix-row span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.side-panel {
  align-self: start;
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}

.fact-box,
.toc,
.source-box {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(44, 38, 27, 0.08);
}

.fact-box,
.source-box {
  padding: 18px;
}

.fact-box h2,
.source-box h2,
.toc h2 {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep);
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts div {
  display: grid;
  gap: 2px;
}

.facts dt {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.toc {
  padding: 12px 18px 16px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.marker {
  position: relative;
  top: -0.35em;
  display: inline-grid;
  place-items: center;
  min-width: 1.35em;
  height: 1.35em;
  margin-left: 0.12em;
  border: 1px solid rgba(139, 47, 34, 0.35);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62em;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.marker:focus-visible {
  outline: 3px solid rgba(47, 95, 96, 0.35);
  outline-offset: 2px;
}

.source-popover {
  position: fixed;
  z-index: 50;
  width: min(340px, calc(100vw - 24px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fffef8;
  box-shadow: var(--shadow);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.42;
}

.source-popover strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep);
}

.source-popover[hidden] {
  display: none;
}

.image-band {
  background: #efe6d5;
  border-block: 1px solid var(--line);
}

.image-band-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.figure figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.38;
}

.figure.large {
  grid-column: span 7;
}

.figure.medium {
  grid-column: span 5;
}

.figure.small {
  grid-column: span 4;
}

.map-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.map-board {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #efe3cf;
}

.map-board img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.04);
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-shape {
  position: absolute;
  border: 2px solid rgba(139, 47, 34, 0.92);
  background: rgba(139, 47, 34, 0.12);
}

.map-shape.burg {
  left: 48%;
  top: 28%;
  width: 19%;
  height: 22%;
  border-radius: 52% 48% 46% 54%;
  transform: rotate(-9deg);
}

.map-shape.wall {
  left: 39%;
  top: 35%;
  width: 37%;
  height: 3px;
  border: 0;
  background: rgba(47, 95, 96, 0.92);
  transform: rotate(20deg);
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffaf0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(32, 32, 29, 0.24);
}

.map-pin.turm {
  left: 56%;
  top: 34%;
}

.map-pin.graben {
  left: 45%;
  top: 47%;
  background: var(--accent-2);
}

.map-notes {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.map-notes h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.map-notes ul {
  margin: 0;
  padding-left: 20px;
}

.map-notes li + li {
  margin-top: 8px;
}

.sources {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.sources h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 48px);
}

.source-list {
  display: grid;
  gap: 12px;
}

.source-entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.source-entry > div {
  min-width: 0;
}

.source-entry .num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--deep);
  color: #fffaf0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.source-entry h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.source-entry p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.46;
  overflow-wrap: anywhere;
}

.source-entry a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

code {
  font-family: "Courier New", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.intro-band,
.object-band,
.route-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.intro-copy h2,
.object-band h2,
.route-band h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
}

.intro-copy p {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.48;
}

.intro-copy,
.lead-panel {
  min-width: 0;
}

.index-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.index-list span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.feature {
  min-height: 280px;
  display: grid;
  align-content: end;
  position: relative;
  isolation: isolate;
  padding: 26px;
  overflow: hidden;
  color: #fffaf0;
  text-decoration: none;
}

.feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(11, 17, 17, 0.74), rgba(11, 17, 17, 0.1));
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.feature p {
  margin: 0;
  max-width: 360px;
  font-size: 17px;
  line-height: 1.36;
}

.object-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.object-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.object-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(44, 38, 27, 0.12);
}

.object-card img {
  display: block;
  width: 100%;
  height: auto;
}

.object-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.object-card h3 {
  margin: 0;
  font-size: 24px;
}

.object-card p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 95, 96, 0.24);
  background: rgba(47, 95, 96, 0.08);
  color: var(--deep);
}

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

.route-link {
  display: grid;
  gap: 10px;
  padding: 18px;
  min-height: 170px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

.route-link strong {
  font-size: 21px;
  line-height: 1.15;
}

.route-link span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.subpage-hero {
  min-height: 520px;
}

.subpage-hero h1 {
  max-width: 980px;
}

.lead-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.lead-panel p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.52;
}

.research-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.research-table-caption {
  padding: 14px 16px 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.research-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.42;
}

.research-table th,
.research-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(45, 38, 31, 0.12);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.research-table th {
  color: var(--deep);
  background: rgba(47, 95, 96, 0.09);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.research-table tbody tr:nth-child(even) {
  background: rgba(244, 238, 226, 0.45);
}

.research-table-missing {
  margin-top: 18px;
  color: #8b2e2e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .page-grid,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    order: -1;
  }

  .figure.large,
  .figure.medium,
  .figure.small {
    grid-column: span 12;
  }

  .source-entry {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .feature-strip,
  .object-grid,
  .route-grid,
  .matrix-row {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding: 86px 0 76px;
  }

  h1 {
    font-size: 44px;
  }

  .top-nav {
    gap: 10px;
  }

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