/* AIVeNautics — Base reset + body + typography defaults.
 * Replaces Tailwind preflight with a focused, minimal reset.
 */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--c-slatey-500) var(--c-navy-950);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-white);
  background-color: var(--c-navy-900);
  background-image: linear-gradient(180deg, #06122E 0%, #0A1A4A 240px, #0A1A4A 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--c-white);
}

p {
  color: var(--c-slatey-400);
}

::selection {
  background-color: rgba(79, 195, 247, 0.35);
  color: var(--c-white);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-navy-950); }
::-webkit-scrollbar-thumb { background: var(--c-slatey-500); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--c-slatey-400); }

/* Accessibility helper — visually hidden until focused */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: var(--z-skip-link);
  border-radius: var(--radius-sm);
  background: var(--c-sky-500);
  color: var(--c-navy-900);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  padding: 8px 16px;
  transition: top var(--tx-base);
}
.skip-link:focus {
  top: 16px;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--c-sky-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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