/* Sovereign visual system — space-based-solar-power.com */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0c14;
  --surface:     #111520;
  --surface-alt: #161b2e;
  --border:      #1e2740;
  --text:        #d8dde8;
  --muted:       #8090b0;
  --accent:      #4a90d9;
  --boundary:    #e8a04a;
  --max-width:   900px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.home-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.home-link:hover { color: var(--accent); }

/* ---- Page container ---- */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ---- H1 ---- */
h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ---- Hero (home page) ---- */
.hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.hero-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 640px;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 680px;
}
.hero-thesis {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0 4px 4px 0;
  max-width: 680px;
  font-style: normal;
}

/* ---- Content sections ---- */
.page-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-section:last-of-type { border-bottom: none; }
.page-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.9rem;
  line-height: 1.35;
}
.page-section p {
  color: var(--muted);
  margin-bottom: 0.8rem;
  line-height: 1.75;
}
.page-section p:last-of-type { margin-bottom: 0; }
.section-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.section-links a {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.22rem 0.6rem;
  transition: border-color 0.12s;
}
.section-links a:hover { border-color: var(--accent); }

/* ---- Hub pages ---- */
.hub-intro {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 680px;
}

/* ---- Hub index lists ---- */
.glossary-index,
.questions-index,
.programs-index { list-style: none; }

.glossary-index li,
.questions-index li,
.programs-index li {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}
.glossary-index li:last-child,
.questions-index li:last-child,
.programs-index li:last-child { border-bottom: none; }

.glossary-index a,
.questions-index a,
.programs-index a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.glossary-index a:hover,
.questions-index a:hover,
.programs-index a:hover { color: var(--accent); }

/* ---- Content page body ---- */
.answer,
.definition,
.program-description { margin-bottom: 1.25rem; }

.answer p,
.definition p,
.program-description p {
  color: var(--muted);
  line-height: 1.75;
}

.short-definition {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  line-height: 1.65;
}

/* ---- Program metadata table ---- */
.program-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.program-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  align-self: center;
}
.program-meta dd {
  color: var(--text);
  font-size: 0.9rem;
  align-self: center;
}

/* ---- Claim / answer boundary ---- */
.claim-boundary,
.answer-boundary {
  font-size: 0.84rem;
  color: var(--boundary);
  border: 1px solid rgba(232, 160, 74, 0.2);
  background: rgba(232, 160, 74, 0.05);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 1.25rem;
  line-height: 1.6;
}
.claim-boundary strong,
.answer-boundary strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

/* ---- Reference nav ---- */
.ref-nav {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.ref-nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.ref-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ref-nav ul li a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.22rem 0.6rem;
  display: inline-block;
  transition: color 0.12s, border-color 0.12s;
}
.ref-nav ul li a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- General links ---- */
a { color: var(--accent); }
a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .site-header { padding: 0.6rem 1rem; }
  .page-container { padding: 1.75rem 1rem 3.5rem; }
  .hero { padding: 2rem 0 1.75rem; }
  .program-meta { grid-template-columns: 1fr; }
}
