/* ==========================================================================
   Base — reset, typography, links, selection
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

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

body {
  font-family: var(--sv-font-body);
  font-size: var(--sv-fs-base);
  line-height: 1.6;
  color: var(--sv-ink);
  background: var(--sv-navy-950);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(13, 110, 253, 0.08) 0px, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(34, 211, 238, 0.06) 0px, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sv-font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sv-ink-strong);
}

h1 { font-size: clamp(2.5rem, 6vw, var(--sv-fs-7xl)); }
h2 { font-size: clamp(2rem, 4.5vw, var(--sv-fs-5xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--sv-fs-3xl)); }
h4 { font-size: var(--sv-fs-2xl); }
h5 { font-size: var(--sv-fs-xl); }
h6 { font-size: var(--sv-fs-lg); }

p {
  color: var(--sv-ink-muted);
  line-height: 1.7;
}

strong, b { font-weight: 600; color: var(--sv-ink-strong); }
em, i { font-style: italic; }

a {
  color: var(--sv-primary);
  text-decoration: none;
  transition: color var(--sv-dur) var(--sv-ease-out);
}
a:hover { color: var(--sv-primary-600); }
a:focus-visible {
  outline: 2px solid var(--sv-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { list-style: none; }

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

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

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

code, kbd, pre, samp {
  font-family: var(--sv-font-mono);
  font-size: 0.9em;
}

blockquote {
  border-left: 3px solid var(--sv-primary);
  padding: var(--sv-space-4) var(--sv-space-6);
  margin: var(--sv-space-6) 0;
  color: var(--sv-ink-muted);
  font-style: italic;
}

hr {
  border: 0;
  height: 1px;
  background: var(--sv-line);
  margin: var(--sv-space-12) 0;
}

img { user-select: none; }

::placeholder {
  color: var(--sv-ink-faint);
  opacity: 1;
}
