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

:root {
  --paper: #f7f4ec;
  --ink: #1c1a16;
  --muted: #5c5648;
  --rule: #c9c2ab;
  --red: #8a1f11;
  --navy: #1f2d4d;
}

body {
  min-height: 100vh;
  background: #ded6bf;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0,0,0,0.06), transparent 60%);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

.document {
  position: relative;
  max-width: 680px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.18);
  padding: 48px 52px 40px;
}

.letterhead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.seal {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--navy);
  padding: 3px;
  background: #fff;
}

.letterhead-text .ref {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

.letterhead-text .filed {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-top: 2px;
}

.stamp {
  position: absolute;
  top: 46px;
  right: 44px;
  border: 3px solid var(--red);
  color: var(--red);
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  font-size: 13px;
  padding: 6px 12px;
  transform: rotate(8deg);
  opacity: 0.85;
  border-radius: 4px;
}

.eyebrow {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  font-family: Georgia, serif;
}

h1 {
  font-size: 30px;
  line-height: 1.3;
  margin: 10px 0 18px;
  font-weight: 700;
}

.hl { color: var(--red); }

.addressee {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 20px 0;
}

.body-text p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
  text-align: justify;
}

.exhibit {
  margin: 24px 0;
  padding: 18px 20px;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--rule);
}

.exhibit-title {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}

table { width: 100%; border-collapse: collapse; }

table td {
  padding: 7px 4px;
  font-size: 15px;
  border-bottom: 1px dashed var(--rule);
}

.status {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace;
}

tr.proposed td { font-weight: 700; color: var(--red); }
.status.pending { color: var(--red); }

.sign-section { text-align: center; margin: 30px 0 10px; }

.sign-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.vote-btn {
  background: var(--navy);
  color: #fdfaf2;
  border: none;
  padding: 15px 30px;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vote-btn:hover:not(:disabled) { background: #14203a; transform: translateY(-1px); }
.vote-btn:disabled { opacity: 0.6; cursor: default; }

.status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--red);
  font-family: Georgia, serif;
}

.progress-wrap { margin: 22px auto 0; max-width: 420px; }

.progress-bar {
  height: 10px;
  background: rgba(0,0,0,0.08);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.4s ease;
}

.progress-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'Courier New', monospace;
}

.fineprint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.footer-rule { margin-top: 30px; }

.disclaimer {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  font-style: italic;
}

@media (max-width: 480px) {
  .document { padding: 32px 22px 28px; }
  h1 { font-size: 24px; }
  .stamp { position: static; display: inline-block; margin-top: 12px; transform: rotate(-3deg); }
  .letterhead { flex-wrap: wrap; }
}

.name-field {
  max-width: 320px;
  margin: 0 auto 18px;
  text-align: left;
}

.name-field label {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.name-field input {
  width: 100%;
  padding: 10px 12px;
  font-family: Georgia, serif;
  font-size: 15px;
  border: 1px solid var(--rule);
  background: #fffdf7;
  color: var(--ink);
}

.name-field input:focus {
  outline: none;
  border-color: var(--navy);
}
