html {
  font-size: 16px;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Заголовки ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 500;
}

p {
  max-width: 65ch;
}

strong { font-weight: 600; }
em     { font-style: italic; }

/* ── Цветовые хелперы ── */
.text-light      { color: var(--color-text-light); }
.text-light-soft { color: var(--color-text-light-soft); }
.text-soft       { color: var(--color-text-soft); }
.text-accent     { color: var(--color-accent); }

/* ── Размеры текста ── */
.text-small {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.text-caption {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Фокус ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Анимация появления при скролле ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Уважаем настройки анимации ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
