/* One Mesquite - one stylesheet, no framework, no web fonts (system stacks). Warm desert palette; every text colour pair
   checked to WCAG AA (ink 14.6:1, muted 7.0:1, clay on white 6.0:1, sky 6.6:1, sage 5.5:1 on the page background). */
:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --sand: #f1e6d3;
  --sand-2: #e9dcc5;
  --line: #e2d5bf;
  --ink: #2a211b;
  --muted: #5f5247;
  --clay: #a6461f;
  --clay-dark: #8f3b19;
  --sky: #1f5f7a;
  --sage: #4f6b4a;
  --sun: #e3a23b;
  --night: #3a2c22;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 33, 27, .06), 0 6px 18px rgba(42, 33, 27, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); text-underline-offset: .15em; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand:hover { color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 6px; font: 600 1rem var(--sans); color: var(--ink); background: var(--sand); border: 1px solid var(--line); border-radius: 10px; padding: .5em .8em; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: block; padding: .5em .7em; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--sand); color: var(--clay-dark); }
.site-nav .nav-cta a { background: var(--clay); color: #fff; }
.site-nav .nav-cta a:hover { background: var(--clay-dark); color: #fff; }
@media (max-width: 900px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; padding: 0 0 12px; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .7em .8em; font-size: 1.05rem; }
  .head-row { flex-wrap: wrap; }
}

/* Sections */
.section { padding: 48px 0; }
.section-tight { padding: 32px 0; }
.band { background: var(--sand); }
.band-dark { background: var(--night); color: #fbf3e6; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: #ffd9a8; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--sage); margin-bottom: .4em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.page-head { padding: 40px 0 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .8em; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero figure { margin: 0; }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero figcaption { font-size: .85rem; color: var(--muted); margin-top: .5em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 28px; gap: 20px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: 700 1rem var(--sans); padding: .75em 1.15em; border-radius: 10px; text-decoration: none; border: 2px solid transparent; cursor: pointer; min-height: 44px; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: .8em; }
.card .more { margin-top: auto; font-weight: 700; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover h3 { color: var(--clay-dark); }
.icon { width: 36px; height: 36px; color: var(--clay); margin-bottom: 10px; }

/* Events */
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 12px; padding: 14px 16px; }
.ev[data-source="city"] { border-left-color: var(--sky); }
.ev[data-source="library"] { border-left-color: var(--sage); }
.ev[data-source="visit"] { border-left-color: var(--clay); }
.ev-title { font-family: var(--sans); font-size: 1.08rem; margin: 0 0 .25em; }
.ev-title a { color: var(--ink); text-decoration: none; }
.ev-title a:hover { color: var(--clay-dark); text-decoration: underline; }
.ev-day { font-weight: 700; color: var(--clay-dark); font-size: .92rem; margin: 0 0 .2em; }
.ev-when, .ev-where, .ev-src { margin: 0; font-size: .95rem; color: var(--muted); }
.ev-when { color: var(--ink); font-weight: 600; }
.ev-src { font-size: .85rem; margin-top: .3em; }
.ev-src a { color: var(--muted); }
.ev-daygroup { margin-bottom: 26px; }
.ev-dayhead { font-size: 1.25rem; position: sticky; top: 0; background: var(--bg); padding: 8px 0; margin: 0 0 8px; z-index: 1; }
.ev-week { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.filters { display: none; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.js .filters { display: flex; }
.filters legend { font-weight: 700; margin-bottom: 6px; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .45em .85em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 .95rem var(--sans); cursor: pointer; color: var(--ink); min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.dot-city { background: var(--sky) !important; } .dot-library { background: var(--sage) !important; } .dot-visit { background: var(--clay) !important; }
.ev-updated { font-weight: 600; }
.src-status { margin: 0 0 1em; }
.empty { color: var(--muted); font-style: italic; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.ev-aside { position: sticky; top: 16px; }
@media (max-width: 900px) { .ev-layout { grid-template-columns: 1fr; } .ev-aside { position: static; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h2 { font-size: 1.2rem; }
.panel ul { margin: 0; padding-left: 1.1em; }
.panel li { margin-bottom: .45em; }

/* Regions (trails) */
.region { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.region:first-of-type { border-top: 0; }
.region-tag { font-family: var(--serif); font-size: 1.05rem; color: var(--sage); font-weight: 700; }
.region ul { padding-left: 1.1em; }
.region li { margin-bottom: .5em; }
@media (max-width: 760px) { .region { grid-template-columns: 1fr; gap: 6px; } }
.safety { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.safety li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.safety strong { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: .2em; }
.numbers { list-style: none; padding: 0; margin: 0; }
.numbers li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.band .numbers li, .panel .numbers li { border-bottom-color: var(--line); }
.numbers a[href^="tel:"] { font-weight: 700; white-space: nowrap; }

/* Nonprofits */
.npo-group { margin-bottom: 36px; }
.npo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.npo h3 { margin-bottom: .2em; }
.npo .town { font-size: .9rem; color: var(--sage); font-weight: 700; margin-bottom: .4em; }
.npo p { margin-bottom: .7em; }
.npo .links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .6em; }
.npo .links a { display: inline-block; padding: .4em .8em; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .95rem; background: var(--bg); }
.npo .links a.give { background: var(--clay); color: #fff; border-color: var(--clay); }
.npo .links a.give:hover { background: var(--clay-dark); }
.npo .verified { font-size: .82rem; color: var(--muted); margin: 0; }
.npo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }

/* Resources */
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.res-grid .panel h2 { font-size: 1.15rem; }
.res-grid address { font-style: normal; }
.emergency { background: #fff4ec; border: 2px solid var(--clay); }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.band-dark .form-card { color: var(--ink); }
.band-dark .form-card h3 { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full, .full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field label span { color: var(--clay-dark); }
.field .hint { font-size: .85rem; color: var(--muted); }
input, select, textarea { font: 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid #a8987f; border-radius: 8px; padding: .65em .75em; width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: .8em 0 0; font-weight: 600; min-height: 1.5em; }
.form-note.err { color: #b3261e; }
.form-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .form-grid, .form-split { grid-template-columns: 1fr; } }

/* Prose */
.prose { max-width: 70ch; }
.prose li { margin-bottom: .4em; }
.note { font-size: .92rem; color: var(--muted); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--night); color: #f3e7d6; padding: 40px 0 28px; margin-top: 0; }
.site-footer a { color: #ffd9a8; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-h { font-family: var(--serif); font-weight: 700; color: #fff; margin-bottom: .5em; font-size: 1.05rem; }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { margin-bottom: .35em; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 28px; padding-top: 18px; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; }
.credit { display: block; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .filters, form { display: none; } body { background: #fff; } }
