/* Meadows Metropolitan Districts — shared stylesheet
   Palette and type carry over from the median signage so a resident
   who scans the sign lands somewhere that looks like the sign.
   All text/background pairs below meet WCAG 2.1 AA (4.5:1 minimum). */

:root {
  --ink:        #0F2338;  /* navy — body text, headers */
  --ink-soft:   #33465C;  /* secondary text on paper */
  --sage:       #435C40;  /* links, buttons — 6.8:1 on paper */
  --sage-deep:  #35492F;  /* hover */
  --sage-light: #6E8B6A;  /* large fills only, never small text */
  --paper:      #F5F2E9;
  --paper-edge: #E2DDCF;
  --white:      #FFFFFF;
  --focus:      #B45309;  /* focus ring — deliberately outside the palette
                             so it is unmistakable against navy and sage */
  --measure:    34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Big Shoulders Display', 'Instrument Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.75rem, 11vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 7vw, 2.5rem); margin-bottom: 0.5rem; }
h3 {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

p, li { max-width: var(--measure); }
p { margin: 0 0 1rem; }

a { color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 10;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  position: fixed;
}

.wrap {
  width: min(100% - 2.5rem, 60rem);
  margin-inline: auto;
}

/* ---------- masthead ---------- */

.masthead {
  background: var(--ink);
  color: var(--white);
  padding: 1rem 0;
  border-bottom: 5px solid var(--sage-light);
}
.masthead a { color: var(--white); text-decoration: none; }
.masthead a:hover { text-decoration: underline; }
.masthead .org {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

/* ---------- hero ---------- */

.hero { padding: 3rem 0 2.5rem; }
.hero h1 { color: var(--ink); }
.lede {
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 1.25rem;
}

/* ---------- sections ---------- */

section { padding: 2.5rem 0; border-top: 1px solid var(--paper-edge); }
section:first-of-type { border-top: 0; }

/* ---------- district list ---------- */

.districts { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: none; }
.districts li { max-width: none; border-top: 1px solid var(--paper-edge); }
.districts li:last-child { border-bottom: 1px solid var(--paper-edge); }
.districts a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1rem 0.25rem;
  text-decoration: none;
  color: var(--ink);
}
.districts a:hover { background: var(--white); }
.districts a:hover .name { text-decoration: underline; }
.districts .name { font-weight: 700; font-size: 1.125rem; }
.districts .detail { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- project callout ---------- */

.project {
  background: var(--ink);
  color: var(--white);
  padding: 2rem 1.75rem;
  margin-top: 1.5rem;
}
.project h3 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.project p { color: #D6DDE6; max-width: var(--measure); }
.project a.cta { color: var(--white); }

/* ---------- buttons ---------- */

.cta {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 0.875rem 1.5rem;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
}
.cta:hover { background: var(--sage-deep); color: var(--white); }

/* ---------- facts ---------- */

.facts { margin: 1.5rem 0 0; }
.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--paper-edge);
}
.facts div:last-child { border-bottom: 1px solid var(--paper-edge); }
.facts dt { font-weight: 700; flex: 0 0 11rem; }
.facts dd { margin: 0; color: var(--ink-soft); }

/* ---------- form ---------- */

form { margin-top: 1.5rem; max-width: var(--measure); }
.field { margin-bottom: 1.25rem; }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.9375rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink-soft);
  padding: 0.7rem 0.75rem;
  min-height: 48px;
}
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.notice {
  background: var(--white);
  border-left: 5px solid var(--sage-light);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }

.errors {
  background: var(--white);
  border-left: 5px solid #A32E1F;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.errors h2 { font-size: 1.125rem; font-family: 'Instrument Sans', sans-serif; color: #8A2718; }

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: #C9D3DE;
  margin-top: 3rem;
  padding: 2.5rem 0;
}
footer a { color: var(--white); }
footer h2 { font-size: 1.25rem; font-family: 'Instrument Sans', sans-serif; color: var(--white); }
footer p, footer li { font-size: 0.9375rem; }
footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: 0.4rem; }
.colophon {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2B4055;
  font-size: 0.875rem;
}

@media (min-width: 40rem) {
  .foot-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- feedback form (Nov 2026) ---------- */

.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;
}
.form-note { color: var(--ink-soft); font-size: 0.9375rem; margin: 0 0 1.25rem; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
fieldset.field legend { font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.choice { display: flex; align-items: center; gap: 0.65rem; min-height: 44px; }
.choice input[type="radio"] { width: 1.35rem; height: 1.35rem; margin: 0; accent-color: var(--sage); flex: 0 0 auto; }
.choice label { font-weight: 400; margin: 0; }
input[type="file"] {
  display: block; width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: 2px dashed var(--ink-soft);
  padding: 0.75rem; min-height: 48px;
}
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; color: var(--white); background: var(--sage);
  border: 0; padding: 0.5rem 1rem; margin-right: 0.85rem; cursor: pointer;
}
.photo-status { font-size: 0.9375rem; color: var(--ink-soft); margin: 0.4rem 0 0; min-height: 1.5em; }
.photo-status:empty { min-height: 0; margin: 0; }
[aria-invalid="true"] { border-color: #A32E1F !important; }
.field-error { color: #8A2718; font-weight: 700; font-size: 0.9375rem; margin: 0.35rem 0 0; }
.errors ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.errors a { color: #8A2718; }
.cta:disabled { opacity: 0.7; cursor: progress; }
footer .foot-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero + section { padding-top: 0; }
.hero + section .notice { margin-top: 0; }

/* ---------- feedback-first layout (Nov 2026) ---------- */

.feedback-main { padding: 2rem 0 1rem; }
.feedback-main h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); max-width: 16ch; }
.feedback-main .lede { margin: 0.9rem 0 1.75rem; max-width: var(--measure); }
.feedback-main form { margin-top: 0; }
.feedback-main .errors { max-width: var(--measure); }
h2.form-section {
  font-size: 1.6rem; margin: 2rem 0 1rem; padding-top: 1.25rem;
  border-top: 1px solid var(--paper-edge);
}
.feedback-main .form-note { margin: 1.5rem 0 1rem; }

.district-helper {
  margin-top: 0.75rem; padding: 0.9rem 1rem;
  background: var(--white); border-left: 4px solid var(--sage-light);
}
.district-helper label { font-size: 0.9375rem; margin-bottom: 0.15rem; }
.district-helper .hint { margin: 0 0 0.5rem; }
.helper-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.helper-row input { flex: 1 1 12rem; width: auto; }
.btn-secondary {
  font: inherit; font-weight: 700; color: var(--sage); background: var(--white);
  border: 2px solid var(--sage); padding: 0.55rem 1rem; min-height: 48px; cursor: pointer;
}
.btn-secondary:hover { background: var(--paper); }
.btn-secondary:disabled { opacity: 0.6; cursor: progress; }
.helper-status { font-size: 0.9375rem; color: var(--ink-soft); margin: 0.5rem 0 0; }
.helper-status:empty { display: none; }
