/* ==========================================================================
   Stellereum — reset, типографика, a11y, prefers-reduced-motion
   ========================================================================== */

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

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

body {
  margin: 0;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(63, 169, 255, .13), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(139, 108, 255, .12), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(63, 169, 255, .07), transparent 65%);
  background-attachment: fixed;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-1);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

li { list-style: none; }

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

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

button { background: none; border: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--text-1); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

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

::selection {
  background: rgba(63, 169, 255, .32);
  color: #ffffff;
}

/* --- a11y ---------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--accent);
  color: var(--text-1);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform var(--t-base) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* длинные hex/строки не должны рвать вёрстку */
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }

/* --- типографика --------------------------------------------------------- */
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lead {
  color: var(--text-2);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

.mono { font-family: var(--font-mono); }

.text-1 { color: var(--text-1); }
.text-accent { color: var(--accent); }

/* --- prefers-reduced-motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  /* контент всегда виден, никаких прятаний */
  [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
    transform: none !important;
  }
}
