:root {
  color-scheme: light;
  --wall: #1a2416;
  --wall-2: #12190f;
  --lamp: #e39b3a;
  --spruce: #2f6b45;
  --paper: #f3eee4;
  --paper-2: #e7e0d2;
  --ink: #1d1a15;
  --muted: #5e584e;
  --line: #d4cbbd;
  --online: #2f6b45;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.55 "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 400px at 50% -80px, #2a3a22, transparent 60%),
    var(--wall);
  color: var(--ink);
}
a { color: var(--spruce); }
img { max-width: 100%; height: auto; }
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 14px;
  color: #f3eee4;
}
.mark {
  color: inherit;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.01em;
  font-size: 22px;
}
.mark span { color: var(--lamp); }
.season { margin: 0; color: #c9c0b0; font-size: 14px; }
.top nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.top nav a { color: #d9d1c4; text-decoration: none; font-size: 15px; }
.top nav a.is-on { color: var(--lamp); }
.sheet {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  padding: 28px 28px 36px;
}
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.eyebrow { margin: 0 0 6px; color: var(--spruce); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
h1 { font-family: Georgia, "Iowan Old Style", serif; font-size: 40px; line-height: 1.12; margin: 0 0 10px; font-weight: 700; }
h2 { font-family: Georgia, "Iowan Old Style", serif; font-size: 28px; margin: 28px 0 10px; }
h3 { margin: 0 0 6px; font-size: 18px; }
.lead { color: var(--muted); margin-top: 0; }
.ip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ip code, .addr {
  background: #243222;
  color: #f2e2c4;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 18px;
}
button, .btn {
  background: var(--lamp);
  color: #2a1c08;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover { filter: brightness(1.05); }
.pulse { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(47, 107, 69, 0.18);
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article, .card {
  background: #faf7f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.grid img, .card img, .prose img { border-radius: 6px; display: block; }
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 22px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list time { display: block; color: var(--muted); font-size: 13px; }
.who { margin: 0; padding-left: 18px; }
.who li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 650; font-size: 13px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team article img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose { max-width: 72ch; }
.prose h2:first-child { margin-top: 0; }
ol.steps { padding-left: 20px; }
ol.steps li { margin: 8px 0; }
.gate { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start; }
.gate img { border-radius: 8px; width: 100%; }
.gate form, .panel {
  background: #faf7f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
label { display: block; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: white;
  color: var(--ink);
}
.form-error { color: #8a3b24; }
.atlas { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
.atlas-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  background: #10160e;
  border-radius: 8px;
  touch-action: none;
  cursor: grab;
}
.atlas-stage.is-drag { cursor: grabbing; }
.atlas-world { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; }
.atlas-world img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.pin, .dotp {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.pin {
  width: 12px; height: 12px;
  background: var(--lamp);
  box-shadow: 0 0 0 2px #2a1c08;
}
.pin span {
  position: absolute;
  left: 16px; top: -4px;
  white-space: nowrap;
  background: rgba(250, 247, 241, 0.92);
  color: var(--ink);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}
.dotp { width: 7px; height: 7px; background: #f4f7f2; box-shadow: 0 0 0 1px #1d1a15; }
.tools { display: flex; gap: 8px; margin: 8px 0; }
.tools button { padding: 6px 10px; }
.coords { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.plist { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; font-size: 14px; }
.plist li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
footer.colophon {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: #b7b0a4;
  font-size: 14px;
}
footer.colophon a { color: #e7d7b8; }
@media (max-width: 860px) {
  .hero, .split, .gate, .atlas, .team, .grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  .top nav { margin-left: 0; }
  .sheet { padding: 18px 16px 24px; }
}
