:root {
  color-scheme: light;
  --ink: #1c1915;
  --muted: #5c564c;
  --paper: #f3efe4;
  --card: #fffdf8;
  --line: #d9d0c1;
  --stamp: #8f2d2a;
  --good: #1f6b4a;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.06);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--stamp); }

header.site, footer.site {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--line);
}

footer.site {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

nav { display: flex; gap: 1rem; }

main { padding: 1.25rem; }

.hero, .panel {
  max-width: 42rem;
  margin: 0 auto;
}

.panel.wide, .hero { max-width: 68rem; }

h1, h2 {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0.2rem 0 0.8rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--stamp);
  margin: 0;
}

.lede { font-size: 1.15rem; line-height: 1.5; max-width: 38rem; }

.grid, .split {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.grid { grid-template-columns: repeat(3, 1fr); }
.split { grid-template-columns: repeat(2, 1fr); }

.grid article, form, .note, .error, .empty {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

form { display: grid; gap: 0.7rem; margin: 1rem 0; }
label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
label.check { grid-template-columns: auto 1fr; align-items: start; }

input, select, textarea, button {
  font: inherit;
  color: inherit;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.65rem 0.7rem;
  border-radius: 2px;
}

button, .button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  padding: 0.7rem 1rem;
  cursor: pointer;
  width: fit-content;
}

button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.banner, .note { background: #efe6cf; }
.banner { margin: 0 0 1rem; padding: 0.85rem 1.1rem; }
.error { background: #f8e8e4; color: var(--stamp); }
.empty { color: var(--muted); }

.reports { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; }
.reports li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}
.reports h2 { font-size: 1.35rem; margin: 0; }
.reports p { margin: 0.2rem 0 0; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.45rem; vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.issue, .glance { max-width: 42rem; margin: 0 auto; }
.counts { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.counts li { background: var(--card); border: 1px solid var(--line); padding: 0.8rem 1rem; }

@media (max-width: 800px) {
  .grid, .split { grid-template-columns: 1fr; }
  header.site, footer.site { flex-direction: column; align-items: flex-start; }
  .reports li { flex-direction: column; align-items: flex-start; }
}
