/* Shared foundation for every cvilledata analysis: design tokens, reset,
   typography and page chrome (nav, hero, section, map frame, footer).
   Canonical copy lives here; each site's `make dist` copies it into its own
   assets/ and loads it BEFORE its own style.css, which holds only the
   components unique to that analysis. */

:root{
  --ink:#15191f; --ink2:#3b4250; --paper:#f6f4ef; --card:#fff;
  --accent:#e4572e; --accent-d:#c0431f; --teal:#1f7a6c; --line:#e3ddd2;
  --shadow:0 1px 3px rgba(20,24,31,.08),0 8px 24px rgba(20,24,31,.06);
  --mono:"SFMono-Regular",ui-monospace,"JetBrains Mono",Menlo,Consolas,monospace;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--paper);
  line-height:1.55;-webkit-font-smoothing:antialiased}
.wrap{max-width:1100px;margin:0 auto;padding:0 22px}
h1,h2,h3{line-height:1.12;letter-spacing:-.02em;font-weight:800}
a{color:var(--accent-d)}
code{font-family:var(--mono);font-size:.88em;background:#0d10150d;padding:.1em .35em;border-radius:4px}

/* nav — the one piece of chrome every page shares */
.sitenav{background:#0f1218;border-bottom:1px solid #262c35}
.sitenav .wrap{display:flex;align-items:center;gap:20px;height:46px}
.sitenav a{color:#9aa3b2;text-decoration:none;font-size:.82rem;font-weight:600}
.sitenav a:hover{color:#fff}
.sitenav a.brand{font-family:var(--mono);font-size:.74rem;letter-spacing:.16em;
  text-transform:uppercase;color:#fff;margin-right:auto}
.sitenav a[aria-current=page]{color:var(--accent)}

/* hero */
.hero{background:var(--ink);color:#f3efe7;padding:54px 0 40px;border-bottom:4px solid var(--accent)}
.kicker{font-family:var(--mono);font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;
  color:#9aa3b2;margin:0 0 14px}
.hero h1{font-size:clamp(1.8rem,4.4vw,3.1rem);margin:0 0 18px}
.hero h1 em{color:var(--accent);font-style:normal}
.lede{max-width:60ch;color:#cfd4dd;font-size:1.06rem;margin:0 0 28px}
.lede strong{color:#fff}
.lede-lead{margin-bottom:8px}
.lede-list{max-width:60ch;color:#cfd4dd;font-size:1.06rem;line-height:1.5;margin:0 0 28px;padding-left:22px}
.lede-list li{margin:4px 0}

/* sections + the map frame both analyses use */
section{padding:48px 0}
section h2{font-size:clamp(1.4rem,3vw,2rem);margin:0 0 8px}
section p.note{max-width:70ch;color:var(--ink2);margin:0 0 4px}
.mapsec{padding-bottom:0}
#map{height:520px;margin-top:22px;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);background:#dfe6ea}

/* card grid — both analyses list places as cards on an aerial */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;
  box-shadow:var(--shadow);display:flex;flex-direction:column}
.card .ph{aspect-ratio:3/2;background:#cdd4d8 center/cover no-repeat}
.card .body{padding:14px 15px 16px}
.card h3{font-size:1.02rem;margin:0 0 11px}

footer{padding:30px 0 60px;color:var(--ink2);font-size:.85rem}

@media(max-width:720px){#map{height:420px}}
@media(max-width:520px){
  .sitenav .wrap{gap:14px}
  .sitenav a{font-size:.76rem}
}

/* an analysis still being worked out */
.wip-pill{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;
  background:#f3d99a;color:#6d4a0d;font-size:.58rem;font-weight:700;letter-spacing:.07em;
  vertical-align:middle}
