/* Fountain Area Residents Association — hand-written, dependency-free CSS.
   Goals: readable, accessible (good contrast, keyboard-friendly), mobile-first. */

:root {
  --ink: #1c2530;
  --muted: #55606b;
  --accent: #1f6f54;       /* a calm green — meets AA contrast on white */
  --accent-dark: #164d3a;
  --bg: #ffffff;
  --band: #f2f4f2;
  --line: #dfe3df;
  --max: 62rem;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Accessibility: visible skip link on focus */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent-dark); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

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

/* Header & navigation */
.site-header {
  background: var(--band);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.site-title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.site-title a { text-decoration: none; color: var(--ink); }
.site-title span { font-weight: 400; color: var(--muted); font-size: .95rem; }

nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
nav a { text-decoration: none; padding: .35rem .25rem; display: inline-block; }
nav a:hover { text-decoration: underline; }

/* Main content */
main { padding-top: 2rem; padding-bottom: 3rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { margin-top: 2rem; }

.hero { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }

.cta { margin-top: 1.5rem; }
.button {
  display: inline-block; background: var(--accent-dark); color: #fff;
  padding: .7rem 1.4rem; border-radius: 6px; text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--accent); color: #fff; }

.meta, time { color: var(--muted); font-size: .9rem; }

/* Post / news lists */
.post-list { list-style: none; padding: 0; margin: 1rem 0; }
.post-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list time { display: block; }
.post-list p { margin: .25rem 0 0; color: var(--muted); }

article.page { max-width: 44rem; }

/* Meeting cards on the home page */
.meetings { margin-top: 2.5rem; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.card {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem 1.25rem; background: var(--band);
}
.card h3 { margin-top: 0; }
.card p { margin: .4rem 0; }
.card-date { font-weight: 600; font-size: 1.05rem; }
.muted { color: var(--muted); }
.map-note { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
@media (max-width: 40rem) { .cards { grid-template-columns: 1fr; } }

/* Coverage-area map (Leaflet). A fixed height is required for the map to show. */
.fara-map {
  height: 380px;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--band);
}
@media (max-width: 40rem) { .fara-map { height: 300px; } }

/* Footer */
.site-footer {
  background: var(--band); border-top: 1px solid var(--line);
  margin-top: 2rem; padding: 1.5rem 0; color: var(--muted); font-size: .92rem;
}
.site-footer p { margin: .3rem 0; }

/* Small screens: stack the nav under the title */
@media (max-width: 40rem) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}
