:root {
  --ink: #1c2421;
  --muted: #58645f;
  --paper: #f6f3ea;
  --white: #fffdf8;
  --green: #183f35;
  --red: #9f3f32;
  --gold: #c4934c;
  --line: rgba(28, 36, 33, 0.16);
  --shadow: 0 24px 80px rgba(28, 36, 33, 0.16);
}

@font-face {
  font-family: "We The People";
  src: url("/static/fonts/WeThePeople.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 243, 234, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-button {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
}

.community-button {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
}

.hero {
  display: block;
  min-height: calc(100vh - 70px);
  padding: clamp(48px, 8vw, 104px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(120deg, rgba(24, 63, 53, 0.08), transparent 45%),
    repeating-linear-gradient(90deg, rgba(28, 36, 33, 0.04) 0 1px, transparent 1px 22px);
}

.hero-copy {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.constitution-script {
  color: var(--green);
  font-family: "We The People", Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 10vw, 8.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: none;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 11vw, 8.4rem);
  line-height: 0.88;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.motto {
  margin: 20px 0 0;
  color: var(--green);
  font-size: clamp(1.3rem, 3vw, 2.35rem);
  font-weight: 800;
}

.hero-text,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 1120px;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.button.secondary {
  background: var(--white);
}

.pledge-panel {
  width: min(100%, 760px);
  margin: clamp(48px, 7vw, 82px) auto 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.big-number,
.big-label {
  display: block;
}

.big-number {
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
  font-weight: 800;
  color: var(--red);
}

.big-label {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 800;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 1180px;
  margin-bottom: 34px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tally-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tally-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tally-count {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
}

.tally-card p,
.statement p,
.statement span {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.community-invite {
  max-width: 1180px;
  margin: clamp(32px, 5vw, 52px) auto 0;
  color: var(--green);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.statement {
  display: grid;
  gap: 18px;
  background: var(--green);
  text-align: center;
}

.statement p {
  max-width: 940px;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  font-weight: 800;
}

.statement span {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.social-links a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: 50%;
  color: var(--white);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--white);
  color: var(--green);
  transform: translateY(-2px);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.privacy-disclaimer {
  background: var(--white);
  text-align: center;
}

.privacy-disclaimer .eyebrow,
.privacy-disclaimer h2,
.privacy-disclaimer p {
  text-align: center;
}

.privacy-disclaimer h2,
.privacy-disclaimer p {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-disclaimer p:last-child {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.form-section {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(34px, 8vw, 96px) 18px;
}

.form-section.wide {
  align-items: start;
}

.auth-form {
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.question-form {
  width: min(100%, 860px);
}

.auth-form h1 {
  font-size: clamp(2.4rem, 8vw, 4.8rem);
}

label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.auth-form .button {
  width: 100%;
  margin-top: 24px;
}

.error {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(159, 63, 50, 0.12);
  color: var(--red);
  font-weight: 800;
}

.success {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(24, 63, 53, 0.12);
  color: var(--green);
  font-weight: 800;
  line-height: 1.5;
}

.question-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.check-row {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.check-row input {
  min-height: 24px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.small {
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .tally-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 3.6rem;
  }

  .button {
    width: 100%;
  }
}
