/* =========================================================================
   The Genesis Initiative — stylesheet
   Design system: dark "cosmic" bands + clean light content (hybrid).
   Accent = JWST gold (first light); secondary = rose (Little Red Dots).
   ========================================================================= */

:root {
  --bg-space:      #070b16;
  --bg-space-2:    #0c1226;
  --bg-panel:      rgba(255, 255, 255, 0.04);
  --bg-panel-line: rgba(255, 255, 255, 0.10);

  --surface:       #ffffff;
  --surface-alt:   #f5f7fb;

  --ink:           #10131f;
  --ink-soft:      #4b5568;
  --ink-faint:     #7a8296;
  --on-dark:       #eef1f8;
  --on-dark-soft:  #a9b2c9;

  --gold:          #f4b64a;
  --gold-bright:   #ffd27d;
  --rose:          #ff5f8f;
  --cyan:          #7fdbe6;

  --maxw: 1120px;
  --pad:  clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 18px 50px -20px rgba(8, 12, 30, 0.45);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.9rem;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }

/* Dark band variant */
.band-dark {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(255, 95, 143, 0.10), transparent 60%),
              radial-gradient(1000px 700px at 0% 110%, rgba(244, 182, 74, 0.12), transparent 55%),
              linear-gradient(180deg, var(--bg-space), var(--bg-space-2));
  color: var(--on-dark);
}
.band-dark .section-title { color: #fff; }
.band-dark .lede { color: var(--on-dark-soft); }
.band-alt { background: var(--surface-alt); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #241a04;
  box-shadow: 0 10px 30px -10px rgba(244, 182, 74, 0.6);
}
.btn-ghost {
  background: transparent; color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 22, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.brand svg { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  color: var(--on-dark-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links .btn { color: #241a04; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; color: #fff;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-space);
  color: var(--on-dark);
  padding-block: clamp(4.5rem, 12vw, 9rem);
  isolation: isolate;
}
.hero::before { /* nebula glow */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(70% 55% at 62% 18%, rgba(255, 95, 143, 0.22), transparent 60%),
    radial-gradient(80% 70% at 20% 95%, rgba(244, 182, 74, 0.20), transparent 60%),
    radial-gradient(60% 60% at 85% 80%, rgba(127, 219, 230, 0.12), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #0a1024 60%, #0c1226 100%);
}
.hero .stars { position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.hero-inner { max-width: 42rem; }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin: 0 0 1.2rem; color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 55%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--on-dark-soft); max-width: 40ch; margin: 0 0 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-note { margin-top: 1.6rem; font-size: 0.88rem; color: var(--ink-faint); }
.scroll-cue {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: var(--on-dark-soft); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; opacity: 0.7;
}
.scroll-cue span { animation: bob 2s ease-in-out infinite; font-size: 1rem; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- vision ---------- */
.vision-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pullquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35;
  color: var(--ink); border-left: 3px solid var(--gold); padding-left: 1.4rem; margin: 0;
}
.pullquote em { color: var(--gold); font-style: italic; }

/* ---------- question cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: var(--bg-panel); border: 1px solid var(--bg-panel-line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(244, 182, 74, 0.5); background: rgba(255,255,255,0.06); }
.card .q-num { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.card h3 { font-size: 1.15rem; margin: 0.7rem 0 0.5rem; color: #fff; }
.card p { margin: 0; font-size: 0.95rem; color: var(--on-dark-soft); }

/* ---------- the ask / stats ---------- */
.ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.stat-list { display: grid; gap: 1.2rem; }
.stat {
  background: var(--surface); border: 1px solid #e6e9f2; border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
}
.stat .num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold); line-height: 1; }
.stat .num span { color: var(--rose); }
.stat .label { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.4rem; }
.prose p { max-width: 60ch; }
.prose p + p { margin-top: 1.1rem; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-size: 0.95rem; font-weight: 600;
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #241a04;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.step p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .section-title { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- people / organizers ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 0.65rem; margin-top: 2.1rem; }
.person {
  background: var(--surface); border: 1px solid #e8ebf2; border-radius: 9px;
  padding: 0.75rem 0.85rem; text-align: center;
  transition: border-color 0.18s ease;
}
.person:hover { border-color: rgba(244, 182, 74, 0.45); }
.person .p-name { font-family: var(--serif); font-weight: 600; font-size: 0.97rem; color: var(--ink); }
.person .p-affil { font-size: 0.79rem; color: var(--ink-soft); margin-top: 0.2rem; line-height: 1.35; }
.org-star { color: var(--gold); font-weight: 600; margin-left: 1px; }
.people-note { text-align: center; margin-top: 1.6rem; font-size: 0.9rem; color: var(--ink-faint); }
.reps-heading {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; text-align: center;
  margin: 3.2rem 0 0; padding-top: 2.6rem; border-top: 1px solid rgba(16, 19, 31, 0.08);
}

/* ---------- footer ---------- */
.site-footer { background: #05070f; color: var(--on-dark-soft); padding-block: 3rem; font-size: 0.9rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-grid a { color: var(--on-dark-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-note { margin-top: 1.5rem; font-size: 0.8rem; color: #5b6480; max-width: 60ch; }

/* ---------- interior page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg-space); color: var(--on-dark);
  padding-block: clamp(3rem, 8vw, 5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 78% 5%, rgba(255, 95, 143, 0.16), transparent 60%),
    radial-gradient(70% 70% at 5% 105%, rgba(244, 182, 74, 0.16), transparent 60%),
    linear-gradient(180deg, #05070f, #0c1226);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; margin: 0 0 0.8rem; }
.page-hero .lede { color: var(--on-dark-soft); }

/* ---------- article / prose page ---------- */
.article { max-width: 70ch; margin-inline: auto; }
.article > p { font-size: 1.08rem; }
.article > p + p { margin-top: 1.2rem; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.8rem 0 1rem; }
.article a { color: #b5771a; text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--rose); }

.question-list { list-style: none; padding: 0; margin: 1.7rem 0; display: grid; gap: 0.9rem; counter-reset: qcount; }
.question-list li {
  position: relative; padding: 1rem 1.3rem 1rem 3.1rem;
  background: var(--surface-alt); border-left: 3px solid var(--gold); border-radius: 10px;
  font-size: 1.05rem; color: var(--ink);
}
.question-list li::before {
  counter-increment: qcount; content: counter(qcount);
  position: absolute; left: 1.1rem; top: 0.95rem;
  font-family: var(--serif); color: var(--gold); font-weight: 600; font-size: 1.05rem;
}

.aside-note {
  margin: 2.2rem 0; padding: 1.3rem 1.5rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244, 182, 74, 0.10), rgba(255, 95, 143, 0.06));
  border: 1px solid rgba(244, 182, 74, 0.30);
  font-size: 0.98rem; color: var(--ink-soft);
}
.aside-note strong { color: var(--ink); }

.article-cta { text-align: center; margin-top: 3rem; padding-top: 2.6rem; border-top: 1px solid #e6e9f2; }
.article-cta .btn-primary { color: #241a04; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0.4rem;
    background: rgba(7, 11, 22, 0.98); padding: 1rem var(--pad) 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-120%); transition: transform 0.28s ease; margin-left: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.5rem 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 0.5rem; }
  .nav-toggle { display: inline-flex; }
  .vision-grid, .ask-grid { grid-template-columns: 1fr; }
}
