/* Soul Dance — base.css */

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

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ── Типографика ──────────────────────────────────────────── */

h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.10;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.body-text {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.body-small {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.label {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-body);
}

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

@media (max-width: 768px) {
  h1 { font-size: 34px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
  .body-text { font-size: 16px; }
  body { font-size: 16px; }
}

/* ── Scroll-анимации ─────────────────────────────────────── */

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }

/* ── Фокус ───────────────────────────────────────────────── */

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

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Утилиты ─────────────────────────────────────────────── */

.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;
}
