:root {
  --bg: #f6f1e7;
  --paper: #fcf9f3;
  --ink: #271e16;
  --muted: #6c5b4b;
  --accent: #9b5924;
  --accent-soft: #eadbc7;
  --line: #dfd4c2;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
.brand {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
nav {
  display: flex;
  gap: 18px;
  font-size: 0.94rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
main { padding: 28px 0 44px; }
h1, h2 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 10px;
}
h1 { font-size: 1.85rem; }
h2 { font-size: 1.2rem; margin-top: 26px; }
.lead { color: var(--muted); margin: 0 0 22px; max-width: 64ch; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 5px;
}
input, select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.96rem;
}
input:focus, select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.stat span { display: block; font-size: 0.8rem; color: var(--muted); }
.stat strong { font-size: 1.3rem; color: var(--accent); font-variant-numeric: tabular-nums; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
th { color: var(--muted); font-weight: 600; font-size: 0.84rem; }
.note {
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 12px 14px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  font-size: 0.84rem;
  color: var(--muted);
}
