/* =============================================================
   Moonshot Labs — public site
   ============================================================= */

:root {
  --bg:      #1c1a15;
  --surface: #252318;
  --card:    #2e2b1f;
  --border:  rgba(255,255,255,0.07);
  --amber:   #e8a020;
  --gold:    #c9a84c;
  --teal:    #3a8c82;
  --cream:   #f2e8d0;
  --text:    #f0e8d5;
  --muted:   #8a826e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.wrap { width: min(880px, 90vw); margin: 0 auto; }

/* ── HERO ── */
header {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.mark { width: clamp(96px, 20vw, 140px); height: auto; margin: 0 auto 1.75rem; display: block; }

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1.05;
}

.tagline {
  color: var(--amber);
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.lede {
  color: var(--muted);
  max-width: 46ch;
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}

/* ── SUBPAGE HEADER ── */
.page-head {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(1.5rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); text-align: left; }
.page-head .updated { color: var(--muted); font-size: 0.88rem; margin-top: 0.75rem; }

.back {
  display: inline-block;
  color: var(--amber);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.back:hover { text-decoration: underline; }

/* ── LOGO FILM ── */
.film {
  margin: clamp(2rem, 6vw, 3.5rem) auto 0;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.film video { display: block; width: 100%; height: auto; }

/* ── SECTIONS ── */
section { padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 4.2vw, 1.95rem);
  color: var(--cream);
  margin-bottom: 0.5rem;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin: 1.75rem 0 0.5rem;
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

section p, section li { color: var(--muted); max-width: 66ch; }
section p + p { margin-top: 1rem; }

ul, ol { margin: 0.85rem 0 0 1.35rem; }
li { margin-bottom: 0.55rem; }

strong { color: var(--cream); font-weight: 700; }

code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.12em 0.42em;
  font-size: 0.9em;
  color: var(--gold);
}

/* ── PROJECT CARDS ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.9rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
}
.card:nth-child(2) { border-left-color: var(--teal); }
.card:nth-child(3) { border-left-color: var(--gold); }
.card h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.card p { font-size: 0.93rem; margin: 0; }

/* ── DEFINITION TABLE ── */
#messaging { background: var(--surface); }

.terms {
  margin-top: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.terms div {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.terms div:last-child { border-bottom: none; }
.terms dt { color: var(--gold); font-weight: 700; }
.terms dd { color: var(--muted); }

@media (max-width: 560px) {
  .terms div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ── CALLOUT ── */
.note {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
}
.note p { margin: 0; }

/* ── STEP LIST ── */
.steps { counter-reset: step; list-style: none; margin: 1.5rem 0 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.9rem;
  margin-bottom: 1.15rem;
  max-width: 66ch;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--amber);
  color: #1c1a15;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}
footer a { color: var(--amber); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { margin-bottom: 0.9rem; }
footer nav a { margin: 0 0.6rem; }
.copyright { margin-top: 0.75rem; color: #6b644f; font-size: 0.82rem; }
