*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #f6f4fa; /* Soft gray-lavender body background to make cards pop */
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 999;
}

.skip-link:focus {
  left: 6px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 30, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, .25);
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 4px;
}

nav :focus-visible {
  outline-color: #fcd34d;
}

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