/* Central Valley Water Map landing page (from the design pass in design/landing_v2, 2026-10-30).
   Tokens: the neutrals and link colour are the first landing page's; the two map accents are each app's own --accent
   (groundwater app/static/style.css #2a6f4f; surfacewater app/static/style.css #236bc4, both checked >= 4.5:1 under
   white text in their accessibility passes). The header strip reuses the switcher's classes (snippet/cvwa-switcher.css)
   so the family mark looks the same here and inside both maps. No external fonts or scripts. */
:root {
  --bg: #f6f7f5;
  --band: #eceeea;
  --card: #ffffff;
  --text: #1d2420;
  --muted: #56615a;
  --line: #dfe3e0;
  --link: #1f5f8b;
  --gw: #2a6f4f;
  --gw-soft: #dcefe4;
  --sw: #236bc4;
  --sw-soft: #e3eefb;
  --on-accent: #ffffff;
  --focus: #1f5f8b;
  --max: 1040px;
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a17;
    --band: #1b211d;
    --card: #1e2521;
    --text: #e6ebe7;
    --muted: #a5b0a9;
    --line: #34403a;
    --link: #8cc3ea;
    --gw: #7fcfa6;
    --gw-soft: #22352c;
    --sw: #8cc3ea;
    --sw-soft: #1c2f48;
    --on-accent: #10181a;
    --focus: #8cc3ea;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
a { color: var(--link); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 650; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 18px 0 6px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 4px; padding-left: 20px; }
li { margin: 0 0 4px; }
.small { font-size: 0.9rem; color: var(--muted); }

/* skip link */
.skip {
  position: absolute; left: 8px; top: -48px;
  padding: 8px 12px; background: var(--card); color: var(--text); border: 2px solid var(--focus); border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 8px; }

/* header strip: the same look as the switcher each map carries */
.bar { border-bottom: 1px solid var(--line); background: var(--card); }
.bar-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 16px; min-height: 44px; padding-top: 10px; padding-bottom: 10px;
}
.cvwa-mark { font-weight: 600; letter-spacing: 0.02em; color: inherit; text-decoration: none; font-size: 0.95rem; }
.cvwa-mark:hover, .cvwa-mark:focus-visible { text-decoration: underline; }
.cvwa-maps { font-size: 0.9rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.cvwa-maps a { color: var(--text); text-decoration: none; }
.cvwa-maps a:hover, .cvwa-maps a:focus-visible { text-decoration: underline; }

/* intro band */
.hero { background: var(--band); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.hero h1 { margin-bottom: 14px; }
.lead { font-size: 1.15rem; max-width: 46em; margin-bottom: 8px; }
.lead-small { color: var(--muted); margin: 0; }

/* the cards: as many 320 px+ columns as fit, so a third map's card drops in without a new rule (three across at
   the full 1040 px width, two from about 700 px, one on a phone); empty tracks collapse, so two cards fill the row */
.maps { padding: 36px 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  border-top: 5px solid var(--accent, var(--line));
}
.card-gw { --accent: var(--gw); --accent-soft: var(--gw-soft); }
.card-sw { --accent: var(--sw); --accent-soft: var(--sw-soft); }
.thumb { display: block; background: var(--band); border-bottom: 1px solid var(--line); }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.kicker {
  display: inline-block; align-self: flex-start;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text); background: var(--accent-soft); border-radius: 4px; padding: 2px 8px; margin: 0 0 10px;
}
.card h2 { margin-bottom: 10px; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover, .card h2 a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.latest { font-size: 0.92rem; color: var(--muted); margin: -4px 0 8px; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.links li { margin: 0; }
.cta { margin: auto 0 0; padding-top: 20px; }
.button {
  display: inline-block; min-height: 44px; line-height: 1.3; padding: 11px 18px;
  background: var(--accent); color: var(--on-accent); border-radius: 6px; text-decoration: none; font-weight: 600;
}
.button:hover { filter: brightness(0.92); text-decoration: underline; }

/* citation band */
.cite { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; padding: 32px 0 24px; }
.cite h2 { margin-bottom: 12px; }
.cite p { max-width: 70em; }
.citations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px 24px; margin: 16px 0 12px; }
.citations div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.citations dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.citations dd { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }

footer { padding: 24px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer p { max-width: 70em; }

@media (max-width: 400px) {
  .hero { padding: 28px 0 24px; }
  .card-body { padding: 16px 16px 18px; }
}
@media print {
  .bar, .skip { display: none; }
  .card { break-inside: avoid; }
}
