/* =========================================================================
   Lake Township, Roscommon County, MI — concept redesign
   Design world: "township gazette on the lake" — Besley (Clarendon slab /
   Houghton Lake Resorter heritage) + Atkinson Hyperlegible (accessibility-first).
   Palette: Houghton Lake teal + warm birch + golden-hour amber.
   Built for an older, seasonal, rural-broadband audience: 18px base, big tap
   targets, high contrast, calm place-rooted restraint. WCAG 2.2 AA is the
   visible design language. No runtime deps; no shipped SVG.
   ========================================================================= */

/* ---- Fonts (self-hosted woff2, SIL OFL) ---- */
@font-face {
  font-family: "Besley";
  src: url("/lake-township-mi/assets/fonts/besley-var.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("/lake-township-mi/assets/fonts/besley-italic-var.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/lake-township-mi/assets/fonts/atkinson-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/lake-township-mi/assets/fonts/atkinson-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/lake-township-mi/assets/fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --ink: #14202b;          /* text */
  --ink-soft: #3a4a55;     /* secondary text */
  --lake: #15697a;         /* signature: Houghton Lake teal */
  --lake-deep: #0d4a59;    /* deep water */
  --lake-darker: #093743;
  --shallows: #2f8f99;     /* shallow cyan accent */
  --focus: #1a8fa3;        /* focus ring */
  --birch: #f6f1e7;        /* page base, warm birch paper */
  --birch-dim: #efe8d9;
  --sand: #ece3d2;         /* panel */
  --sand-line: #ddd0b8;    /* hairline on sand */
  --paper: #fffdf8;        /* cards */
  --amber: #b9741f;        /* golden-hour pop — borders/accents/dark-bg */
  --amber-text: #7c4d12;   /* dark amber for SMALL TEXT on light (AA >= 4.5:1) */
  --amber-bright: #d79235; /* decorative only */
  --marsh: #4f6a3a;        /* marsh-grass green, sparing */
  --line: #d9cdb6;         /* hairlines */
  --line-soft: #e7ddc9;
  --shadow: 16px 22px 0 rgba(13, 74, 89, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --display: "Besley", Georgia, "Times New Roman", serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--birch);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--lake); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; color: var(--ink); margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 700; }

/* ---- Focus + skip link (accessibility-first) ---- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--lake-deep); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700;
  transition: top 0.16s ease;
}
.skip-link:focus { top: 0; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
main { display: block; }
section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.section-tight { padding: clamp(1.4rem, 3vw, 2.2rem) 0; }

/* ---- Proto banner ---- */
.proto-banner {
  background: repeating-linear-gradient(135deg, var(--lake-darker), var(--lake-darker) 14px, #0b323d 14px, #0b323d 28px);
  color: #eaf6f4; font-size: 0.86rem; text-align: center;
  padding: 0.5rem 1rem; letter-spacing: 0.01em;
}
.proto-banner strong { color: #ffe7bf; }
.proto-banner a { color: #ffe7bf; }

/* ---- Skinny util bar ---- */
.util-bar { background: var(--lake-darker); color: #d6ece9; font-size: 0.9rem; }
.util-bar .wrap { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; }
.util-bar a { color: #eaf6f4; text-decoration: none; }
.util-bar a:hover { text-decoration: underline; }
.util-bar .util-left { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.util-bar .util-right { display: flex; gap: 1rem; align-items: center; }

/* ---- Masthead / brand ---- */
.masthead { background: var(--birch); border-bottom: 1px solid var(--line); position: relative; }
.masthead::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--lake-deep), var(--lake) 45%, var(--amber)); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 1.05rem 0 1.1rem; }
.brand-lockup { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); }
.brand-seal {
  width: 54px; height: 54px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, var(--shallows), var(--lake) 45%, var(--lake-deep) 100%);
  position: relative; box-shadow: inset 0 0 0 3px var(--birch), inset 0 0 0 4px var(--lake-deep);
  overflow: hidden;
}
/* bathymetric rings inside seal — CSS only, geometric */
.brand-seal::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 62%, transparent 0 4px, rgba(255,255,255,0.30) 4px 5px);
}
.brand-seal::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, rgba(11,50,61,0.0), rgba(11,50,61,0.45));
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .town { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.62rem; color: var(--lake-deep); letter-spacing: -0.01em; }
.brand-name .county { font-family: var(--text); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.masthead-search { flex: 1; max-width: 430px; }
.mobile-header-search { display: none; }
.menu-btn {
  display: none; align-items: center; gap: 0.5rem; background: var(--lake-deep); color: #fff;
  border: none; border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-family: var(--text);
  font-weight: 700; font-size: 1rem; cursor: pointer; min-height: 48px;
}
.menu-btn:hover { background: var(--lake); }

/* ---- Search box (shared) ---- */
[data-search-box] { position: relative; }
[data-search-box] form { display: flex; gap: 0; align-items: stretch; }
[data-search-box] input[type="search"] {
  flex: 1; font-family: var(--text); font-size: 1.02rem; padding: 0.78rem 0.95rem;
  border: 2px solid var(--lake-deep); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--paper); color: var(--ink); min-height: 48px;
}
[data-search-box] input[type="search"]::placeholder { color: #6a7882; }
[data-search-box] button[type="submit"] {
  background: var(--lake-deep); color: #fff; border: 2px solid var(--lake-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 1.15rem; font-family: var(--text);
  font-weight: 700; font-size: 1rem; cursor: pointer; min-height: 48px;
}
[data-search-box] button[type="submit"]:hover { background: var(--lake); border-color: var(--lake); }
.search-suggest {
  list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: calc(100% + 5px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 16px 34px rgba(13,74,89,0.16); z-index: 60; overflow: hidden; display: none;
}
.search-suggest.open { display: block; }
.search-suggest li { margin: 0; }
.search-suggest a, .search-suggest button {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--text); font-size: 0.98rem; color: var(--ink); padding: 0.62rem 0.9rem; line-height: 1.3;
  border-bottom: 1px solid var(--line-soft);
}
.search-suggest a:hover, .search-suggest button:hover,
.search-suggest [aria-selected="true"] { background: var(--birch-dim); color: var(--lake-deep); }
.search-suggest .s-kind { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber-text); font-weight: 700; }

/* ---- Primary nav ---- */
.primary-nav { background: var(--lake-deep); }
.primary-nav .wrap { display: flex; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; width: 100%; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block; color: #eaf6f4; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 0.95rem 1.05rem; min-height: 48px; border-bottom: 4px solid transparent;
}
.primary-nav a:hover { background: var(--lake-darker); color: #fff; }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--amber-bright); color: #fff; background: var(--lake-darker); }

/* ---- Alert banner (amber, never red) ---- */
.alert {
  background: #fbf2df; border: 1px solid #e9c986; border-left: 6px solid var(--amber);
  border-radius: var(--radius-sm); padding: 0.95rem 1.1rem; display: flex; gap: 0.85rem; align-items: flex-start;
  margin: 1.5rem 0;
}
.alert .lucide { color: var(--amber); flex: none; margin-top: 2px; }
.alert .alert-body { flex: 1; }
.alert h2, .alert h3 { margin: 0 0 0.2rem; font-size: 1.08rem; color: #7a4d12; }
.alert p { margin: 0; color: #5d4314; font-size: 0.98rem; }
.alert button.alert-x { background: none; border: none; color: #7a4d12; cursor: pointer; font-size: 1.2rem; padding: 0.2rem 0.4rem; min-height: 40px; min-width: 40px; }

/* ---- Hero ---- */
.hero { position: relative; background: var(--lake-deep); color: #eaf6f4; overflow: hidden; }
.hero::before { /* bathymetric water field */
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background:
    radial-gradient(120% 90% at 78% 120%, rgba(47,143,153,0.55), transparent 60%),
    repeating-radial-gradient(circle at 80% 116%, rgba(234,246,244,0.10) 0 16px, transparent 16px 34px);
  pointer-events: none;
}
.hero-grain { position: absolute; inset: 0; opacity: 0.10; mix-blend-mode: overlay; pointer-events: none; background-size: cover; background-position: center; }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(2.4rem, 6vw, 4rem); padding-bottom: clamp(2.4rem, 6vw, 4rem); }
.hero-kicker { font-family: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.82rem; color: #ffd9a1; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.hero h1 { color: #ffffff; max-width: 16ch; margin-bottom: 0.6rem; }
.hero h1 em { font-style: italic; color: #bfe6e0; }
.hero-lede { font-size: 1.18rem; max-width: 46ch; color: #d7ece9; margin-bottom: 1.5rem; }
.hero-search { max-width: 560px; }
.hero-search [data-search-box] input[type="search"] { border-color: var(--paper); font-size: 1.08rem; padding: 0.95rem 1.1rem; }
.hero-search [data-search-box] button[type="submit"] { background: var(--amber-bright); border-color: var(--amber-bright); color: var(--ink); }
.hero-search [data-search-box] button[type="submit"]:hover { background: #c8841d; border-color: #c8841d; color: var(--ink); }
.hero-ask-hint { margin-top: 0.85rem; font-size: 0.98rem; color: #cfe7e3; }
.hero-ask-hint a { color: #ffe7bf; font-weight: 700; }

/* ---- "How Do I?" task tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 1rem; }
.tile {
  display: flex; flex-direction: column; gap: 0.55rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.25rem; text-decoration: none; color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(13,74,89,0.10); border-color: var(--lake); }
.tile .tile-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--birch-dim); color: var(--lake-deep); display: flex; align-items: center; justify-content: center; }
.tile .tile-ic .lucide { width: 26px; height: 26px; }
.tile .t-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: var(--lake-deep); }
.tile .t-desc { font-size: 0.95rem; color: var(--ink-soft); }

/* ---- Section heading w/ newspaper kicker ---- */
.sec-head { margin-bottom: 1.6rem; }
.kicker { font-family: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; color: var(--amber-text); display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber-text); display: inline-block; }
.sec-head p.sec-lede { color: var(--ink-soft); max-width: 60ch; font-size: 1.06rem; }
.rule-news { border: none; border-top: 2px solid var(--ink); position: relative; margin: 0 0 0.2rem; }
.rule-news::after { content: ""; display: block; border-top: 1px solid var(--ink); margin-top: 3px; }

/* ---- Generic cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.35rem; }
.card h3 { color: var(--lake-deep); margin-bottom: 0.35rem; }
.card .card-meta { font-size: 0.9rem; color: var(--ink-soft); }
.card ul { padding-left: 1.1rem; margin: 0.5rem 0 0; }
.card li { margin-bottom: 0.3rem; }

/* department / official cards */
.dept { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.dept h3 { color: var(--lake-deep); margin-bottom: 0.15rem; }
.dept .role { font-weight: 700; color: var(--amber-text); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.dept .contact-line { display: flex; gap: 0.5rem; align-items: center; font-size: 0.97rem; margin-bottom: 0.25rem; color: var(--ink-soft); }
.dept .contact-line .lucide { width: 18px; height: 18px; color: var(--lake); flex: none; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--lake-deep); color: #fff; border: 2px solid var(--lake-deep); border-radius: var(--radius-sm); padding: 0.7rem 1.2rem; font-family: var(--text); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--lake); border-color: var(--lake); color: #fff; }
.btn-ghost { background: transparent; color: var(--lake-deep); }
.btn-ghost:hover { background: var(--birch-dim); color: var(--lake-deep); }
.btn-amber { background: var(--amber-bright); border-color: var(--amber-bright); color: var(--ink); }
.btn-amber:hover { background: #c8841d; border-color: #c8841d; color: var(--ink); }

/* ---- chips / tags ---- */
.chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--sand); border: 1px solid var(--sand-line); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }

/* ---- Lists: meetings / docs ---- */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; gap: 0.85rem; align-items: center; padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line-soft); }
.doc-list li .lucide { color: var(--lake); flex: none; }
.doc-list .d-title { font-weight: 700; color: var(--lake-deep); }
.doc-list .d-meta { font-size: 0.88rem; color: var(--ink-soft); }
.doc-list a { text-decoration: none; }
.doc-list a:hover .d-title { text-decoration: underline; }

/* filter input */
.filter-row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filter-row input[type="search"], .filter-row select {
  font-family: var(--text); font-size: 1rem; padding: 0.6rem 0.85rem; border: 2px solid var(--line);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); min-height: 46px;
}
.filter-row input[type="search"]:focus, .filter-row select:focus { border-color: var(--lake); }
.filter-count { font-size: 0.92rem; color: var(--ink-soft); }

/* ---- Ask surface ---- */
.ask-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); }
.ask-form { display: flex; gap: 0; align-items: stretch; }
.ask-form textarea {
  flex: 1; font-family: var(--text); font-size: 1.05rem; padding: 0.85rem 1rem; border: 2px solid var(--lake-deep);
  border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); resize: vertical; min-height: 52px; color: var(--ink); background: var(--paper);
}
.ask-form button { background: var(--lake-deep); color: #fff; border: 2px solid var(--lake-deep); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 1.3rem; font-family: var(--text); font-weight: 700; cursor: pointer; }
.ask-form button:hover { background: var(--lake); border-color: var(--lake); }
.ask-suggestions { display: flex; gap: 0.55rem; flex-wrap: wrap; margin: 0.9rem 0 0; }
.ask-suggestions button { background: var(--birch-dim); border: 1px solid var(--line); color: var(--lake-deep); border-radius: 999px; padding: 0.45rem 0.95rem; font-family: var(--text); font-size: 0.92rem; cursor: pointer; min-height: 40px; }
.ask-suggestions button:hover { background: var(--sand); border-color: var(--lake); }
.ask-answer { margin-top: 1.4rem; display: none; }
.ask-answer.show { display: block; }
.ask-answer .answer-text { font-size: 1.1rem; line-height: 1.6; background: var(--birch-dim); border-left: 4px solid var(--lake); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.1rem 1.25rem; }
.sources-h { color: var(--amber-text); }
.ask-answer .sources-h { font-family: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--amber-text); margin: 1.3rem 0 0.7rem; }
.source-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 0.85rem; }
.source-card { background: var(--birch); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1rem; text-decoration: none; color: var(--ink); display: block; }
.source-card:hover { border-color: var(--lake); }
.source-card .sc-kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber-text); font-weight: 700; display: flex; gap: 0.4rem; align-items: center; }
.source-card .sc-title { font-family: var(--display); font-weight: 700; color: var(--lake-deep); margin: 0.25rem 0; font-size: 1.06rem; line-height: 1.2; }
.source-card .sc-snip { font-size: 0.88rem; color: var(--ink-soft); }
.ask-spinner { display: none; align-items: center; gap: 0.7rem; margin-top: 1.2rem; color: var(--ink-soft); }
.ask-spinner.show { display: flex; }
.ask-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lake); animation: pulse 1s infinite ease-in-out; }
.ask-dot:nth-child(2) { animation-delay: 0.16s; }
.ask-dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.ask-note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---- Proof rail / stats ---- */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.proof .stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.proof .stat .n { font-family: var(--display); font-weight: 800; font-size: 2.1rem; color: var(--lake); line-height: 1; }
.proof .stat .l { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* ---- split / feature ---- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.media-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sand); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-cap { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.5rem; font-style: italic; }

/* ---- bands ---- */
.band-sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-lake { background: var(--lake-deep); color: #eaf6f4; }
.band-lake h2, .band-lake h3 { color: #fff; }
.band-lake .kicker { color: #ffd9a1; }
.band-lake .kicker::before { background: #ffd9a1; }
.band-lake a { color: #ffe7bf; }
.band-lake .btn { color: #fff; }
.band-lake .btn-amber { color: var(--ink); }

/* ---- Footer ---- */
.site-footer { background: var(--lake-darker); color: #cfe4e1; padding: 2.6rem 0 1.6rem; }
.site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--amber), var(--lake) 55%, var(--lake-deep)); margin-bottom: 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.6rem; }
.footer-brand .town { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.45rem; color: #fff; }
.footer-brand p { font-size: 0.94rem; color: #b6d2cf; margin-top: 0.6rem; }
.site-footer h3 { color: #fff; font-family: var(--text); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #d6ece9; text-decoration: none; font-size: 0.96rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.85rem; color: #9fc1bd; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---- breadcrumb + page header ---- */
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding: 1.7rem 0 1.9rem; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--lake), var(--amber)); opacity: 0.6; }
.crumbs { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.crumbs a { color: var(--lake-deep); text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { margin: 0; max-width: 22ch; }
.page-head .ph-lede { margin: 0.6rem 0 0; color: var(--ink-soft); max-width: 62ch; font-size: 1.08rem; }

/* prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; color: var(--lake-deep); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.callout { background: var(--birch-dim); border: 1px solid var(--line); border-left: 4px solid var(--lake); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; margin: 1.3rem 0; }

/* two-col content */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); }

/* ---- Motion ---- */
@keyframes floatup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  /* Gated behind .js so content is NEVER hidden without JS (progressive enhancement). */
  html.js .reveal { opacity: 0; }
  html.js .reveal.in { animation: floatup 0.6s ease forwards; }
  .hero-grain { animation: drift 24s linear infinite alternate; }
  @keyframes drift { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-2%, -1.5%, 0) scale(1.12); } }
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .masthead-search { display: none; }
  .menu-btn { display: inline-flex; }
  .primary-nav { display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { border-bottom: 1px solid rgba(255,255,255,0.12); border-left: 4px solid transparent; }
  .primary-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.12); border-left-color: var(--amber-bright); }
  .mobile-header-search { display: block; padding: 0.9rem 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .util-bar .wrap { font-size: 0.84rem; }
  .brand-name .town { font-size: 1.4rem; }
}
