:root {
  --paper: #f8f4ea;
  --paper-2: #eee4d1;
  --ink: #1f2621;
  --ink-soft: #586058;
  --muted: #7f7768;
  --rule: #d9cdb8;
  --brick: #b7372f;
  --jade: #2f5d50;
  --moss: #6f7f49;
  --gold: #c78b43;
  --sky: #dbe9ea;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(38, 31, 22, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(90deg, rgba(31,38,33,.05) 1px, transparent 1px), linear-gradient(rgba(31,38,33,.04) 1px, transparent 1px);
  background-size: 34px 34px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
img[loading="lazy"] { color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: .8rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(89, 77, 56, .18);
  background: rgba(248, 244, 234, .92);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  text-decoration: none;
}
.brand strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0;
}
.brand small {
  display: block;
  color: var(--muted);
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-size: .78rem;
}
.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.site-nav a,
.lang-switch a,
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
}
.site-nav a:hover,
.lang-switch a:hover,
.site-footer a:hover { color: var(--brick); }

main { position: relative; z-index: 1; }
.hero {
  min-height: 72vh;
  display: grid;
  align-content: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem) 5rem;
}
.home-hero {
  background:
    linear-gradient(90deg, rgba(248,244,234,.98), rgba(248,244,234,.72)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 720' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%23efe4ce' width='1200' height='720'/%3E%3Cpath d='M80 360 C250 210 420 150 620 190 C780 222 940 300 1110 250 L1110 720 L80 720 Z' fill='%23d6c7ad'/%3E%3Cpath d='M120 335 C310 220 470 215 650 260 C800 300 958 320 1100 260' fill='none' stroke='%23a9342f' stroke-width='22' stroke-linecap='round'/%3E%3Cg stroke='%232d584d' stroke-width='12' stroke-linecap='round'%3E%3Cpath d='M290 330v210'/%3E%3Cpath d='M505 278v262'/%3E%3Cpath d='M720 305v235'/%3E%3Cpath d='M925 303v237'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--brick);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: 0;
}
h1 {
  max-width: 820px;
  margin: 0 0 1.1rem;
  font-family: Georgia, "Times New Roman", "Songti SC", STSong, serif;
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 600;
}
h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", "Songti SC", STSong, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}
h3 {
  margin: .65rem 0 .35rem;
  font-size: 1.2rem;
}
.hero p,
.article-shell > .lede,
.article-shell > p,
.split-band p {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}
.hero-actions,
.language-gate div {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--brick);
  background: var(--brick);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}
.button.ghost {
  background: rgba(255,255,255,.54);
  color: var(--brick);
}

.section-band,
.split-band,
.article-shell,
.place-page,
.route-page,
.legal-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem clamp(1rem, 4vw, 2rem);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.place-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(38, 31, 22, .06);
}
.place-card a {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.place-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.place-card h3,
.place-card p,
.place-card dl { padding: 0 1rem; }
.place-card p {
  margin: 0 0 .8rem;
  color: var(--ink-soft);
  font-size: .96rem;
}
.place-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: auto 0 1rem;
}
.place-card dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.place-card dd { margin: 0; font-size: .88rem; }
.tag {
  position: absolute;
  top: .65rem;
  left: .65rem;
  padding: .24rem .45rem;
  border-radius: 4px;
  background: rgba(31,38,33,.76);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1fr);
  gap: 3rem;
  align-items: start;
}
.link-list {
  display: grid;
  border-top: 1px solid var(--rule);
}
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.link-list small { color: var(--muted); }

.place-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  gap: 2rem;
  align-items: end;
  padding-top: 2rem;
}
.place-hero h1,
.article-shell h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.2rem;
}
.tag-row span {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.55);
  padding: .25rem .45rem;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
}
.media-card {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-card figcaption {
  padding: .6rem .75rem;
  color: var(--muted);
  font-size: .78rem;
}
.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 2rem 0;
}
.fact-strip div,
.claim-panel,
.sources-block,
.variant-grid article,
.timeline article,
.glossary-block {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.6);
  border-radius: 8px;
  padding: 1rem;
}
.fact-strip span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.fact-strip strong { display: block; margin-top: .25rem; line-height: 1.3; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}
.article-section {
  margin: 0 0 2.5rem;
}
.article-section p {
  font-family: Georgia, "Times New Roman", "Songti SC", STSong, serif;
  font-size: 1.1rem;
  line-height: 1.8;
}
:lang(zh-Hans) .article-section p,
.zh .article-section p {
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
}
.map-card {
  min-height: 260px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sky);
  margin-bottom: 1rem;
}
.map-card.large { min-height: 430px; }
.map-card--lazy {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .55rem;
  padding: 1rem;
  text-align: center;
}
.map-card--lazy p {
  max-width: 28ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.45;
}
.map-card.is-loaded {
  display: block;
  padding: 0;
  text-align: left;
}
.map-load {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem .85rem;
  border: 1px solid var(--jade);
  border-radius: 4px;
  background: var(--jade);
  color: var(--white);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.map-load:disabled {
  cursor: progress;
  opacity: .74;
}
.claim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.claim-grid article {
  border-top: 3px solid var(--jade);
  background: var(--white);
  padding: .85rem;
}
.claim-grid p {
  margin: 0 0 .6rem;
  font-size: .94rem;
}
.claim-grid div {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.claim-grid a,
.source-list a {
  color: var(--brick);
  font-size: .82rem;
  font-weight: 700;
}
.source-list {
  padding-left: 1.25rem;
}
.source-list li { margin: .6rem 0; }
.source-list span {
  margin-left: .35rem;
  color: var(--muted);
  font-size: .78rem;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin: 2rem 0;
}
.timeline span {
  color: var(--brick);
  font-weight: 800;
}
.timeline a { text-decoration: none; }
.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin: 2rem 0;
}
.glossary-block div {
  columns: 2;
}
.glossary-block p { break-inside: avoid; margin: 0 0 .6rem; }
.legal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.takedown-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.takedown-panel p {
  max-width: 58ch;
  color: var(--ink-soft);
}
.takedown-form {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
}
.takedown-form label {
  display: grid;
  gap: .35rem;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 700;
}
.takedown-form input,
.takedown-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  padding: .62rem .7rem;
}
.takedown-form textarea { resize: vertical; }
.takedown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.site-footer p {
  margin: .25rem 0 0;
  color: var(--ink-soft);
  max-width: 52ch;
}
.site-footer nav {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

.root-picker {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.language-gate {
  max-width: 640px;
  padding: 2rem;
  text-align: center;
}
.language-gate img { margin: 0 auto 1rem; }
.language-gate h1 { font-size: clamp(2.4rem, 8vw, 4.8rem); }
.language-gate div { justify-content: center; }

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: .25rem;
  }
  .place-grid,
  .related-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .place-hero,
  .split-band,
  .article-grid,
  .legal-columns,
  .takedown-panel {
    grid-template-columns: 1fr;
  }
  .article-grid aside { order: -1; }
  .fact-strip,
  .claim-grid,
  .variant-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: 68vh; }
  .section-band,
  .split-band,
  .article-shell,
  .place-page,
  .route-page,
  .legal-page {
    padding: 3rem 1rem;
  }
  .place-grid,
  .related-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
  .site-footer {
    display: grid;
  }
}
