:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e5e5e0;
  --accent: #0f766e;
  --accent-dark: #0b5d57;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  padding: 14px 20px;
}
.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 32px 0 8px; }
.hero h1 { margin: 0 0 4px; font-size: 1.9rem; }
.lede { color: var(--muted); margin: 0 0 8px; }

.section-title {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.35;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }

/* Badges */
.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--muted);
}
.badge:hover { text-decoration: none; opacity: 0.9; }
.badge-briefs { background: var(--accent); }
.badge-watch  { background: #b45309; }
.badge-recaps { background: #1d4ed8; }
.badge-muni   { background: #4b5563; }
.badge-county { background: #7c2d12; }
.badge-coverage { background: #9ca3af; }

/* Coverage notice card (municipalities with no public recordings) */
.card-notice {
  background: #fbfaf7;
  border-style: dashed;
}
.card-notice-text {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 6px 0 0;
}
.post-notice {
  border-left: 4px solid #9ca3af;
}

/* Post */
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 20px 0;
}
.post-header h1 {
  margin: 8px 0 16px;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.post-body { font-size: 1.02rem; }
.post-body p { margin: 0 0 1em; }
.post-body h1, .post-body h2, .post-body h3 { line-height: 1.3; }
.post-body a { word-break: break-word; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Term list (municipalities / counties index) */
.term-list { list-style: none; padding: 0; margin: 16px 0; }
.term-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 8px;
}
.term-list .count {
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--bg);
  border-radius: 999px;
  padding: 1px 9px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .support {
  margin-top: 14px;
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .post { padding: 18px 18px; }
  body { font-size: 16px; }
}
