/*
  Декоративные шрифты — отдельный файл для лёгкого отката.
  Чтобы вернуть как было: убрать <link rel="stylesheet" href="display-fonts.css" />
  из index.html и home.html, и вернуть старый Google Fonts (только Manrope).
  Подробности: revert-notes.txt
*/

.section-heading,
.section.story .section-heading,
.hero-copy,
.timeline-copy,
.final-card,
.birthday-reveal,
.welcome-copy {
  overflow: visible;
}

.final-card {
  overflow: visible;
}

/* Имя — Unbounded, голубоватый градиент (компактный размер под ширину экрана) */
.hero-copy h1 {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin-bottom: 0.18em;
  padding: 0.04em 0.06em 0.14em 0;
  overflow: visible;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 0%, #e8f4ff 38%, #9ec9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 3px 0 rgba(106, 45, 189, 0.85))
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.42));
  text-wrap: balance;
}

/* «Слива» — рукописный акцент */
.hero-copy .nickname {
  position: relative;
  z-index: 3;
  width: fit-content;
  max-width: 100%;
  margin-top: -0.1em;
  margin-bottom: 1em;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  color: #ecccff;
  font-family: "Marck Script", cursive;
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  transform: rotate(-2deg);
  text-shadow:
    0 2px 0 rgba(106, 45, 189, 0.55),
    0 10px 28px rgba(140, 77, 216, 0.45);
}

/* Заголовки секций — Cormorant + золотой градиент */
.section-heading {
  max-width: 100%;
}

.section-heading h2,
.final-card h2 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-right: 0;
  padding-bottom: 0.08em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 5.2vw, 72px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff7e8, #ffd166 55%, #ff8a1d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(255, 138, 29, 0.22));
  text-wrap: balance;
}

/* Страница подарка — вся фраза одним шрифтом, крупнее */
.welcome-title {
  max-width: 100%;
  padding: 0 0.08em 0.1em;
  font-family: "Marck Script", cursive;
  font-size: clamp(38px, 9.5vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff, #ffd166 70%, #ff8a1d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
  text-wrap: balance;
}

.birthday-reveal p {
  max-width: min(94vw, 720px);
  margin: 0;
  padding: 0.12em 0.16em 0.18em;
  overflow: visible;
  font-family: "Marck Script", cursive;
  font-size: clamp(40px, 12vw, 88px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-align: center;
  background: linear-gradient(135deg, #ffd166, #fff 52%, #ffeaa8);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.42));
  text-wrap: balance;
}

.birthday-reveal span {
  font: inherit;
  letter-spacing: inherit;
  background: inherit;
  background-clip: inherit;
  -webkit-background-clip: inherit;
  color: inherit;
}

@media (max-width: 700px) {
  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .hero-copy .nickname {
    margin-top: 0;
    font-size: clamp(28px, 8vw, 40px);
    transform: rotate(-1.5deg);
  }

  .section-heading h2,
  .final-card h2 {
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.12;
  }

  .welcome-title {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.12;
  }

  .birthday-reveal p {
    font-size: clamp(36px, 11vw, 56px);
    line-height: 1.14;
    padding-inline: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .nickname {
    transform: none;
  }
}
