/* Residential Water Guide — plain, readable, no flash */
:root {
  --bg: #f7f5f0;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #555;
  --line: #d8d4cc;
  --accent: #2c5f4a;
  --accent-soft: #e8f0ec;
  --warn: #6b4c1e;
  --warn-bg: #faf3e6;
  --max: 42rem;
}

* { box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 0.9rem 0;
  margin-bottom: 2rem;
}

.site-header .inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--accent); font-weight: 500; }

nav a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
  margin-left: 1rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

/* Article */
article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 1.75rem 2.5rem;
}

@media (min-width: 640px) {
  article { padding: 2.5rem 2.75rem 3rem; }
}

.eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

p, li { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

.meta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Callouts */
.callout {
  background: var(--accent-soft);
  border: 1px solid #c5d9ce;
  border-radius: 4px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.callout.warn {
  background: var(--warn-bg);
  border-color: #e0cfa8;
  color: var(--ink);
}

.callout strong {
  font-family: system-ui, -apple-system, sans-serif;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-family: system-ui, -apple-system, sans-serif;
}

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

th {
  background: #f0ece4;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:last-child td { border-bottom: none; }

td.yes { color: var(--accent); font-weight: 600; }
td.no { color: #8a3b3b; }

/* Decision list */
.decide {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

@media (min-width: 640px) {
  .decide { grid-template-columns: 1fr 1fr; }
}

.decide > div {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  background: #fafaf7;
}

.decide h3 {
  margin-top: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

.decide ul { margin-bottom: 0; }

/* CTA placeholder */
.cta {
  margin: 2rem 0 0;
  padding: 1.15rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: #fafaf7;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}

.cta .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.cta a.btn {
  display: inline-block;
  margin-top: 0.6rem;
  margin-right: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cta a.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.cta .note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Home */
.home-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem 1.5rem 1.75rem;
  margin-bottom: 1rem;
}

.home-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.home-card .tag {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

/* Footer */
.site-footer {
  max-width: calc(var(--max) + 4rem);
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 2rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.sources {
  font-size: 0.85rem;
  color: var(--muted);
}
.sources li { margin-bottom: 0.25rem; }


/* Related products (Amazon Associates) */
.related-products {
  margin: 1.5rem 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fafaf7;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}
.related-products .rp-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.related-products ul {
  margin: 0;
  padding-left: 1.15rem;
}
.related-products li { margin-bottom: 0.45rem; }
.related-products .rp-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer .affiliate-disclosure {
  margin: 0.65rem 0 0;
  max-width: 42rem;
  line-height: 1.45;
}
