/* Moonshot — site theme
 * Built on TEF's type + grid system, re-tuned to a lunar palette pulled
 * from the reference moon photograph. The electric lime is retained as a
 * single annotation accent (math construction lines, callouts).
 */

@import url("https://fonts.googleapis.com/css2?family=Fustat:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Lunar palette — sampled from the reference image */
  --void:        #07070A;  /* deep space */
  --void-2:      #0E0E12;  /* near-black surface */
  --regolith:    #1A1A1E;  /* shadowed crater */
  --regolith-2:  #2A2A2F;  /* rule on dark */
  --mare:        #3A3A40;  /* lunar mare */
  --dust-600:    #4D4D52;
  --dust-500:    #6E6B66;
  --dust-400:    #8A847B;  /* mid regolith */
  --dust-300:    #A9A29A;
  --dust-200:    #BFB8AE;  /* highlight side of moon */
  --dust-100:    #D9D3CA;
  --cream:       #F2ECE3;  /* warm paper, for inverse panels */

  /* The earth-crescent accents (tiny blue in reference) */
  --earth:       #8FB3D6;
  --earth-deep:  #5A7FA8;

  /* Electric — TEF signature, retained for math annotations only */
  --electric:    #D1F48C;
  --electric-2:  #92AB62;
  --electric-3:  #697A46;

  /* Construction red — for diagram annotations, warnings */
  --ember:       #FF4A2A;
  --ember-2:     #B83610;

  /* Semantic */
  --bg:          var(--void);
  --surface:     var(--void-2);
  --surface-2:   var(--regolith);
  --line:        var(--regolith-2);
  --line-strong: var(--mare);
  --fg:          var(--dust-100);
  --fg-strong:   #F7F3EC;
  --fg-muted:    var(--dust-400);
  --fg-faint:    var(--dust-500);

  /* Type */
  --font-display: "Fustat", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--electric); color: var(--void); }

/* ── Shared primitives ──────────────────────────────────── */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow--num {
  color: var(--electric-2);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.rule-strong {
  height: 1px;
  background: var(--line-strong);
  border: 0;
  margin: 0;
}

.container {
  padding-left: 80px;
  padding-right: 80px;
}

/* Pill button — TEF pattern, inverted for dark ground */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 22px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--void);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .12s ease, border-color .18s ease;
  text-decoration: none;
}
.btn:hover    { background: var(--electric); color: var(--void); border-color: var(--electric); }
.btn:active   { transform: scale(0.98); }
.btn--ghost   { background: transparent; color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--void); }
.btn--electric { background: var(--electric); border-color: var(--electric); color: var(--void); }

/* Section scaffold — every section uses a top rule + 80px gutters */
section {
  position: relative;
  scroll-margin-top: 80px;
}

/* Display type */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg-strong);
  letter-spacing: -0.015em;
  margin: 0;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(96px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}

.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--dust-200);
  text-wrap: pretty;
}

.body { font-size: 16px; line-height: 1.55; color: var(--dust-200); text-wrap: pretty; }

/* Axis / tick annotations for math diagrams */
.diagram-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: var(--dust-400);
}
.diagram-label--hot { fill: var(--ember); }
.diagram-label--accent { fill: var(--electric); }
