:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #0e0e0e;
  --text: #f2efe8;
  --muted: #8f8d87;
  --line: #2a2926;
  --line-strong: #3b3934;
  --accent: #ff5c96;
  --accent-soft: #f4abc5;
  --good: #8ee6b1;
  --bad: #ff8b8b;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #090909; }

.site-header,
main,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.site-header {
  border-inline: 1px solid var(--line);
}

.topline {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-block;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(17px, 1.8vw, 25px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.signal {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.signal i,
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 92, 150, .5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 150, 0); }
  35% { box-shadow: 0 0 0 7px rgba(255, 92, 150, .08); }
}
@media (prefers-reduced-motion: reduce) {
  .signal i, .pulse-dot { animation: none; }
}

.language-strip {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  border-bottom: 1px solid var(--line);
}
.language-strip a {
  flex: 0 0 auto;
  padding: 13px 17px;
  border-inline-end: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.language-strip a:hover,
.language-strip a:focus-visible {
  color: var(--text);
  background: #111;
  outline: none;
}
.language-strip a[aria-current="page"] {
  color: #090909;
  background: var(--accent);
}

main {
  border-inline: 1px solid var(--line);
}

.hero {
  min-height: min(740px, calc(100vh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .65fr);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(74px, 11vw, 160px) var(--pad);
}
.eyebrow,
.section-kicker {
  margin: 0 0 30px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 1050px;
  font-size: clamp(58px, 8.4vw, 136px);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 760;
}
.hero h1 span,
.hero h1 em { display: block; }
.hero h1 em {
  color: var(--accent-soft);
  font-style: normal;
}
.question {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -.025em;
}

.live-readout {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  border-inline-start: 1px solid var(--line);
  background: var(--panel);
}
.readout-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.live-readout strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 26px 0 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(48px, 7vw, 92px);
  line-height: .95;
  letter-spacing: -.07em;
}
.status {
  min-height: 42px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}
.status.is-success { color: var(--good); }
.status.is-error { color: var(--bad); }

.section-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.section-index {
  padding: 38px var(--pad);
  border-inline-end: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.section-main {
  padding: clamp(46px, 6vw, 88px) var(--pad);
}
.section-main h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 74px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}
.section-copy {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
}

.vote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
  border-inline-start: 1px solid var(--line-strong);
}
.vote-button,
.share-option {
  appearance: none;
  min-width: 0;
  border: 0;
  border-inline-end: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: start;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.vote-button {
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -.04em;
}
.vote-button b,
.share-option b {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
}
.vote-button:hover:not(:disabled),
.vote-button:focus-visible:not(:disabled),
.share-option:hover,
.share-option:focus-visible {
  background: var(--accent);
  color: #090909;
  outline: none;
}
.vote-button:disabled {
  cursor: default;
  color: #5d5b56;
}
.vote-button.is-selected {
  background: var(--accent);
  color: #090909;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line-strong);
  border-inline-start: 1px solid var(--line-strong);
}
.share-option {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .03em;
}
.share-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-row .section-main { padding-block: 34px; }
.privacy-content p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}
.privacy-content a {
  color: var(--text);
  text-underline-offset: 3px;
}

.site-footer {
  min-height: 90px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 0 var(--pad);
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}
.site-footer span:nth-child(2) { text-align: center; }

.noscript-message {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 10;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  background: #090909;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.language-fallback {
  width: min(100% - 40px, 1100px);
  margin: 0 auto;
  padding: 72px 0;
}
.language-fallback > .brand { margin-bottom: 110px; }
.language-fallback h1 {
  margin: 0 0 50px;
  max-width: 900px;
  font-size: clamp(54px, 9vw, 120px);
  line-height: .9;
  letter-spacing: -.07em;
}
.language-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.language-link-grid a {
  padding: 22px;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  text-decoration: none;
}
.language-link-grid a:hover,
.language-link-grid a:focus-visible { background: var(--accent); color: #090909; outline: none; }

/* Privacy page / simple system pages */
.legal-shell {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 72px 0;
}
.legal-shell .brand { margin-bottom: 70px; }
.legal-card {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.legal-card h1 { font-size: clamp(42px, 7vw, 78px); line-height: .95; letter-spacing: -.055em; }
.legal-card h2 { margin-top: 48px; color: var(--accent-soft); }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.7; }
.legal-card code { font-family: var(--mono); color: var(--text); }

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

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-main h2,
html[dir="rtl"] .vote-button,
html[dir="rtl"] .share-option { letter-spacing: 0; }
html[dir="rtl"] .brand { direction: ltr; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { min-height: 520px; }
  .live-readout { border-inline-start: 0; border-top: 1px solid var(--line); }
  .section-row { grid-template-columns: 78px minmax(0, 1fr); }
  .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer span:nth-child(2) { display: none; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  .topline { min-height: 64px; }
  .hero-copy { min-height: 430px; padding-block: 68px; }
  .hero h1 { font-size: clamp(50px, 16vw, 78px); }
  .question { margin-top: 26px; }
  .section-row { display: block; }
  .section-index { padding: 18px var(--pad); border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .section-main { padding-block: 46px; }
  .vote-actions, .share-grid { grid-template-columns: 1fr; }
  .vote-button { min-height: 96px; }
  .share-option { min-height: 62px; }
  .site-footer { min-height: 72px; }
  .language-link-grid { grid-template-columns: 1fr; }
  .language-fallback > .brand { margin-bottom: 80px; }
}

.legal-page,
.error-page main {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 72px 0;
}
.back-link,
.error-page a {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 12px;
  text-underline-offset: 4px;
}
.legal-page > h1,
.error-page h1 {
  margin: 70px 0 42px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: .92;
  letter-spacing: -.06em;
}
.legal-page .legal-card {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.error-page { display: block; }
.error-page main { border: 0; }
.error-page p { color: var(--muted); font-size: 18px; }
