:root {
  --ink: #1c1712;
  --paper: #f3ecdc;
  --paper-dim: #e9e0cc;
  --rust: #c1502e;
  --rust-dark: #9c3c21;
  --steel: #2d4a5e;
  --line: var(--ink);
  --max: 1180px;

  --font-display: "Archivo", -apple-system, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

p { margin: 0; font-size: 1rem; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Halftone texture used on ink/rust blocks */
.section-ink, .section-rust, .hero {
  position: relative;
  background-image: radial-gradient(rgba(243, 236, 220, 0.06) 1.4px, transparent 1.4px);
  background-size: 9px 9px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark.small { font-size: 1rem; color: var(--paper); }

.tag-05 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  background: var(--rust);
  color: var(--paper);
  padding: 3px 7px;
  border: 2px solid var(--ink);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.nav-contact {
  border: 2.5px solid var(--ink);
  padding: 8px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.nav-contact:hover {
  background: var(--rust);
  color: var(--paper) !important;
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Ticker */
.ticker {
  background: var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}

.ticker-track {
  display: inline-flex;
  width: max-content;
  animation: ticker-scroll 22s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--rust);
  text-transform: uppercase;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  border: 2.5px solid var(--ink);
  padding: 0.85rem 1.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }

.btn-solid { background: var(--rust); color: var(--paper); }
.btn-ghost { background: var(--paper); color: var(--ink); }

.hero .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 5px 5px 0 var(--paper); }
.hero .btn-ghost:hover { box-shadow: 0 0 0 var(--paper); background: var(--paper); color: var(--ink); }

.text-link {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.text-link:hover { color: var(--rust-dark); border-color: var(--rust-dark); }

/* Hero */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 80px;
  border-bottom: 4px solid var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  line-height: 0.92;
  margin: 0 0 22px;
  color: var(--paper);
}

.hero-line {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rust);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.05rem;
  color: #d8d0c0;
  max-width: 44ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-bottom: 4px solid var(--ink); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-rust { background: var(--rust); color: var(--paper); }

.kicker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rust-dark);
  margin: 0 0 14px;
}

.kicker-invert { color: var(--ink); mix-blend-mode: normal; }
.section-ink .kicker-invert { color: #f0b79f; }
.section-rust .kicker-invert { color: var(--ink); }

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 40px;
}

/* About layout */
.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: start;
}

.about-photo {
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--rust);
  transform: rotate(1.1deg);
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* About flyer */
.flyer {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 44px 44px 40px;
  transform: rotate(-0.6deg);
}

.pin {
  position: absolute;
  top: -14px;
  left: 40px;
  width: 22px;
  height: 22px;
  background: var(--rust);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}

.flyer h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 24px;
  max-width: 16ch;
}

.flyer-body p {
  max-width: 62ch;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.flyer-body strong {
  font-weight: 800;
  color: var(--rust-dark);
}

.inline-link {
  color: inherit;
  text-decoration: none;
}

.inline-link:hover {
  color: var(--rust);
}

/* Priorities placards */
.placard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.placard {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
  padding: 26px 24px;
}

.placard-1, .placard-4 { transform: rotate(-0.8deg); }
.placard-3, .placard-6 { transform: rotate(0.8deg); }

.placard-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: var(--ink);
  color: var(--rust);
  padding: 3px 8px;
  margin-bottom: 14px;
}

.placard h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.placard p {
  font-size: 0.95rem;
  color: #3a332b;
}

/* Get involved / ballot */
.ballot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ballot-item {
  display: flex;
  gap: 16px;
}

.ballot-box {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 4px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
}

.ballot-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.ballot-item p {
  color: #3a1f10;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.section-rust .text-link { color: var(--ink); border-color: var(--ink); }

/* Contact intro */
.contact-intro {
  max-width: 62ch;
  margin: 0 0 40px;
  font-size: 1.05rem;
}

.contact-intro p {
  margin: 0 0 16px;
}

.contact-intro strong {
  font-weight: 800;
  color: var(--rust-dark);
}

/* Contact postcard */
.postcard {
  background: var(--paper-dim);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
}

.postcard-divider {
  border-left: 3px dashed var(--ink);
}

.contact-form { max-width: 440px; }

.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  padding: 10px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--ink);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  background: #fff;
}

.form-note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--rust-dark);
  font-weight: 700;
}

.contact-info h3 {
  color: var(--ink);
  margin: 0 0 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  font-weight: 700;
}

.contact-info p { margin: 0 0 24px; color: #3a332b; }
.contact-info a { text-decoration: none; color: var(--rust-dark); font-weight: 700; }
.contact-info a:hover { text-decoration: underline; }

.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-links a { color: #3a332b; text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.social-links a:hover { color: var(--rust-dark); }

/* Honeypot (anti-spam) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Modal */
.text-link-btn {
  background: none;
  border: none;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 23, 18, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay[hidden] { display: none; }

body.modal-open { overflow: hidden; }

.modal {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  font-size: 1.6rem;
  margin: 0 0 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-mono);
}

.modal-close:hover { background: var(--ink); color: var(--paper); }

.modal-form .form-row { margin-bottom: 16px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #a99f8e;
  padding: 30px 0;
  border-top: 4px dashed var(--paper-dim);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.disclaimer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
  .placard-grid { grid-template-columns: repeat(2, 1fr); }
  .ballot-grid { grid-template-columns: 1fr; gap: 28px; }
  .postcard { grid-template-columns: 1fr; }
  .postcard-divider { border-left: none; border-top: 3px dashed var(--ink); }
  .flyer { padding: 32px 28px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; margin: 0 auto 12px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  #navMenu {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    display: none;
    border-bottom: 4px solid var(--ink);
    gap: 18px;
  }
  #navMenu.open { display: flex; }
  .placard-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .disclaimer { text-align: left; }
  .section { padding: 48px 0; }
}
