:root {
  --bg: #e9e5dc;
  --ink: #171512;
  --muted: #655f56;
  --line: #c9c1b4;
  --panel: #f8f5ed;
  --red: #a52319;
  --blue: #233f61;
  --orange: #8b4a1f;
  --green: #365a4b;
  --purple: #68425e;
  --cyan: #345c63;
  --paper: #f8f5ed;
  --black: #171512;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  text-underline-offset: .18em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  padding: 0;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid #29251f;
  background: rgba(248, 245, 237, .97);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 32px;
  width: min(1320px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 13px 0 12px;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  font-weight: 700;
  line-height: 1.05;
}

.brand span {
  font-size: 24px;
  letter-spacing: -.02em;
}

.brand small {
  margin-top: 5px;
  color: #675f54;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.topbar nav {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  overflow-x: auto;
}

.topbar nav a {
  flex: none;
  padding: 8px 10px;
  border-left: 1px solid transparent;
  color: #585249;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.topbar nav a.active,
.topbar nav a:hover {
  border-left-color: var(--line);
  background: #eee8dc;
  color: var(--red);
}

main {
  width: min(1320px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 34px 0 80px;
}

.with-sidebar {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.hero {
  margin: 0 0 34px;
  padding: 0;
  border: 1px solid var(--black);
  background: var(--paper);
  color: var(--ink);
}

.hero-register {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--black);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-register span + span {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  min-height: 390px;
}

.hero-editorial-title,
.hero-editorial-brief {
  padding: clamp(30px, 5vw, 72px);
}

.hero-editorial-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-editorial-title h1 {
  max-width: 900px;
  margin: 45px 0 0;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(46px, 6vw, 86px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero-editorial-brief {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid var(--black);
  background: var(--black);
  color: #f3eee4;
}

.hero-editorial-brief > p {
  margin: 0;
  color: #e8e1d6;
  font-family: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.hero-editorial-brief nav {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.button {
  justify-content: center;
  border-radius: 0;
  background: var(--red);
  color: #fff;
  text-align: center;
}

.text-link {
  color: #f1eadf;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.hero-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--black);
}

.hero-metric-strip a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
  min-height: 78px;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
}

.hero-metric-strip a + a {
  border-left: 1px solid var(--line);
}

.hero-metric-strip a:hover {
  background: #eee8dc;
}

.hero-metric-strip strong {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.hero-metric-strip span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.home-announcement {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.35fr) minmax(240px, .7fr) auto;
  align-items: stretch;
  margin: 24px 0 34px;
  border: 1px solid var(--black);
  border-top: 5px solid var(--red);
  background: #f1ede4;
  color: var(--ink);
}

.home-announcement-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border-right: 1px solid var(--black);
  background: var(--black);
  color: #f7f2e9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-announcement-copy {
  padding: 20px 24px;
}

.home-announcement-copy .eyebrow {
  margin: 0 0 7px;
}

.home-announcement-copy h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
}

.home-announcement-copy h2 a {
  color: var(--ink);
  text-decoration: none;
}

.home-announcement-copy h2 a:hover {
  color: var(--red);
}

.home-announcement-copy > p:last-child {
  max-width: 760px;
  margin: 13px 0 0;
  color: #4f535a;
  line-height: 1.55;
}

.home-announcement > ul {
  display: grid;
  align-content: center;
  gap: 9px;
  margin: 0;
  padding: 20px 26px 20px 42px;
  border-left: 1px solid var(--line);
  color: #34383f;
  font-size: 13px;
  line-height: 1.4;
}

.home-announcement-link {
  display: grid;
  place-items: center;
  min-width: 150px;
  padding: 20px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.home-announcement-link:hover {
  background: #8f1d14;
}

.announcement-date {
  display: flex;
  gap: 10px;
  margin: 22px 0 36px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.eyebrow,
.meta {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.axis-number,
.section-head .eyebrow {
  color: var(--red);
}

.home-system-map .eyebrow {
  color: #f27a6e;
}

.axis-panel .axis-number {
  color: var(--red);
}

.home-system-map {
  margin: 34px 0 48px;
  padding: 28px;
  border: 0;
  border-top: 5px solid var(--red);
  border-radius: 0;
  background: var(--black);
  box-shadow: none;
}

.home-map-center,
.home-map-stage,
.home-map-stage a {
  border-radius: 0;
  box-shadow: none;
}

.axis-intro {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 0 52px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.axis-panel {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0 18px;
  padding: 26px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.axis-panel + .axis-panel {
  border-left: 1px solid var(--black);
}

.axis-number {
  grid-row: 1 / 3;
  margin: 2px 0 0;
  color: var(--red);
  font: 700 28px/1 Georgia, serif;
}

.axis-panel h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
}

.axis-panel p:not(.axis-number) {
  margin: 0;
  color: var(--muted);
}

.section-head {
  align-items: end;
  margin: 58px 0 16px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--black);
}

.section-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 34px;
}

.section-head p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--red);
  font-weight: 750;
}

.domain-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.domain-card {
  min-height: 205px;
  padding: 20px;
  border: 0;
  border-top: 5px solid var(--accent, var(--red));
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.domain-card:hover {
  transform: none;
  background: #eee8dc;
}

.domain-card strong {
  margin: 22px 0 10px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 23px;
}

.domain-card small,
.term small {
  color: #514b43;
}

.taxonomy-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.taxonomy-card {
  min-height: 64px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  border-radius: 0;
  background: var(--paper);
}

.taxonomy-card:hover {
  background: #eee8dc;
}

.filter-chip {
  border-color: #6d665d;
  background: var(--paper);
  color: #26221d;
  font-weight: 700;
}

.filter-chip:visited {
  color: #26221d;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.evidence-index-links a {
  border-color: #6d665d;
  background: var(--paper);
  color: #26221d;
  font-weight: 700;
}

.evidence-index-links a:visited {
  color: #26221d;
}

.evidence-index-links a:hover,
.evidence-index-links a:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.taxonomy-card small,
.home-topic-column-head span {
  border-radius: 0;
  background: var(--black);
  color: #fff;
}

.article,
.topic-card,
.article-card,
.case-card,
.term,
.panel,
.source-card,
.side-block,
.path-grid a,
.series-card,
.home-topic-column,
.archive-group {
  border-color: var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.article {
  padding: clamp(24px, 5vw, 68px);
}

.article h1,
.page-head h1 {
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  letter-spacing: -.025em;
}

.article h2 {
  border-top-color: var(--line);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
}

.archive-group-head span,
.archive-list small,
.case-archive-row small,
.term-sources span {
  color: #5a544c;
}

.page-head {
  margin-bottom: 28px;
  padding: 34px 0 24px;
  border-bottom: 2px solid var(--black);
}

.page-head p,
.deck {
  color: var(--muted);
}

.sidebar {
  top: 98px;
}

.source-record,
.source-snapshot,
.claim-card,
.linked-event-card,
.case-narrative,
.event-timeline,
.diagram,
.mobile-toc,
.search-form,
.search-results,
.domain-system-map {
  border-radius: 0;
  box-shadow: none;
}

.editor-console-launch {
  border-radius: 0;
  background: var(--black);
}

footer {
  justify-content: space-between;
  padding: 34px max(20px, calc((100% - 1320px) / 2));
  border-top: 5px solid var(--red);
  background: var(--black);
  color: #d8d0c4;
}

footer a {
  color: #f4eee5;
}

@media (max-width: 1000px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .hero-editorial-grid {
    grid-template-columns: 1fr;
  }

  .hero-editorial-brief {
    border-top: 1px solid var(--black);
    border-left: 0;
  }

  .home-announcement {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .home-announcement > ul {
    grid-column: 2;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-announcement-link {
    grid-column: 1 / -1;
  }

  .domain-grid,
  .taxonomy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  main,
  .topbar-inner {
    width: min(100% - 24px, 1320px);
  }

  main {
    padding-top: 18px;
  }

  .brand small {
    max-width: 320px;
  }

  .hero-register {
    grid-template-columns: 1fr auto;
  }

  .hero-register span:nth-child(2) {
    display: none;
  }

  .hero-editorial-title,
  .hero-editorial-brief {
    padding: 28px 20px;
  }

  .hero-editorial-title h1 {
    margin-top: 34px;
    font-size: clamp(40px, 13vw, 64px);
  }

  .hero-metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metric-strip a:nth-child(3) {
    border-left: 0;
  }

  .hero-metric-strip a:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .home-announcement {
    display: block;
  }

  .home-announcement-label {
    flex-direction: row;
    border-right: 0;
  }

  .home-announcement > ul {
    border-top: 1px solid var(--line);
  }

  .axis-intro,
  .domain-grid,
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .axis-panel + .axis-panel {
    border-top: 1px solid var(--black);
    border-left: 0;
  }

  .domain-card {
    min-height: 0;
  }

  .section-head {
    display: block;
  }
}
