:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #111318;
  --muted: #5b6472;
  --line: #d9dee7;
  --line-strong: #b8c0cc;
  --blue: #0a63ff;
  --blue-ink: #063a94;
  --green: #0a7a43;
  --green-bg: #e8f7ef;
  --red: #a53131;
  --red-bg: #faecec;
  --shadow: 0 14px 40px rgba(17, 19, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--surface);
  background: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.site-header nav {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: min(720px, calc(100svh - 120px));
  padding: clamp(40px, 6vw, 72px) 0;
}

.tagline {
  margin: 0 0 18px;
  color: var(--blue-ink);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 760;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

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

.score-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-label,
.status,
.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-label {
  margin-bottom: 6px;
  font-weight: 720;
  text-transform: uppercase;
}

.score-number {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 820;
  line-height: 0.9;
}

.score-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.score-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.score-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  text-transform: uppercase;
}

.score-stats dd {
  margin: 2px 0 0;
  font-size: 1.8rem;
  font-weight: 780;
}

.status {
  min-height: 1.5em;
  margin: 0;
}

.rights-section {
  padding: 16px 0 72px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
  align-items: end;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.rights-list {
  display: grid;
  gap: 12px;
}

.right-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 20px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.right-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.22rem, 2.6vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.right-card p {
  max-width: 790px;
  margin-bottom: 12px;
  color: var(--muted);
}

.right-card .ask {
  margin: 0;
  color: var(--ink);
  font-weight: 710;
}

.vote-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-content: center;
  min-width: 0;
}

.vote-score {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 1.55rem;
  font-weight: 820;
}

.vote-button {
  display: grid;
  grid-template-rows: 24px 1fr;
  gap: 2px;
  justify-items: center;
  min-height: 66px;
  padding: 8px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.vote-button svg {
  width: 22px;
  height: 22px;
}

.vote-button span {
  font-size: 1.08rem;
}

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

.vote-button[data-vote="1"][aria-pressed="true"] {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-bg);
}

.vote-button[data-vote="-1"][aria-pressed="true"] {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-bg);
}

.vote-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 760;
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero,
  .section-heading,
  .right-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding: 24px 0 32px;
  }

  h1 {
    font-size: clamp(2.2rem, 10.8vw, 3.2rem);
  }

  .vote-box {
    grid-template-columns: 1fr 1fr;
  }

  .lede {
    font-size: 1.04rem;
  }

  .score-panel {
    gap: 14px;
    padding: 18px;
  }

  .score-number {
    font-size: 3.25rem;
  }

  .score-stats dd {
    font-size: 1.45rem;
  }
}

@media (max-width: 480px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions .button {
    flex: 1 1 150px;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.94rem;
  }

  .button {
    justify-content: center;
  }

  .right-card {
    padding: 16px;
  }
}
