/* jseds.com global styles */
:root {
  --canvas: #050a18;
  --glass: rgba(8, 14, 30, 0.65);
  --glass-border: rgba(148, 180, 255, 0.12);
  --glass-blur: 20px;
  --ink: #e8ecf4;
  --muted: #7a8ab5;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #34d399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -300px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0.12), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Global Header ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  margin-bottom: 0.75rem;
  background: rgba(5, 10, 24, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(148, 180, 255, 0.08);
  border-radius: 0 0 14px 14px;
}

/* Logo */
.nav-logo {
  font-family: 'Clash Display', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.25s, text-shadow 0.25s;
}

.nav-logo:hover {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.3);
}

/* Nav link container */
.nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

/* Base nav link */
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Satoshi', 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(148, 180, 255, 0.06);
  border-color: rgba(148, 180, 255, 0.1);
}

/* Active page pill */
.nav-active {
  color: var(--accent) !important;
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.22) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
}

.nav-active:hover {
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

/* ── Page Container ── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .page { padding: 1.25rem 1rem 4rem; gap: 1.25rem; }
}

@media (max-width: 720px) {
  .site-nav { padding: 0.6rem 1rem; }
}
