:root,
[data-bs-theme="dark"] {
  --cda-navy: #060b18;
  --cda-electric: #2563eb;
  --cda-cyan: #22d3ee;
  --cda-text: #e6ecf5;
}

/* Light theme: the navbar/footer keep data-bs-theme="dark" set directly
   on themselves (brand chrome, always dark) — these overrides only
   affect <main>, which is the part of the page the toggle controls. */
[data-bs-theme="light"] {
  --cda-navy: #f3f5f9;
  --cda-electric: #2563eb;
  --cda-cyan: #0e7490;
  --cda-text: #0f172a;
}

body {
  background-color: var(--cda-navy);
  color: var(--cda-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

a {
  color: var(--cda-cyan);
}

.scroll-target {
  scroll-margin-top: 90px;
}

.cda-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cda-electric), var(--cda-cyan));
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cda-avatar-img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
