/* ruralhallinfo.com — civic information, mobile-first, no animation */

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

:root {
  --bg: #edf3f8;
  --surface: #ffffff;
  --surface-alt: #f8f8f6;
  --text: #1f2933;
  --muted: #52606d;
  --muted-soft: #6d7c8a;
  --heading: #102a43;
  --border: #d9e2ec;
  --border-strong: #bcccdc;
  /* Link blue: lighter than body text so links read as links on #edf3f8 and white */
  --accent: #2878c8;
  --accent-dark: #1e639e;
  --accent-soft: #eaf2f8;
  --warning-bg: #fff8e9;
  --warning-border: #c4973c;
  /* Civic urgency — muted amber; dark text on pale grounds */
  --urgency-bg: #fff8e9;
  --urgency-bg-deep: #ffefcc;
  --urgency-border: #c4973c;
  --urgency-border-strong: #a67c28;
  --urgency-text: #1a2218;
  --urgency-muted: #5c4d2e;
  --urgency-accent: #7a5f18;
  --subtitle-strong: #243141;
  --btn-hover-bg: #1a3a5c;
  --btn-hover-border: #0d1f30;
  --shadow: 0 8px 24px rgba(16, 42, 67, 0.055);
  --shadow-soft: 0 2px 10px rgba(16, 42, 67, 0.04);
  --shadow-lift: 0 12px 32px rgba(16, 42, 67, 0.07);
  --radius: 20px;
  --radius-sm: 12px;
  /* One column width for hero, key facts, and all main sections */
  --content-max: 50rem;
  --prose-max: 44rem;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(17px, 2.3vw, 18px);
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(to bottom, #e8f1fa 0, var(--bg) 22rem, var(--bg) 100%);
}

main {
  display: block;
  min-width: 0;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  min-width: 0;
}

header.container {
  padding-top: clamp(32px, 8vw, 72px);
  padding-bottom: clamp(2rem, 5vw, 2.75rem);
}

/* Column centered; titles centered; copy uses .content-measure for left-aligned band */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.2rem);
  width: 100%;
}

.hero-eyebrow {
  margin: 0;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted-soft);
}

.hero-urgency {
  margin: 0;
  width: 100%;
  max-width: var(--prose-max);
  padding: 1rem 1.1rem 1.05rem;
  background: var(--urgency-bg);
  border: 2px solid var(--urgency-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.hero-urgency__title {
  margin: 0 0 0.55rem;
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
  color: var(--urgency-text);
}

.hero-urgency__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

.hero-urgency__list li {
  margin-bottom: 0.35rem;
}

.hero-urgency__list li:last-child {
  margin-bottom: 0;
}

.hero-content h1 {
  margin: 0;
  width: 100%;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: center;
  color: var(--heading);
}

.h1-line {
  display: block;
}

.h1-line+.h1-line {
  margin-top: 0.12em;
}

@media (min-width: 720px) {
  .h1-line {
    display: inline;
  }

  .h1-line+.h1-line {
    margin-top: 0;
    margin-left: 0.2em;
  }
}

.subtitle {
  margin: 0;
  max-width: var(--prose-max);
  width: 100%;
  margin-inline: auto;
  font-size: clamp(1.06rem, 2.4vw, 1.2rem);
  line-height: 1.58;
  font-weight: 500;
  text-align: left;
  color: var(--subtitle-strong);
}

/* Match space above primary action panel (hero-content .action-panel margin-top) */
.hero-content .subtitle {
  margin-top: clamp(0.9rem, 2.8vw, 1.5rem);
}

.site-hero {
  position: relative;
}

.site-hero::after {
  content: "";
  display: block;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(16, 42, 67, 0.1), transparent);
}

header>h2 {
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 1rem;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}

main section+section {
  margin-top: 1rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.32rem, 3.8vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-align: center;
  color: var(--heading);
}

main section h2 {
  margin-bottom: 1.05rem;
  padding-top: 0.15rem;
}

h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.03rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  color: var(--heading);
}

h3:first-child {
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Comfortable measure for intro lines only — avoid width:100% + % in max-width (bad % resolution in some browsers). */
p.prose,
#sources .sources-intro {
  max-width: var(--prose-max);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.55rem;
}

li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Action panels */
.action-panel {
  margin: 0;
  padding: 1.35rem 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.hero-content .action-panel {
  margin-top: clamp(0.9rem, 2.8vw, 1.5rem);
}

.action-panel--primary {
  background: linear-gradient(180deg, #fffcf7 0%, var(--urgency-bg) 42%, #fff5e6 100%);
  border: 2px solid var(--urgency-border-strong);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(122, 95, 24, 0.18);
}

.action-panel--secondary {
  background: var(--surface-alt);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.1rem 1.15rem;
}

.action-panel h2,
.action-panel>h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  text-align: center;
  color: var(--heading);
}

.action-panel h2 {
  font-size: clamp(1.18rem, 3.2vw, 1.42rem);
}

.action-panel--primary h2 {
  font-weight: 800;
  font-size: clamp(1.22rem, 3.5vw, 1.5rem);
  letter-spacing: -0.03em;
}

.action-panel ul {
  margin-bottom: 0;
  text-align: left;
}

.action-panel li {
  margin-bottom: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 1.15rem;
  padding: 0.9rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  background: var(--heading);
  border: 2px solid #0d1f30;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.12) inset, var(--shadow-soft);
}

.btn:hover {
  color: #fff;
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-border);
}

@media (min-width: 480px) {
  .btn {
    width: auto;
    min-width: 12rem;
  }
}

/* Key facts */
.key-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}

.key-facts li {
  position: relative;
  margin: 0;
  height: 100%;
  padding: 1.05rem 1.1rem 1.05rem 1.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  line-height: 1.45;
}

.key-facts li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.why-matters {
  margin: clamp(1.2rem, 3vw, 1.65rem) 0 0;
  padding: 1.35rem 1.2rem 1.45rem;
  background: linear-gradient(165deg, var(--urgency-bg) 0%, #fffefb 55%, #faf8f5 100%);
  border: 2px solid var(--urgency-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.why-matters__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.14rem, 3.1vw, 1.32rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--heading);
}

.why-matters__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.58;
}

.why-matters__list li {
  margin-bottom: 0.5rem;
}

.why-matters__list li:last-child {
  margin-bottom: 0;
}

/* Main section cards */
#summary,
#location,
#details,
#timeline,
#community,
#what-is,
#action-bottom {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.45rem 1.2rem;
}

#impacts {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fffefb 0%, var(--urgency-bg) 50%, #faf8f4 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--urgency-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.55rem 1.15rem 1.5rem 1.1rem;
}

#impacts h2 {
  font-weight: 800;
  font-size: clamp(1.38rem, 4vw, 1.85rem);
  letter-spacing: -0.024em;
  text-align: center;
}

/* Main body copy: narrow measure, centered as a block; headings stay full width for centering */
main section>p:not(.status-banner),
main section>ul:not(.sources-list),
main section>ol,
main section>dl,
main section>.map-caption,
main section>.map-wrap,
main section>blockquote {
  max-width: var(--prose-max);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#sources .sources-list {
  text-align: left;
}

#sources {
  width: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.2rem;
  box-sizing: border-box;
}

.status-banner {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--urgency-text);
  background: var(--urgency-bg-deep);
  border: 2px solid var(--urgency-border-strong);
  border-radius: var(--radius-sm);
}

.status-banner--prominent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.2rem 1.25rem 1.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.status-banner__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--urgency-muted);
}

.status-banner__text {
  display: block;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 800;
  color: var(--urgency-text);
  letter-spacing: -0.02em;
}

dl.details {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

dl.details dt {
  margin: 0;
  font-weight: 700;
  color: var(--heading);
}

dl.details dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

blockquote.explain {
  margin: 0;
  padding: 1.2rem 1.1rem 1.2rem 1.2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

blockquote.explain p {
  margin: 0;
  max-width: var(--prose-max);
}

.map-wrap {
  position: relative;
  width: 100%;
  margin: 1rem 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-soft);
  background: #e9eef2;
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-caption {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Sources */
.sources-intro {
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.sources-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources-list__item {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
}

.sources-list__item:nth-child(even) {
  background: rgba(16, 42, 67, 0.02);
}

.sources-item {
  display: block;
  padding: 1.05rem 0.85rem 1.05rem 1rem;
  border-left: 3px solid var(--accent);
  margin: 0 0 0.5rem;
}

.sources-list__item:last-child .sources-item {
  margin-bottom: 0;
}

.sources-item a {
  display: inline;
  font-weight: 500;
  text-decoration: none;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.25rem 0 2.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-soft);
}

.site-footer p {
  margin: 0;
  max-width: var(--prose-max);
}

@media (min-width: 640px) {
  header.container {
    padding-bottom: 2.6rem;
  }

  .action-panel {
    padding: 1.55rem 1.45rem 1.45rem;
  }

  .action-panel--secondary {
    padding: 1.35rem 1.3rem 1.3rem;
  }

  #summary,
  #location,
  #details,
  #timeline,
  #community,
  #what-is,
  #action-bottom,
  #sources {
    padding: 1.65rem 1.5rem;
  }

  .key-facts {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  dl.details {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    row-gap: 1.05rem;
  }

  .sources-item {
    padding: 1.15rem 1rem 1.15rem 1.15rem;
  }

  .why-matters {
    padding: 1.5rem 1.4rem 1.55rem;
  }

  #impacts {
    padding: 1.75rem 1.5rem 1.8rem 1.55rem;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }

  .key-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}