/* Layout: one 1120px column, river-stone neutrals, serif display for town names, mono for data labels */
:root {
  --bg: #f2f3ef;
  --surface: #ffffff;
  --ink: #1c2826;
  --muted: #5a6763;
  --line: #d5d9d2;
  --river: #2e5a60;
  --river-ink: #ffffff;
  --brass: #9a7632;
  --tint: #e3e9e5;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141b1a; --surface: #1c2523; --ink: #e8ece8; --muted: #a3b0ab;
    --line: #2f3b38; --river: #7fb3b7; --river-ink: #10201f; --brass: #d3ab5f; --tint: #22302d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141b1a; --surface: #1c2523; --ink: #e8ece8; --muted: #a3b0ab;
  --line: #2f3b38; --river: #7fb3b7; --river-ink: #10201f; --brass: #d3ab5f; --tint: #22302d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--river); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 2px;
}

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; }
.brand span { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--river); }
.nav a[aria-current="page"] { color: var(--river); font-weight: 600; }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 4px;
  background: var(--river); color: var(--river-ink); text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--river); cursor: pointer; font-family: var(--body);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--river); }
.nav .btn { color: var(--river-ink); padding: 8px 14px; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; max-width: 65ch; }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.lede { font-size: 1.15rem; color: var(--muted); }

section { padding-block: 72px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

/* Hero */
.hero { padding-block: 72px 56px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.hero-grid > * { min-width: 0; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.hero-card dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.hero-card dd { margin: 0; }

/* Towns */
.towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.town { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.town .facts { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 4px; }
.town .facts li { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.town .facts b { color: var(--ink); font-weight: 500; }
.town p { color: var(--muted); font-size: .97rem; }

/* Services */
.band { background: var(--tint); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.services > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.services ul { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* About */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.about > * { min-width: 0; }
.photo-slot {
  aspect-ratio: 4 / 5; max-width: 100%; border: 1px dashed var(--muted); border-radius: 6px;
  display: grid; place-items: center; text-align: center; color: var(--muted);
  font-family: var(--mono); font-size: .78rem; padding: 16px; background: var(--surface);
}

.headshot { width: 100%; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.contact-card { display: flex; gap: 16px; align-items: center; margin-top: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.contact-card img { width: 80px; height: 100px; object-fit: cover; border-radius: 4px; flex: none; }
.contact-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .95rem; }
.contact-card strong { font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.contact-card > div > span:first-of-type { color: var(--muted); margin-bottom: 4px; }

/* Search CTA */
.search-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 40px; }

/* Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-grid > * { min-width: 0; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
input, select, textarea {
  font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--ink); width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; font-size: .95rem; color: var(--river); }

/* Long-form town guide */
.guide { display: flex; flex-direction: column; gap: 56px; }
.guide article { display: grid; grid-template-columns: 240px 1fr; gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.guide article > * { min-width: 0; }
.guide aside { display: flex; flex-direction: column; gap: 8px; }
.guide aside div { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.guide aside b { display: block; color: var(--ink); font-family: var(--body); font-size: .95rem; font-weight: 600; }
.checklist { counter-reset: step; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.checklist li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--brass); padding-top: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: .85rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer .wrap > * { min-width: 0; }
.site-footer p { max-width: none; }
.placeholder { background: color-mix(in srgb, var(--brass) 18%, transparent); padding: 0 4px; border-radius: 2px; }

@media (max-width: 860px) {
  .hero-grid, .about, .contact-grid, .services, .site-footer .wrap, .guide article { grid-template-columns: 1fr; }
  .towns { grid-template-columns: 1fr 1fr; }
  .about .photo-slot, .about .headshot { max-width: 300px; }
}
@media (max-width: 560px) {
  .towns { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  section { padding-block: 52px; }
  .nav { gap: 6px 14px; }
}
