:root {
  --field: #05070a;
  --field-soft: #0a0d12;
  --panel: rgba(10, 13, 18, 0.78);
  --line: rgba(200, 164, 90, 0.24);
  --line-cool: rgba(98, 168, 216, 0.22);
  --ivory: #f1efe9;
  --muted: #a8acb5;
  --gold: #c8a45a;
  --gold-high: #e0c47f;
  --blue: #62a8d8;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--field);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ivory);
  background:
    radial-gradient(circle at 62% 14%, rgba(200, 164, 90, 0.09), transparent 32rem),
    radial-gradient(circle at 18% 32%, rgba(98, 168, 216, 0.06), transparent 26rem),
    linear-gradient(180deg, #07090c 0%, #05070a 58%, #030507 100%);
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .65rem .8rem;
  background: var(--ivory);
  color: #05070a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(241, 239, 233, 0.08);
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell,
.page-shell,
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.nav-shell {
  min-height: 64px;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.identity {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  white-space: nowrap;
}

.identity strong {
  color: var(--gold-high);
  letter-spacing: .045em;
  font-size: .96rem;
  font-weight: 650;
}

.identity span {
  color: var(--muted);
  font-size: .76rem;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem .8rem;
}

.primary-nav a {
  color: #c6c9d0;
  text-decoration: none;
  font-size: .82rem;
  padding: .38rem .1rem;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.page-shell {
  padding: clamp(3.5rem, 8vw, 7.25rem) 0 5rem;
}

.hero {
  max-width: 850px;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.kicker,
.map-class {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold-high);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kicker::before,
.map-class::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
  opacity: .75;
}

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

h1 {
  margin: .85rem 0 1.1rem;
  font-size: clamp(2.4rem, 8vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.18;
  font-weight: 520;
  letter-spacing: -.025em;
}

h3 {
  font-size: 1.03rem;
  font-weight: 580;
}

.lead {
  max-width: 760px;
  color: #c5c8cf;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.boundary-note {
  margin-top: 1.55rem;
  max-width: 760px;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  color: #959aa5;
  font-size: .9rem;
}

.action-row,
.context-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.75rem;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory);
  text-decoration: none;
  font-size: .86rem;
  background: rgba(200, 164, 90, 0.035);
}

.action-link:hover {
  border-color: rgba(224, 196, 127, .55);
  background: rgba(200, 164, 90, 0.08);
}

.section {
  padding: clamp(2.25rem, 6vw, 4.5rem) 0;
  border-top: 1px solid rgba(241, 239, 233, 0.07);
}

.section-intro {
  max-width: 760px;
  color: #aeb2bc;
}

.atlas-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(241, 239, 233, 0.08);
}

.path-node {
  position: relative;
  min-height: 210px;
  padding: 1.2rem 1rem 1.3rem 0;
  text-decoration: none;
}

.path-node:not(:last-child) {
  border-right: 1px solid rgba(241, 239, 233, 0.07);
  margin-right: 1rem;
}

.path-index {
  color: var(--gold);
  font-size: .7rem;
  letter-spacing: .12em;
}

.path-node h3 {
  margin: 2.3rem 0 .55rem;
  font-size: 1.08rem;
}

.path-node p {
  color: #969ba5;
  font-size: .86rem;
  margin-bottom: 0;
}

.path-node:hover h3 { color: var(--gold-high); }

.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.map-card {
  border: 1px solid rgba(241, 239, 233, 0.08);
  background: linear-gradient(180deg, rgba(12, 15, 20, 0.72), rgba(7, 9, 12, 0.52));
  border-radius: 18px;
  overflow: hidden;
}

.map-viewport {
  overflow-x: hidden;
  border-bottom: 1px solid rgba(241, 239, 233, 0.07);
  background: #05070a;
}

.map-viewport img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.map-caption {
  padding: 1rem 1.1rem 1.15rem;
}

.map-caption strong {
  display: block;
  margin-bottom: .25rem;
  font-size: .9rem;
  color: #e6e2d8;
}

.map-caption span {
  color: #8f949e;
  font-size: .8rem;
}

.claim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.claim-box {
  min-height: 170px;
  padding: 1.15rem;
  border: 1px solid rgba(241, 239, 233, 0.08);
  border-radius: 14px;
  background: rgba(9, 12, 16, .45);
}

.claim-box h3 {
  color: var(--blue);
  margin-bottom: .6rem;
}

.claim-box p,
.claim-box li {
  color: #9ca1aa;
  font-size: .87rem;
}

.claim-box ul {
  margin: 0;
  padding-left: 1.15rem;
}

.provenance {
  margin-top: 1.5rem;
  color: #7f858f;
  font-size: .78rem;
}

.page-nav {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(241, 239, 233, 0.08);
  padding-top: 1.2rem;
}

.page-nav a {
  color: #b8bcc4;
  text-decoration: none;
  font-size: .84rem;
}
.page-nav a:hover { color: var(--gold-high); }

.text-boundary {
  max-width: 820px;
  margin-top: 2rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--line-cool);
  border-radius: 18px;
  background: rgba(98, 168, 216, .035);
}

.text-boundary ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: #a7acb5;
}

.site-footer {
  padding: 1.4rem 0 2.25rem;
  border-top: 1px solid rgba(241, 239, 233, 0.07);
  color: #777d87;
  font-size: .76rem;
}

.footer-row {
  display: flex;
  gap: 1rem 1.4rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
}

.footer-links a {
  color: #90959f;
  text-decoration: none;
}

.footer-links a:hover { color: var(--ivory); }

@media (max-width: 860px) {
  .nav-shell {
    align-items: flex-start;
    padding: .85rem 0;
    flex-direction: column;
  }
  .primary-nav { justify-content: flex-start; }
  .atlas-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-node:nth-child(2) { border-right: 0; margin-right: 0; }
  .path-node:nth-child(-n+2) { border-bottom: 1px solid rgba(241, 239, 233, 0.07); }
}

@media (max-width: 600px) {
  .nav-shell, .page-shell, .site-footer { width: min(calc(100% - 1.2rem), var(--max)); }
  .primary-nav { gap: .2rem .65rem; }
  .primary-nav a { font-size: .78rem; }
  .page-shell { padding-top: 3rem; }
  .atlas-path { grid-template-columns: 1fr; }
  .path-node,
  .path-node:not(:last-child) {
    min-height: 0;
    border-right: 0;
    margin-right: 0;
    border-bottom: 1px solid rgba(241, 239, 233, 0.07);
    padding: 1.15rem 0 1.25rem;
  }
  .path-node h3 { margin-top: .8rem; }
  .claim-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
  .page-nav { flex-direction: column; }
}
