/* Bem Election Campaign — gaya poster kampanye kampus.
   Palet (lihat docs/DESIGN.md): Kertas Suara #FDFBF3, Teal Almamater
   #0E7C7B, Tinta Sidang #14201E, Merah Coblos #C1121F, Kuning Sorot
   #FFD60A, Abu Panitia #5C6B66. Tanpa gradient. Sudut tajam 2px, satu
   pengecualian: bingkai foto arch. Font: Archivo + IBM Plex Mono. */

:root {
  --paper: #fdfbf3;
  --teal: #0e7c7b;
  --teal-dark: #0a5e5d;
  --ink: #14201e;
  --red: #c1121f;
  --red-dark: #8f0d17;
  --yellow: #ffd60a;
  --grey: #5c6b66;
  --line: #14201e;
  --radius: 2px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, 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: 17px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

a { color: var(--teal-dark); }
a:hover { color: var(--red); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 8px; color: var(--paper); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
}
.brand-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  background: var(--red);
  padding: 2px 8px;
  border-radius: var(--radius);
}
.brand-name {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-stretch: 125%;
}
.brand-dot { color: var(--red); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav > a:hover { background: var(--yellow); color: var(--ink); }
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  font-weight: 700;
}
.gh-link:hover { background: var(--ink); color: var(--paper); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { border-bottom: 2px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 56px;
  align-items: start;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker-dot {
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(72px, 12vw, 148px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}
.hero-office {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 16px 0 0;
}
.hero-office strong {
  background: var(--red);
  color: var(--paper);
  padding: 2px 8px;
  border-radius: var(--radius);
}
.hero-slogan {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 24px 0 0;
  max-width: 20ch;
}
.hero-slogan mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-lede { max-width: 56ch; margin: 20px 0 0; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { font-size: 14px; color: var(--grey); max-width: 56ch; margin: 20px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 22px;
  min-height: 52px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--yellow); color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.photo-arch {
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--teal);
}
.photo-arch img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}
.photo-arch figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 20px;
}
.fig-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--yellow);
}
.fig-text { font-size: 15px; line-height: 1.35; }
.fig-text strong { font-size: 18px; }
.photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 16px 0 0;
  color: var(--grey);
}

/* ── Ticker ─────────────────────────────────────────────── */
.ticker {
  background: var(--teal);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  padding: 12px 0;
}
.ticker-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: ticker 28s linear infinite;
}
.tick-sep { color: var(--yellow); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Sections umum ──────────────────────────────────────── */
.section { padding: 72px 0; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-dark);
  margin: 0 0 12px;
}
.section h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.section-lede { max-width: 62ch; margin: 16px 0 0; }

/* ── Visi & Misi ────────────────────────────────────────── */
.visi { background: var(--paper); }
.visi-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
.visi-statement {
  background: var(--teal);
  color: var(--paper);
  padding: 32px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.visi-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin: 0 0 12px;
}
.visi-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  max-width: 26ch;
}
.misi-list { list-style: none; margin: 0; padding: 0; }
.misi-list li {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 2px solid var(--line);
}
.misi-list li:last-child { border-bottom: 2px solid var(--line); }
.misi-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 8px;
  height: fit-content;
  flex-shrink: 0;
}
.misi-list h3 { font-size: 20px; margin: 0 0 6px; font-weight: 800; }
.misi-list p { margin: 0; color: var(--grey); max-width: 60ch; }

/* ── Program ────────────────────────────────────────────── */
.program { background: #fff; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.program-list { list-style: none; margin: 40px 0 0; padding: 0; }
.program-item { border-top: 2px solid var(--line); }
.program-item:last-child { border-bottom: 2px solid var(--line); }
.program-item details summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 8px;
  cursor: pointer;
  list-style: none;
  min-height: 72px;
}
.program-item details summary::-webkit-details-marker { display: none; }
.program-item details summary:hover { background: #fdf6d8; }
.program-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: var(--teal-dark);
  flex-shrink: 0;
  min-width: 44px;
}
.program-head { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.program-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.program-tag { font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.chev { flex-shrink: 0; transition: transform 150ms ease-out; color: var(--ink); }
.program-item details[open ] .chev { transform: rotate(180deg); }
.program-body { padding: 0 8px 24px 72px; max-width: 78ch; }
.program-body p { margin: 0; color: var(--ink); }

/* ── Tahapan ────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.step { padding: 28px 24px; border-right: 2px solid var(--line); }
.step:last-child { border-right: none; }
.step:nth-child(odd) { background: #fff; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin: 0 0 8px; font-weight: 800; }
.step p { margin: 0; font-size: 15px; color: var(--grey); }

/* ── Simulasi coblos ────────────────────────────────────── */
.simulasi { background: var(--teal); color: var(--paper); }
.simulasi .section-kicker { color: var(--yellow); }
.simulasi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.simulasi .section-lede { color: #e6f2f1; }
.simulasi-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.simulasi-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.simulasi-points svg { flex-shrink: 0; margin-top: 3px; color: var(--yellow); }

.ballot {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px 24px;
  position: relative;
  box-shadow: 8px 8px 0 var(--ink);
}
.ballot-perforation {
  height: 14px;
  margin: 0 -24px 16px;
  background-image: radial-gradient(circle at 7px 7px, var(--teal) 5px, transparent 6px);
  background-size: 28px 14px;
  background-repeat: repeat-x;
  border-bottom: 2px dashed var(--grey);
}
.ballot-head {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}
.ballot-sub { font-family: var(--font-mono); font-size: 13px; color: var(--grey); margin: 4px 0 20px; }
.ballot-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--ink);
  position: relative;
  transition: background-color 120ms ease-out, transform 120ms ease-out;
}
.ballot-row:hover { background: #fdf6d8; }
.ballot-row:active { transform: scale(0.99); }
.ballot-row[aria-pressed="true"] { background: #fdf6d8; border-color: var(--red); }
.ballot-box {
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--paper);
  color: transparent;
}
.ballot-row[aria-pressed="true"] .ballot-box { background: var(--yellow); color: var(--ink); }
.ballot-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.ballot-candidate { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ballot-candidate strong { font-size: 20px; font-weight: 800; }
.ballot-candidate span { font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.ballot-stamp {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg) scale(0.6);
  border: 3px solid var(--red);
  color: var(--red);
  border-radius: 50%;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
  background: rgba(253, 251, 243, 0.85);
}
.ballot-row[aria-pressed="true"] .ballot-stamp {
  opacity: 1;
  transform: translateY(-50%) rotate(-12deg) scale(1);
}
.ballot-status { font-family: var(--font-mono); font-size: 14px; margin: 16px 0 0; }
.ballot-reset { margin-top: 16px; }
.ballot-fineprint { font-size: 13px; color: var(--grey); margin: 16px 0 0; }

/* ── Dukung ─────────────────────────────────────────────── */
.dukung-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.dukung-count { font-family: var(--font-mono); font-size: 15px; margin-top: 24px; }
.dukung-count strong { font-size: 28px; color: var(--red); }
.support-form {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 8px;
  box-shadow: 8px 8px 0 var(--teal);
}
.support-form label, .support-form legend {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.support-form input[type="text"],
.support-form textarea {
  font-family: var(--font-display);
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.support-form input:focus, .support-form textarea:focus {
  outline: 3px solid var(--red);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field-error { color: var(--red); font-size: 14px; font-weight: 700; margin: 0; }
.field-hint { font-family: var(--font-mono); font-size: 12px; color: var(--grey); margin: 0; text-align: right; }
.support-role { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 8px 0; display: grid; gap: 10px; }
.support-role legend { padding: 0 6px; }
.support-role label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  min-height: 44px;
  cursor: pointer;
}
.support-role input[type="radio"] { width: 20px; height: 20px; accent-color: var(--red); flex-shrink: 0; }
.form-status { font-family: var(--font-mono); font-size: 14px; font-weight: 700; margin: 8px 0 0; min-height: 22px; }
.form-status.ok { color: var(--teal-dark); }
.supporters-title { font-size: 20px; font-weight: 800; margin: 40px 0 16px; }
.supporters-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.supporters-list li {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
}
.supporters-list .s-name { font-weight: 800; font-size: 17px; }
.supporters-list .s-meta { font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.supporters-list .s-msg { flex-basis: 100%; color: var(--ink); margin: 4px 0 0; }
.supporters-empty { color: var(--grey); }
#supporters-clear { margin-top: 20px; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { background: #fff; border-top: 2px solid var(--line); }
.faq-wrap { max-width: 820px; }
.faq-list { margin-top: 40px; }
.faq-list details { border-top: 2px solid var(--line); }
.faq-list details:last-child { border-bottom: 2px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 800;
  min-height: 64px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: #fdf6d8; }
.faq-list details[open ] .chev { transform: rotate(180deg); }
.faq-list details p { padding: 0 8px 24px; margin: 0; max-width: 68ch; color: var(--ink); }
.faq-list code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: var(--radius);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-num { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--yellow); margin: 0 0 8px; }
.footer-brand p:last-child { margin: 0; color: #c9d4d0; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 0;
  min-height: 44px;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-meta { font-size: 14px; color: #c9d4d0; }
.footer-meta a { color: var(--paper); }
.footer-meta a:hover { color: var(--yellow); }
.footer-meta p { margin: 12px 0 0; }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .visi-grid, .simulasi-grid, .dukung-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 2px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px; }
  .section { padding: 56px 0; }
  .hero-grid { padding-top: 40px; padding-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 2px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .program-body { padding-left: 8px; }
  .program-num { min-width: 36px; font-size: 18px; }
  .program-name { font-size: 19px; }
  .ballot { box-shadow: 4px 4px 0 var(--ink); }
  .ballot-stamp { width: 76px; height: 76px; font-size: 12px; }
  .support-form { box-shadow: 4px 4px 0 var(--teal); padding: 20px; }
  .brand-sub { display: none; }
}
