@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine-950: #102e28;
  --pine-800: #143f36;
  --pine-700: #0f5c4c;
  --pine-600: #187463;
  --cream: #f3eee4;
  --cream-2: #e6ddce;
  --card: #fffdf8;
  --ink: #1b2430;
  --muted: #4d5966;
  --clay: #8c3a2b;
  --line: #ddd3c3;
  --shadow: 0 16px 40px rgba(28, 36, 32, 0.06);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Public Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 10% -10%, #efe4cf 0%, transparent 55%),
    var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--pine-700); }
a:hover { color: var(--clay); }
:focus-visible {
  outline: 3px solid var(--pine-600);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 0.5rem; }

.site-header {
  background: var(--pine-950);
  color: #f6f1e7;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.25rem;
}
.brand {
  color: #f6f1e7;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.nav a, .drawer a {
  color: #f6f1e7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover, .drawer a:hover { color: #f0c7a2; }
.drawer { display: none; }
.drawer summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::marker { content: ""; }
.drawer nav { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 0.7rem; }
.banner {
  margin: 0;
  background: var(--clay);
  color: #fff8f4;
  padding: 0.45rem 1.25rem;
  font-size: 0.92rem;
}
.banner a { color: #fff; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
main { padding: 1.5rem 0 3rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); margin: 0.2rem 0 0.8rem; }
h2 { font-size: clamp(1.5rem, 2vw, 2rem); }
.eyebrow {
  margin: 0;
  color: var(--pine-700);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lede { font-size: 1.15rem; max-width: 42rem; color: var(--ink); }
.muted { color: var(--muted); }
.note { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.92rem; }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.panel, .org, .cause-card, .stat, .sponsor-slot, .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.panel { padding: 1.1rem 1.15rem 1.2rem; }
.search { display: grid; gap: 0.7rem; margin-top: 1rem; }
.search-row { display: flex; gap: 0.6rem; }
label { font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9bfae;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
textarea { min-height: 8rem; resize: vertical; }
button, .button {
  display: inline-block;
  background: var(--pine-700);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--pine-800); color: white; }
button.ghost, .button.ghost {
  background: transparent;
  color: var(--pine-800);
  border: 1px solid var(--line);
}
.results { display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.results a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 0.5rem 0 1.6rem;
}
.stat { padding: 0.9rem 1rem; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.cause-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.cause-card {
  padding: 0.95rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
}
.cause-card:hover { border-color: var(--pine-600); }
.cause-card strong { display: block; font-size: 1.05rem; }
.cause-card span { color: var(--muted); }

.state-grid {
  columns: 4 11rem;
  margin: 0.4rem 0 1.5rem;
  padding: 0;
}
.state-grid a {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  break-inside: avoid;
  padding: 0.28rem 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.state-grid a:hover { border-bottom-color: var(--line); }
.state-grid b { font-weight: 600; }

.crumbs { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.4rem; }
.crumbs a { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: end; margin: 1rem 0; }
.filters button[aria-pressed="true"] { background: var(--pine-800); }
.zip-filter { display: grid; gap: 0.25rem; min-width: 7rem; }
.zip-filter input { padding: 0.55rem 0.7rem; }
.letter { margin: 1.3rem 0 0.2rem; font-size: 1.3rem; }
.city-index { list-style: none; padding: 0; margin: 0; columns: 3 14rem; }
.city-index a {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.22rem 0;
}
.org { padding: 1.05rem 1.15rem 1.15rem; margin: 0 0 0.85rem; }
.org h2 { margin: 0.15rem 0 0.35rem; font-size: 1.55rem; }
.org h2 a { color: inherit; text-decoration: none; }
.org h2 a:hover { color: var(--pine-700); }
.legal { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.92rem; }
.facts { display: grid; grid-template-columns: 11rem 1fr; gap: 0.35rem 0.8rem; margin: 0; }
.facts dt { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  background: #e7f3ee;
  color: var(--pine-800);
  font-size: 0.82rem;
  font-weight: 600;
}
body.is-profile .filters,
body.is-profile .city-intro .lede,
body.is-profile .city-intro details,
body.is-profile #filter-status,
body.is-profile .org h2 { display: none; }
body.is-profile .org {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0.2rem 0 0;
}

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.8rem; }
.prose li { margin: 0.35rem 0; }
.callout { padding: 0.9rem 1rem; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.form-grid { display: grid; gap: 0.8rem; max-width: 40rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 0.25rem; }
.ticket { padding: 1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.steps article { padding: 0.9rem 1rem; }

.site-footer {
  background: var(--pine-950);
  color: #f6f1e7;
  padding: 1.5rem 0 2rem;
}
.site-footer a { color: #f6f1e7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.sponsor-slot {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  padding: 0.8rem 0.9rem;
}
.site-footer .sponsor-slot { color: #f6f1e7; }
.site-footer .eyebrow { color: #f0c7a2; }
details summary { cursor: pointer; font-weight: 600; }

@media (max-width: 860px) {
  .hero, .stats, .cause-grid, .card-grid, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .state-grid, .city-index { columns: 2; }
  .facts { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .facts div, .facts dt { margin-top: 0.45rem; }
}
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; }
  .nav.desktop { display: none; }
  .drawer { display: block; flex: 1 1 auto; margin-left: auto; }
  .drawer[open] { flex: 1 1 100%; }
  .drawer summary { text-align: right; }
  .hero, .stats, .cause-grid, .card-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .search-row button { width: 100%; }
  h1 { font-size: 2.15rem; }
  .state-grid, .city-index { columns: 1; }
}
