/* Variant 2 — Neo-Brutalist Color Blocks & Stripes */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #fdfaf5;
  --fg: #101010;
  --muted: #555555;

  --accent-blue: #1d4ed8;
  --accent-coral: #fb7185;
  --accent-mint: #22c55e;

  --border-width: 2px;
  --border: var(--border-width) solid #101010;

  --step--1: 0.8rem;
  --step-0: clamp(1rem, 0.9rem + 0.4vw, 1.12rem);
  --step-1: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  --step-2: clamp(2rem, 1.6rem + 1.1vw, 2.6rem);
  --step-3: clamp(2.8rem, 2.2rem + 1.4vw, 3.4rem);

  --transition-fast: 0.16s ease-out;
  --transition-med: 0.26s ease-out;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

.container {
  width: min(1150px, 94%);
  margin-inline: auto;
}

/* Header with stripe */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fdfaf5;
  border-bottom: var(--border);
}

.header::before {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #101010 0 12px,
    transparent 12px 24px
  );
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-block {
  width: 1.7rem;
  height: 1.7rem;
  background: var(--accent-blue);
  border: var(--border);
  box-shadow: 3px 3px 0 #101010;
}

.logo-text {
  font-weight: 800;
  font-size: var(--step-0);
  letter-spacing: 0.16em;
}

/* Nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: var(--step--1);
  color: var(--fg);
  padding: 0.3rem 0.55rem;
  border-radius: 0;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #101010;
  color: #fdfaf5;
  border-color: #101010;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #101010;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 0;
  border: var(--border);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  background: #ffffff;
  color: #101010;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.btn.primary {
  background: var(--accent-blue);
  color: #fdfaf5;
}

.btn.ghost {
  background: #ffffff;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #101010;
}

/* Hero */
.hero {
  padding-block: 3rem 2.5rem;
  border-bottom: var(--border);
  background: linear-gradient(135deg, #fdfaf5 60%, #e0f2fe 60%);
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: flex-start;
}

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

.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 0.6rem;
}

.hero-title {
  font-size: var(--step-3);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: var(--step-0);
  color: var(--muted);
  max-width: 30rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Hero panel */
.hero-panel {
  border: var(--border);
  background: #fefce8;
  padding: 1.2rem 1.1rem;
  display: grid;
  gap: 0.8rem;
  box-shadow: 6px 6px 0 #101010;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--step--1);
}

.hero-stat .label {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-stat .value {
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.hero-stat .badge {
  background: var(--accent-coral);
  color: #fdfaf5;
  padding: 0.12rem 0.4rem;
}

.hero-panel-text {
  font-size: var(--step--1);
}

/* Sections */
.section {
  padding-block: 2.8rem;
  border-bottom: var(--border);
}

.section-alt {
  background: #ffffff;
}

.section-header {
  margin-bottom: 1.6rem;
}

.section-header h2 {
  font-size: var(--step-2);
  margin: 0 0 0.3rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-0);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}



.card1 {
  border: var(--border);
  background: #fdfaf5;
  padding: 1.2rem 1.1rem 1.1rem;
  position: relative;
}

.card1::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: #101010;
}

.card1:nth-child(1)::before { background: var(--accent-blue); }
.card1:nth-child(2)::before { background: var(--accent-coral); }
.card1:nth-child(3)::before { background: var(--accent-mint); }

.card1-label {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.card1 h3 {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
}

.card1 p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-0);
}






/* Cards with colored header strip */
.card {
  border: var(--border);
  background: #ffffff;
  padding: 1.2rem 1.1rem 1.1rem;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: #101010;
}

.card:nth-child(1)::before { background: var(--accent-blue); }
.card:nth-child(2)::before { background: var(--accent-coral); }
.card:nth-child(3)::before { background: var(--accent-mint); }

.card-label {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-0);
}

.block-card { min-height: 100%; }

/* Lists */
.list {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  font-size: var(--step-0);
  color: var(--muted);
}

.list li + li { margin-top: 0.3rem; }

/* Manifesto */
.manifesto-body {
  border: var(--border);
  padding: 1.1rem 1.1rem;
  background: #ffffff;
  font-size: var(--step-0);
}

.manifesto-body p { margin: 0; }
.manifesto-body p + p { margin-top: 0.75rem; }

/* CTA*/
.cta {
  border: var(--border);
  padding: 1.2rem 1.1rem;
  background: #e0f2fe;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta h2 {
  margin: 0 0 0.3rem;
  font-size: var(--step-2);
}

.cta p {
  margin: 0;
  font-size: var(--step-0);
}

/* Footer */
.footer {
  padding-block: 1.8rem 2rem;
  background: #fdfaf5;
}

.footer-inner {
  font-size: var(--step--1);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 3.1rem 4% auto 4%;
    background: #fdfaf5;
    border: var(--border);
    padding: 0.8rem;
    flex-direction: column;
    gap: 0.4rem;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav-links.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-toggle { display: inline-flex; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section { padding-block: 2.2rem; }

  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Timeline – narrative spine */
.timeline {
  margin-top: 2rem;
  border: var(--border);
  padding: 1.3rem 1.1rem 1.2rem;
  background: #ffffff;
}

.timeline-title {
  margin: 0 0 0.8rem;
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding-left: 1.3rem;
  border-left: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0.9rem 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 1rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent-blue);
  border: var(--border);
  box-shadow: 2px 2px 0 #101010;
}

/* Make the origin (first item) slightly louder */
.timeline-item:first-child .timeline-date,
.timeline-item:first-child .timeline-content h4 {
  font-weight: 700;
}

.timeline-date {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.2rem;
}

.timeline-content h4 {
  margin: 0 0 0.15rem;
  font-size: var(--step-0);
}

.timeline-content p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
}

/* Hero refinements */
.hero-title {
  max-width: 16ch;
  line-height: 0.95;
}

.hero-subtitle {
  margin-top: 0.7rem;
  font-size: var(--step-0);
  max-width: 40ch;
}

.hero-subcopy {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 60ch;
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* Ensure buttons still feel brutalist but clearly focused */
.btn:focus-visible {
  box-shadow: 3px 3px 0 #101010;
}

/* Authors section */
.authors-grid {
  display: grid;
  gap: 1rem;
}

.author-card {
  border: var(--border);
  background: #ffffff;
  padding: 0.9rem 0.9rem 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.author-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.6rem;
}

.author-photo {
  width: 96px;
  height: 96px;
  border-radius: 0.4rem;
  border: var(--border);
  object-fit: cover;
  background: #e5e5e5;
}

.author-name {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
}

/* 3-column on wider screens */
@media (min-width: 720px) {
  .authors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Authors section: black background */
#authors {
  background: #000000;
  color: #ffffff;
  border-top: var(--border);
  border-bottom: var(--border);
}

/* Make the cards contrast correctly on dark background */
#authors .author-card {
  background: #111111;
  border: var(--border);
}

#authors .author-name {
  color: #ffffff;
}

#authors .section-header h2,
#authors .section-header p {
  color: #ffffff;
}

#authors .author-photo {
  background: #333333;
  border: var(--border);
}

/* Engage / Call-to-action strip */
.engage-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

/* Inline email + subscribe */
.engage-inline-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

/* Email input expands to fill remaining internal space */
.engage-inline-form input[type="email"] {
  flex: 1;
  border: var(--border);
  background: #fdfaf5;
  padding: 0.55rem 0.7rem;
  font-size: var(--step--1);
  min-width: 0;
}

/* Unified Brutalist button design */
.engage-btn {
  border-radius: 0;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* 3 colors = 3 actions using your theme accents */
.engage-btn-commit {
  background: var(--accent-blue);
  color: #fdfaf5;
  border-color: #101010;
}

.engage-btn-share {
  background: var(--accent-coral);
  color: #101010;
  border-color: #101010;
}

.engage-btn-subscribe {
  background: var(--accent-mint);
  color: #101010;
  border-color: #101010;
}

/* Hover animation */
.engage-btn:hover,
.engage-inline-form button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 #101010;
}

/* Mobile fallback: stack neatly */
@media (max-width: 720px) {
  .engage-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .engage-inline-form {
    width: 100%;
  }

  .engage-inline-form input[type="email"] {
    width: 100%;
  }
}

/* Publication section */
.publication-card {
  border: var(--border);
  background: #fdfaf5;
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  box-shadow: 6px 6px 0 #101010;
}

.publication-meta {
  flex: 1 1 260px;
  max-width: 620px;
}

.publication-label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 0.4rem;
}

.publication-title {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
}

.publication-authors,
.publication-venue {
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.publication-authors {
  margin-bottom: 0.25rem;
  font-style: italic;   /* ← moved here */
}

.publication-actions {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.publication-actions .btn {
  width: 100%;
  justify-content: center;
}

.copy-feedback {
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
  min-height: 1.1em;
}

/* Responsive: stack publication card on small screens */
@media (max-width: 720px) {
  .publication-card {
    box-shadow: 4px 4px 0 #101010;
  }

  .publication-actions {
    flex: 1 1 auto;
  }

  .publication-actions .btn {
    width: 100%;
  }
}

/* Publication layout refinement (desktop) */
@media (min-width: 880px) {
  .publication-meta {
    flex: 1 1 auto;
    max-width: none;
  }

  .publication-actions {
    flex: 0 0 auto;
    margin-left: auto;
    align-items: flex-end;
  }

  .publication-actions .btn {
    width: auto;
  }
}

/* Publication typography tweaks */
.publication-venue {
  margin-top: 0.1rem;
}

.publication-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: nowrap;          /* <-- prevents wrapping */
}

/* Left side expands fully */
.publication-meta {
  flex: 1 1 auto;
  max-width: none;
}

/* Right side stays tight and aligned */
.publication-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;     /* keep buttons stacked */
  align-items: flex-end;      /* align to right edge */
  gap: 0.6rem;
  margin-left: 2rem;          /* spacing between text and buttons */
}

/* Buttons should not stretch */
.publication-actions .btn {
  width: auto;
  min-width: 180px;           /* optional for balance */
}

.share-feedback {
  margin: 0.2rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
  min-height: 1.1em;
}

.supporters-card {
  margin-top: 1.6rem;
}

.supporters-intro {
  margin: 0 0 0.8rem;
  font-size: var(--step--1);
}

.supporters-intro strong {
  font-weight: 800;
}

.supporters-table-wrapper {
  overflow-x: auto;
  margin-bottom: 0.6rem;
}

.supporters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.supporters-table th,
.supporters-table td {
  padding: 0.35rem 0.45rem;
  border: var(--border);
  text-align: left;
}

.supporters-table th {
  background: #fdfaf5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.supporters-footnote {
  margin: 0.2rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}


/* Supporters header row with commit button */
.supporters-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

/* Commit modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  padding: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fdfaf5;
  border: var(--border);
  box-shadow: 6px 6px 0 #101010;
  max-width: 560px;
  width: 100%;
  padding: 1.3rem 1.4rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.modal-header h2 {
  margin: 0;
  font-size: var(--step-1);
}

.modal-close {
  background: #ffffff;
  border: var(--border);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-intro {
  margin: 0 0 0.7rem;
  font-size: var(--step--1);
}

.modal-form .form-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.modal-feedback {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--muted);
}

@media (max-width: 640px) {
  .modal {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
}

/* GDPR text refinements */
.modal-privacy-note,
.form-consent span {
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.75; /* softer, unobtrusive */
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
}

.modal-privacy-note {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}



/* #privacy-notice{background: #fdfaf5;} */

/* Core Principles section: align background with publication & community (white) */
#principles {
  background: #ffffff;
}


/* Footer tweaks */
.footer {
  padding-block: 1.8rem 2rem;
  background: var(--bg); /* keep current background */
}

.footer-inner {
  font-size: var(--step--1);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

/* Privacy notice inside footer: smaller, lighter, compact */
#privacy-notice {
  padding-block: 1.6rem 0rem; /* a bit tighter than normal sections */
  font-size: 0.8rem;
  border-top: var(--border);
  border-bottom: none; /* avoid extra bottom border from .section */
}

#privacy-notice .section-header h2 {
  font-size: var(--step-0);
  margin-bottom: 0.2rem;
}

#privacy-notice .section-header p {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

#privacy-notice .grid-2 {
  gap: 1.6rem;
  margin-top: 1.4rem;
}

#privacy-notice h3 {
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

#privacy-notice p {
  margin-top: 0.3rem;
  line-height: 1.4;
}
