:root {
  --bg: #f7f4ef;
  --ink: #1a1a1a;
  --muted: #5c574f;
  --line: #d9d2c5;
  --card: #fffcf7;
  --accent: #2c4a3e;
  --accent-2: #8b3a2a;
  --role-a: #2c4a3e;
  --role-b: #3d5a80;
  --role-c: #6b4f2a;
  --role-d: #4a5568;
  --role-e: #5c574f;
  --warn: #8b3a2a;
  --ok: #2c4a3e;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

.wrap { max-width: 920px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }

header.site {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}
header.site .brand {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}
header.site h1 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.85rem;
  font-weight: 600;
}
header.site p.tag {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
nav.sections {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}
nav.sections a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
}
nav.sections a.active,
nav.sections a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}
.card .meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.card p { margin: 0.4rem 0; }
.card .go {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.list { list-style: none; padding: 0; margin: 0; }
.list li {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.list li:first-child { border-top: none; padding-top: 0; }
.list .title {
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.list .title:hover { color: var(--accent); }
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.badge.A { color: var(--role-a); border-color: var(--role-a); }
.badge.B { color: var(--role-b); border-color: var(--role-b); }
.badge.C { color: var(--role-c); border-color: var(--role-c); }
.badge.D { color: var(--role-d); border-color: var(--role-d); }
.badge.E { color: var(--role-e); border-color: var(--role-e); }
.badge.status-established { color: var(--ok); border-color: var(--ok); }
.badge.status-disputed { color: var(--warn); border-color: var(--warn); }
.badge.status-unknown { color: var(--muted); }

.page h1 { margin: 0 0 0.4rem; font-size: 1.7rem; }
.page .lede { font-size: 1.08rem; color: var(--muted); margin: 0 0 1rem; }

.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.block h2 {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.block ul { margin: 0.3rem 0 0 1.1rem; padding: 0; }
.block li { margin: 0.35rem 0; }

.cite {
  border-left: 3px solid var(--line);
  padding: 0.55rem 0 0.55rem 0.85rem;
  margin: 0.7rem 0;
}
.cite .who { font-weight: 600; }
.cite .weights {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.cite a { word-break: break-all; }

.reviewer {
  border: 2px solid var(--accent);
  background: #f3f7f5;
}
.reviewer label {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}
.reviewer textarea, .reviewer select, .reviewer input[type="text"] {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.reviewer textarea { min-height: 90px; resize: vertical; }
.reviewer .row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.reviewer button {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}
.reviewer button.secondary {
  background: #fff;
  color: var(--accent);
}
.reviewer .steers { margin-top: 1rem; }
.steer-item {
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
  font-size: 0.95rem;
}
.steer-item .when {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}

.revisions li {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

footer.site {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.note {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  background: #efeae1;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin: 1rem 0;
}
