/* Sitewide base — loads on every page. Same cosmic palette used
   throughout the rest of the site (cosmos-experience.css, single-theory.css,
   domain-archive.css each carry their own scoped copy of these values for
   their specific containers; this file defines the site-level chrome:
   header, footer, and the generic content wrapper used by index.php/page.php). */

:root {
  --cct-bg: #030308;
  --cct-panel: #0c0f24;
  --cct-violet: #8b6bff;
  --cct-gold: #ffcf5c;
  --cct-teal: #4fe8d4;
  --cct-text: #eef0ff;
  --cct-muted: #9491b8;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; }

html, body {
  background: var(--cct-bg);
  color: var(--cct-text);
  font-family: 'Inter', sans-serif;
  min-height: 100%;
}

a { color: var(--cct-gold); }

/* ---------- Header ---------- */
.cct-site-header {
  background: var(--cct-panel);
  border-bottom: 1px solid rgba(139, 107, 255, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cct-site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cct-site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cct-text);
  text-decoration: none;
  white-space: nowrap;
}
.cct-logo-star { color: var(--cct-gold); }

.cct-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}
.cct-site-nav a {
  color: var(--cct-muted);
  text-decoration: none;
  white-space: nowrap;
}
.cct-site-nav a:hover { color: var(--cct-teal); }
.cct-nav-map {
  color: var(--cct-bg) !important;
  background: linear-gradient(120deg, var(--cct-gold), var(--cct-violet));
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.cct-site-footer {
  max-width: 1200px;
  margin: 3rem auto 0 auto;
  padding: 1.5rem;
  color: var(--cct-muted);
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px solid rgba(148, 145, 184, 0.2);
}

/* ---------- Generic page content (index.php / page.php) ---------- */
.cct-generic-content {
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.cct-generic-content h1,
.cct-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.cct-generic-body { line-height: 1.7; }
.cct-generic-body p { margin: 0 0 1.25rem 0; }

/* The Constellation Map page needs the full available width for the D3
   graph, not the narrower reading-width used for ordinary page content. */
.cct-page .cct-generic-body { max-width: none; }

@media (max-width: 640px) {
  .cct-site-header-inner { padding: 0.85rem 1rem; gap: 0.75rem; }
  .cct-site-nav { gap: 0.4rem 0.85rem; }
}
