:root {
  --paper: #f5f0ea;
  --surface: #fff8ef;
  --ink: #1f0f2d;
  --muted: #4d355d;

  --primary: #663790;
  --accent: #4a1f64;
  --signal: #c62838;
  --accent-2: #f5a524;
  --primary-text: #663790;
  --secondary-text: #663790;
  
  --primary-text-content: #663790;
  --line: #663790;
  --offset-shadow: var(--ink);
  --shadow: 12px 12px 0 var(--offset-shadow);
  /* --hero-bg: #cee179; */
  --hero-bg: #f5a524;

  --hero-text: #f1492f;
  --hero-shadow: #663790;

  --content-max: 1240px;
  --page-gutter: clamp(18px, 7vw, 120px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(120deg, rgba(102, 55, 144, 0.95), rgba(74, 31, 100, 0.95));
  color: #f7eefc;
  border-bottom: 4px solid var(--signal);
  backdrop-filter: blur(8px);
  padding: 0 var(--page-gutter);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 18px 0;
  gap: 24px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border: 3px solid #f7eefc;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: currentColor;
}

.top-nav a {
  color: inherit;
}

.brand {
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 2px 2px 0 var(--signal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
}

.nav-link {
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 0;
}

.nav-link:hover {
  border-color: var(--accent-2);
  /* background: rgba(245, 165, 36, 0.18); */
  color: #fff9f0;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 16px;
  background: linear-gradient(120deg, rgba(102, 55, 144, 0.98), rgba(74, 31, 100, 0.98));
  border-bottom: 4px solid var(--signal);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 var(--page-gutter);
}

.mobile-links .nav-link,
.mobile-links .btn {
  padding: 14px 16px;
  border: 3px solid #f7eefc;
  color: #f7eefc;
  box-shadow: none;
}

.top-nav.is-open .mobile-menu {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 0;
  font-weight: 800;
  border: 4px solid var(--line);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease, color 0.2s ease;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--ink);
}

.btn:hover {
  transform: translate(-6px, -6px);
  box-shadow: 18px 18px 0 var(--offset-shadow);
}

.btn.primary {
  background: var(--primary);
  color: #f8eefc;
  --offset-shadow: var(--ink);
  border: 4px solid var(--signal);
}

.btn.primary:hover {
  background: var(--primary);
  color: #f8eefc;
  --offset-shadow: var(--ink);
}

.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  --offset-shadow: var(--ink);
}

.btn.secondary:hover {
  background: var(--surface);
  color: var(--ink);
  --offset-shadow: var(--ink);
}

.btn.tertiary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 6px 6px 0 var(--offset-shadow);
}

.btn.tertiary:hover {
  background: var(--primary);
  color: #f8eefc;
}

.btn.donate {
  background: var(--accent-2);
  color: var(--primary);
  border: 4px solid var(--paper);
}

.page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.panel {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 60px var(--page-gutter);
  border-bottom: 5px solid var(--line);
  --offset-shadow: var(--ink);
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;

  /* make the pseudo-element larger than the panel */
  inset: -20vw;

  background-image: url("/static/imgs/indiana.svg");
  background-repeat: no-repeat;
  background-position: 80% 55%;
  background-size: clamp(700px, 80vh, 1500px);

  pointer-events: none;
  z-index: 0;
}


.hero-panel > * {
  position: relative;
  z-index: 1;
}

.panel-inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

#our-party .panel-inner {
  gap: 32px;
  width: min(1800px, 100%);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.panel-accent {
  background: var(--accent);
  color: #f6edd8;
  --offset-shadow: var(--line);
}

.panel-light {
  background: #f9f6ef;
  color: var(--ink);
  --offset-shadow: var(--accent);
}

.panel-ink {
  background: #a6192a;
  color: #fff5f3;
  --offset-shadow: #ffe3de;
}

.panel-sun {
  background: #f5a524;
  color: var(--accent);
  --offset-shadow: var(--accent);
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 4px solid var(--line);
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  width: fit-content;
  margin-bottom: 12px;
}

.layered-title {
  position: relative;
  display: inline-block;
}

.title-main {
  position: relative;
  font-size: clamp(3.5rem, 12vw, 6.8rem);
  text-transform: uppercase;
  font-weight: 800;
  margin: 0;
  line-height: 0.95;
  text-shadow: 6px 6px 0 var(--hero-shadow);
}

.hero-panel {
  background: var(--hero-bg);
  color: var(--hero-text);
  --offset-shadow: var(--hero-shadow);
}

.hero-panel .title-main {
  color: var(--hero-text);
  text-shadow: 6px 6px 0 var(--hero-shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-copy p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.hero-panel .hero-copy p {
  color: #fff;
}

.hero-card,
.feature-card,
.action-card,
.news-card,
.join-thanks {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.punchlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.punchlist span {
  background: var(--surface);
  color: var(--ink);
  border: 4px solid var(--line);
  padding: 12px 16px;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--ink);
  border: 4px solid var(--line);
  border-radius: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 20px;
}


.hero-points {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 18px;
}

.hero-panel .hero-points {
  color: var(--hero-text);
}

.section-lede h2 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 6vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.section-lede p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.section-lede {
  max-width: 720px;
}

.panel-ink .section-lede p {
  color: #ffe3de;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.party-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(520px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.feature-stack {
  display: grid;
  gap: 24px;
  position: relative;
}

.feature-card {
  border: 3px solid var(--line);
  border-radius: 0;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--offset-shadow);
}

.panel-light .feature-card {
  background: #fff;
}

.feature-card h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.feature-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 4px 4px 0 var(--offset-shadow);
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-toggle::after {
  content: "›";
  display: inline-block;
  transition: transform 0.15s ease;
}

.accordion-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.accordion-panel {
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.6;
}

.debs-figure {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start; 
}

.debs-img {
  width: 100%;
  max-width: 850px;
  height: auto;
  filter: grayscale(12%);
  transform-origin: 50% 70%;
  animation: debs-wiggle 3s ease-in-out infinite;
  animation-play-state: paused;
}

.debs-figure:hover .debs-img {
  animation-play-state: running;
}

.debs-caption {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
}

@keyframes debs-wiggle {
  0%, 100% { transform: rotate(0deg) translateZ(0); }
  20% { transform: rotate(-1.5deg) translateX(-2px); }
  40% { transform: rotate(1.3deg) translateX(3px); }
  60% { transform: rotate(-0.8deg) translateX(-2px); }
  80% { transform: rotate(1deg) translateX(2px); }
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.action-card {
  color: var(--ink);
  border: 4px solid var(--line);
  border-radius: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-card h3 {
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
}

.action-card p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  color: var(--ink);
  border: 4px solid var(--line);
  border-radius: 0;
  padding: 22px;
}

.news-card h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 18px;
}

.news-card p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

/* Candidates */
.candidates-panel .panel-inner {
  gap: 32px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.candidate-card {
  border: 4px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}

.candidate-card .candidate-photo,
.candidate-detail .candidate-photo {
  border: 3px solid var(--line);
  background: var(--paper);
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.candidate-card img,
.candidate-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-card .candidate-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.candidate-name {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
}

.candidate-position {
  font-weight: 700;
  color: var(--primary);
}

.candidate-location {
  color: var(--muted);
  font-size: 15px;
}

.candidate-blurb {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.candidate-card .btn {
  margin-top: 8px;
  width: fit-content;
}

.candidate-detail {
  background: #fff;
}

.candidate-detail .candidate-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 28px;
  align-items: start;
}

.candidate-detail .candidate-photo.large {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.candidate-bio {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
  max-width: 820px;
}

/* Dunces */
.dunces-panel .panel-inner {
  align-items: center;
  text-align: center;
  gap: 20;
}

.dunces-panel {
  padding-top: 30px;
}

.dunces-title {
  color: #fff;
  font-size: clamp(4rem, 10vw, 7rem);
  text-shadow: 6px 6px 0 #000;
}

.dunces-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 900px) {
  .dunces-row {
    flex-wrap: nowrap;
  }
}

.dunce-card {
  max-width: 900px;
  margin: 28px auto 0;
  gap: 12px;
  text-align: left;
}

.dunce-card p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dunces-row img {
  width: min(26vw, 520px);
  height: auto;
  border: none;
  box-shadow: none;
  background: transparent;
}

.dunces-row .micah {
  animation: micah-wiggle 2.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}

.dunces-row .braun {
  animation: braun-bob 2.0s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.dunces-row .diego {
  animation: diego-stretch 2.6s ease-in-out infinite;
  transform-origin: 50% 80%;
  width: min(26vw, 600px);
}

.dunce-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.dunce-wrapper .frustration-bubble {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: auto;
}

.dunce-chip {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 4px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: auto;
  color: var(--primary-text);
}

@keyframes micah-wiggle {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-1.6deg) translateY(-1px); }
  50% { transform: rotate(1.4deg) translateY(1px); }
  75% { transform: rotate(-1deg) translateY(-2px); }
}

@keyframes braun-bob {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  60% { transform: translateY(2px); }
}

@keyframes diego-stretch {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.02, 1.05); }
  70% { transform: scale(0.99, 0.98); }
}


.frustration-bubble {
  width: 80px;
  height: auto;
  overflow: visible;
  animation: rage-shake 1.8s infinite;
}

.cloud-shape {
  fill: #ffffff;
  stroke: #000000;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.scribble-spiral {
  fill: none;
  stroke: #000000;
  stroke-width: 3.5px; 
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 500; 
  stroke-dashoffset: 500;
  animation: scribbling-action 1.5s ease-out infinite;
}

/* --- ANIMATIONS --- */

@keyframes scribbling-action {
  to { stroke-dashoffset: 0; }
}

/* UPDATED: The "Interval" Rumble */
/* The shake happens from 0% to 15%. From 15% to 100%, it sits still. */
@keyframes rage-shake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  3%   { transform: translate(-2px, 1px) rotate(-1deg); }
  6%   { transform: translate(1px, -2px) rotate(1deg); }
  9%   { transform: translate(2px, 1px) rotate(0deg); }
  12%  { transform: translate(-1px, -1px) rotate(-1deg); }
  15%  { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); } /* Pause */
}




/* Candidates */
.candidates-panel .panel-inner {
  gap: 32px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.candidate-card {
  border: 4px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}

.candidate-card .candidate-photo,
.candidate-detail .candidate-photo {
  border: 3px solid var(--line);
  background: var(--paper);
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.candidate-card img,
.candidate-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-card .candidate-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.candidate-name {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
}

.candidate-position {
  font-weight: 700;
  color: var(--primary);
}

.candidate-location {
  color: var(--muted);
  font-size: 15px;
}

.candidate-blurb {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.candidate-card .btn {
  margin-top: 8px;
  width: fit-content;
}

.candidate-detail {
  background: #fff;
}

.candidate-detail .candidate-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 28px;
  align-items: start;
}

.candidate-detail .candidate-photo.large {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.candidate-bio {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
  max-width: 820px;
}

.join-panel .panel-inner,
.donate-panel .panel-inner {
  max-width: 900px;
}

.join-form {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.join-form div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.join-form label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
}

.join-form input {
  padding: 16px;
  border-radius: 0;
  border: 4px solid var(--line);
  font-size: 18px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.12s ease;
}

.join-form input:focus {
  background: #fdf7e6;
  transform: translate(-6px, -6px);
  box-shadow: 16px 16px 0 var(--offset-shadow);
}

.join-message {
  min-height: 24px;
  margin-top: 10px;
}

.join-thanks {
  margin-top: 16px;
  padding: 18px;
  border: 4px solid var(--line);
  border-radius: 0;
}

.donate-panel .btn {
  background: #fff;
}

.map-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--page-gutter);
  background: var(--paper);
}

.map-frame {
  width: min(100%, 1100px);
  height: min(80vh, 720px);
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
  .panel {
    padding: 96px 6vw;
  }

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

  .title-shadow,
  .title-main {
    text-shadow: 8px 8px 0 var(--line);
  }

  .hero-panel .title-main {
    text-shadow: 4px 4px 0 var(--hero-shadow);
  }
}

@media (max-width: 900px) {
  .party-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .debs-figure {
    order: 2;
    position: static;
    margin-top: 32px;
  }

  .feature-stack {
    order: 1;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .panel {
    min-height: auto;
    padding: 80px 6vw;
  }

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

  .cta-row {
    flex-direction: column;
  }

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

  .label-chip {
    font-size: 12px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}


/* .stamp {
  --r: 12px;
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 4.3;
  padding: 10px;
  background: var(--accent-2);
  mask:
    radial-gradient(50% 50%, #0000 66%, #000 67%) round
      var(--r) var(--r) / calc(2 * var(--r)) calc(2 * var(--r)),
    conic-gradient(#000 0 0) content-box;
  display: flex;
  align-items: center;
  justify-content: center;
} 



.stamp .brand {
  background: var(--primary);
  color: #f8eefc;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 4px solid var(--accent-2);
}  */
