:root {
  --ink: #1a1a1a;
  --paper: #fafaf7;
  --accent: #b33a1f;
  --rule: #d8d5cc;
  --muted: #6b6659;
  --card: #ffffff;
  --max: 68rem;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body {
  font: 17px/1.55 Georgia, "Iowan Old Style", "Apple Garamond", serif;
  margin: 0;
}
header.site, footer.site, main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}
header.site {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: 0.02em; }
.brand-city { font-weight: 400; color: var(--accent); }
nav a { margin-left: 1rem; color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--accent); }
footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  margin-top: 3rem;
}
h1 { font-size: 2.1rem; line-height: 1.15; margin: 0.5rem 0 1rem; }
h2 { margin-top: 2rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.3rem; }
h3 { margin-top: 1.5rem; }
a { color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--muted); }
.crumbs { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.narrative { font-size: 1.15rem; line-height: 1.65; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: #fff8f2; margin: 1.5rem 0; }
table.metrics { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
table.metrics th, table.metrics td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--rule); }
table.metrics th { font-weight: 400; color: var(--muted); width: 55%; }
ul.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card a { display: block; background: var(--card); padding: 1rem; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); }
.card a:hover { border-color: var(--accent); }
.card .ym { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.card strong { display: block; margin: 0.3rem 0; }
.card em { color: var(--muted); font-style: normal; }
ul.grid { list-style: none; padding: 0; columns: 3 200px; column-gap: 1rem; }
ul.grid li { break-inside: avoid; margin-bottom: 0.35rem; }
ol.timeline { list-style: none; padding: 0; }
ol.timeline li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
ol.timeline .ym { display: inline-block; width: 5.5rem; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; color: var(--muted); }
.stats { display: block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; color: var(--muted); margin-top: 0.25rem; }
.meta { color: var(--muted); font-size: 13px; margin-top: 2rem; }
.byline { color: var(--muted); font-size: 14px; font-style: italic; margin-top: -0.5rem; }
.byline a { color: var(--muted); text-decoration: underline; }
/* Then vs Now comparisons */
table.compare { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; }
table.compare th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--ink); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
table.compare td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); }
table.compare .metric-label { font-weight: 400; }
table.compare .num { text-align: right; font-variant-numeric: tabular-nums; font-family: "Helvetica Neue", Arial, sans-serif; }
table.compare .up { color: #2a7a2a; }
table.compare .down { color: #b33a1f; }
table.compare .neutral { color: var(--muted); }
.compare-narratives { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.compare-block h3 { margin: 0 0 0.5rem; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.compare-headline { font-weight: 700; margin: 0 0 0.5rem; }
@media (max-width: 600px) { .compare-narratives { grid-template-columns: 1fr; } }
section.citywide { margin: 2rem 0; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
.leaderboards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.leaderboards h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.5rem; }
.leaderboards ol { padding-left: 1.2rem; margin: 0; }
.leaderboards li { margin-bottom: 0.25rem; }
.leaderboards em { font-style: normal; color: var(--muted); font-size: 0.9rem; }
aside.signup { margin: 3rem 0 1rem; padding: 1.25rem 1.5rem; background: #fff8f2; border: 1px solid var(--accent); border-radius: 4px; }
aside.signup h3 { margin: 0 0 0.35rem; }
.signup-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.signup-form input[type=email] { flex: 1 1 240px; padding: 0.55rem 0.7rem; font: inherit; border: 1px solid var(--rule); border-radius: 3px; }
.signup-form button { padding: 0.55rem 1rem; background: var(--accent); color: #fff; border: 0; border-radius: 3px; font: inherit; cursor: pointer; }
.signup-form button:hover { filter: brightness(0.92); }
.signup-status { margin-top: 0.5rem; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 600px) {
  header.site { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav a { margin: 0 1rem 0 0; }
  h1 { font-size: 1.6rem; }
}
