@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;900&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #F7F3EA;
  --bg-secondary: #EFE8D6;
  --bg-card: #FDFBF5;
  --text-primary: #171412;
  --text-secondary: #55503F;
  --text-muted: #8A8370;
  --border: #D8CFB8;
  --accent: #A82419;
  --accent-ink: #FDFBF5;
  --grid-line: rgba(23, 20, 18, 0.06);
}

[data-theme="dark"] {
  --bg: #16130E;
  --bg-secondary: #201B13;
  --bg-card: #1C1811;
  --text-primary: #EDE6D3;
  --text-secondary: #B3AB92;
  --text-muted: #7A735E;
  --border: #362F22;
  --accent: #E2523F;
  --accent-ink: #16130E;
  --grid-line: rgba(237, 230, 211, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16130E;
    --bg-secondary: #201B13;
    --bg-card: #1C1811;
    --text-primary: #EDE6D3;
    --text-secondary: #B3AB92;
    --text-muted: #7A735E;
    --border: #362F22;
    --accent: #E2523F;
    --accent-ink: #16130E;
    --grid-line: rgba(237, 230, 211, 0.05);
  }
}

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

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.stamp {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1, h2, h3, .display {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand .wordmark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.brand .wordmark span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover { color: var(--accent); border-color: var(--accent); }

.theme-toggle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-mobile-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 140px 0 110px;
  position: relative;
  overflow: hidden;
  color: #F5F1E4;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,7,0.55) 0%, rgba(10,9,7,0.82) 65%, rgba(10,9,7,0.92) 100%);
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero .stamp { color: rgba(245,241,228,0.75); }

.case-ref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245,241,228,0.35);
  padding: 6px 14px;
  margin-bottom: 32px;
}

.case-ref .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  max-width: 15ch;
  margin-bottom: 28px;
  color: #F5F1E4;
}

.redact-line {
  display: block;
  overflow: hidden;
  position: relative;
}

.redact-line .bar {
  position: absolute;
  inset: 0;
  background: #0A0907;
  transform-origin: left;
  animation: declassify 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes declassify {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

.hero .lede {
  font-size: 1.15rem;
  color: rgba(245,241,228,0.85);
  max-width: 56ch;
  margin-bottom: 40px;
}

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

.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  display: inline-block;
  border: 1px solid var(--text-primary);
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { background: var(--text-primary); border-color: var(--text-primary); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}

.btn-ghost:hover { background: var(--text-primary); color: var(--bg); }

.hero .btn-ghost { border-color: #F5F1E4; color: #F5F1E4; }
.hero .btn-ghost:hover { background: #F5F1E4; color: #0A0907; }

/* ---------- Sections shared ---------- */

section { padding: 72px 0; border-top: 1px solid var(--border); }

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 24px;
  max-width: 20ch;
}

/* ---------- Why it matters ---------- */

.stats-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stats-note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.pillar {
  background: var(--bg-card);
  padding: 32px 28px;
}

.pillar-mark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}

.pillar h3 { font-size: 1.15rem; margin-bottom: 10px; text-transform: none; letter-spacing: normal; }
.pillar p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Demands ---------- */

.demand-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: 40px;
}

.demand {
  display: flex;
  gap: 24px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--border);
}

.demand:last-child { border-bottom: none; }

.demand .num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.demand strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.demand span { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Manifesto ---------- */

.manifesto {
  background: var(--bg-secondary);
}

.manifesto-wrap { max-width: 780px; }

.manifesto-body p {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.manifesto-body p:first-child {
  color: var(--text-primary);
  font-size: 1.35rem;
}

.manifesto-body p + p { margin-top: 28px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .wordmark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
}

.footer-brand .wordmark span { color: var(--accent); }

.footer-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  max-width: 40ch;
  text-align: right;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .demand { padding: 22px; }
  .nav-links { display: none; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
