:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #d9d6ce;
  --accent: #1f4d3a;
  --accent-soft: #e6f0eb;
  --warn: #7a4a00;
  --warn-bg: #fff6e5;
  --todo: #6b2d2d;
  --todo-bg: #fceeee;
  --max: 48rem;
  --wide: 56rem;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 0.85rem 0;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}
.brand {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem; font-family: system-ui, sans-serif; font-size: 0.85rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.hero, .page { padding: 2rem 0 3rem; }
h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  font-family: system-ui, sans-serif;
}
h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  font-family: system-ui, sans-serif;
}
.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.25rem; }
.meta {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.note {
  background: var(--warn-bg);
  border: 1px solid #efd7a8;
  color: var(--warn);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.todo-banner {
  background: var(--todo-bg);
  border: 1px dashed var(--todo);
  color: var(--todo);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  margin: 0.5rem 0 1rem;
}

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  min-width: 36rem;
}
th, td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: #f0eee8;
  font-weight: 650;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.best td { background: var(--accent-soft); }
.total { font-weight: 700; }

ul.clean { padding-left: 1.15rem; }
ul.clean li { margin: 0.35rem 0; }
.sources li { margin: 0.4rem 0; word-break: break-word; font-size: 0.92rem; }

.cta-row {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}
@media (min-width: 640px) {
  .cta-row { grid-template-columns: 1fr 1fr; }
}
.cta {
  display: block;
  text-decoration: none;
  background: var(--accent);
  color: #fff !important;
  font-family: system-ui, sans-serif;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  text-align: center;
}
.cta.secondary {
  background: var(--paper);
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}
.cta small {
  display: block;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.list-links { list-style: none; padding: 0; margin: 0; }
.list-links li {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.list-links a {
  font-family: system-ui, sans-serif;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
}
.list-links a:hover { color: var(--accent); }
.list-links p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}
.site-footer p { margin: 0.4rem 0; max-width: 42rem; }

.badge {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #ebe8e0;
  color: #444;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.35rem;
}
