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

:root {
  --navy: #1a2a4a;
  --navy-dark: #0f1a2e;
  --red: #c0392b;
  --red-hover: #a93226;
  --cream: #f8f6f2;
  --white: #ffffff;
  --text: #2c3e50;
  --text-muted: #5d6d7e;
  --border: #e8e4dc;
  --shadow: 0 4px 24px rgba(26, 42, 74, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 200;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  line-height: 1.2;
}

.logo-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
}

.nav-cta:hover {
  background: var(--red-hover);
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  grid-template-rows: auto auto;
  gap: 2rem 3rem;
  align-items: start;
}

.hero-image {
  grid-column: 1;
  grid-row: 1;
}

.hero-events {
  grid-column: 1;
  grid-row: 2;
}

.hero-content {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.hero-events h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.hero-events-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-events .event-card {
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1rem;
}

.hero-events .event-card h3 {
  font-size: 0.95rem;
}

.hero-events .event-card p {
  font-size: 0.85rem;
}

.hero-events .event-card a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.hero-events .event-card a:hover {
  text-decoration: underline;
}

.hero-image img {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.eyebrow {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.hero-content h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.party-mark {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.5em;
  font-weight: 700;
  vertical-align: baseline;
  color: #000;
  margin-left: 0.08em;
  letter-spacing: 0;
}

.tagline {
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 1.25rem;
  max-width: 34rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-proof {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-dates {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.hero-message p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-message p + p {
  margin-top: 1rem;
}

.hero-quote {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow);
}

.hero-quote p {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--navy);
  font-style: italic;
}

.hero-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-dates .date-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.hero-dates strong {
  color: var(--navy);
  font-size: 1.05rem;
}

/* Section headers */
.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 40rem;
}

/* District */
.district {
  padding: 3.5rem 0;
  background: var(--white);
}

.district-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.district-copy h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.district-copy p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.community-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.25rem;
}

.community-list li {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.text-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.district-card {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: 6px;
}

.district-card h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.district-concerns {
  list-style: none;
}

.district-concerns li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.92;
}

.district-concerns li:last-child {
  border-bottom: none;
}

/* Issues */
.issues {
  padding: 4rem 0;
}

.issues-grid {
  display: grid;
  gap: 1rem;
}

.issue-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--navy);
  transition: transform 0.2s, box-shadow 0.2s;
}

.issue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 42, 74, 0.12);
}

.issue-number {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
}

.issue-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.issue-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Record */
.record {
  padding: 4rem 0;
  background: var(--white);
}

.record-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.record h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.record-inner > p {
  color: var(--text-muted);
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.record-body {
  max-width: 48rem;
}

.record-body p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.record-body p + p {
  margin-top: 1.25rem;
}

.record-topic {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.record-topic::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--red);
  margin: 0.65rem auto 0;
}

.record-body a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.record-body a:hover {
  text-decoration: underline;
}

.record-lists {
  display: grid;
  gap: 1.5rem;
}

.record-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.record-block h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.record-block ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.record-block li + li {
  margin-top: 0.45rem;
}

.record-timeline {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
}

.record-timeline-heading {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

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

.record-timeline-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.record-timeline-item:last-child {
  padding-bottom: 0;
}

.record-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.record-timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.record-timeline-content {
  padding-top: 0.35rem;
}

.record-timeline-content strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.record-timeline-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.record-timeline-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--navy);
  font-size: 0.95rem;
  color: var(--navy);
}

.record-timeline-total strong {
  font-size: 1.1rem;
  color: var(--text);
}

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

/* About */
.about {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-copy p {
  opacity: 0.92;
  line-height: 1.7;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-quote {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--red);
  padding: 1.5rem;
  border-radius: 0 6px 6px 0;
}

.about-quote p {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-quote cite {
  font-style: normal;
  font-weight: 700;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Endorsements */
.endorsements {
  padding: 4rem 0;
}

.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.endorsement-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--red);
}

.endorsement-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.endorsement-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.events-list {
  display: grid;
  gap: 1rem;
}

.event-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.event-card time {
  font-weight: 700;
  color: var(--red);
  font-size: 0.95rem;
}

.event-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

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

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

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

/* Volunteer */
.volunteer {
  padding: 4rem 0;
  text-align: center;
}

.volunteer h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.volunteer > .container > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.signup-form input,
.signup-form select {
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--white);
}

.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: var(--navy);
}

.signup-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.5rem;
}

.form-success {
  margin-top: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  background: var(--white);
  border: 2px solid var(--navy);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  display: inline-block;
}

/* Contact */
.contact {
  padding: 3.5rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact > .container > div > p,
.contact-grid > div > p {
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-list a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Source references */
.source-ref {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: super;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

sup:not(sup + sup) > .source-ref {
  margin-left: 0.1em;
}

sup:has(> .source-ref) + sup > .source-ref {
  margin-left: 0;
}

sup:has(> .source-ref):has(+ sup > .source-ref) > .source-ref::after {
  content: ", ";
  font-weight: 700;
  color: var(--red);
}

.source-ref:hover {
  text-decoration: underline;
}

sup:has(> .source-ref):has(+ sup > .source-ref) > .source-ref:hover::after {
  text-decoration: none;
}

/* Sources */
.sources {
  padding: 2.5rem 0 3rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.sources h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.sources ol {
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.sources li + li {
  margin-top: 0.5rem;
}

.sources a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.sources a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem 0;
  font-size: 0.85rem;
}

.footer-inner p + p {
  margin-top: 0.75rem;
}

.footer-legal {
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 52rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-image,
  .hero-events,
  .hero-content {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-grid,
  .district-grid,
  .record-grid,
  .about-grid,
  .endorsement-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav a {
    padding: 0.65rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .header-inner {
    position: relative;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-events {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-dates {
    flex-direction: column;
    gap: 1rem;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}