: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;
  --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;
}

[hidden] {
  display: none !important;
}

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: block;
  min-height: min(720px, calc(100svh - 120px));
  padding: clamp(40px, 6vw, 72px) 0;
}

.hero-copy {
  max-width: 900px;
}

.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-body {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.hero-body p {
  margin: 0;
}

.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);
}

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

.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;
}

.idea-form,
.ideas-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.idea-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 24px);
}

.form-intro h3,
.ideas-toolbar h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.form-intro p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
}

.idea-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.field-note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 520;
}

.idea-form input,
.idea-form select,
.idea-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 520;
}

.idea-form textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.idea-form button[type="submit"] {
  justify-content: center;
  cursor: pointer;
}

.idea-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ideas-panel {
  min-width: 0;
}

.submitted-demands {
  margin-top: 14px;
}

.demand-form {
  max-width: 850px;
  margin-top: clamp(80px, 9vw, 120px);
}

.ideas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.segmented button {
  min-width: 58px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(17, 19, 24, 0.12);
}

.idea-list {
  display: grid;
  gap: 0;
}

.idea-card,
.right-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 20px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 26px);
}

.idea-card {
  border-bottom: 1px solid var(--line);
}

.idea-card:last-child {
  border-bottom: 0;
}

.right-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

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

.idea-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.idea-meta span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.empty {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 24px;
  color: var(--muted);
}

.empty strong {
  color: var(--ink);
}

.vote-box {
  display: grid;
  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: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;
}

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

.manifesto-article {
  max-width: 850px;
  padding: clamp(40px, 6vw, 72px) 0;
}

.article-header {
  margin-bottom: clamp(40px, 8vw, 72px);
}

.manifesto-article section,
.article-cta {
  padding: clamp(28px, 5vw, 44px) 0;
  border-top: 1px solid var(--line-strong);
}

.manifesto-article h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.manifesto-article p {
  color: var(--muted);
  font-size: 1.12rem;
}

.manifesto-article p:last-child,
.article-cta p {
  margin-bottom: 0;
}

.article-cta {
  display: grid;
  gap: 14px;
}

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

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

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

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

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

  .lede {
    font-size: 1.04rem;
  }
}

@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;
  }

  .form-row,
  .ideas-toolbar {
    grid-template-columns: 1fr;
  }

  .ideas-toolbar {
    display: grid;
  }

  .segmented {
    width: 100%;
  }
}
