:root {
  --bg: #faf9f7;
  --fg: #2d2d2d;
  --muted: #6b6b6b;
  --accent: #2a7f62;
  --accent-dark: #1e5c47;
  --highlight: #e07a5f;
  --border: #e0ddd5;
  --card: #ffffff;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 1.0625rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(42, 127, 98, 0.3);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header & Nav */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-title:hover {
  color: var(--accent);
}

.site-title span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.875rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--bg);
  color: var(--fg);
}

.site-nav a.active {
  background: var(--bg);
  color: var(--accent);
  font-weight: 500;
}

/* Main content */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

p, ul, ol {
  margin-bottom: 1.15rem;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Intro block */
.intro {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Cards / callouts */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-highlight {
  border-left: 4px solid var(--accent);
}

.callout-warn {
  border-left: 4px solid var(--highlight);
}

.callout-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

/* Math / formula boxes */
.math-box {
  background: #f3f2ef;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

/* Placeholder */
.placeholder {
  background: #fff8e6;
  border: 1px solid #f0e0b0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.placeholder-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #8a6d3b;
  margin-bottom: 0.4rem;
}

.placeholder p {
  color: #7a6a4a;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Last updated */
.last-updated {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--card);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.1rem;
    padding-top: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
    width: 100%;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  body {
    font-size: 1rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--fg);
}

.btn-secondary:hover {
  background: #1a1a1a;
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Poll widget */
.poll-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.poll-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  color: var(--fg);
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.95rem;
}

.poll-option:hover {
  background: var(--bg);
}

.poll-option input[type="radio"] {
  accent-color: var(--accent);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.poll-results {
  display: none;
}

.poll-result-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.poll-result-label {
  font-size: 0.9rem;
  min-width: 8rem;
  flex-shrink: 0;
}

.poll-result-track {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.poll-result-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.poll-result-pct {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 2.5rem;
  text-align: right;
}

.poll-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Contact / question form */
.question-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 1.5rem;
}

.question-form-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.question-form-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--fg);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--card);
  color: var(--fg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 127, 98, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  background: #e8f5ee;
  border: 1px solid #b8dfc8;
  border-radius: 8px;
  padding: 1rem;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.form-success.visible {
  display: block;
}

/* Segment CTAs */
.segment-cta {
  background: #f0f7f4;
  border: 1px solid #d0e5dc;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.segment-cta-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--accent-dark);
}

.segment-cta p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.segment-cta-business {
  background: #f5f0f7;
  border-color: #e0d0e5;
}

.segment-cta-business .segment-cta-title {
  color: #5c3d6e;
}

/* Topic voting */
.topic-vote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.topic-vote-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.topic-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.topic-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.topic-option:hover {
  background: var(--bg);
}

.topic-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 1.05rem;
  height: 1.05rem;
}

/* Newsletter */
.newsletter-signup {
  max-width: 480px;
  margin: 0 auto 1rem;
}

.newsletter-signup p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* Vision / Rights page */
.rights-hero {
  padding: 1.5rem 0 1rem;
}

.rights-hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.rights-hero .intro {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
}

.right {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.right:first-of-type {
  border-top: none;
}

.right-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.right h2 {
  font-size: 1.5rem;
  color: var(--fg);
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.right p {
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1.7;
}

.rights-closing {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 1rem;
}

.rights-closing p {
  color: var(--muted);
  font-size: 1.1rem;
  font-style: italic;
  font-family: var(--font-heading);
}

/* Screen-reader only */
/* Hero / problem cards */
.hero {
  padding: 1.5rem 0 2rem;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

.problem-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

@media (min-width: 640px) {
  .problem-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.problem-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.problem-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.problem-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.problem-card .btn-sm {
  margin-top: 0.5rem;
}

/* Vision page */
.vision-hero {
  padding: 1.5rem 0 1rem;
}

.vision-hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Action page */
.action-list {
  list-style: none;
  padding-left: 0;
}

.action-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.action-list li:last-child {
  border-bottom: none;
}

.action-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
