@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --cream: #f4f1ea;
  --border: #dad5c7;
  --ink: #3e3c37;
  --muted: #8a8575;
  --quote: #c9c3b3;
  --mauve: #9c7566;
  --slate: #6e7c99;
  --card-radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  font-weight: 600;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px 36px;
  margin-bottom: 24px;
}

.quote-mark {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--quote);
  display: block;
  margin-bottom: 6px;
  font-style: italic;
}

.question {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 28px;
  max-width: 34ch;
}

.bar-row {
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 14px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  color: #fff;
  transition: width 0.4s ease;
}

.bar-row .bar-label {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.bar-row .bar-pct {
  font-size: 26px;
  font-weight: 700;
}

.bar-list.selectable .bar-row {
  cursor: pointer;
  justify-content: space-between;
  text-align: left;
}

.bar-list.selectable .bar-row .bar-pct { display: none; }

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.wordmark { color: var(--ink); font-size: 14px; }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 400; }

.poll-list-item {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.poll-list-item:hover { border-color: var(--slate); }

.hint { color: var(--muted); font-size: 14px; margin-top: -16px; margin-bottom: 24px; }

button.vote-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}

button.vote-btn:hover { border-color: var(--slate); }

/* --- admin-only bits --- */

.admin-gate {
  max-width: 380px;
  margin: 80px auto;
  text-align: center;
}

input, textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  width: 100%;
}

label { font-size: 13px; color: var(--muted); display: block; margin: 14px 0 4px; }

.option-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.option-row input[type=text] { flex: 1; }
.option-row input[type=color] { width: 44px; padding: 2px; }

.primary-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  margin-top: 18px;
}

.admin-poll-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}

.admin-poll-row small { display: block; color: var(--muted); margin-top: 4px; }

.text-link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}
