.tale-hero {
  position: relative;
  overflow: hidden;
  background: #a80a33;
  color: #fff3dc;
  padding-top: clamp(8.5rem, 14vw, 11rem);
}

.tale-hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2.5rem, 1320px);
  margin-inline: auto;
  text-align: center;
}

.tale-hero__title {
  max-width: 10em;
  margin: 0.7rem 0 1.3rem;
  font-family: "Piazzolla", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw + 0.6rem, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.tale-hero__lead {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.tale-hero__print {
  position: relative;
  z-index: 2;
  width: min(100% - 1.5rem, 1040px);
  margin: clamp(4rem, 7vw, 6.5rem) auto -3rem;
  padding: 0.5rem 0.5rem 1.4rem;
  background: #f6ead0;
  box-shadow: 0 24px 50px rgba(26, 5, 8, 0.5);
  transform: rotate(-1.2deg);
}

.tale-hero__print img {
  width: 100%;
  filter: sepia(0.25) contrast(1.05);
}

.tale-hero__strata {
  position: relative;
  height: clamp(60px, 10vw, 130px);
  margin-top: 0;
}

.tale {
  position: relative;
  padding: 4rem 1.25rem 3rem;
  background: #f7e8c0;
}

.tale__spine {
  display: none;
}

.chapter {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3.75rem;
}

.chapter__fig {
  overflow: hidden;
}

.chapter__fig img {
  width: 100%;
}

.chapter__text {
  position: relative;
}

.chapter__mark {
  margin: 0.9rem 0 0.35rem 0.4rem;
}

.chapter__text h2 {
  margin: 0.5rem 0 1.1rem;
  font-family: "Piazzolla", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.6rem);
  line-height: 1.06;
  color: #7e0626;
}

.chapter__text p {
  max-width: 36rem;
}

.vows {
  background: #1a0508;
  color: #fbefd2;
  padding-block: 4.5rem 5rem;
}

.vows .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vows__title {
  margin: 0.7rem 0 1.3rem;
  font-family: "Piazzolla", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw + 1rem, 4.9rem);
  line-height: 1.04;
  text-wrap: balance;
}

.vows__line {
  display: block;
}

.vows__lead {
  max-width: 36rem;
  margin-bottom: 2.75rem;
  color: #f0dfb9;
}

.vows__list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
  margin-bottom: 2.75rem;
}

.vows__list div {
  border-top: 2px solid #e8b04a;
  padding-top: 0.75rem;
}

.vows__list dt {
  font-family: "Piazzolla", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
}

.vows__list dd {
  color: #f0dfb9;
}

@media (min-width: 768px) {
  .tale {
    padding: 7rem 2.5rem 4rem;
  }

  .tale__spine {
    display: block;
    position: absolute;
    left: 50%;
    top: 6rem;
    bottom: 6rem;
    width: 4px;
    margin-left: -2px;
    background: rgba(126, 6, 38, 0.16);
  }

  .tale__syrup {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(#e8b04a, #c9771e);
    transform-origin: 50% 0;
  }

  .chapter {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    max-width: 1240px;
    margin: 0 auto 7rem;
  }

  .chapter--b .chapter__fig {
    order: 2;
  }

  .vows__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .vows {
    padding-block: 7rem;
  }
}

.tale-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  width: min(130vw, 980px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 223, 158, 0.16);
  clip-path: polygon(50% 0, 100% 86.6%, 0 86.6%);
  background: linear-gradient(180deg, rgba(255, 223, 158, 0.08), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tale__drop {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 13px;
  margin-left: -5px;
  background: #c9771e;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .tale-hero::before {
    animation: tale-tri 60s linear infinite;
  }

  @keyframes tale-tri {
    to {
      transform: translate(-50%, -50%) rotate(-360deg);
    }
  }

  .tale-hero__print picture {
    display: block;
    animation: tale-float 8s ease-in-out infinite;
  }

  @keyframes tale-float {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-8px);
    }
  }

  .tale__drop {
    animation: tale-drop 5s cubic-bezier(0.45, 0, 0.8, 0.6) infinite;
  }

  @keyframes tale-drop {
    0% {
      top: 0;
      opacity: 0;
    }

    10% {
      opacity: 1;
    }

    90% {
      opacity: 1;
    }

    100% {
      top: 100%;
      opacity: 0;
    }
  }

}
