:root {
  color-scheme: dark;
  --ink: #fff8f2;
  --muted: #c9bbb0;
  --surface: #1d1a18;
  --background: #11100f;
  --line: #443a33;
  --control-line: #827065;
  --accent: #ff9b50;
  --accent-line: #b1673c;
  --selected: #39251a;
  --hover: #2a231e;
  --live: #8be7ad;
  --verified: #8fdbe7;
  --in-progress: #ffc877;
  --planned: #c1cad1;
  --blocked: #ffaba3;
  --archived: #c7b7f0;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body);
  background: var(--background);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, .map-viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--background); }
[hidden] { display: none !important; }
.frame { width: min(1440px, 100% - 72px); margin-inline: auto; }
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--background);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 780; }
.brand-mark {
  display: block;
  flex: none;
  background: #030303;
  border-radius: 4px;
}
.languages { display: flex; gap: 3px; }
.languages a {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .08em;
  color: var(--muted);
}
.languages a:hover { color: var(--ink); }
.languages a[aria-current] { color: var(--accent); border-color: var(--accent-line); background: var(--selected); }
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(25px, 3.6vw, 56px) 0 clamp(22px, 2.75vw, 42px);
}
h1, h2, p { margin: 0; }
.intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.85vw, 5rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .99;
}
.intro p { margin-top: 13px; max-width: 57ch; color: var(--muted); font-size: 1rem; line-height: 1.48; }
.publication {
  display: grid;
  gap: 7px;
  justify-items: end;
  margin-bottom: 2px;
  min-width: 214px;
  font-size: .79rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: right;
}
.connection { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 680; }
.connection-dot { width: 8px; height: 8px; background: var(--planned); border-radius: 50%; flex: none; }
.connection[data-state="ready"] .connection-dot { background: var(--live); }
.connection[data-state="stale"] .connection-dot { background: var(--in-progress); }
.connection[data-state="error"] .connection-dot { background: var(--blocked); }
.published time { font-variant-numeric: tabular-nums; }
.atlas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 27%);
  gap: 18px;
  align-items: start;
}
.map-section, .sidebar { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; }
.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
}
.map-header h2, .milestone-list h2, .legend h2 { font-size: .85rem; font-weight: 740; }
.atlas-label {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.map-view { position: relative; background: #143146; }
.map-viewport {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  touch-action: pan-y;
}
.map-viewport.is-zoomed { cursor: grab; touch-action: none; }
.map-viewport.is-panning { cursor: grabbing; }
.map-viewport:focus-visible { outline-offset: -3px; }
.map-plane { position: absolute; inset: 0; transform-origin: 0 0; }
.terrain { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.map-markers { position: absolute; inset: 0; pointer-events: none; }
.marker {
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(var(--marker-scale, 1));
  user-select: none;
}
.marker[aria-pressed="true"], .marker:hover, .marker:focus-visible { z-index: 2; }
.marker:focus-visible { outline: 0; }
.pin-number {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: auto;
  border: 1px solid var(--status, var(--planned));
  border-radius: 4px 4px 4px 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px #090705a3;
  background: var(--background);
  color: var(--status, var(--planned));
}
.pin-number span { transform: rotate(45deg); font-size: .7rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.marker[aria-pressed="true"] .pin-number, .marker:hover .pin-number, .marker:focus-visible .pin-number {
  background: var(--status, var(--planned));
  color: var(--background);
}
.marker:focus-visible .pin-number { outline: 2px solid var(--ink); outline-offset: 3px; }
.marker-label {
  position: absolute;
  top: 47px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 7px;
  border: 1px solid var(--control-line);
  border-radius: 3px;
  background: var(--background);
  color: var(--ink);
  font-size: .69rem;
  font-weight: 680;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 3px 8px #09070566;
}
.compass {
  position: absolute;
  top: 13px;
  right: 15px;
  display: grid;
  justify-items: center;
  width: 29px;
  color: #ffd2ac;
  font: 700 .64rem / 1 var(--body);
  pointer-events: none;
  text-shadow: 0 1px 4px #0b1620;
}
.compass svg { width: 19px; height: 28px; filter: drop-shadow(0 1px 3px #0b1620); }
.map-controls {
  display: flex;
  flex: none;
  gap: 4px;
}
.map-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--control-line);
  border-radius: 4px;
  background: var(--background);
  color: var(--accent);
  cursor: pointer;
}
.map-controls button:not(:disabled):hover { background: var(--selected); }
.map-controls button:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.map-controls svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.map-issue {
  position: absolute;
  bottom: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  background: var(--background);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: .79rem;
}
.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
}
.map-hint { color: var(--muted); font-size: .77rem; line-height: 1.4; }
.detail { min-height: 173px; padding: 19px 18px 18px; border-bottom: 1px solid var(--line); }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.detail-top:empty { display: none; }
.detail-index, .list-index { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .7rem; font-weight: 700; }
.detail h2 { font: 500 clamp(1.35rem, 2vw, 1.78rem) / 1.12 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.detail p { color: var(--muted); font-size: .88rem; line-height: 1.52; margin-top: 9px; overflow-wrap: anywhere; }
.status-pill { color: var(--status); font-weight: 700; font-size: .69rem; }
.status-pill::before, .legend li::before, .list-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-inline-end: 6px;
  background: var(--status, var(--planned));
}
[data-status="live"] { --status: var(--live); }
[data-status="verified"] { --status: var(--verified); }
[data-status="in_progress"] { --status: var(--in-progress); }
[data-status="planned"] { --status: var(--planned); }
[data-status="blocked"] { --status: var(--blocked); }
[data-status="archived"] { --status: var(--archived); }
.milestone-list { padding: 14px 12px 11px; }
.milestone-list h2 { padding: 0 6px 7px; }
.milestone-list ol { margin: 0; padding: 0; list-style: none; }
.milestone-list li + li { border-top: 1px solid var(--line); }
.list-button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 5px;
  padding: 6px;
  text-align: left;
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.list-button:hover { background: var(--hover); }
.list-button[aria-pressed="true"] { background: var(--selected); }
.list-button[aria-pressed="true"] .list-title { color: var(--accent); }
.list-title { font-size: .81rem; font-weight: 680; overflow-wrap: anywhere; }
.list-status { color: var(--status); font-size: .67rem; white-space: nowrap; }
.list-status::before { width: 6px; height: 6px; margin-inline-end: 4px; }
.list-empty { padding: 4px 6px 12px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 21px 1px 17px;
}
.legend ul { display: flex; flex-wrap: wrap; gap: 10px 17px; margin: 0; padding: 0; list-style: none; }
.legend li { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 15px 0 24px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
}
noscript p { color: var(--muted); padding-bottom: 10px; }
@media (max-width: 1060px) {
  .frame { width: calc(100% - 44px); }
  .atlas { grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; }
  .marker-label { display: none; }
}
@media (max-width: 780px) {
  .atlas { grid-template-columns: minmax(0, 1fr); }
  .intro { align-items: start; flex-direction: column; gap: 13px; }
  .publication { justify-items: start; text-align: left; min-width: 0; gap: 3px; }
  .detail { min-height: 0; }
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .detail { border-bottom: 0; border-right: 1px solid var(--line); }
  .marker-label { display: inline; }
}
@media (max-width: 540px) {
  .frame { width: calc(100% - 28px); }
  .site-header { min-height: 61px; }
  .intro { padding: 26px 0 18px; }
  .intro h1 { font-size: clamp(1.78rem, 7.25vw, 2.42rem); }
  .intro p { margin-top: 9px; font-size: .94rem; }
  .sidebar { display: block; }
  .detail { border-right: 0; border-bottom: 1px solid var(--line); padding: 15px; }
  .marker-label { display: none; }
  .pin-number { width: 26px; height: 26px; }
  .map-header { min-height: 42px; padding: 0 11px; }
  .map-footer { gap: 6px; padding-inline: 7px; }
  .compass { right: 7px; top: 9px; }
  .map-controls { gap: 2px; }
  .map-controls button { width: 44px; height: 44px; }
  .legend { gap: 7px 14px; }
  .legend ul { gap: 7px 12px; }
  .site-footer { flex-wrap: wrap; }
}
