/* Septic Index
   Utility reference. Warm paper, deep teal ink, one bronze accent.
   Type: Newsreader (display) + Atkinson Hyperlegible (body).
*/

:root {
  --bg: #f2efe8;
  --bg-ink: #e8e6dc;
  --paper: #faf8f3;
  --ink: #1a2220;
  --ink-soft: #44514e;
  --muted: #66706e;
  --rule: #b89a6e;
  --rule-soft: #d4cbb8;
  --accent: #1e4d43;
  --accent-hover: #16382f;
  --focus: #1e4d43;
  --space: 1.25rem;
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --measure: 40.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  /* faint paper grain without looking decorative */
  background-image:
    radial-gradient(rgba(28, 36, 31, 0.025) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* Header: logo and nav share the wrap's left/right edges */
.site-header {
  padding: 1.75rem 0 0;
}

.site-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}

.logo {
  font-family: Newsreader, Georgia, serif;
  font-weight: 550;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.logo:hover { color: var(--ink); }

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Type hierarchy */
h1, h2, h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.15rem);
  line-height: 1.04;
  max-width: 18ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 0;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  font-weight: 550;
}

.lede {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 1.75rem;
}

p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.section {
  padding: 3.25rem 0 0;
}

.section + .section {
  margin-top: 3.25rem;
  border-top: 1px solid var(--rule-soft);
  padding-top: 3.25rem;
}

.hero {
  padding: 3.5rem 0 0.5rem;
}

/* One primary CTA; arrow shifts on hover */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #faf7f1;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.7rem 1.1rem 0.7rem 1.15rem;
  border: 1px solid var(--accent);
  line-height: 1;
}

.cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #faf7f1;
}

.cta .arrow,
.county-name .arrow {
  display: inline-block;
  vertical-align: -0.12em;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.cta:hover .arrow {
  transform: translateX(4px);
}

/* County list: left-aligned rows, not a card grid */
.county-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}

.county-list li {
  border-top: 1px solid var(--rule-soft);
}

.county-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 0 1.2rem;
}

.county-list a:hover .county-name {
  color: var(--accent);
}

.county-name {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.3rem;
}

.county-name .arrow {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.county-list a:hover .arrow {
  transform: translateX(4px);
}

.county-meta {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 40rem;
  margin: 0;
}

/* Labs and sources tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: transparent;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 1rem 0.65rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

th {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

td:nth-child(4) { white-space: nowrap; }

td a { color: var(--ink); }
td a:hover { color: var(--accent); }

.note, .fine {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.sources {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52rem;
}

.sources li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.sources li:last-child { border-bottom: 1px solid var(--rule-soft); }

/* Affiliate placeholders */
.placeholder {
  margin: 1.25rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px dashed var(--rule);
  max-width: var(--measure);
}

.placeholder p { margin-bottom: 0.6rem; }

.placeholder-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

/* Schedule list */
.schedule {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-width: 46rem;
}

.schedule li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule-soft);
}

.schedule li:last-child { border-bottom: 1px solid var(--rule-soft); }

.schedule .when {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 640px) {
  .schedule li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Footer */
.site-footer {
  margin-top: 4.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer p { margin: 0 0 0.75rem; max-width: 46rem; }

/* Utility */
.checked {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

ul.plain, ol.plain {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  max-width: var(--measure);
}

ul.plain li, ol.plain li { margin-bottom: 0.45rem; }

@media (max-width: 640px) {
  html { font-size: 100%; }
  .hero { padding-top: 2.25rem; }
  .section { padding-top: 2.5rem; }
  .section + .section { margin-top: 2.5rem; padding-top: 2.5rem; }
  .site-header-inner { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
}


.nav {
  flex-wrap: wrap;
}

.crumbs {
  padding: 1.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin: 0;
  padding: 0;
  max-width: none;
}

.crumbs li {
  display: inline-flex;
  align-items: baseline;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.crumbs [aria-current="page"] {
  color: var(--ink-soft);
}

.hero {
  padding-top: 2.25rem;
}
