/* ================================================================
   KOSINCEVA TATTOO — Base reset + bare HTML elements
   ================================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Уменьшаем прыжок скролла при появлении скроллбара */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Медиа-элементы */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  line-height: var(--lh-tight);
  color: inherit;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

/* Ссылки */
a {
  color: var(--c-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Inline text links within prose */
.text-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.35);
  transition: text-decoration-color var(--ease);
}
.text-link:hover {
  text-decoration-color: currentColor;
}

/* Списки */
ul, ol {
  list-style: none;
}

/* Кнопки */
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Формы */
input, textarea, select {
  font: inherit;
}

/* Focus ring — только при навигации клавиатурой */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Скрыто для зрячих, видно скринридеру */
.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;
}

/* Нет анимаций по запросу пользователя */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
