:root {
  --bg: #f0eadf;
  --bg-deep: #e6ddcf;
  --paper: #f7f2e8;
  --paper-2: #ede4d6;
  --ink: #1f2a35;
  --ink-soft: #5f6b76;
  --heading: #18222c;
  --line: rgba(31, 42, 53, 0.16);
  --line-strong: rgba(31, 42, 53, 0.28);
  --navy: #30465b;
  --navy-deep: #223548;
  --red: #8a4a43;
  --shadow: 0 18px 40px rgba(25, 30, 36, 0.08);
  --shadow-strong: 0 24px 48px rgba(20, 24, 28, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container: 1240px;
  --topbar: 63px;
}

html[data-theme="dark"] {
  --bg: #121920;
  --bg-deep: #18222b;
  --paper: #1d2832;
  --paper-2: #22303b;
  --ink: #e9e2d8;
  --ink-soft: #b1b8be;
  --heading: #f6f2eb;
  --line: rgba(236, 229, 218, 0.12);
  --line-strong: rgba(236, 229, 218, 0.22);
  --navy: #7d97b1;
  --navy-deep: #9ab1c6;
  --red: #c48c84;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 28px 56px rgba(0, 0, 0, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body.americana-theme {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 118px,
      rgba(20, 30, 40, 0.025) 119px,
      transparent 120px
    ),
    linear-gradient(to bottom, var(--bg), var(--bg-deep));
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 4000;
  background: var(--paper);
  color: var(--heading);
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: -1px;
  z-index: 2000;
  min-height: var(--topbar);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

html[data-theme="dark"] .topbar {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.topbar-inner {
  min-height: var(--topbar);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.topbar-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.candidate-name {
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.candidate-race {
  margin-top: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.desktop-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-soft);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--heading);
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--heading);
  border-radius: var(--radius-sm);
}

.menu-toggle {
  display: none;
}

.mobile-panel {
  position: sticky;
  top: var(--topbar);
  z-index: 1900;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-panel-inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 14px 0;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--heading);
}

.hero {
  padding: 36px 0 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 0;
}

.kicker,
.section-label,
.data-label,
.info-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--red);
}

.hero-copy h1,
.split-band-left h2,
.platform-intro h2,
.map-header h2,
.issues-band-intro h2,
.community-copy h2,
.engage-block h2,
.contact-copy h2 {
  font-family: "Oswald", Arial Narrow, sans-serif;
  color: var(--heading);
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 12px 0 18px;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 5.4vw, 5.8rem);
  max-width: 8.2ch;
}

.hero-lead {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--navy-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--heading);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-full {
  width: 100%;
}

.hero-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
}

.hero-data-item {
  padding: 14px 16px 14px 0;
}

.hero-data-item strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
  color: var(--heading);
}

.hero-photo {
  position: relative;
  height: 100%;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  box-shadow: var(--shadow-strong);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 18%;
  background: linear-gradient(to top, rgba(0,0,0,0.10), transparent);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-strip {
  padding: 0 0 18px;
}

.message-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.message-stat {
  padding: 18px 0;
}

.message-stat span {
  display: block;
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--heading);
}

.message-stat small {
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.about-section,
.platform-section,
.district-section,
.issues-section,
.yard-sign-section,
.record-section,
.community-section,
.engage-section,
.contact-section {
  padding: 42px 0;
}

.split-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
  padding: 20px 0;
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
}

.split-band-alt {
  border-bottom: none;
}

.split-band-left h2,
.platform-intro h2,
.map-header h2,
.issues-band-intro h2,
.community-copy h2,
.engage-block h2,
.contact-copy h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  max-width: 9.5ch;
}

.split-band-right p,
.platform-block p,
.issues-band-intro p,
.timeline-copy p,
.community-copy p,
.endorsement-item p,
.engage-block p,
.contact-copy p,
.cookie-text p,
.preference-copy p,
.modal-header p,
.form-note,
.info-card p {
  color: var(--ink-soft);
}

.platform-wrap {
  display: grid;
  gap: 24px;
}

.platform-intro {
  max-width: 760px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.platform-block,
.endorsement-item,
.engage-block,
.contact-form,
.info-card,
.preferences-modal {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.platform-block,
.endorsement-item,
.engage-block,
.contact-form,
.info-card {
  padding: 22px;
  border-radius: var(--radius-md);
}

.platform-block {
  min-height: 180px;
}

.platform-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--navy-deep);
  margin-bottom: 16px;
}

.platform-block h3,
.issues-column h3,
.timeline-copy h3,
.endorsement-item h3,
.info-card h3 {
  margin: 0 0 10px;
  font-family: "Oswald", Arial Narrow, sans-serif;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
}

.district-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.map-card {
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
}

.map-placeholder {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.map-placeholder img {
  width: 100%;
  height: auto;
}

.map-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 600;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 1px solid var(--line-strong);
}

.swatch-primary {
  background: var(--navy);
}

.swatch-neutral {
  background: var(--paper-2);
}

.info-stack {
  display: grid;
  gap: 14px;
}

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

.mini-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.issues-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: start;
  padding: 20px 0;
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
}

.issues-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.issues-column {
  padding-top: 10px;
  border-top: 3px solid var(--navy);
}

.issues-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.issues-column li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.yard-sign {
  position: relative;
  border: 4px solid var(--navy-deep);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0)),
    var(--paper);
  box-shadow: var(--shadow-strong);
}

.yard-sign::before,
.yard-sign::after {
  content: "";
  position: absolute;
  bottom: -44px;
  width: 4px;
  height: 44px;
  background: var(--navy-deep);
}

.yard-sign::before {
  left: 22%;
}

.yard-sign::after {
  right: 22%;
}

.yard-sign-top,
.yard-sign-bottom {
  padding: 12px 18px;
  background: var(--navy-deep);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.yard-sign-main {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.yard-sign-name {
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--heading);
}

.yard-sign-office {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  font-weight: 700;
}

.yard-sign-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.timeline {
  margin-top: 4px;
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--red);
}

.community-grid,
.engage-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.endorsement-list {
  display: grid;
  gap: 16px;
}

.engage-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0 16px;
}

.donation-option {
  min-height: 54px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--heading);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.donation-option.active {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-left strong {
  color: var(--heading);
}

.footer-left span {
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-nav a,
.footer-button {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.footer-button {
  background: none;
  border: none;
  padding: 0;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
}

.cookie-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-strong);
}

.cookie-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: rgba(9, 13, 18, 0.68);
  display: grid;
  place-items: center;
  padding: 16px;
}

.preferences-modal {
  position: relative;
  width: min(100%, 720px);
  border-radius: var(--radius-md);
  background: var(--paper);
  opacity: 1;
  box-shadow: var(--shadow-strong);
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 22px;
}

.modal-header {
  border-bottom: 1px solid var(--line-strong);
}

.modal-header h2 {
  margin: 0 0 8px;
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.modal-body {
  display: grid;
  gap: 14px;
}

.preference-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line-strong);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--heading);
  border-radius: var(--radius-sm);
}

.toggle {
  position: relative;
  width: 56px;
  height: 30px;
  flex: 0 0 auto;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #919aa2;
  transition: 0.2s ease;
}

.toggle span::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 4px;
  left: 4px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s ease;
}

.toggle input:checked + span {
  background: var(--navy-deep);
}

.toggle input:checked + span::before {
  transform: translateX(26px);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-band,
  .district-grid,
  .issues-band,
  .community-grid,
  .engage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 9ch;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
  .menu-toggle,
  .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .menu-toggle i,
  .theme-toggle i {
    display: block;
    line-height: 1;
    font-size: 1rem;
  }
  .hero {
    padding-top: 18px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-media {
    order: 1;
  }

  .hero-copy {
    order: 2;
    padding: 0;
  }

  .hero-photo {
    min-height: 360px;
  }

  .hero-data,
  .message-strip-inner,
  .platform-grid,
  .issues-columns {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner,
  .cookie-banner-inner,
  .modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons,
  .hero-actions,
  .engage-actions {
    width: 100%;
  }

  .cookie-buttons .btn,
  .hero-actions .btn,
  .engage-actions .btn {
    flex: 1 1 auto;
  }

  .yard-sign-bottom {
    gap: 12px;
  }

  .yard-sign::before,
  .yard-sign::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .topbar-inner {
    min-height: 64px;
  }

  .candidate-name {
    font-size: 1.12rem;
  }

  .candidate-race {
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 12vw, 3.8rem);
    max-width: 9ch;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-photo {
    min-height: 300px;
  }

  .split-band-left h2,
  .platform-intro h2,
  .map-header h2,
  .issues-band-intro h2,
  .community-copy h2,
  .engage-block h2,
  .contact-copy h2 {
    max-width: none;
  }

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

  .yard-sign-main {
    padding: 24px 16px;
  }

  .yard-sign-office {
    font-size: 0.95rem;
  }
}