:root {
  color-scheme: light dark;
  --bg: light-dark(#f7f5f0, #14171c);
  --card: light-dark(#ffffff, #1c2129);
  --ink: light-dark(#1e2632, #e8e6e0);
  --muted: light-dark(#6b7280, #949ca8);
  --line: light-dark(#e4dfd4, #2d3542);
  --navy: #1d3a5f;
  --navy-ink: #f4f0e6;
  --red: light-dark(#b3372e, #e07a6e);
  --link: light-dark(#1d5fa0, #8ab8ea);
  --hover: light-dark(#f2efe7, #232a34);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 system-ui, "Segoe UI", sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- masthead: the scoreboard bar --- */
.masthead { background: var(--navy); border-bottom: 3px solid var(--red); }
.masthead-inner {
  max-width: 64rem; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.brand {
  color: var(--navy-ink); font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem; font-weight: 700; letter-spacing: .02em;
}
.masthead nav { display: flex; gap: 1.25rem; }
.masthead nav a {
  color: var(--navy-ink); opacity: .85; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.brand:hover, .masthead nav a:hover { text-decoration: none; opacity: 1; }

main { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; }
h1 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: 1.9rem; line-height: 1.2; margin: .5rem 0 1rem;
}
h2 {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem;
  margin: 2.25rem 0 .75rem; padding-bottom: .3rem;
  border-bottom: 2px solid var(--line);
}
.coverage { font-size: .85rem; color: var(--muted); margin-top: -0.5rem; }

/* --- data tables: the record book --- */
table {
  border-collapse: collapse; width: 100%; margin: 1.25rem 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
  font-variant-numeric: tabular-nums; font-size: .92rem;
}
th, td { text-align: left; padding: .45rem .8rem; }
thead th {
  background: light-dark(#eef2f7, #222b38); color: var(--muted);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 2px solid var(--line);
}
tbody td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: light-dark(#faf9f6, #191e25); }
tbody tr:hover { background: var(--hover); }
td:first-child, th:first-child {
  text-align: right; color: var(--red); font-weight: 600; width: 2.5rem;
}

/* --- link chips: year and page indexes --- */
.chips { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: .88rem;
}
.chips a:hover { text-decoration: none; border-color: var(--link); background: var(--hover); }

/* --- index hero: the counts --- */
.stats { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.stat {
  flex: 1 1 10rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 1rem 1.2rem; box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
}
.stat b {
  display: block; font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem; font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.lede { font-size: 1.05rem; max-width: 44rem; }

footer {
  max-width: 64rem; margin: 2rem auto 0; padding: 1.25rem;
  border-top: 1px solid var(--line);
}
.attribution { font-size: .76rem; color: var(--muted); margin: .25rem 0; }
