/* ---------- tokens ---------- */
:root {
  --ink: #0e0e10;
  --ink-2: #1a1a1d;
  --ink-3: #2a2a2f;
  --paper: #fafaf7;
  --paper-2: #f1f0eb;
  --rule: #d9d7d0;
  --hazard: #ffd400;
  --hazard-deep: #f5b800;
  --danger: #d6322a;
  --muted: #6b6b73;
  --max: 1180px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.18), 0 18px 60px rgba(0, 0, 0, 0.25);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica,
    Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:hover {
  color: var(--danger);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

code {
  font: 0.95em/1 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(255, 212, 0, 0.08), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(214, 50, 42, 0.08), transparent 60%);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
}

.hazard-stripe {
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--hazard) 0 18px,
    var(--ink) 18px 36px
  );
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--hazard);
  margin: 0 0 1.5rem;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 2rem;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-nav a {
  text-decoration: none;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--paper);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hero-nav a:hover {
  background: var(--hazard);
  border-color: var(--hazard);
  color: var(--ink);
}

/* ---------- sections ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: 0;
}

.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 1rem;
}

.lede-prose {
  max-width: 70ch;
  margin: 0 0 1rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.impact-grid article {
  border-left: 3px solid var(--hazard);
  padding: 0.1rem 0 0.1rem 1rem;
}

.impact-grid h3 {
  margin-bottom: 0.4rem;
}

.impact-grid p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.97rem;
}

/* ---------- gallery ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-count {
  font-size: 0.9rem;
  color: var(--muted);
}

.filter-group {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper);
}

.filter-group button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-3);
}

.filter-group button.active {
  background: var(--ink);
  color: var(--paper);
}

.incidents {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.incident-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.incident-date {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.incident-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tile:hover img {
  transform: scale(1.04);
}

.tile-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(14, 14, 16, 0.78);
  color: var(--paper);
  backdrop-filter: blur(4px);
}

.tile-badge.video {
  background: var(--danger);
}

.tile-time {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(14, 14, 16, 0.7);
  color: var(--paper);
}

.tile-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.tile-play svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  opacity: 0.95;
}

/* ---------- petition ---------- */
.petition {
  background: var(--ink);
  color: var(--paper);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1.25rem, calc(50vw - var(--max) / 2));
  padding-right: max(1.25rem, calc(50vw - var(--max) / 2));
  border-bottom: 0;
  position: relative;
}

.petition::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--hazard) 0 16px,
    var(--ink) 16px 32px
  );
}

.petition-inner {
  max-width: 720px;
  margin: 0 auto;
}

.petition h2 {
  color: var(--paper);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.petition strong {
  color: var(--hazard);
  font-weight: 700;
}

.asks {
  margin: 1.25rem 0 2.25rem;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
}

.asks li {
  margin-bottom: 0.55rem;
}

.petition-form {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.petition-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.petition-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.petition-form label.full {
  grid-column: 1 / -1;
}

.petition-form em {
  color: var(--hazard);
  font-style: normal;
}

.petition-form input[type="text"],
.petition-form input[type="email"],
.petition-form select,
.petition-form textarea {
  font: inherit;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.petition-form input:focus,
.petition-form select:focus,
.petition-form textarea:focus {
  outline: none;
  border-color: var(--hazard);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.18);
}

.petition-form textarea {
  resize: vertical;
  font-family: inherit;
}

.petition-form .check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.petition-form .check input {
  margin-top: 0.25rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  background: var(--hazard);
  color: var(--ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn-primary:hover {
  background: var(--hazard-deep);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.form-status.ok {
  color: #6dd49b;
}

.form-status.err {
  color: #ff8a82;
}

.fine {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.fine a {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- petition stats ---------- */
.petition-stats {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 212, 0, 0.18);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.stat-headline {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.stat-num {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hazard);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.stat-roles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.stat-roles li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.stat-roles strong {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat-updated {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.already-signed {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: rgba(109, 212, 155, 0.1);
  border: 1px solid rgba(109, 212, 155, 0.35);
  color: #b6e8c9;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* ---------- public signatories & stories ---------- */
.public-signatories,
.public-stories {
  margin-top: 2.5rem;
}

.public-signatories h3,
.public-stories h3 {
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.public-signatories .muted {
  color: rgba(255, 255, 255, 0.6);
}

.names-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.names-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.names-list .role-tag {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  color: var(--hazard);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stories-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
}

.stories-list li {
  background: var(--ink-2);
  border-left: 3px solid var(--hazard);
  padding: 0.9rem 1.1rem;
  border-radius: 0 4px 4px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
}

.stories-list .story-attr {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.stories-list .story-attr strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* ---------- footer ---------- */
footer {
  background: var(--paper-2);
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

footer p {
  margin: 0 0 0.4rem;
}

/* ---------- lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: rgba(8, 8, 10, 0.96);
  color: var(--paper);
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lb-stage {
  position: absolute;
  inset: 60px 60px 80px;
  display: grid;
  place-items: center;
}

.lb-stage img,
.lb-stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lb-meta {
  position: absolute;
  inset: auto 60px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.lb-meta strong {
  color: var(--paper);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: transparent;
  color: var(--paper);
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lb-close {
  top: 12px;
  right: 12px;
  font-size: 2rem;
  line-height: 1;
}

.lb-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  section {
    padding: 2.75rem 0;
  }
  .hero-inner {
    padding: 3rem 1.25rem 2.5rem;
  }
  .petition-form .row {
    grid-template-columns: 1fr;
  }
  .tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  .lb-stage {
    inset: 56px 8px 76px;
  }
  .lb-meta,
  .lb-close,
  .lb-prev,
  .lb-next {
    inset: auto;
  }
  .lb-meta {
    bottom: 12px;
    left: 8px;
    right: 8px;
  }
  .lb-prev {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
  }
  .lb-next {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
