:root {
  --bg: #0f1115;
  --panel: #151821;
  --fg: #e7e9ee;
  --muted: #9aa1ad;
  --accent: #5b8cff;
  --border: #232733;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Landing */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}
.hero .mark {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.hero .tagline {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 30rem;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 6px rgba(91,140,255,0.12);
}

/* Masthead (interior pages) — echoes the lander's brand mark */
.masthead {
  text-align: center;
  padding: 2.75rem 1.25rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand:hover { text-decoration: none; color: var(--fg); }
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(91, 140, 255, 0.12);
}

/* Document pages */
.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.doc h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; }
.doc p, .doc li { color: #d5d9e2; }
.doc ul { padding-left: 1.25rem; }
.doc .lead { color: var(--fg); }
.doc code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}
.callout {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 1.25rem;
  text-align: center;
}
.hero .site-footer { border: 0; margin-top: 2rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.site-footer .sep { margin: 0 0.5rem; opacity: 0.5; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.site-footer .footer-brand { color: var(--fg); }
.site-footer .footer-brand:hover { text-decoration: none; }
.copyright { margin: 0.85rem 0 0; opacity: 0.65; font-size: 0.85rem; }

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff; --panel: #f6f7f9; --fg: #1a1d24; --muted: #5c6470;
    --accent: #2f5fe0; --border: #e4e7ec;
  }
  .doc p, .doc li { color: #333842; }
}
