/* ============================================
   Ard Labs — base styles
   ============================================ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f2efe8;
  --ink: #1a1917;
  --ink-soft: #4a463f;
  --ink-faint: #8a8477;
  --line: #e2ddd1;
  --accent: #8a6a35;
  --accent-deep: #5f4a26;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1em;
  display: block;
}

/* ============================================
   Header / nav
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 100px 0 90px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 20ch;
}

.hero-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-deep);
  margin: 0 0 1.8em;
}

.appstore-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  cursor: default;
}

.appstore-badge .apple-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.appstore-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.appstore-badge .badge-eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfc9ba;
}

.appstore-badge .badge-main {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.appstore-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.page-hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Same inline-link treatment `.policy-body a` already uses -- the global `a { color: inherit;
   text-decoration: none; }` reset otherwise leaves a lede's own link visually identical to the
   surrounding plain text, with nothing to signal it's clickable. */
.page-hero .lede a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
}

.page-hero .lede a:hover {
  color: var(--accent);
}

/* ============================================
   Sections
   ============================================ */

section {
  padding: 88px 0;
}

section.tight {
  padding: 64px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head .lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============================================
   Grids / cards
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.card .num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.6em;
  display: block;
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card ul {
  margin: 1em 0 0;
  padding: 0 0 0 1.1em;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.card ul li {
  margin-bottom: 0.4em;
}

/* ============================================
   Values / list rows
   ============================================ */

.row-list {
  border-top: 1px solid var(--line);
}

.row-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.row-item h3 {
  font-size: 1.15rem;
  margin: 0;
}

.row-item p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}

/* ============================================
   Stats
   ============================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.stat .figure {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--ink);
  display: block;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   CTA band
   ============================================ */

.cta-band {
  background: var(--ink);
  color: var(--bg);
}

.cta-band h2 {
  color: var(--bg);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 20ch;
}

.cta-band .lede {
  color: #cfc9ba;
  max-width: 50ch;
}

.cta-band .btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: #b7924e;
}

.cta-band .btn-ghost {
  border-color: #4a463f;
  color: var(--bg);
}

.cta-band .btn-ghost:hover {
  border-color: var(--bg);
}

/* ============================================
   Contact
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 0.8em;
}

.contact-info .email-link {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.contact-info .email-link:hover {
  color: var(--accent);
}

.contact-block {
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.social-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

form.contact-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-alt);
  color: var(--ink);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner .logo {
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

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

.footer-meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ============================================
   Apps hub
   ============================================ */

.app-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  align-items: center;
}

.app-card img {
  border-radius: 6px;
  border: 1px solid var(--line);
}

.app-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3em;
}

.app-card p {
  color: var(--ink-soft);
}

.platform-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8em;
}

.status-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-left: 10px;
}

/* ============================================
   Screenshot showcase
   ============================================ */

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.screenshot-row img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(26, 25, 23, 0.3);
}

.screenshot-row figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ============================================
   Deployment zones / zip grids
   ============================================ */

.zone-intro {
  max-width: 62ch;
  color: var(--ink-soft);
}

/* Multi-column card grid (2026-09-02, direct request — the single-column list hit 19 rows with
   the coming campaigns and stopped scanning well). Each cell: name on top, count + price on a
   second line; 3 columns on desktop, collapsing to 2 then 1. */
.zone-index {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.zone-index li {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.zone-index a,
.zone-index-coming {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  height: 100%;
  transition: background 0.15s, border-color 0.15s;
}

.zone-index a > span:first-child,
.zone-index-coming > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zone-index a:hover {
  background: var(--bg-alt);
}

.zone-index-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.3;
}

.zone-index-count {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.zone-index-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .zone-index {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .zone-index {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .zone-index {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .zone-index {
    grid-template-columns: 1fr;
  }
}

.zone-block {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.zone-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.zone-head h3 {
  font-size: 1.4rem;
  margin: 0;
}

/* Every jump target the "View ↓"/nav-index links land on -- the pack headings and the search
   box itself -- needs room for .site-header's own sticky 76px, or the fixed header covers the
   first ~76px of whatever just scrolled into view. */
.zone-head h3,
.zip-search {
  scroll-margin-top: 96px;
}

.zone-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  background: rgba(138, 106, 53, 0.08);
  white-space: nowrap;
}

.zone-count {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 22px;
}

/* ============================================
   Zip search ("Search for my zip")
   ============================================ */

.zip-search {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 22px;
  margin: 24px 0 32px;
}

.zip-search label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.zip-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.zip-search-row input {
  flex: 1 1 160px;
  font-family: var(--sans);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
}

.zip-search-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.zip-search-row .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.zip-search-results {
  margin-top: 16px;
}

.zip-search-msg {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0;
}

.zip-search-msg-error {
  color: #a3402f;
}

.zip-search-hit {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.zip-search-hit-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin: 0 0 4px;
}

.zip-search-hit p {
  margin: 0;
  font-size: 0.92rem;
}

.zip-search-hit a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  white-space: nowrap;
}

.zip-search-nearest-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.zip-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.zip-search-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  background: var(--bg);
  padding: 10px 14px;
  font-size: 0.85rem;
}

.zip-search-city {
  color: var(--ink-soft);
}

.zip-search-num {
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  font-weight: 600;
}

.zip-search-meta {
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.zip-search-jump {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  font-size: 0.8rem;
  white-space: nowrap;
}

.zone-count a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
}

.zone-footnote {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 14px 0 0;
  max-width: 62ch;
}

.zip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.zip-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: var(--bg);
  font-size: 0.83rem;
}

.zip-chip-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.zip-chip-city {
  color: var(--ink-soft);
}

.zip-chip-num {
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  font-weight: 600;
  white-space: nowrap;
}

/* Nearby zip codes whose population center also falls inside this battleground's
   3-mile square (see the Deployment Zones intro's own footnote) -- deliberately smaller
   and quieter than .zip-chip-num, which stays the visually dominant element in the chip. */
.zip-chip-covered {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Policy pages
   ============================================ */

.policy-updated {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0;
}

.policy-toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 40px 0 8px;
}

.policy-toc h2 {
  font-size: 0.95rem;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 0.9em;
}

.policy-toc ol {
  columns: 2;
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.9rem;
}

.policy-toc li {
  margin-bottom: 0.5em;
  break-inside: avoid;
}

.policy-toc a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.policy-toc a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.policy-body {
  max-width: 74ch;
  padding: 56px 0;
}

.policy-body h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}

.policy-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-body h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}

.policy-body p,
.policy-body li {
  color: var(--ink-soft);
}

.policy-body ul,
.policy-body ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.policy-body li {
  margin-bottom: 0.5em;
}

.policy-body a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
}

.policy-body a:hover {
  color: var(--accent);
}

.policy-body strong {
  color: var(--ink);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .row-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .policy-toc ol {
    columns: 1;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 24px;
  }

  .site-header.open .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .site-header.open .nav-cta {
    display: inline-flex;
    margin: 16px 32px 24px;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 56px;
  }

  section {
    padding: 64px 0;
  }
}

/* ============================================
   Earth Corps — Story page
   ============================================ */

.story-body {
  max-width: 640px;
}

.story-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.story-beat {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.7rem;
  line-height: 1.3;
}

.story-stack {
  margin: 0.7rem 0 1.2rem;
}

.story-stack p {
  margin: 0 0 0.15rem;
  font-weight: 600;
  color: var(--ink);
}

/* `.story-body p` (a class+element selector) otherwise beats a bare single-class selector on
   specificity regardless of source order -- this needs to win over it too, matching the Swift
   source's plain `emphasis(_:color: .white)` case (full-strength text, not the softened body
   tone) for the one emphasis line with no threat/accent color of its own. */
.story-body .story-emphasis {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.1rem 0;
  color: var(--ink);
}

.story-body .story-threat {
  color: #a13d2e;
}

.story-body .story-accent {
  color: var(--accent);
}

.story-forces {
  list-style: none;
  margin: 1rem 0 1.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.story-forces li {
  font-weight: 700;
  font-size: 1.05rem;
}

.story-forces li::before {
  content: "▸ ";
}

.story-titlecard {
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  margin: 2.2rem 0;
  text-align: center;
}

.story-titlecard h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  margin: 0;
  color: var(--ink);
}

.story-closing {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.story-closing p {
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: var(--ink);
}

.story-closing .story-final {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  margin-top: 1rem;
}


/* ============================================
   Map preview lightbox (zip chips -> battleground preview)
   ============================================ */

.zip-chip{cursor:pointer;transition:background .12s}
.zip-chip:hover{background:var(--bg-alt)}

.map-lightbox{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;
  background:rgba(20,18,14,.78);opacity:0;pointer-events:none;transition:opacity .15s}
.map-lightbox.open{opacity:1;pointer-events:auto}
.map-lightbox-card{background:var(--bg);border-radius:8px;max-width:min(560px,92vw);width:100%;
  box-shadow:0 18px 60px rgba(0,0,0,.35);overflow:hidden}
.map-lightbox-card img{display:block;width:100%;aspect-ratio:1/1;background:#101421}
.map-lightbox-cap{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:12px 16px}
.map-lightbox-cap .city{font-weight:700}
.map-lightbox-cap .num{font-variant-numeric:tabular-nums;color:var(--accent-deep);font-weight:600}
.map-lightbox-note{padding:0 16px 14px;font-size:.78rem;color:var(--ink-faint)}
.map-lightbox-close{position:absolute;top:14px;right:18px;font-size:1.6rem;color:#fff;cursor:pointer;
  background:none;border:0;line-height:1}


/* Upcoming campaigns: same card as live entries, muted and non-clickable. */
.zone-index-coming {
  color: var(--ink-faint);
}
.zone-index-coming .zone-index-name {
  font-weight: 500;
  color: var(--ink-faint);
}
.zone-index-coming .zone-index-price {
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
