:root {
  color-scheme: light;
  --ink: #171412;
  --muted: #5c574f;
  --line: #ddd6c8;
  --bg: #f4efe6;
  --paper: #fffdf8;
  --accent: #0b5f5a;
  --accent-ink: #083f3b;
  --up: #1b6b38;
  --up-bg: #e4f5ea;
  --down: #9b1c1c;
  --down-bg: #fde8e8;
  --mismatch: #8a5800;
  --mismatch-bg: #fff1d6;
  --shadow: 0 1px 2px rgba(23, 20, 18, 0.06);
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: ui-serif, "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }
.wrap { width: min(1360px, calc(100% - 2rem)); margin: 0 auto; }
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header.site .wrap, footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
nav a { margin-left: 1rem; text-decoration: none; font-size: 0.95rem; }
nav a:hover { text-decoration: underline; }
.hero { padding: 2.75rem 0 1.5rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}
.hero .lede { font-size: 1.12rem; color: #2c2925; max-width: 46rem; margin: 0 0 1.25rem; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.meta-row strong { color: var(--ink); font-weight: 650; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.controls input, .controls select {
  font: inherit;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.controls input[type="search"] { flex: 1 1 16rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tools {
  width: 100%;
  min-width: 64rem;
  border-collapse: collapse;
  font-size: 0.84rem;
}
table.tools th, table.tools td {
  padding: 0.5rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.tools th {
  font-weight: 650;
  background: #faf7f1;
  position: sticky;
  top: 0;
  cursor: pointer;
  white-space: normal;
  user-select: none;
}
table.tools th:last-child, table.tools td:last-child { white-space: nowrap; }
table.tools td:nth-child(8) { white-space: nowrap; }
table.tools th[aria-sort="asc"]::after { content: " \2191"; }
table.tools th[aria-sort="desc"]::after { content: " \2193"; }
table.tools td.mono, .mono { font-family: var(--mono); font-size: 0.84em; word-break: break-all; }
table.tools tbody tr:hover { background: #fbf6ec; }
.muted { color: var(--muted); }
.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.badge.up { background: var(--up-bg); color: var(--up); }
.badge.down { background: var(--down-bg); color: var(--down); }
.badge.mismatch { background: var(--mismatch-bg); color: var(--mismatch); }
section { padding: 2rem 0; }
section h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0 0 0.7rem;
}
.prose { max-width: 46rem; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
form {
  display: grid;
  gap: 0.65rem;
}
form label { font-weight: 600; font-size: 0.92rem; }
form input, form textarea, form select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
}
form textarea { min-height: 6rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button, .btn {
  font: inherit;
  font-weight: 650;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover { background: var(--accent-ink); }
.form-status { min-height: 1.3em; font-size: 0.92rem; }
footer.site {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9rem;
}
.crumb { color: var(--muted); margin: 1.2rem 0 0.4rem; font-size: 0.92rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.stat { padding: 0.85rem 1rem; }
.stat .k { color: var(--muted); font-size: 0.82rem; }
.stat .v { font-family: var(--serif); font-size: 1.35rem; margin-top: 0.15rem; }
.history { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.history th, .history td { padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--line); text-align: left; }
.links a { display: inline-block; margin: 0 0.8rem 0.3rem 0; }
.note { background: #f7f1e4; border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; }
@media (max-width: 700px) {
  nav a { margin-left: 0; margin-right: 0.9rem; }
  table.tools th, table.tools td { padding: 0.5rem 0.55rem; }
}
