:root {
  color-scheme: light;
  --ink: #1d1d1a;
  --ink-soft: #3e3a34;
  --paper: #eef0e8;
  --paper-strong: #fffdf6;
  --chalk: #fafbf4;
  --charcoal: #10100e;
  --charcoal-2: #191713;
  --wine: #7b2637;
  --wine-dark: #4d1824;
  --teal: #2d7069;
  --teal-dark: #174743;
  --gold: #b8944c;
  --gold-soft: #ead8a5;
  --line: rgba(29, 29, 26, 0.16);
  --line-light: rgba(255, 250, 240, 0.18);
  --shadow: 0 18px 50px rgba(16, 16, 14, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 6.25rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background:
    linear-gradient(90deg, rgba(16, 16, 14, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 16, 14, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.25rem;
  color: var(--paper-strong);
  font-size: 4.8rem;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 2.7rem;
  line-height: 1.04;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--charcoal);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  color: var(--paper-strong);
  background: rgba(16, 16, 14, 0.72);
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: var(--radius);
  color: var(--charcoal);
  background: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
}

.nav-links a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  color: rgba(255, 250, 240, 0.86);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 250, 240, 0.12);
  color: var(--paper-strong);
  outline: none;
}

.hero {
  position: relative;
  min-height: min(78vh, 820px);
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image {
  position: absolute;
  top: 4.2rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: -3;
  width: min(45vw, 620px);
  height: calc(100% - 5.45rem);
  object-fit: contain;
  object-position: center;
  filter: grayscale(0.95) contrast(1.05);
  opacity: 0.96;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 50%, rgba(234, 216, 165, 0.08), transparent 31rem),
    linear-gradient(90deg, rgba(16, 16, 14, 0.98) 0%, rgba(16, 16, 14, 0.9) 43%, rgba(16, 16, 14, 0.5) 74%, rgba(16, 16, 14, 0.68) 100%),
    linear-gradient(0deg, rgba(16, 16, 14, 0.78) 0%, rgba(16, 16, 14, 0.06) 42%);
}

.hero-content {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7.2rem 0 8rem;
}

.hero-content h1,
.hero-content .hero-lede,
.hero-actions {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.85rem;
  color: var(--gold-soft);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-light .section-kicker,
.section-reader .section-kicker {
  color: var(--wine);
}

.hero-lede {
  max-width: 720px;
  color: rgba(255, 250, 240, 0.84);
  font-size: 1.22rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button,
.site-footer a,
.archive-link,
.source-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}

.button svg,
.site-footer svg,
.archive-link svg,
.source-pill svg,
.segment svg,
.search-box svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.button-primary {
  background: var(--gold-soft);
  color: var(--charcoal);
  box-shadow: 0 12px 30px rgba(234, 216, 165, 0.16);
}

.button-secondary {
  border-color: rgba(255, 250, 240, 0.38);
  color: var(--paper-strong);
  background: rgba(255, 250, 240, 0.08);
}

.button:hover,
.button:focus-visible,
.archive-link:hover,
.archive-link:focus-visible,
.source-pill:hover,
.source-pill:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-facts {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 250, 240, 0.16);
  background: rgba(16, 16, 14, 0.58);
  backdrop-filter: blur(14px);
}

.hero-facts div {
  min-height: 5.25rem;
  padding: 1rem;
  border-right: 1px solid rgba(255, 250, 240, 0.12);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  color: var(--paper-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.hero-facts span {
  margin-top: 0.28rem;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.9rem;
}

.section {
  padding: 5.5rem 0;
}

.section-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro-band {
  padding: 2.2rem 0;
  color: var(--paper-strong);
  background: var(--wine-dark);
}

.visual-band {
  padding: 2.4rem 0;
  background: var(--paper);
}

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

.visual-tile {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 26, 0.14);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 10px 26px rgba(16, 16, 14, 0.08);
}

.visual-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.visual-tile figcaption {
  padding: 0.85rem 0.95rem 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.photo-band {
  padding: 4.8rem 0;
  color: var(--paper-strong);
  background:
    linear-gradient(180deg, #15130f 0%, #221d17 58%, #171713 100%),
    var(--charcoal);
}

.photo-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
}

.photo-lead,
.photo-card,
.route-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.photo-lead img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.92) contrast(1.04);
}

.photo-lead figcaption,
.photo-card figcaption,
.route-photo figcaption {
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.photo-lead figcaption {
  padding: 0.8rem 1rem 0.95rem;
}

.photo-copy h2 {
  color: var(--paper-strong);
}

.photo-copy p:not(.section-kicker) {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: 1.05rem;
  line-height: 1.72;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.photo-card a {
  display: block;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 26%;
  transition: transform 180ms ease, filter 180ms ease;
}

.photo-card:nth-child(4) img,
.photo-card:nth-child(9) img {
  object-position: center 42%;
}

.photo-card:nth-child(10) img {
  object-position: center 30%;
}

.photo-card:hover img,
.photo-card:focus-within img {
  transform: scale(1.035);
  filter: contrast(1.04);
}

.photo-card figcaption {
  min-height: 3.4rem;
  padding: 0.7rem 0.78rem 0.78rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: end;
}

.intro-grid h2 {
  margin-bottom: 0;
  color: var(--paper-strong);
  font-size: 2.05rem;
}

.intro-grid p:last-child {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.02rem;
  line-height: 1.72;
}

.section-light {
  background: linear-gradient(180deg, var(--paper), #dfe8e1);
}

.section-dark {
  color: var(--paper-strong);
  background:
    linear-gradient(180deg, var(--charcoal), var(--charcoal-2)),
    var(--charcoal);
}

.section-map {
  color: var(--paper-strong);
  background: var(--teal-dark);
}

.section-reader {
  background: #dfe7df;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  max-width: 860px;
}

.section-heading p:not(.section-kicker) {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-dark .section-heading p:not(.section-kicker),
.section-map .section-heading p:not(.section-kicker) {
  color: rgba(255, 250, 240, 0.72);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.26rem;
  width: 2px;
  background: linear-gradient(180deg, var(--wine), var(--teal), var(--gold));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.66);
  box-shadow: 0 8px 18px rgba(16, 16, 14, 0.04);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: -1.32rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--wine);
}

.timeline-date {
  color: var(--wine);
  font-weight: 900;
}

.timeline-body p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(45, 112, 105, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 0 8px 18px rgba(16, 16, 14, 0.05);
}

.service-card h3 {
  margin-bottom: 0.2rem;
  color: var(--wine-dark);
}

.service-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.62;
}

.service-meta {
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.evidence-card,
.archive-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.evidence-card {
  padding: 1.2rem;
}

.evidence-icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: rgba(234, 216, 165, 0.16);
  color: var(--gold-soft);
}

.evidence-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 250, 240, 0.78);
  line-height: 1.6;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.route-atlas {
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: var(--radius);
  background: rgba(16, 16, 14, 0.28);
  box-shadow: var(--shadow);
}

.route-atlas a {
  display: block;
}

.route-atlas img {
  width: 100%;
  background: #efe7d1;
}

.route-atlas figcaption {
  padding: 0.8rem 1rem;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.route-map,
.route-detail,
.reader-shell {
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.route-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 250, 240, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(16, 16, 14, 0.34), rgba(23, 71, 67, 0.08));
  background-size: 56px 56px, 56px 56px, auto;
}

.route-map::before {
  content: "Evropa";
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  color: rgba(255, 250, 240, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

.route-map::after {
  content: "Sibiř";
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: rgba(255, 250, 240, 0.36);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--charcoal);
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.route-pin.active {
  background: var(--wine);
  color: var(--paper-strong);
}

.route-label {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, 1.15rem);
  color: var(--paper-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.route-detail {
  padding: 1.25rem;
  background: rgba(16, 16, 14, 0.28);
}

.route-detail h3 {
  color: var(--paper-strong);
}

.route-detail p {
  color: rgba(255, 250, 240, 0.76);
  line-height: 1.65;
}

.route-meta {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius);
  background: rgba(234, 216, 165, 0.16);
  color: var(--gold-soft);
  font-weight: 900;
}

.route-photo {
  margin-top: 1rem;
  border-color: rgba(234, 216, 165, 0.18);
  background: rgba(16, 16, 14, 0.2);
  box-shadow: none;
}

.route-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--focus, center 30%);
}

.route-photo figcaption {
  padding: 0.68rem 0.78rem 0.78rem;
}

.reader-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper-strong);
}

.reader-sidebar {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 0.85rem;
  border-right: 1px solid var(--line);
  background: #cbd7cf;
}

.reader-panel {
  border: 1px solid rgba(29, 29, 26, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.55);
}

.reader-panel h3 {
  margin: 0;
  padding: 0.85rem 0.9rem 0.4rem;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.volume-list,
.heading-list {
  display: grid;
  gap: 0.4rem;
  padding: 0.5rem;
}

.volume-button,
.heading-button {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.volume-button strong,
.volume-button span {
  display: block;
}

.volume-button strong {
  font-size: 0.95rem;
}

.volume-button span,
.heading-button {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.3;
}

.volume-button.active,
.heading-button:hover,
.heading-button:focus-visible {
  border-color: rgba(123, 38, 55, 0.28);
  background: rgba(123, 38, 55, 0.1);
}

.volume-button:hover,
.volume-button:focus-visible {
  outline: none;
  background: rgba(255, 250, 240, 0.72);
}

.heading-list {
  max-height: 220px;
  overflow: auto;
}

.reader-source-panel {
  padding: 0.7rem;
}

.reader-source-panel h3 {
  padding-top: 0.15rem;
}

.reader-source-caption {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.reader-source-panel audio {
  width: 100%;
  margin-top: 0.55rem;
}

.episode-video {
  width: 100%;
  margin-top: 0.65rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.source-pill {
  min-height: 2.2rem;
  padding: 0.55rem 0.7rem;
  background: var(--teal);
  color: var(--paper-strong);
  font-size: 0.82rem;
}

.reader-main {
  min-width: 0;
}

.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.86);
}

.segmented {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.segment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 800;
}

.segment.active {
  color: var(--paper-strong);
  background: var(--wine);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 250px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.search-box input {
  width: 100%;
  min-height: 2.65rem;
  border: 0;
  outline: 0;
  background: transparent;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.reader-content {
  height: 72vh;
  overflow: auto;
  padding: 1.5rem 1.6rem 2.2rem;
  background: linear-gradient(180deg, var(--paper-strong), #edf2e9);
}

.reader-volume-title {
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.reader-volume-header {
  max-width: 920px;
  margin: 0 auto 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 1rem;
  align-items: center;
}

.reader-volume-visual {
  overflow: hidden;
  border: 1px solid rgba(29, 29, 26, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.74);
}

.reader-volume-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--focus, center 28%);
}

.reader-volume-visual figcaption {
  padding: 0.58rem 0.7rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.reader-volume-subtitle {
  max-width: 760px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.reader-block {
  max-width: 850px;
  margin: 0 auto 1rem;
  color: #24211d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

.reader-block[data-kind="title"],
.reader-block[data-kind="heading"] {
  margin-top: 2rem;
  color: var(--wine-dark);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-weight: 900;
  line-height: 1.25;
}

.reader-block[data-kind="title"] {
  font-size: 1.6rem;
}

.reader-block[data-kind="heading"] {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(123, 38, 55, 0.2);
  font-size: 1.12rem;
}

.reader-empty {
  max-width: 640px;
  margin: 3rem auto;
  padding: 1.25rem;
  border: 1px solid rgba(123, 38, 55, 0.18);
  border-radius: var(--radius);
  background: rgba(123, 38, 55, 0.07);
  color: var(--ink-soft);
  line-height: 1.6;
}

.reader-note {
  max-width: 850px;
  margin: -0.3rem auto 1.1rem;
  padding: 0.8rem 0.9rem;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(45, 112, 105, 0.1);
  color: var(--ink-soft);
  line-height: 1.58;
}

mark {
  padding: 0.08rem 0.16rem;
  border-radius: 4px;
  background: #f5d66e;
  color: var(--ink);
}

.glossary-tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.glossary-search {
  min-width: 0;
}

.glossary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  min-height: 2.35rem;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(29, 29, 26, 0.14);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.66);
  font-weight: 900;
}

.filter-chip.active,
.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--paper-strong);
  background: var(--teal);
  outline: none;
}

.glossary-count {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.glossary-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 16.5rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.66);
  box-shadow: 0 8px 18px rgba(16, 16, 14, 0.04);
}

.glossary-card h3 {
  margin-bottom: 0.55rem;
  color: var(--wine-dark);
}

.glossary-card p {
  color: var(--ink-soft);
  line-height: 1.62;
}

.glossary-tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.32rem 0.48rem;
  border-radius: var(--radius);
  color: var(--paper-strong);
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.glossary-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.glossary-related span {
  padding: 0.32rem 0.45rem;
  border: 1px solid rgba(45, 112, 105, 0.22);
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: rgba(45, 112, 105, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.archive-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 13rem;
  padding: 1.1rem;
}

.archive-card p {
  color: rgba(255, 250, 240, 0.72);
  line-height: 1.55;
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.archive-link {
  min-height: 2.35rem;
  padding: 0.58rem 0.72rem;
  background: rgba(255, 250, 240, 0.1);
  border-color: rgba(255, 250, 240, 0.18);
  color: var(--paper-strong);
  font-size: 0.83rem;
}

.archive-link.primary {
  background: var(--gold-soft);
  color: var(--charcoal);
}

.mono {
  font-family: Consolas, "SFMono-Regular", monospace;
}

.site-footer {
  padding: 1.5rem 0;
  color: var(--paper-strong);
  background: var(--charcoal);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 250, 240, 0.7);
}

.site-footer a {
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border-color: rgba(255, 250, 240, 0.18);
  color: var(--paper-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 1rem;
  }

  .hero-content {
    padding: calc(2rem + min(42vh, 24rem)) 0 3rem;
  }

  .hero-image {
    top: 1.25rem;
    right: 50%;
    bottom: auto;
    z-index: -1;
    width: min(54vw, 22rem);
    height: min(42vh, 24rem);
    transform: translateX(50%);
    object-position: center top;
    filter: grayscale(0.75) contrast(1.04);
    opacity: 0.9;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 74% 40%, rgba(234, 216, 165, 0.1), transparent 19rem),
      linear-gradient(90deg, rgba(16, 16, 14, 0.98) 0%, rgba(16, 16, 14, 0.9) 50%, rgba(16, 16, 14, 0.24) 78%, rgba(16, 16, 14, 0.68) 100%),
      linear-gradient(0deg, rgba(16, 16, 14, 0.78) 0%, rgba(16, 16, 14, 0.06) 42%);
  }

  .hero-facts,
  .intro-grid,
  .photo-story,
  .route-layout {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    position: static;
    width: min(100%, calc(100% - 2rem));
    margin: 0 auto 1rem;
    transform: none;
  }

  .reader-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
  }

  .evidence-grid,
  .service-grid,
  .glossary-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glossary-tools {
    grid-template-columns: 1fr;
  }

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

@media (max-height: 720px) and (min-width: 900px) {
  h1 {
    font-size: 3.95rem;
  }

  .hero-content {
    padding: 5.2rem 0 6.4rem;
  }

  .hero-lede {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 1.2rem;
  }

  .hero-facts div {
    min-height: 4.35rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .nav-links {
    align-self: stretch;
    width: calc(100vw - 2rem);
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.24rem;
    justify-content: stretch;
  }

  .nav-links a {
    justify-content: center;
    min-width: 0;
    padding: 0.45rem 0.5rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .section-inner {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .intro-grid > *,
  .photo-story > * {
    min-width: 0;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(16, 16, 14, 0.18) 7rem, rgba(16, 16, 14, 0.18) 20rem, rgba(16, 16, 14, 0.92) 31rem, rgba(16, 16, 14, 0.98) 100%),
      linear-gradient(90deg, rgba(16, 16, 14, 0.58), rgba(16, 16, 14, 0.12) 45%, rgba(16, 16, 14, 0.58));
  }

  .hero-image {
    top: 1.15rem;
    right: 50%;
    bottom: auto;
    z-index: -1;
    width: min(76vw, 19rem);
    height: min(46vh, 23rem);
    transform: translateX(50%);
    object-position: center top;
    filter: grayscale(0.62) contrast(1.04);
    opacity: 0.94;
  }

  .hero-content {
    padding: calc(2rem + min(46vh, 23rem)) 0 1.2rem;
  }

  .hero-content .hero-lede {
    max-width: 18.5rem;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-facts {
    margin: 0 auto 0;
  }

  .hero-facts,
  .evidence-grid,
  .service-grid,
  .photo-gallery,
  .visual-grid,
  .glossary-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: 4.4rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 240, 0.12);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item::before {
    display: none;
  }

  .reader-shell {
    grid-template-columns: 1fr;
  }

  .reader-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-map {
    min-height: 440px;
  }

  .segmented {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reader-content {
    height: 68vh;
    padding: 1.05rem;
  }

  .reader-volume-header {
    grid-template-columns: 1fr;
  }

  .reader-block {
    font-size: 1rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
