:root {
  --bg: #f7f5ef;
  --ink: #211f1d;
  --muted: #615c55;
  --panel: #fffdf8;
  --line: #24211e;
  --blue: #2f6fed;
  --green: #12a66a;
  --yellow: #ffd966;
  --coral: #ff6f61;
  --shadow: 5px 5px 0 #24211e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(36, 33, 30, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(36, 33, 30, 0.04) 1px, transparent 1px), var(--bg);
  background-size: 18px 18px;
  color: var(--ink);
}

main {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.hero {
  min-height: auto;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px 0 18px;
}

.hero__badge,
.section-kicker {
  width: fit-content;
  border: 2px solid var(--line);
  background: var(--yellow);
  padding: 8px 10px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 920px;
  font-size: 2.25rem;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.55rem;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.counter {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  border: 3px solid var(--line);
  background: var(--panel);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

#signature-count {
  color: var(--blue);
  font-size: 2.2rem;
  line-height: 1;
}

.petition-grid {
  display: grid;
  gap: 24px;
  margin-top: 14px;
}

.card {
  border: 3px solid var(--line);
  background: var(--panel);
  min-width: 0;
  padding: 18px;
  box-shadow: var(--shadow);
}

.info-card p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.info-card h2,
.vote-card h2,
.signature-card h2 {
  margin: 12px 0 16px;
}

.vote-card {
  background: #e9f2ff;
}

.vote-card h3 {
  margin: 22px 0 12px;
}

.vote-options {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.vote-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--line);
  background: #fff;
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
  min-width: 0;
}

.vote-options span,
.signature-list span,
button {
  overflow-wrap: anywhere;
}

input[type="radio"] {
  accent-color: var(--coral);
  inline-size: 20px;
  block-size: 20px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 900;
}

input,
textarea,
button {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 0;
  font: inherit;
}

input,
textarea {
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button {
  margin-top: 6px;
  background: var(--green);
  color: #fff;
  padding: 13px 14px;
  box-shadow: 5px 5px 0 var(--line);
  cursor: pointer;
  font-weight: 950;
}

button:hover,
button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--line);
}

button:disabled {
  background: #9d9a94;
  cursor: not-allowed;
  transform: none;
  box-shadow: 5px 5px 0 var(--line);
}

.form-message {
  min-height: 1.5em;
  color: var(--blue);
  font-weight: 800;
}

.form-message.is-error {
  color: #b42318;
}

.signature-list {
  display: grid;
  gap: 12px;
  min-height: 90px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signature-list li {
  border: 2px solid var(--line);
  background: #fff;
  padding: 12px;
}

.signature-list strong {
  display: block;
}

.signature-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  margin-top: 28px;
  border: 2px dashed var(--line);
  background: rgba(255, 255, 255, 0.75);
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

@media (min-width: 520px) {
  :root {
    --shadow: 7px 7px 0 #24211e;
  }

  main {
    width: min(1240px, calc(100% - 36px));
    padding-top: 24px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .counter {
    width: fit-content;
  }

  .card {
    padding: 24px;
  }
}

@media (min-width: 900px) {
  :root {
    --shadow: 8px 8px 0 #24211e;
  }

  main {
    width: min(1240px, calc(100% - 56px));
    padding-top: 36px;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .petition-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    align-items: stretch;
    column-gap: 16px;
  }

  .info-card {
    grid-column: 1;
    grid-row: 1;
  }

  .vote-card {
    grid-column: 1;
    grid-row: 2;
  }

  .signature-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  .card {
    padding: 28px;
  }
}
