/* ==========================================================================
   Base — Global typography, body, links
   ========================================================================== */

body {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);

  /* Galaxy-style background */
  background:
    radial-gradient(ellipse at 70% 15%, rgba(14, 25, 60, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 75%, rgba(10, 20, 50, 0.6) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 40%, rgba(12, 18, 42, 0.4) 0%, transparent 55%),
    linear-gradient(180deg, #080C1A 0%, #0B1024 30%, #0E1530 55%, #0A0E1E 80%, #080C1A 100%);
  background-attachment: fixed;
}

/* Font preload: swap fallback */
@font-face {
  font-display: swap;
}

/* Headings */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
}

/* Body text defaults */
p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Links */
a {
  transition: color 0.2s ease;
}

a:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
