/* The Little Burg — "on the wire": the quiet county pages (/stafford/, /spotsylvania/, /fredericksburg/).
   Same atlas plate as the plaque and the living town: paper, ink, brick, Georgia, a mono ticker. */
:root {
  --paper: #f2e8d5;
  --paper-hi: #f9f2e3;
  --ink: #2a241d;
  --ink-soft: #5c5344;
  --brick: #b8452c;
  --river: #8fb4bc;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --mono: 'SFMono-Regular', 'DejaVu Sans Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--paper); }
body {
  min-height: 100svh;
  padding: 24px 16px 72px;              /* room for the ticker along the bottom */
  background:
    repeating-linear-gradient(0deg,   rgba(42, 36, 29, 0.045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg,  rgba(42, 36, 29, 0.045) 0 1px, transparent 1px 64px),
    var(--paper);
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
a:hover, a:focus-visible { color: var(--brick); }
a:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }

/* ---------- masthead: the same plate as the plaque ---------- */
#masthead {
  max-width: 720px;
  margin: 0 auto 22px;
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink), inset 0 0 0 4px var(--paper-hi), inset 0 0 0 5px var(--ink-soft);
  padding: clamp(18px, 4vw, 28px) clamp(18px, 4vw, 30px) clamp(14px, 3vw, 20px);
}
.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 700;
}
#masthead h1 {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin-top: 6px;
}
#masthead .sub {
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 8px;
}
#masthead .row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  border-top: 1px solid var(--ink-soft);
  margin-top: 12px;
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
#masthead .row a { text-decoration-style: dotted; }
#wx { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.7px; text-transform: uppercase; margin-top: 10px; }
#wx .alert { color: var(--brick); font-weight: 700; }

/* ---------- the wire ---------- */
#wire { max-width: 720px; margin: 0 auto; }
#wire section {
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 13px 18px 14px;
  margin-bottom: 18px;
}
#wire section#warnings { border-left: 4px solid var(--brick); }
#wire h2 {
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 700;
}
#wire ul { list-style: none; padding: 0; margin: 8px 0 0; }
#wire li { margin: 0 0 11px; font-size: 15px; line-height: 1.45; }
#wire li:last-child { margin-bottom: 0; }
#wire li > b {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brick);
  margin-right: 4px;
  vertical-align: 1px;
}
#wire .where { display: block; color: var(--ink-soft); font-size: 12.5px; }
#wire .sum { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
#wire .empty, #quiet { font-style: italic; color: var(--ink-soft); font-size: 13.5px; margin-top: 8px; }
#quiet { text-align: center; margin: 6px 0 18px; }
#warnings li b.ev { color: var(--brick); }

/* ---------- footer ---------- */
#foot {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  text-align: center;
}
#asof { margin-bottom: 6px; }
#asof .stale { color: var(--brick); }

/* ---------- the ticker, same bar as the town ---------- */
#ticker {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  padding: 7px 16px 8px;
  white-space: nowrap;
  overflow: hidden;
}
#tickText { display: inline-block; animation: slidein 420ms cubic-bezier(0.16, 1, 0.3, 1); }
#tickText b { color: #e8a03c; font-weight: 700; }
#tickText a { color: inherit; }
#tickText a:hover, #tickText a:focus-visible { color: #e8a03c; }
#tickText .src { opacity: 0.6; }
@keyframes slidein {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #tickText { animation: none; }
}
@media (max-width: 420px) {
  body { padding: 14px 10px 72px; }
  #wire section { padding: 11px 13px 12px; }
}
