:root {
  --peach: #ffdbbb;
  --greige: #ccbeb1;
  --taupe: #997e67;
  --brown: #664930;
  --content-width: 1360px;
  --measure: 42rem;
  --intro-measure: 56rem;
  --paper: #fff8f1;
  --bg: #f5ede5;
  --band: var(--peach);
  --text: #2c1d13;
  --muted: #6f5a49;
  --accent: var(--taupe);
  --accent-dark: var(--brown);
  --border: rgba(102, 73, 48, 0.18);
  --border-strong: rgba(102, 73, 48, 0.46);
  --accent-wash: rgba(255, 219, 187, 0.68);
  --header-bg: rgba(255, 248, 241, 0.94);
  --surface: rgba(255, 248, 241, 0.88);
  --surface-hover: rgba(255, 219, 187, 0.72);
  --surface-strong: var(--greige);
  --surface-cream: rgba(255, 248, 241, 0.98);
  --shadow-soft: 0 1px 0 rgba(102, 73, 48, 0.08), 0 16px 36px rgba(153, 126, 103, 0.12);
  --focus-ring: rgba(102, 73, 48, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 219, 187, 0.82), transparent 34rem),
    linear-gradient(180deg, rgba(204, 190, 177, 0.32), transparent 18rem),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

img,
iframe {
  max-width: 100%;
}

.site-shell,
.site-header__inner,
.site-footer,
.page-section,
.hero,
.page-hero {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-brand {
  text-decoration: none;
  color: var(--text);
}

.site-brand__name,
.hero h1,
.page-hero h1,
.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--accent-dark);
}

.site-brand__name {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  column-gap: 1.1rem;
  row-gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface-cream);
  color: var(--text);
  padding: 0.55rem 0.9rem;
}

.hero,
.page-hero {
  padding: 4.75rem 0 2.2rem;
}

.hero-copy,
blockquote,
.member-table {
  max-width: var(--measure);
}

.hero-copy {
  max-width: var(--intro-measure);
}

.page-hero__copy {
  max-width: none;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.92;
}

.hero-actions,
.card-grid,
.map-grid,
.quick-facts,
.directory-grid {
  display: grid;
  gap: 1.5rem;
}

.map-grid,
.quick-facts {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.quick-facts--stacked {
  grid-template-columns: 1fr;
}

.directory-grid {
  grid-template-columns: 1fr;
}

.hero-copy p,
.page-hero__copy p {
  max-width: var(--intro-measure);
  text-wrap: pretty;
}

.section-intro,
.page-note {
  max-width: var(--intro-measure);
  text-wrap: pretty;
}

.site-footer p {
  max-width: var(--measure);
}

.page-links .page-hero {
  padding-bottom: 1.2rem;
}

.page-hero--compact {
  padding-bottom: 0.75rem;
}

.page-hero--compact .page-hero__copy h1 {
  margin-bottom: 1.35rem;
}

.page-links .page-section {
  padding-top: 0.35rem;
  border-top: 0;
}

.page-links .directory-group {
  max-width: 60rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--accent-dark);
  border-radius: 0;
  background: var(--accent-dark);
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.button-link--secondary {
  background: rgba(255, 219, 187, 0.46);
  color: var(--accent-dark);
  border-color: var(--border-strong);
}

.page-section {
  padding: 0.55rem 0 2.8rem;
}

.page-section--no-divider {
  border-top: 0;
}

.page-section--tight-top {
  padding-top: 0.4rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 100%;
  border-top: 2px solid var(--text);
}

.member-table th,
.member-table td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.member-table th {
  background: rgba(204, 190, 177, 0.78);
  font-weight: 700;
  white-space: nowrap;
}

.member-table tr:nth-child(even) td {
  background: rgba(255, 219, 187, 0.2);
}

.site-footer {
  padding: 0.5rem 0 3rem;
  color: var(--muted);
}

.hero-copy,
.page-hero__copy {
  padding: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.section-intro {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.tmms-description {
  margin-top: 1.6rem;
}

.prose-content {
  max-width: 56rem;
}

.prose-content h2,
.prose-content h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.08;
  color: var(--accent-dark);
}

.prose-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.prose-content h3 {
  margin: 2.2rem 0 0.8rem;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
}

.prose-content p,
.prose-content ul {
  margin: 0 0 1.15rem;
  text-wrap: pretty;
}

.prose-content ul {
  padding-left: 1.2rem;
}

.prose-content li + li {
  margin-top: 0.45rem;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.home-gallery__item {
  margin: 0;
}

.home-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--band);
}

.hero--home {
  width: 100%;
  padding: 2.8rem 2rem 2.4rem;
  text-align: center;
}

.hero-copy--home {
  max-width: 52rem;
  margin: 0 auto;
}

.hero-copy--home h1 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
}

.hero-intro {
  margin: 0 auto;
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  color: var(--text);
}

.home-page {
  padding-top: 1.25rem;
  padding-bottom: 3.4rem;
}

.home-welcome-panel {
  display: grid;
  gap: 1.35rem;
}

.home-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 1rem 1rem;
  padding: 0 1.25rem;
  position: relative;
}

.home-link-grid::before,
.home-link-grid::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 240, 225, 0.9), rgba(255, 248, 241, 0.52));
}

.home-link-grid::before {
  inset: 0.2rem 0 5.9rem;
}

.home-link-grid::after {
  left: 18%;
  right: 18%;
  bottom: 0.25rem;
  height: 5.2rem;
}

.home-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--accent-dark);
  border-radius: 1.2rem;
  background: rgba(204, 190, 177, 0.82);
  color: var(--accent-dark);
  text-align: center;
  text-decoration: none;
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.15;
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.home-link-button:hover,
.home-link-button:focus-visible {
  color: var(--accent-dark);
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--accent-dark);
}

.home-link-button--featured {
  grid-column: 2;
}

.home-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(420px, 585px));
  gap: 3.25rem;
  align-items: start;
  width: min(100%, 1240px);
  margin: 2.7rem auto 0;
}

.home-visual {
  margin: 0;
}

.home-visual__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.home-visual img,
.home-visual__trigger img {
  display: block;
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface-cream);
}

.home-visual--photo img {
  aspect-ratio: auto;
  object-fit: contain;
}

.home-visual--map {
  align-self: center;
}

.image-lightbox {
  width: min(92vw, 1100px);
  max-width: 1100px;
  padding: 1rem;
  border: 1px solid var(--border-strong);
  background: rgba(255, 248, 241, 0.98);
  box-shadow: 0 24px 60px rgba(44, 29, 19, 0.28);
}

.image-lightbox::backdrop {
  background: rgba(44, 29, 19, 0.68);
}

.image-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--accent-dark);
  background: var(--surface-cream);
  color: var(--accent-dark);
  font: inherit;
  cursor: pointer;
}

.image-lightbox__image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--border-strong);
  background: var(--surface-cream);
}

.image-lightbox__caption {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.election-page__content {
  max-width: 66rem;
}

.events-page__listing {
  font-size: 1.2em;
}

.about-page__content {
  max-width: 78rem;
}

.about-page__article {
  max-width: 60rem;
}

.about-page__article p {
  margin: 0;
  text-wrap: pretty;
}

.about-page__article p + p {
  margin-top: 1.35rem;
}

.image-frame.about-page__figure {
  margin: 2rem 0 0;
  padding-bottom: 2rem;
}

.about-carousel {
  margin-top: 3rem;
  max-width: 78rem;
  padding-top: 1.15rem;
  border-top: 2px solid var(--border-strong);
}

.about-carousel__header {
  max-width: 40rem;
  margin-bottom: 1.25rem;
}

.about-carousel__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-carousel__title {
  margin: 0;
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  line-height: 0.98;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--accent-dark);
}

.about-carousel__intro {
  margin: 0.65rem 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.about-carousel__stage {
  min-height: 0;
}

.about-carousel__slide {
  margin: 0;
}

.about-carousel__image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.98), rgba(245, 237, 229, 0.94));
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.about-carousel__image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: transparent;
}

.about-carousel__caption {
  margin-top: 0.95rem;
  color: var(--muted);
  text-wrap: pretty;
}

.about-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.about-carousel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-cream);
  color: var(--accent-dark);
  font: inherit;
  cursor: pointer;
}

.about-carousel__nav:hover,
.about-carousel__nav:focus-visible {
  background: var(--surface-hover);
}

.about-carousel__status {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.about-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.about-carousel__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-cream);
  color: var(--accent-dark);
  font: inherit;
  cursor: pointer;
}

.about-carousel__dot.is-active,
.about-carousel__dot:hover,
.about-carousel__dot:focus-visible {
  background: rgba(204, 190, 177, 0.84);
}

.election-page__example-heading {
  margin: 0 0 1.6rem;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.1;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--accent-dark);
}

.election-page__location,
.election-page__where-link {
  margin: 0 0 1.55rem;
  font-size: clamp(1.2rem, 1.9vw, 1.85rem);
  line-height: 1.35;
}

.election-page__where-link {
  max-width: 58rem;
}

.election-page__where-link--lookup {
  padding-top: 0.9rem;
}

.election-page__photo-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(320px, 1fr);
  gap: 2.4rem;
  align-items: center;
  margin: 0 0 2.5rem;
}

.election-page__photo,
.election-page__map,
.election-page__example {
  margin: 0;
}

.election-page__photo img,
.election-page__map iframe,
.election-page__example img {
  display: block;
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface-cream);
}

.election-page__map iframe {
  min-height: 320px;
}

.election-page__example {
  max-width: 430px;
}

.warrant-page__content {
  max-width: 70rem;
  padding-top: 1.2rem;
}

.warrant-page__hero .page-hero__copy h1 {
  margin-bottom: 3rem;
}

.warrant-page__hero-link {
  margin: 0 0 1.9rem;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--accent-dark);
}

.warrant-page__hero-link a {
  color: var(--accent-dark);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.warrant-page__document-block + .warrant-page__document-block {
  margin-top: 4rem;
}

.warrant-page__document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 1rem;
}

.warrant-page__mobile-note {
  display: none;
  margin: 0 0 1rem;
  color: var(--muted);
}

.warrant-page__document-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--accent-dark);
}

.warrant-page__embed {
  width: 100%;
  min-height: 900px;
  margin-top: 0.2rem;
  border: 1px solid var(--border);
  background: var(--surface-cream);
}

.map-card,
.fact-panel,
.directory-group {
  padding-top: 1rem;
  border-top: 2px solid var(--border-strong);
}

.map-card h3,
.fact-panel h2,
.directory-group h2,
.link-row__title {
  margin: 0 0 0.95rem;
  font-size: 1.1rem;
}

.link-row__title {
  white-space: nowrap;
}

.map-meta,
.fact-panel p,
.directory-group p,
.link-row__body,
.page-note,
.map-card p {
  color: var(--muted);
}

.map-links,
.resource-list,
.plain-list,
.directory-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-links li,
.resource-list li,
.plain-list li,
.directory-group li {
  padding: 0.5rem 0 0.7rem;
}

.map-links li:first-child,
.resource-list li:first-child,
.plain-list li:first-child,
.directory-group li:first-child {
  padding-top: 0;
}

.map-links a,
.resource-list a,
.plain-list a,
.link-row {
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
  color: var(--paper);
}

.button-link--secondary:hover,
.button-link--secondary:focus-visible {
  color: var(--accent-dark);
  background: rgba(255, 219, 187, 0.78);
}

.resource-list {
  max-width: var(--measure);
}

.resource-list a {
  margin-left: 0.3rem;
}

.link-list {
  border-top: 2px solid var(--border-strong);
}

.link-row {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
}

.link-row:hover,
.link-row:focus-visible {
  background: rgba(255, 219, 187, 0.24);
}

.link-row:hover .link-row__title,
.link-row:focus-visible .link-row__title {
  color: var(--accent-dark);
}

.fact-strip {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 2px solid var(--border-strong);
}

.fact-strip dt {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-strip dd {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
}

.image-frame {
  margin: 0;
}

.image-frame img {
  display: block;
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--border-strong);
}

.image-frame figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-note {
  padding-top: 1rem;
  border-top: 2px solid var(--border-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
    margin-left: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav a {
    padding: 0.2rem 0;
  }

  .home-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    padding: 0;
  }

  .home-link-grid::before {
    inset: 0.15rem 0 5.2rem;
  }

  .home-link-grid::after {
    left: 10%;
    right: 10%;
    height: 4.6rem;
  }

  .home-link-button--featured {
    grid-column: 1 / -1;
    width: min(100%, 18rem);
    justify-self: center;
  }

  .home-visual-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-top: 2rem;
  }

  .home-visual--photo img {
    aspect-ratio: auto;
  }

  .election-page__photo-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 100%;
  }

  .about-carousel__image-button img {
    aspect-ratio: 4 / 3;
  }

  .warrant-page__embed {
    min-height: 640px;
  }
}

@media (max-width: 640px) {
  .warrant-page__mobile-note {
    display: block;
  }

  .warrant-page__embed {
    display: none;
  }

  .hero--home {
    padding: 2.2rem 1rem 1.9rem;
  }

  .home-link-grid {
    grid-template-columns: 1fr;
  }

  .home-link-grid::before,
  .home-link-grid::after {
    display: none;
  }

  .home-link-button--featured {
    grid-column: auto;
    width: 100%;
  }

  .about-carousel__controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-carousel__status {
    width: 100%;
  }
}
