:root {
  --ink: #1c241c;
  --paper: #f3efe4;
  --paper-2: #e7e0d0;
  --rule: #c9bfa8;
  --live: #1f6b4a;
  --live-soft: #e5f2eb;
  --researched: #8a5a18;
  --researched-soft: #f6ead6;
  --unknown: #6e685e;
  --unknown-soft: #ece7dc;
  --deep: #14241c;
  --accent: #c4a15a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(196, 161, 90, 0.08), transparent 220px),
    var(--paper);
  font: 17px/1.5 "Segoe UI", "Avenir Next", "IBM Plex Sans", sans-serif;
}
a { color: var(--live); }
a:hover { color: var(--deep); }
code {
  font-family: "IBM Plex Mono", "Source Code Pro", ui-monospace, monospace;
  font-size: 0.86em;
  background: var(--unknown-soft);
  padding: 0.05em 0.3em;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: white;
  padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.5rem; }

.mast {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 2rem;
  padding: 3.2rem 6vw 2.4rem;
  background: var(--deep);
  color: #f6f1e6;
  border-bottom: 4px solid var(--accent);
}
.brand-kicker {
  margin: 0 0 0.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
}
.mast h1 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.lede { max-width: 42rem; color: #d9d1c2; }
.mast-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
}
.btn.primary { background: var(--accent); color: var(--deep); font-weight: 650; }
.btn.ghost { border-color: #8d7b56; color: #f6f1e6; }
.plat-card {
  align-self: end;
  border: 1px solid #3d5246;
  padding: 1rem 1.1rem;
  background: #1b3126;
}
.plat-label {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}
.plat-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
  margin: 0.8rem 0;
}
.plat-card dt { font-size: 0.78rem; color: #b7c3ba; }
.plat-card dd {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.8rem;
}
.plat-note { margin: 0; color: #b7c3ba; font-size: 0.82rem; }

.band { padding: 2.8rem 6vw; }
.band.tight { padding-top: 0.4rem; }
.section-head h2,
.nc-strip h2,
.detail h3,
.status-card h3,
.prices h3 {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-head h2 { margin: 0 0 0.3rem; font-size: 2rem; }
.section-head p { margin: 0 0 1.2rem; max-width: 46rem; color: #3e463e; }

.legend { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin-bottom: 1rem; font-size: 0.9rem; }
.swatch { display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.35rem; vertical-align: -1px; border: 1px solid var(--ink); }
.swatch.live { background: var(--live); }
.swatch.researched { background: var(--researched); }
.swatch.unknown { background: #cfc6b4; }

.atlas {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.4rem;
  align-items: start;
}
.map-wrap {
  background: #faf7f0;
  border: 1px solid var(--rule);
  padding: 0.6rem;
}
#sc-map { width: 100%; height: auto; display: block; }
#sc-map path { stroke: #1c241c; stroke-width: 0.8; cursor: pointer; }
#sc-map path.unknown { fill: #d7d0c2; }
#sc-map path.live { fill: var(--live); }
#sc-map path.researched { fill: #c4893a; }
#sc-map path.is-on { stroke-width: 2.2; }
.map-caption { margin: 0.4rem 0 0; min-height: 1.4em; font-size: 0.92rem; }
.finder label { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
#county-search {
  width: 100%;
  margin: 0.35rem 0 0.8rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--rule);
  background: white;
  font: inherit;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 11rem;
  overflow: auto;
  padding-bottom: 0.4rem;
}
.chips button {
  border: 1px solid var(--rule);
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
}
.chips button.live { background: var(--live-soft); border-color: var(--live); }
.chips button.researched { background: var(--researched-soft); border-color: var(--researched); }
.chips button.is-on { background: var(--deep); color: white; border-color: var(--deep); }
.detail {
  margin-top: 1rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.8rem;
}
.detail p { margin: 0.35rem 0; }
.detail .meta { color: var(--unknown); font-size: 0.88rem; }

.cards, .prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.prices { grid-template-columns: repeat(4, 1fr); }
.status-card, .prices article {
  background: white;
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem 1.2rem;
}
.status-card.live { box-shadow: inset 4px 0 0 var(--live); }
.status-card.researched { box-shadow: inset 4px 0 0 var(--researched); }
.status-card.unknown { box-shadow: inset 4px 0 0 var(--unknown); }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--unknown);
}
.status-card h3, .prices h3 { margin: 0.2rem 0 0.5rem; font-size: 1.45rem; }
.price {
  margin: 0.2rem 0 0.6rem;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 2rem;
}
.price span { font-size: 0.95rem; color: var(--unknown); }
.prices article a { font-weight: 650; }
.prices .featured { background: var(--deep); color: #f6f1e6; border-color: var(--deep); }
.prices .featured a { color: var(--accent); }
.waitlist { margin-top: 1.2rem; }

.nc-strip {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  border: 1px dashed #7d6a45;
  background: #f7f1e2;
  padding: 1.2rem 1.3rem;
}
.nc-strip h2 { margin: 0.15rem 0 0.4rem; }
.nc-strip p { margin: 0; max-width: 46rem; }
.nc-flag {
  margin: 0;
  white-space: nowrap;
  border: 1px solid var(--researched);
  color: var(--researched);
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.steps { max-width: 48rem; padding-left: 1.2rem; }
.steps li { margin: 0.55rem 0; }

footer {
  padding: 1.4rem 6vw 2rem;
  background: var(--deep);
  color: #d9d1c2;
  font-size: 0.92rem;
}
footer p { margin: 0.3rem 0; }
footer code { background: #24362c; color: #f6f1e6; }

@media (max-width: 980px) {
  .mast, .atlas, .cards, .prices, .nc-strip { grid-template-columns: 1fr; display: grid; }
  .nc-flag { white-space: normal; }
}
