/* Midwest Water News: civic-journalism layout.
   Palette: forest #14532d, river #155e75, paper #fbfdfb, ink #1c1917. */

:root {
  --forest: #14532d;
  --forest-deep: #0d3b20;
  --river: #155e75;
  --paper: #fbfdfb;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --rule: #d6ded6;
  --card: #ffffff;
  --pill-missouri: #8a3b12;
  --pill-illinois: #4338ca;
  --pill-greatlakes: #155e75;
  --pill-wells: #14532d;
  --pill-infra: #57534e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--river); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, .wordmark {
  font-family: "Zilla Slab", "Georgia", serif;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--forest);
  color: var(--paper);
  border-bottom: 4px solid var(--forest-deep);
}

.masthead-inner {
  padding-top: 26px;
  padding-bottom: 18px;
}

.wordmark {
  display: inline-block;
  color: var(--paper);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.wordmark:hover, .wordmark:focus { text-decoration: none; color: #ffffff; }

.tagline {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #cde7d4;
  font-style: italic;
}

.mainnav {
  background: var(--forest-deep);
}

.navrow {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.navrow a {
  color: #e3f2e8;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
}

.navrow a:hover, .navrow a:focus,
.navrow a[aria-current="page"] {
  background: var(--forest);
  color: #ffffff;
  text-decoration: none;
}

/* ---------- Region pills ---------- */

.pill {
  display: inline-block;
  font-family: "Public Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--ink-soft);
  border-radius: 999px;
  padding: 3px 11px;
  line-height: 1.5;
}

.pill[data-region="Missouri"] { background: var(--pill-missouri); }
.pill[data-region="Illinois"] { background: var(--pill-illinois); }
.pill[data-region="Great Lakes"] { background: var(--pill-greatlakes); }
.pill[data-region="Wells & Rural"] { background: var(--pill-wells); }
.pill[data-region="Infrastructure"] { background: var(--pill-infra); }

a.pill:hover, a.pill:focus { text-decoration: none; filter: brightness(1.18); }

/* ---------- Homepage lead story ---------- */

.lead-story {
  padding: 40px 0 28px;
  border-bottom: 6px solid var(--forest);
  margin-bottom: 30px;
}

.lead-story .kicker { margin-bottom: 10px; }

.lead-story h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.lead-story h2 a { color: var(--ink); }
.lead-story h2 a:hover { color: var(--forest); text-decoration: none; }

.lead-dek {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46em;
  margin-bottom: 10px;
}

.lead-meta, .item-meta, .art-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Homepage grid ---------- */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 44px;
  padding-bottom: 48px;
}

.deskhead {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--forest);
  border-bottom: 2px solid var(--forest);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.report-list { list-style: none; }

.report-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.report-item .kicker { margin-bottom: 6px; }

.report-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}

.report-item h3 a { color: var(--ink); }
.report-item h3 a:hover { color: var(--forest); }

.item-sum {
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

/* ---------- Sidebar ---------- */

.sidebar > section { margin-bottom: 34px; }

.side-head {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--river);
  border-bottom: 2px solid var(--river);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud .pill { font-size: 0.74rem; padding: 5px 13px; }

.reader-box {
  background: #eef6ef;
  border: 1px solid #cfe3d4;
  border-left: 6px solid var(--forest);
  border-radius: 6px;
  padding: 18px 18px 16px;
}

.reader-box h3 {
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.reader-box p {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.reader-box .fineprint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Section pages ---------- */

.section-head {
  padding: 36px 0 14px;
  border-bottom: 6px solid var(--forest);
  margin-bottom: 8px;
}

.section-head h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
}

.section-head .section-intro {
  color: var(--ink-soft);
  max-width: 50em;
  margin-top: 6px;
}

.section-list-wrap { padding-bottom: 48px; max-width: 760px; }

/* ---------- Article pages ---------- */

.article-wrap { padding: 40px 20px 56px; max-width: 780px; }

.kicker { margin-bottom: 12px; }

.art-title {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.art-dek {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.art-meta {
  padding-bottom: 16px;
  border-bottom: 6px solid var(--forest);
  margin-bottom: 26px;
}

.art-body p { margin-bottom: 1.15em; }

.art-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
  margin: 1.4em 0 0.55em;
}

.art-body ul, .art-body ol { margin: 0 0 1.15em 1.4em; }
.art-body li { margin-bottom: 0.4em; }

.art-body a { color: var(--river); text-decoration: underline; text-decoration-color: #9fc5d2; }
.art-body a:hover { text-decoration-color: var(--river); }

.art-foot {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.art-foot p { margin-bottom: 8px; }

.backlink { font-weight: 600; }

/* ---------- Site footer ---------- */

.sitefoot {
  background: var(--forest);
  color: #d9eadf;
  padding: 30px 0 36px;
  font-size: 0.9rem;
}

.sitefoot .foot-brand {
  font-family: "Zilla Slab", "Georgia", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 6px;
}

.sitefoot p { margin-bottom: 4px; }

.sitefoot .foot-note { color: #a7cdb2; font-size: 0.82rem; margin-top: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .home-grid { grid-template-columns: 1fr; gap: 30px; }
  .sidebar { border-top: 1px solid var(--rule); padding-top: 26px; }
  .masthead-inner { padding-top: 20px; padding-bottom: 14px; }
  .wordmark { font-size: 1.6rem; }
  .navrow { overflow-x: auto; flex-wrap: nowrap; }
  .navrow a { white-space: nowrap; padding: 10px 12px; }
  body { font-size: 16px; }
}
