/* Bluff Civic — Noel, Missouri. Tokens locked in docs/research/BRIEF.md */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,600;0,8..60,700;1,8..60,600&display=swap");

:root {
  --spruce: #1f3a34;
  --limestone: #c4b8a5;
  --deep: #0e1c2f;
  --fog: #e8f0ec;
  --paper: #f7f4ee;
  --ink: #1a1f1d;
  --alert: #b43b3b;
  --notice: #f4e7c8;
  --link: #1f5a4e;
  --focus: #0b6e4f;
  --muted: #4a5550;
  --hair: color-mix(in srgb, var(--limestone) 70%, var(--spruce));
  --shadow: 0 1px 2px color-mix(in srgb, var(--deep) 12%, transparent),
    0 8px 24px color-mix(in srgb, var(--spruce) 10%, transparent);
  --serif: "Source Serif 4", ui-serif, Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 40rem;
  --shell: 72rem;
  --pad: clamp(1rem, 3vw, 1.5rem);
  --radius: 0.5rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font: 18px/1.55 var(--sans);
  color: var(--ink);
  background: var(--fog);
}

img { max-width: 100%; height: auto; }

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--spruce); }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--deep);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip:focus,
.skip:focus-visible { top: 0; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--shell));
  margin-inline: auto;
}

/* Independent-site notice — always first */
.notice {
  background: var(--notice);
  border-bottom: 1px solid color-mix(in srgb, var(--limestone) 80%, #8a6a2a);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 0.55rem var(--pad);
  text-align: center;
}
.notice a { font-weight: 600; }

/* Alerts — live NWS / city notices sit under the independent-site banner */
.alerts {
  background: var(--alert);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 0.7rem 0;
}
.alerts p { margin: 0; max-width: 72rem; }
.alerts a { color: #fff; font-weight: 600; }
.alerts a:focus-visible { outline-color: #fff; }
.alerts[data-level="advisory"] {
  background: #8a3a12;
  border-bottom: 3px solid color-mix(in srgb, #f4e7c8 70%, #8a3a12);
}
.alerts[data-level="warning"] {
  background: var(--alert);
  border-bottom: 3px solid color-mix(in srgb, #f4e7c8 70%, var(--alert));
}
.alerts[data-level="watch"] {
  background: var(--deep);
  color: #fff;
  border-bottom: 3px solid color-mix(in srgb, var(--limestone) 60%, var(--deep));
}
.alerts[data-level="clear"] {
  background: var(--spruce);
  color: var(--fog);
  border-bottom: 3px solid color-mix(in srgb, var(--limestone) 60%, var(--spruce));
}
.alerts[data-level="clear"] a { color: #fff; }
.alerts[data-level="clear"] a:focus-visible { outline-color: #fff; }

/* Utility bar */
.util {
  background: var(--spruce);
  color: #f3f7f5;
  font-size: 0.875rem;
}
.util ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  justify-content: center;
}
.util a {
  color: #f3f7f5;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.util a:hover { text-decoration: underline; }
.util a:focus-visible { outline-color: #fff; }

/* Header + nav */
.mast {
  background: var(--paper);
  border-bottom: 1px solid var(--limestone);
}
.mast-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}
.wordmark {
  text-decoration: none;
  color: var(--spruce);
  display: grid;
  line-height: 1.15;
}
.wordmark strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}
.wordmark span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}
.wordmark em {
  font-style: italic;
  font-family: var(--serif);
}

nav.primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}
nav.primary a {
  color: var(--spruce);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  display: inline-flex;
  align-items: center;
  border-radius: 0.35rem;
}
nav.primary a:hover { background: color-mix(in srgb, var(--fog) 70%, var(--limestone)); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 22rem;
  color: #f4f7f5;
  background:
    radial-gradient(120% 80% at 10% 0%, color-mix(in srgb, var(--limestone) 28%, transparent), transparent 55%),
    linear-gradient(165deg, var(--deep) 0%, var(--spruce) 62%, #16332e 100%);
  overflow: hidden;
}
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  z-index: -2;
}
.hero-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.85) contrast(1.05);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--deep) 62%, transparent) 0%, color-mix(in srgb, var(--spruce) 78%, transparent) 70%, var(--spruce) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(-18deg, transparent 0 11px, color-mix(in srgb, var(--limestone) 55%, transparent) 11px 12px);
  pointer-events: none;
}
.hero .wrap,
.hero .hero-copy { padding: 2.6rem 0 2.8rem; position: relative; }

.stills {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 0 0;
  grid-template-columns: 1fr;
}
@media (min-width: 48em) {
  .stills { grid-template-columns: 1fr 1fr 1fr; }
}
.stills figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--limestone);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stills picture { display: block; }
.stills img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
}
.stills figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.55rem 0.75rem 0.7rem;
  line-height: 1.35;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.6rem;
  max-width: 18ch;
  color: #fff;
}
.lede {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: color-mix(in srgb, #fff 88%, var(--limestone));
}
.lede em {
  font-family: var(--serif);
  font-style: italic;
}
.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 78%, var(--limestone));
}
.inline-still {
  margin: 1.25rem 0 0;
  background: var(--paper);
  border: 1px solid var(--limestone);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 46rem;
  box-shadow: var(--shadow);
}
.inline-still picture { display: block; }
.inline-still img {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
}
.inline-still figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.55rem 0.75rem 0.7rem;
  line-height: 1.35;
}
nav.primary a[aria-current="page"] {
  background: color-mix(in srgb, var(--fog) 70%, var(--limestone));
}

.doors {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .doors { grid-template-columns: 1fr 1fr; max-width: 36rem; }
}
.door {
  display: block;
  text-decoration: none;
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--limestone) 55%, transparent);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  min-height: 44px;
  box-shadow: none;
}
.door:hover {
  background: color-mix(in srgb, #fff 20%, transparent);
  color: #fff;
}
.door strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--serif);
}
.door span {
  display: block;
  font-size: 0.9rem;
  color: color-mix(in srgb, #fff 75%, var(--limestone));
  font-weight: 400;
}

/* Sections */
main { padding: 0 0 3rem; }
section {
  padding: 2.25rem 0;
}
section + section {
  border-top: 1px solid color-mix(in srgb, var(--limestone) 80%, var(--fog));
}
h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: var(--spruce);
}
h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.5rem 0 0.75rem;
  color: var(--spruce);
}
.deck {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: var(--measure);
}

.tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .tasks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64em) {
  .tasks { grid-template-columns: 1fr 1fr 1fr; }
}
.task {
  background: var(--paper);
  border: 1px solid var(--limestone);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  min-height: 5.5rem;
  box-shadow: var(--shadow);
}
.task strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--spruce);
}
.task p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.river {
  background: var(--paper);
  border: 1px solid var(--limestone);
  border-left: 6px solid var(--spruce);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  max-width: 46rem;
}
.river p { margin: 0.4rem 0 0; }
.note {
  font-size: 0.9rem;
  color: var(--muted);
}

.events {
  background: var(--paper);
  border: 1px solid var(--limestone);
  border-left: 6px solid var(--limestone);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  max-width: 46rem;
}
.events ul { margin: 0.6rem 0 0.8rem; padding-left: 1.2rem; }
.events li { margin: 0.4rem 0; }

.hall {
  display: grid;
  gap: 1rem;
}
@media (min-width: 48em) {
  .hall { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.hall address {
  font-style: normal;
  background: var(--paper);
  border: 1px solid var(--limestone);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.hall a[href^="tel:"] { font-weight: 700; font-size: 1.15rem; }

.lang-stub {
  background: var(--paper);
  border: 1px dashed var(--hair);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  max-width: var(--measure);
}

.source {
  font-size: 0.8rem;
  color: var(--muted);
}

footer.site {
  background: var(--deep);
  color: color-mix(in srgb, #fff 86%, var(--limestone));
  padding: 2rem 0 2.4rem;
  font-size: 0.95rem;
}
footer.site a { color: #dce8e3; }
footer.site h2 {
  color: #fff;
  font-size: 1.1rem;
}
.foot-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48em) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
footer.site ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
footer.site li { margin: 0.25rem 0; }
.legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--limestone) 35%, var(--deep));
  font-size: 0.85rem;
  color: color-mix(in srgb, #fff 70%, var(--limestone));
}
