:root {
  --bg: #0d1117;
  --fg: #e8ecf1;
  --muted: #8b95a3;
  --line: #2a3340;
  --accent: #f5c542;
  --surface: #141a22;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4ef;
    --fg: #1c2027;
    --muted: #5d6673;
    --line: #d9d4c7;
    --accent: #c98a00;
    --surface: #ffffff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }

/* ---------- Home ---------- */
.home { min-height: 100vh; display: flex; flex-direction: column; }
.home main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 24px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
h1 span { color: var(--muted); font-weight: 500; }

.map { margin: 32px auto 8px; max-width: 460px; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }

.outline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s ease-in-out .2s forwards;
}
.streets path {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  animation: fade 1.2s ease 1.4s forwards;
}
.sweep { animation: sweep 6s linear 2.6s infinite; opacity: 0; }

.dots circle {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: pop .4s ease var(--d) forwards, pulse 2.4s ease-out calc(var(--d) + .4s) infinite;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse {
  0%   { filter: drop-shadow(0 0 0 var(--accent)); }
  50%  { filter: drop-shadow(0 0 6px var(--accent)); }
  100% { filter: drop-shadow(0 0 0 var(--accent)); }
}
@keyframes sweep {
  0%   { transform: translateX(0);     opacity: 1; }
  100% { transform: translateX(1000px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .outline { animation: none; stroke-dashoffset: 0; }
  .streets path, .dots circle { animation: none; opacity: 1; }
  .sweep { display: none; }
}

.lede {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px 32px;
  text-align: center;
}
.policy-link {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.policy-link:hover { background: var(--accent); color: var(--bg); }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Policy ---------- */
.policy main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.back { font-size: 14px; text-decoration: none; }
.policy h1 { font-size: clamp(28px, 5vw, 40px); margin: 24px 0 4px; }
.policy .sub { color: var(--muted); margin: 0 0 32px; }
.policy h2 {
  margin: 40px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}
.policy h3 { margin: 24px 0 4px; font-size: 16px; }
.num { color: var(--accent); }
.policy p, .policy li { overflow-wrap: anywhere; }
.policy ul { padding-left: 20px; }
.policy li { margin: 6px 0; }
.revised { margin-top: 48px; color: var(--muted); font-size: 14px; }
.todo { background: #ffde59; color: #000; padding: 0 4px; border-radius: 3px; }
.streets path.main { stroke-width: 3.5; }
.g0 { stop-color: var(--accent); stop-opacity: .3; }
.g1 { stop-color: var(--accent); stop-opacity: 0; }
