:root {
  --bg: #faf6f2;
  --ink: #2b1b12;
  --muted: #8a7a70;
  --accent: #cd7b5a;
  --accent-deep: #a1502f;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* Маскот двигается только через transform, поэтому позиция фиксированная,
   а origin остаётся в левом верхнем углу окна. */
.mascot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 180px;
  height: auto;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 16px 34px rgba(205, 123, 90, 0.32));
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
}

.hero__kicker {
  margin: 0;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
}

.hero__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero__title em {
  color: var(--accent-deep);
  font-style: italic;
}

.hero__lead {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.hero__counter {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
}

.tips {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

/* Подсказка появляется классом show на следующем кадре, всю анимацию
   делает CSS - в кадре анимации нет ничего. */
.tip {
  position: fixed;
  max-width: 280px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 0 #fff, 0 0 12px rgba(250, 246, 242, 0.92);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

.tip.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tip::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--accent);
}

.tip--tip::before {
  background: #6f8f74;
}

.tip--fact::before {
  background: #7c7fae;
}

@media (max-width: 600px) {
  .mascot {
    width: 120px;
  }

  .hero {
    gap: 14px;
    padding: 32px 18px;
  }

  .tip {
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tip {
    transform: translate(-50%, -50%);
    transition: opacity 0.2s linear;
  }

  .tip.show {
    transform: translate(-50%, -50%);
  }
}
