:root {
  --paper: #f3ead9;
  --ink: #1a1610;
  --muted: #5c5348;
  --rule: #c9b89a;
  --stamp: #8d1d12;
  --link: #1a1610;
  --card: #fff8ec;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--stamp); }

.wrap { width: min(980px, calc(100% - 2rem)); margin: 0 auto; }

.masthead {
  padding: 1.6rem 0 1.1rem;
  border-bottom: 1px solid var(--ink);
}
.brand {
  display: inline-block;
  text-decoration: none;
  font-size: 1.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-top: 0.85rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }

main { padding: 2rem 0 3.5rem; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 0.8rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
.lede { font-size: 1.15rem; max-width: 42rem; }
.muted { color: var(--muted); }

.meta {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.filing-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.filing-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.filing-list a.title { font-size: 1.15rem; text-decoration: none; }
.filing-list a.title:hover { text-decoration: underline; }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  margin: 1.2rem 0 0.4rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.filters label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.filters input, .filters select, button, .btn {
  font: inherit;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--ink);
  background: var(--card);
  color: var(--ink);
}
.actions { margin-top: 0.8rem; display: flex; gap: 0.6rem; }
.btn, button {
  width: auto;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-stamp { background: var(--stamp); color: #fff8ec; border-color: var(--stamp); }
.btn-stamp:hover { color: #fff8ec; opacity: 0.92; }
.btn[aria-disabled="true"], button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.record-kicker {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 0.4rem;
}
.times { display: grid; gap: 0.2rem; margin: 1rem 0 1.4rem; }
.ids { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 0 0 1.5rem; }
.ids span { font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 0.85rem; }
.raw {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.82rem;
}
.notice {
  border: 1px solid var(--ink);
  background: var(--card);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}
.keybox {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background: #1a1610;
  color: #f3ead9;
  padding: 0.8rem 1rem;
  overflow-wrap: anywhere;
}

.legal { max-width: 42rem; }
.site-footer {
  border-top: 1px solid var(--ink);
  padding: 1.2rem 0 2rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}
.site-footer p { margin: 0.25rem 0; }

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
}
