/* The Home Water Report - warm consumer magazine styles */

:root {
  --paper: #fdfcf9;
  --card: #ffffff;
  --aqua: #0e7490;
  --aqua-deep: #155e75;
  --aqua-mist: #e6f3f6;
  --coral: #f97362;
  --coral-soft: #fdeae6;
  --ink: #263238;
  --ink-soft: #52616a;
  --hairline: #e7e2d8;
  --radius-lg: 26px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 40px -24px rgba(38, 50, 56, 0.35);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--aqua); text-decoration-color: rgba(14, 116, 144, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--coral); text-decoration-color: currentColor; }

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

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

.masthead {
  border-bottom: 3px double var(--hairline);
  padding-top: 28px;
  text-align: center;
}

.masthead-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 700;
}

.masthead-title {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.masthead-title:hover { color: var(--aqua-deep); }

.masthead-title .drop-dot { color: var(--coral); }

.masthead-sub {
  margin: 10px 0 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}

.mainnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  border-top: 1px solid var(--hairline);
  padding: 10px 8px;
}

.mainnav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.mainnav a:hover,
.mainnav a[aria-current="page"] {
  background: var(--aqua);
  color: #fff;
}

/* ---------- Hero feature card ---------- */

.hero { padding: 40px 0 12px; }

.hero-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-band {
  height: 190px;
  position: relative;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.28) 0 34px, transparent 35px),
    radial-gradient(circle at 26% 72%, rgba(255, 255, 255, 0.18) 0 22px, transparent 23px),
    radial-gradient(circle at 44% 24%, rgba(255, 255, 255, 0.22) 0 14px, transparent 15px),
    radial-gradient(circle at 62% 66%, rgba(253, 234, 230, 0.5) 0 30px, transparent 31px),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.25) 0 26px, transparent 27px),
    radial-gradient(circle at 92% 74%, rgba(255, 255, 255, 0.16) 0 40px, transparent 41px),
    radial-gradient(circle at 120% 120%, rgba(249, 115, 98, 0.35) 0 34%, transparent 35%),
    linear-gradient(118deg, #0b5a70, var(--aqua) 44%, #2496b4 78%, #67c3d6);
}

.hero-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 34px;
  background: var(--card);
  border-radius: 100% 100% 0 0 / 200% 200% 0 0;
}

.hero-body { padding: 18px 42px 40px; }

.hero-kicker,
.kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
}

.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.hero-title a { color: var(--ink); text-decoration: none; }
.hero-title a:hover { color: var(--aqua-deep); }

.hero-dek {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.meta time { font-weight: 700; color: var(--aqua-deep); }

.readlink {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}

.readlink:hover { color: var(--aqua-deep); border-color: var(--aqua-deep); }

/* ---------- Alternating editorial rows ---------- */

.rows { padding: 26px 0 8px; }

.rows-heading,
.picks-heading,
.faq-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  margin: 30px 0 6px;
}

.rows-heading::after,
.picks-heading::after,
.faq-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--aqua));
}

.feature-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: 34px 6px;
  border-bottom: 1px solid var(--hairline);
}

.feature-row:last-of-type { border-bottom: none; }

.feature-row:nth-of-type(even) .row-aside { order: -1; }

.row-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
}

.row-title a { color: var(--ink); text-decoration: none; }
.row-title a:hover { color: var(--aqua-deep); }

.row-dek { margin: 0 0 12px; color: var(--ink-soft); }

/* Pull-stat block */

.pullstat {
  margin: 0;
  padding: 26px 26px 22px;
  border-radius: var(--radius-md);
  background: var(--aqua-mist);
  border: 1px solid #cfe6ec;
  text-align: center;
}

.stat-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--aqua);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.pullstat.coral { background: var(--coral-soft); border-color: #f9d2ca; }
.pullstat.coral .stat-figure { color: var(--coral); }

/* Checklist block */

.checklist {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}

.checklist h3,
.checklist h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

.checklist ul { margin: 0; padding: 0; list-style: none; }

.checklist li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--hairline);
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpath%20d='M2%208.5l4%204L14%204'%20fill='none'%20stroke='black'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpath%20d='M2%208.5l4%204L14%204'%20fill='none'%20stroke='black'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Editor's picks ---------- */

.picks { padding: 12px 0 30px; }

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.pick-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.pick-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--coral);
  line-height: 1;
}

.pick-card h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.25;
}

.pick-card h3 a { color: var(--ink); text-decoration: none; }
.pick-card h3 a:hover { color: var(--aqua-deep); }

.pick-card p { margin: 0 0 14px; font-size: 0.93rem; color: var(--ink-soft); flex: 1; }

/* ---------- Desk digest (small list) ---------- */

.digest { padding: 0 0 34px; }

.digest ul { list-style: none; margin: 18px 0 0; padding: 0; }

.digest li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding: 12px 4px;
  border-top: 1px solid var(--hairline);
}

.digest .kicker { margin: 0; min-width: 110px; }

.digest a { font-weight: 700; color: var(--ink); text-decoration: none; }
.digest a:hover { color: var(--aqua-deep); }

/* ---------- FAQ accordion ---------- */

.faq { padding: 6px 0 50px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  margin-top: 14px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aqua-mist);
  color: var(--aqua);
  font-family: var(--font-body);
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "-";
  background: var(--coral-soft);
  color: var(--coral);
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--ink-soft);
}

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

.section-head { padding: 44px 0 10px; text-align: center; }

.section-head h1 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-head p { max-width: 60ch; margin: 0 auto; color: var(--ink-soft); }

.section-list { padding: 20px 0 50px; }

.section-list article {
  padding: 26px 6px;
  border-bottom: 1px solid var(--hairline);
}

.section-list article:last-of-type { border-bottom: none; }

.section-list h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.22;
}

.section-list h2 a { color: var(--ink); text-decoration: none; }
.section-list h2 a:hover { color: var(--aqua-deep); }

.section-list p { margin: 0 0 10px; color: var(--ink-soft); }

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

.article-head {
  max-width: 780px;
  margin: 0 auto;
  padding: 46px 22px 8px;
  text-align: center;
}

.article-head h1 {
  margin: 6px 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.1;
}

.article-head .dek {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
}

.article-head .meta { display: block; padding-bottom: 22px; border-bottom: 3px double var(--hairline); }

.article-body {
  max-width: 690px;
  margin: 0 auto;
  padding: 26px 22px 40px;
}

.article-body p { margin: 0 0 1.2em; }

.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2em;
  line-height: 0.85;
  float: left;
  padding: 4px 10px 0 0;
  color: var(--aqua);
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  margin: 1.6em 0 0.6em;
  line-height: 1.25;
}

.article-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.4em 0 0.5em;
}

.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin-bottom: 0.4em; }

.article-body .pullstat { margin: 1.8em 0; }

.article-body .checklist { margin: 1.8em 0; box-shadow: none; background: #fffdf8; }

.callout {
  margin: 1.8em 0;
  padding: 16px 20px;
  background: var(--aqua-mist);
  border-left: 5px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.98rem;
}

.callout strong { color: var(--aqua-deep); }

.endmark { color: var(--coral); font-weight: 700; }

.article-foot {
  max-width: 690px;
  margin: 0 auto 60px;
  padding: 18px 22px;
}

.article-foot .backlink {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: var(--aqua-deep);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--card);
}

.article-foot .backlink:hover { background: var(--aqua-mist); }

/* ---------- Footer ---------- */

.sitefooter {
  border-top: 3px double var(--hairline);
  background: #f7f4ec;
  padding: 40px 0 34px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.sitefooter p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.95rem; }

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 14px 0 18px;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aqua-deep);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--coral); }

.footer-note { font-size: 0.8rem !important; color: #7d8a92 !important; max-width: 60ch; margin: 0 auto !important; }

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

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 20px; padding: 28px 2px; }
  .feature-row:nth-of-type(even) .row-aside { order: 0; }
  .picks-grid { grid-template-columns: 1fr; }
  .hero-body { padding: 12px 26px 32px; }
  .hero-band { height: 150px; }
  .digest .kicker { min-width: 0; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .mainnav a { padding: 5px 10px; font-size: 0.78rem; }
  .hero { padding-top: 26px; }
}
