/* Inc.AI — кастомные стили поверх Tailwind (Play CDN).
   Здесь только то, чего нет в утилитах: появление по скроллу,
   фокус-стили, типографика статей и печать one-pager. */

/* ---------- Появление по скроллу ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* ---------- Доступный фокус для клавиатуры ---------- */
:focus-visible {
  outline: 3px solid #22D3EE;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Skip-link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #22D3EE;
  color: #23201A;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Типографика статьи блога ---------- */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}
.article-body > p,
.article-body > ul,
.article-body > blockquote {
  margin-bottom: 1.4rem;
}
.article-body h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.25;
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  color: #23201A;
}
.article-body h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #23201A;
}
.article-body ul {
  list-style: disc;
  padding-left: 1.4rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body strong {
  color: #0B1220;
  font-weight: 600;
}
.article-body a {
  color: #0C6B7E;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body blockquote {
  border-left: 3px solid #22D3EE;
  background: #F2EEE6;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 1.05rem;
}

/* ---------- Слоты под изображения (плейсхолдеры) ----------
   Пока файла нет, виден аккуратный блок с именем файла.
   Когда картинку положат в /images, она перекроет плейсхолдер. */
.img-slot {
  position: relative;
  overflow: hidden;
  background: #ECE7DC;
  border: 1px solid #DDD6C7;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-slot.is-missing .img-slot__img { display: none; }
.img-slot__ph {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: #6B655B;
  padding: 1.5rem;
  text-align: center;
}
.img-slot.is-missing .img-slot__ph { display: flex; }
/* перекрашиваем встроенные циановые иконки плейсхолдеров в тёмную бирюзу для контраста на светлом */
.img-slot__ph svg { stroke: #0C6B7E !important; }
.img-slot__name {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  color: #0C6B7E;
}

/* ---------- Печать one-pager (A4, ч/б, без шапки/подвала) ---------- */
@media print {
  .no-print { display: none !important; }
  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .print-sheet {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  a { color: #000 !important; text-decoration: none !important; }
  .print-accent { color: #000 !important; }
  @page { size: A4; margin: 14mm; }
}
