/* ============================================================
   AI FOR PLANET — DESIGN SYSTEM
   Planetary editorial · Inter Tight + IBM Plex Mono
   cream · sand · forest · amber · cosmos
   An initiative of the AI Public Interest Alliance
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --cream: #f5efe1;
  --sand: #e8dcc4;
  --sand-deep: #d4c69e;
  --forest: #1f4a3a;
  --forest-deep: #143427;
  --cosmos: #0b1424;
  --cosmos-deep: #060c18;
  --amber: #d4861b;
  --amber-deep: #a96710;
  --aurora: #6b4e8f;
  --ink: #0b1424;
  --ink-on-dark: #f5efe1;
  --ink-muted-dark: rgba(245, 239, 225, 0.78);
  --ink-muted-light: #4a5358;
  --rule: #b6a888;
  --max: 1180px;
  --display: "Inter Tight", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ===== NAV ===== */
nav {
  background: var(--cream);
  border-bottom: 1px solid var(--cosmos);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cosmos);
  text-decoration: none;
}
.brand-svg {
  display: block;
  flex-shrink: 0;
  color: var(--forest);
}
footer .brand-svg { color: var(--cream); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.035em;
  color: var(--cosmos);
}
footer .brand-name { color: var(--cream); }
.brand-tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-top: 5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--display);
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
}
.nav-links a:not(.btn) { transition: color 0.12s ease; }
.nav-links a:not(.btn):hover { color: var(--amber); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--cosmos);
  color: var(--cream);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0;
  border: 1.5px solid var(--cosmos);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--forest); border-color: var(--forest); }
.btn-forest { background: var(--forest); border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--cosmos); }
.btn-amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--cream); }
.btn-cosmos { background: var(--cosmos); border-color: var(--cosmos); color: var(--cream); }
.btn-cosmos:hover { background: var(--cosmos-deep); border-color: var(--cosmos-deep); }
.btn-ghost-light {
  background: transparent;
  color: var(--cosmos);
  border: 1.5px solid var(--cosmos);
}
.btn-ghost-light:hover { background: var(--cosmos); color: var(--cream); }
.btn-ghost-dark {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
}
.btn-ghost-dark:hover { background: var(--cream); color: var(--cosmos); }
.btn-ghost-cosmos {
  background: transparent;
  color: var(--cosmos);
  border: 1.5px solid var(--cosmos);
}
.btn-ghost-cosmos:hover { background: var(--cosmos); color: var(--cream); }

/* ===== TYPOGRAPHY ===== */
.section-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.034em;
  margin-bottom: 24px;
  max-width: 800px;
}
.section-title em { font-style: italic; font-weight: 600; }
.section-lede {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
}
.section-header { margin-bottom: 64px; }
.text-mono { font-family: var(--mono); }

/* ===== SECTIONS ===== */
section { padding: 110px 0; }

.section-cosmos {
  background: var(--cosmos);
  color: var(--ink-on-dark);
}
.section-cosmos .section-num,
.section-cosmos .section-eyebrow,
.section-cosmos .section-title em { color: var(--amber); }
.section-cosmos .section-lede { color: var(--ink-muted-dark); }

.section-cream { background: var(--cream); }
.section-cream .section-num,
.section-cream .section-eyebrow,
.section-cream .section-title em { color: var(--forest); }
.section-cream .section-lede { color: var(--ink-muted-light); }

.section-forest {
  background: var(--forest);
  color: var(--ink-on-dark);
}
.section-forest .section-num,
.section-forest .section-eyebrow,
.section-forest .section-title em { color: var(--amber); }
.section-forest .section-lede { color: var(--ink-muted-dark); }

.section-amber {
  background: var(--amber);
  color: var(--cosmos);
}
.section-amber .section-num,
.section-amber .section-eyebrow,
.section-amber .section-title em { color: var(--cosmos); }
.section-amber .section-lede { color: var(--cosmos); }

/* ===== HERO (legacy — kept for alliance / manifesto narrow hero variant) ===== */
.hero {
  background: var(--cream);
  padding: 80px 0 120px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero-issue {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted-light);
  margin-bottom: 36px;
}
.hero-issue .divider {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.hero-issue .accent { color: var(--amber); }
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  max-width: 560px;
  color: var(--ink-muted-light);
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== HERO · IMAGE (home page — transparent nav over full-bleed illustration) ===== */
.hero-image {
  position: relative;
  width: 100%;
  background: var(--cosmos);
  overflow: hidden;
  isolation: isolate;
}
.hero-image .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-image .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(11,20,36,0.7) 0%, rgba(11,20,36,0.3) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}
/* Transparent nav variant — sits over the hero image */
.hero-image .nav-transparent {
  position: relative;
  z-index: 5;
  background: transparent;
  border-bottom: none;
}
.hero-image .nav-transparent .brand,
.hero-image .nav-transparent .brand-name { color: var(--cream); }
.hero-image .nav-transparent .brand-name { text-shadow: 0 1px 8px rgba(11,20,36,0.85), 0 0 18px rgba(11,20,36,0.6); }
.hero-image .nav-transparent .brand-svg { color: var(--cream); filter: drop-shadow(0 1px 4px rgba(11,20,36,0.7)); }
.hero-image .nav-transparent .brand-tag { color: var(--amber); text-shadow: 0 1px 6px rgba(11,20,36,0.85); }
.hero-image .nav-transparent .nav-links { color: rgba(245,239,225,0.95); }
.hero-image .nav-transparent .nav-links a:not(.btn) { color: rgba(245,239,225,0.95); text-shadow: 0 1px 6px rgba(11,20,36,0.85); }
.hero-image .nav-transparent .nav-links a:not(.btn):hover { color: var(--amber); }
.hero-image .nav-transparent .btn-ghost-light {
  color: var(--cream);
  border-color: var(--cream);
  text-shadow: 0 1px 6px rgba(11,20,36,0.6);
}
.hero-image .nav-transparent .btn-ghost-light:hover {
  background: var(--cream);
  color: var(--cosmos);
}

/* Hero content overlay — top-left text */
.hero-image .hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 32px 96px;
  color: var(--cream);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-image .hero-issue {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245,239,225,0.85);
  margin: 0 0 28px;
  text-shadow: 0 1px 6px rgba(11,20,36,0.6);
}
.hero-image .hero-issue .divider {
  width: 24px;
  height: 1px;
  background: rgba(245,239,225,0.4);
  opacity: 1;
}
.hero-image .hero-issue .accent { color: var(--amber); }
.hero-image h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(54px, 7.4vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--cream);
  margin: 0 0 28px;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(11,20,36,0.5);
}
.hero-image h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
  display: block;
  text-shadow: 0 2px 18px rgba(11,20,36,0.6);
}
.hero-image .hero-sub {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  max-width: 560px;
  color: rgba(245,239,225,0.92);
  margin: 0 0 40px;
  text-shadow: 0 1px 10px rgba(11,20,36,0.85), 0 0 24px rgba(11,20,36,0.6);
}
.hero-image .hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== PROBLEM / THESIS GRID ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(245, 239, 225, 0.18);
}
.problem-card {
  background: var(--cosmos);
  padding: 44px 36px;
}
.problem-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.problem-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 14px;
}
.problem-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted-dark);
}

/* ===== CATALOG / DOMAIN GRID ===== */
/* Catalog grid — image-led editorial cards on dark cosmos bg */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.domain-card {
  background: rgba(245, 239, 225, 0.04);
  border: 1px solid rgba(245, 239, 225, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.domain-card:hover {
  background: rgba(245, 239, 225, 0.07);
  border-color: rgba(212, 134, 27, 0.45);
}
.domain-card:hover .domain-image img { transform: scale(1.04); }

/* Image slot — inline SVG illustration centered on a gradient background */
.domain-image {
  aspect-ratio: 16 / 11;
  width: 100%;
  overflow: hidden;
  background: var(--cosmos);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.domain-image svg {
  width: 58%;
  height: auto;
  max-width: 240px;
  transition: transform 0.4s ease;
}
.domain-card:hover .domain-image svg { transform: scale(1.05); }
.domain-card:hover .domain-image { transform: none; }

/* Per-domain gradient backgrounds (subtle depth behind the SVG) */
.domain-image[data-domain="climate"]      { background: linear-gradient(135deg, #1f4a3a 0%, #0b1424 100%); }
.domain-image[data-domain="health"]       { background: linear-gradient(135deg, #143427 0%, #0b1424 100%); }
.domain-image[data-domain="education"]    { background: linear-gradient(135deg, #2a3a5a 0%, #0b1424 100%); }
.domain-image[data-domain="justice"]      { background: linear-gradient(135deg, #0b1424 0%, #1f4a3a 100%); }
.domain-image[data-domain="food"]         { background: linear-gradient(135deg, #3a2618 0%, #143427 100%); }
.domain-image[data-domain="housing"]      { background: linear-gradient(135deg, #1f4a3a 0%, #143427 100%); }
.domain-image[data-domain="preservation"] { background: linear-gradient(135deg, #3a2618 0%, #0b1424 100%); }

.domain-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.domain-tag {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.domain-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 12px;
}
.domain-lede {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 239, 225, 0.75);
  margin-bottom: 20px;
  flex: 1;
}
.catalog-disclaimer {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 40px;
  text-align: center;
}

/* "Explore the domain →" link inside each domain card */
.domain-explore {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.domain-explore:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* ===== FEATURED DOMAIN CARD (full-width row, image-led) ===== */
.domain-featured {
  grid-column: 1 / -1;
  background: rgba(245, 239, 225, 0.05);
  border: 1px solid rgba(212, 134, 27, 0.35);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.domain-featured:hover {
  background: rgba(245, 239, 225, 0.08);
  border-color: rgba(212, 134, 27, 0.6);
}
.domain-featured:hover .domain-image img { transform: scale(1.03); }
.featured-flag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(245, 239, 225, 0.12);
}
.featured-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.featured-inner .domain-image {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
}
.featured-lead {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
}
.featured-lead h3 {
  font-size: 32px;
  margin-bottom: 16px;
}
.featured-lead .domain-lede {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245, 239, 225, 0.82);
  margin-bottom: 24px;
  flex: 1;
}
@media (max-width: 960px) {
  .domain-featured { grid-column: 1; }
  .featured-inner { grid-template-columns: 1fr; gap: 28px; }
  .domain-entries-wide { grid-template-columns: 1fr; }
  .domain-entries-wide li:nth-last-child(2) {
    border-bottom: 1px dotted var(--rule);
  }
  .domain-entries-wide li:last-child { border-bottom: none; }
}

/* ===== HOW IT WORKS ===== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.how-step {
  border-top: 2px solid var(--amber);
  padding-top: 28px;
}
.how-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.how-step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 14px;
}
.how-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted-dark);
}

/* Two-track How-It-Works layout (Projects | Makers) */
.how-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.how-track { display: flex; flex-direction: column; }
.how-track-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.how-track-h {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 24px;
  line-height: 1.25;
  max-width: 24ch;
}
.how-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.how-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(245, 239, 225, 0.18);
}
.how-steps li:last-child { border-bottom: 1px solid rgba(245, 239, 225, 0.18); }
.how-steps li .how-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.06em;
  padding-top: 4px;
  margin-bottom: 0;
}
.how-steps li h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0 0 6px;
}
.how-steps li p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 239, 225, 0.78);
  margin: 0;
}
.how-track .btn { align-self: flex-start; }

/* ===== REFUSE / NEGATIVE SPACE ===== */
.refuse-list {
  list-style: none;
  border-top: 1px solid rgba(245, 239, 225, 0.2);
  max-width: 880px;
}
.refuse-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(245, 239, 225, 0.2);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.refuse-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--amber);
  width: 28px;
  flex-shrink: 0;
}
.refuse-note {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted-dark);
  letter-spacing: 0.02em;
  max-width: 700px;
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
}
.final-cta h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--cosmos);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta h2 em {
  font-style: italic;
  font-weight: 500;
}
.final-cta p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--cosmos);
  opacity: 0.86;
}
.final-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
  background: var(--cosmos-deep);
  color: var(--ink-on-dark);
  padding: 80px 0 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand-block .brand { margin-bottom: 18px; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted-dark);
  max-width: 440px;
}
.footer-tagline strong {
  font-weight: 600;
  color: var(--cream);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-muted-dark);
  padding: 6px 0;
  transition: color 0.12s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(245, 239, 225, 0.12);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(245, 239, 225, 0.5);
  letter-spacing: 0.08em;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-bottom a { color: rgba(245, 239, 225, 0.6); }
.footer-bottom a:hover { color: var(--cream); }
.footer-domain { color: var(--amber); }

/* ===== DARK THEME · alliance + manifesto (cosmos navy, matches makers) ===== */
body[data-page="alliance"],
body[data-page="manifesto"] {
  background: var(--cosmos);
  color: var(--cream);
}

/* Dark nav for these pages */
body[data-page="alliance"] nav,
body[data-page="manifesto"] nav {
  background: var(--cosmos);
  border-bottom: 1px solid rgba(245, 239, 225, 0.12);
}
body[data-page="alliance"] nav .brand,
body[data-page="alliance"] nav .brand-name,
body[data-page="manifesto"] nav .brand,
body[data-page="manifesto"] nav .brand-name { color: var(--cream); }
body[data-page="alliance"] nav .brand-tag,
body[data-page="manifesto"] nav .brand-tag { color: var(--amber); }
body[data-page="alliance"] nav .nav-links a:not(.btn),
body[data-page="manifesto"] nav .nav-links a:not(.btn) { color: rgba(245, 239, 225, 0.85); }
body[data-page="alliance"] nav .nav-links a:not(.btn):hover,
body[data-page="manifesto"] nav .nav-links a:not(.btn):hover { color: var(--amber); }
body[data-page="alliance"] nav .nav-links a.btn-ghost-light,
body[data-page="manifesto"] nav .nav-links a.btn-ghost-light {
  color: var(--cream);
  border-color: rgba(245, 239, 225, 0.4);
}
body[data-page="alliance"] nav .nav-links a.btn-ghost-light:hover,
body[data-page="manifesto"] nav .nav-links a.btn-ghost-light:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--cosmos);
}

/* Alliance hero (uses .hero + .hero-narrow) */
body[data-page="alliance"] .hero {
  background: var(--cosmos);
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 239, 225, 0.12);
}
body[data-page="alliance"] .hero-narrow h1 { color: var(--cream); }
body[data-page="alliance"] .hero-narrow h1 em { color: var(--amber); }
body[data-page="alliance"] .hero-issue { color: rgba(245, 239, 225, 0.6); }
body[data-page="alliance"] .hero-issue .divider { background: rgba(245, 239, 225, 0.4); opacity: 1; }
body[data-page="alliance"] .hero-issue .accent { color: var(--amber); }
body[data-page="alliance"] .hero-sub { color: rgba(245, 239, 225, 0.85); }
body[data-page="alliance"] .hero .btn-ghost-light {
  color: var(--cream);
  border-color: var(--cream);
}
body[data-page="alliance"] .hero .btn-ghost-light:hover {
  background: var(--cream);
  color: var(--cosmos);
}

/* Manifesto article (entire long-form reading page goes dark) */
body[data-page="manifesto"] .manifesto {
  background: var(--cosmos);
  color: var(--cream);
}
body[data-page="manifesto"] .manifesto-header {
  border-bottom: 1px solid rgba(245, 239, 225, 0.15);
}
body[data-page="manifesto"] .manifesto-issue { color: rgba(245, 239, 225, 0.6); }
body[data-page="manifesto"] .manifesto-issue .divider { background: rgba(245, 239, 225, 0.4); }
body[data-page="manifesto"] .manifesto-issue .accent { color: var(--amber); }
body[data-page="manifesto"] .manifesto-title { color: var(--cream); }
body[data-page="manifesto"] .manifesto-subtitle { color: var(--amber); }
body[data-page="manifesto"] .manifesto-rubric { color: rgba(245, 239, 225, 0.82); }
body[data-page="manifesto"] .manifesto-rubric em { color: var(--cream); }
body[data-page="manifesto"] .manifesto-meta { color: rgba(245, 239, 225, 0.55); }
body[data-page="manifesto"] .manifesto-meta .divider { background: rgba(245, 239, 225, 0.3); }
body[data-page="manifesto"] .manifesto-preamble {
  color: rgba(245, 239, 225, 0.92);
}
body[data-page="manifesto"] .manifesto-preamble strong { color: var(--amber); }
body[data-page="manifesto"] .manifesto-rule { border-top-color: rgba(245, 239, 225, 0.15); }
body[data-page="manifesto"] .manifesto-premise h2 { color: var(--cream); }
body[data-page="manifesto"] .manifesto-premise p { color: rgba(245, 239, 225, 0.85); }
body[data-page="manifesto"] .theses li h2 { color: var(--cream); }
body[data-page="manifesto"] .theses li p { color: rgba(245, 239, 225, 0.85); }
body[data-page="manifesto"] .theses li::before { color: var(--amber); }
body[data-page="manifesto"] .manifesto-signoff { color: var(--amber); }

/* Dark footer for these pages */
body[data-page="alliance"] footer,
body[data-page="manifesto"] footer {
  background: var(--cosmos-deep, #050a14);
}

/* ===== NARROW CONTAINER (manifesto / alliance) ===== */
.container-narrow {
  max-width: 760px;
}

/* ===== HERO NARROW (alliance hero variant) ===== */
.hero-narrow {
  padding: 80px 0 90px;
}
.hero-narrow .container {
  max-width: 880px;
}
.hero-narrow h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--cosmos);
  margin-bottom: 28px;
  max-width: 880px;
}
.hero-narrow h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--forest);
}

/* ===== MANIFESTO PAGE ===== */
.manifesto {
  background: var(--cream);
  padding: 80px 0 60px;
}
.manifesto-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 56px;
  margin-bottom: 56px;
}
.manifesto-issue {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted-light);
  margin-bottom: 32px;
}
.manifesto-issue .divider {
  width: 24px;
  height: 1px;
  background: var(--cosmos);
}
.manifesto-issue .accent { color: var(--forest); }
.manifesto-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(54px, 7.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--cosmos);
  margin-bottom: 16px;
}
.manifesto-subtitle {
  font-family: "Cormorant Garamond", "Inter Tight", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--forest);
  margin-bottom: 32px;
}
.manifesto-rubric {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted-light);
  max-width: 620px;
  margin-bottom: 32px;
}
.manifesto-rubric em {
  font-style: italic;
  color: var(--cosmos);
}
.manifesto-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.manifesto-meta .divider {
  width: 18px;
  height: 1px;
  background: var(--rule);
}
.manifesto-preamble {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.55;
  color: var(--cosmos);
  margin: 0 auto 56px;
  max-width: 640px;
}
.manifesto-preamble strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.manifesto-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 56px auto;
  max-width: 640px;
}
.manifesto-premise {
  max-width: 640px;
  margin: 0 auto;
}
.manifesto-premise .premise-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.manifesto-premise h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--cosmos);
  margin-bottom: 18px;
}
.manifesto-premise p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted-light);
  margin-bottom: 16px;
}
.manifesto-premise p:last-child { margin-bottom: 0; }
.theses {
  list-style: none;
  counter-reset: thesis;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}
.theses li {
  counter-increment: thesis;
  margin-bottom: 56px;
  position: relative;
  padding-left: 64px;
}
.theses li::before {
  content: counter(thesis, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.theses li h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--cosmos);
  margin-bottom: 18px;
}
.theses li p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted-light);
}
.manifesto-signoff {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--forest);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 24px;
}

@media (max-width: 720px) {
  .theses li { padding-left: 48px; }
  .manifesto-title { font-size: 44px; }
}

/* ===== WHY GRID (alliance) ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.why-card {
  border-top: 2px solid var(--amber);
  padding-top: 24px;
}
.why-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 14px;
}
.why-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted-dark);
}

/* ===== FUNCTIONS GRID (alliance) ===== */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.function-card {
  background: var(--cream);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.function-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.function-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.function-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--cosmos);
  margin-bottom: 14px;
}
.function-card > p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted-light);
  margin-bottom: 22px;
}
.function-deliverables {
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.function-deliverables li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted-light);
  padding: 8px 0 8px 18px;
  position: relative;
}
.function-deliverables li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 600;
}

/* ===== TRACKER (alliance) ===== */
.tracker-grid {
  border-top: 1px solid rgba(245, 239, 225, 0.2);
}
.tracker-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.3fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(245, 239, 225, 0.2);
  align-items: baseline;
}
.tracker-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.tracker-roles {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted-dark);
}
.tracker-people {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.tracker-note {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(245, 239, 225, 0.6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 32px;
}

@media (max-width: 760px) {
  .tracker-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-image .hero-content { min-height: 480px; padding: 40px 24px 72px; }
  .hero-image h1 { font-size: clamp(42px, 9vw, 64px); max-width: 14ch; }
  .hero-image .hero-sub { font-size: 16.5px; max-width: 100%; }
  .hero-image .hero-issue { font-size: 11px; margin-bottom: 20px; }
  .problem-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-tracks { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .functions-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px 48px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 20px; }
  .refuse-list li { font-size: 17px; gap: 16px; }
}


/* ===== DOMAIN SUB-PAGE STYLES ===== */
.domain-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--rule); }
.domain-hero .breadcrumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.domain-hero .breadcrumb a { color: var(--cosmos); border-bottom: 1px solid rgba(12, 18, 38, 0.2); padding-bottom: 1px; }
.domain-hero .breadcrumb a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.domain-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: var(--cosmos);
  max-width: 14ch;
}
.domain-hero h1 em { font-style: italic; font-weight: 500; }
.domain-hero .featured-flag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(212, 134, 27, 0.1);
  padding: 6px 10px;
  border: 1px solid rgba(212, 134, 27, 0.3);
  margin-bottom: 24px;
}
.domain-hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--cosmos);
  opacity: 0.86;
  max-width: 72ch;
  margin: 0 0 32px;
}
.domain-hero .meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: 16px;
}
.domain-hero .meta-row .meta-item .meta-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.domain-hero .meta-row .meta-item .meta-value {
  font-size: 14px;
  color: var(--cosmos);
  line-height: 1.4;
}

.sub-section { padding: 64px 0; border-top: 1px solid var(--rule); }
.sub-section .sub-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 880px;
  margin-bottom: 32px;
}
.sub-section .sub-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--amber);
  padding-top: 6px;
}
.sub-section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--cosmos);
  margin: 0 0 14px;
}
.sub-section h2 em { font-style: italic; font-weight: 500; color: var(--amber); }
.sub-section .sub-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cosmos);
  opacity: 0.78;
  max-width: 64ch;
  margin: 0;
}

.entries {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.entries li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.entries .entry-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding-top: 4px;
}
.entries .entry-body { max-width: 64ch; }
.entries .entry-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--cosmos);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.entries .entry-name a {
  color: inherit;
  border-bottom: 1px solid rgba(12, 18, 38, 0.18);
  padding-bottom: 1px;
}
.entries .entry-name a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.entries .entry-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 8px;
}
.entries .entry-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cosmos);
  opacity: 0.82;
  margin: 0;
}

.editorial-note {
  background: var(--cream);
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--cosmos);
  max-width: 64ch;
}
.editorial-note .note-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .sub-section .sub-header { grid-template-columns: 1fr; gap: 12px; }
  .entries li { grid-template-columns: 1fr; gap: 8px; }
}

