/* ── LK Forge family base — tokens + header + nav + footer ───────────
   Cool-light brand palette shared across every lkforge tool. The
   Space suite brand accent is cosmic violet; each tool (asteroids, iss)
   re-tints via body[data-tool] in space.css. Orbitron (display) +
   Outfit (body) + JetBrains Mono (numerics). */
:root {
  --bg:        #f5f7ff;
  --surface:   #ffffff;
  --surface2:  #eceeff;
  --border:    #cdd1f0;
  --text:      #0f0f2e;
  --muted:     #515180;
  /* Suite brand accent (cosmic violet) — used on the hub + favicon/og.
     Tool pages override these via body[data-tool] in space.css. */
  --accent:    #7c3aed;
  --accent-h:  #6d28d9;
  --accent-bg: #ede9fe;
  --accent-fg: #5b21b6;
  --ring:      124,58,237;
  --radius:    9px;
  --radius-lg: 14px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.14);
  --mono:      'JetBrains Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header / nav ───────────────────────────────────────────────── */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px; position: sticky; top: 0; z-index: 100;
}
.site-logo { font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: -.5px; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: none; align-items: center; justify-content: center; min-width: 92px;
  font-size: .875rem; font-weight: 600; padding: 8px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  color: var(--text); background: transparent; text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .1s;
}
.nav-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; transform: translateY(-1px); }
.nav-link:active { transform: scale(.97); }
.nav-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.nav-hamburger { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); cursor: pointer; padding: 6px 12px; border-radius: var(--radius); font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--text); transition: background .2s; }
.nav-hamburger:hover { background: rgba(0,0,0,.07); }
.nav-mobile-menu { display: none; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 14px; gap: 8px; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link { display: block; text-align: center; text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--text); background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 13px 16px; transition: background .18s, border-color .18s, color .18s; }
.nav-mobile-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.nav-mobile-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Nav fits the hub + tools + sections — hamburger up to 720px. */
@media (min-width: 720px) {
  .site-nav .nav-link { display: inline-flex; }
  .nav-hamburger { display: none; }
  .nav-mobile-menu { display: none !important; }
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer.page-footer { border-top: 1px solid var(--border); padding: 24px 20px; text-align: center; font-size: .82rem; color: var(--muted); margin-top: 24px; }
footer.page-footer nav { margin-bottom: 6px; }
footer.page-footer nav a { color: var(--muted); }
footer.page-footer nav a:hover { color: var(--text); }

/* ── LK Forge brand: Orbitron display headings ──────────────────── */
.site-logo, .tool-hero h1, .hub-card h2, .section > h2 { font-family: 'Orbitron', sans-serif; }
.site-logo { font-weight: 900; }
.tool-hero h1 { font-weight: 900; font-size: clamp(1.4rem, 4.2vw, 2.05rem); letter-spacing: -.4px; line-height: 1.2; }
.hub-card h2, .section > h2 { font-weight: 700; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
