:root {
  color-scheme: light;
  --ink: #43263a;
  --muted: #765d68;
  --rose: #d76a82;
  --rose-deep: #a74362;
  --gold: #d5a947;
  --cream: #fff9ef;
  --pearl: #fffdf8;
  --aqua: #a7cfd1;
  --shadow: rgba(88, 52, 74, 0.18);
  --mouse-x: 50%;
  --mouse-y: 40%;
  font-family:
    "Noto Serif SC",
    "Songti SC",
    "Microsoft YaHei",
    "PingFang SC",
    serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf6 0%, #f7dee7 46%, #d9eced 100%);
  overflow-x: hidden;
}

body::selection {
  color: #fff;
  background: var(--rose-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 250, 218, 0.42), transparent 18rem),
    linear-gradient(110deg, transparent 0 32%, rgba(255, 246, 216, 0.20) 43%, transparent 54% 100%);
  mix-blend-mode: screen;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  isolation: isolate;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    image-set(
      url("./assets/angelic-hero.png") 1x
    ) center / cover no-repeat;
  transform: scale(1.02);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.86) 0%, rgba(255, 250, 244, 0.66) 30%, rgba(255, 250, 244, 0.18) 62%, rgba(255, 250, 244, 0.62) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 249, 239, 0.18) 64%, #fff9ef 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(5rem, 13vw, 11rem);
  z-index: -1;
  background:
    linear-gradient(180deg, transparent, #fff9ef 72%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.84), transparent 58%),
    radial-gradient(ellipse at 70% 88%, rgba(255, 255, 255, 0.78), transparent 62%);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.nav__brand,
.nav__links {
  display: flex;
  align-items: center;
}

.nav__brand {
  gap: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nav__mark {
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid rgba(168, 113, 125, 0.35);
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 0 1.5rem rgba(220, 164, 87, 0.28);
}

.nav__mark::before,
.nav__mark::after {
  content: "";
  position: absolute;
  width: 0.78rem;
  height: 1.12rem;
  top: 0.42rem;
  border-radius: 100% 0 100% 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.25rem 0.8rem rgba(209, 144, 127, 0.18);
}

.nav__mark::before {
  left: 0.42rem;
  transform: rotate(-34deg);
}

.nav__mark::after {
  right: 0.42rem;
  transform: scaleX(-1) rotate(-34deg);
}

.nav__links {
  gap: clamp(1rem, 3vw, 2.4rem);
  color: rgba(67, 38, 58, 0.76);
}

.nav__links a {
  position: relative;
  padding: 0.3rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero__content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  align-self: center;
  padding: 8vh 0 20vh;
  max-width: 820px;
  justify-self: start;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--rose-deep);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.35rem;
  max-width: 8em;
  font-size: clamp(3.45rem, 8.5vw, 6.8rem);
  line-height: 0.96;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 0.5rem 2.2rem rgba(120, 69, 89, 0.16);
}

h1 span {
  display: block;
}

.hero__copy {
  max-width: 34rem;
  margin-bottom: 2.25rem;
  color: #694f5d;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.9;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  padding: 0 1.2rem 0 1.45rem;
  border: 1px solid rgba(167, 67, 98, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 1rem 2.5rem var(--shadow);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero__link:hover,
.hero__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 1.4rem 3rem rgba(136, 66, 92, 0.22);
}

.hero__arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--gold));
}

main {
  background: linear-gradient(180deg, #fff9ef 0%, #fffdf8 35%, #f1dbe4 100%);
}

.chapter,
.love-band,
.blessings,
.closing {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.chapter {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(18rem, 0.7fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.chapter__inner,
.love-band__content,
.closing {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.95;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.35rem, 5.2vw, 5.1rem);
  line-height: 1.06;
  text-wrap: balance;
}

.chapter__inner p,
.love-band__content p,
.closing p {
  max-width: 39rem;
  color: var(--muted);
}

.sigil {
  position: relative;
  aspect-ratio: 1;
  min-height: 18rem;
  display: grid;
  place-items: center;
}

.sigil::before {
  content: "";
  position: absolute;
  width: min(72%, 19rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(213, 169, 71, 0.34);
  box-shadow:
    inset 0 0 3rem rgba(255, 255, 255, 0.74),
    0 0 3rem rgba(213, 169, 71, 0.18);
}

.sigil span {
  position: absolute;
  width: 45%;
  height: 62%;
  border: 1px solid rgba(167, 67, 98, 0.16);
  border-radius: 55% 55% 8px 55%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 231, 220, 0.28));
  transform-origin: bottom center;
}

.sigil span:nth-child(1) {
  transform: translateX(-32%) rotate(-29deg);
}

.sigil span:nth-child(2) {
  transform: translateX(32%) scaleX(-1) rotate(-29deg);
}

.sigil span:nth-child(3) {
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 252, 239, 0.8);
  box-shadow: 0 0 2.8rem rgba(215, 106, 130, 0.22);
  transform: translateY(20%);
}

.love-band {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.love-band__image {
  min-height: clamp(24rem, 48vw, 40rem);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.82)),
    url("./assets/angelic-hero.png") center / cover no-repeat;
  box-shadow: 0 2rem 5rem rgba(110, 62, 82, 0.16);
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.vows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.vows span {
  display: inline-grid;
  place-items: center;
  min-width: 4.4rem;
  min-height: 2.3rem;
  padding: 0 1rem;
  border: 1px solid rgba(167, 67, 98, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--rose-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.blessings {
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
}

.blessings h2 {
  max-width: 11em;
  margin-inline: auto;
}

.blessings__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: rgba(167, 67, 98, 0.16);
}

.blessings article {
  min-height: 19rem;
  padding: clamp(1.5rem, 4vw, 2.7rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 239, 0.70));
  text-align: left;
}

.blessings article span {
  display: inline-block;
  margin-bottom: 3.6rem;
  color: var(--gold);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 800;
}

h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.3rem, 2vw, 1.72rem);
}

.blessings p {
  color: var(--muted);
  line-height: 1.8;
}

.closing {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(7rem, 12vw, 11rem);
  overflow: hidden;
}

.closing__halo {
  position: absolute;
  width: min(52vw, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(213, 169, 71, 0.34);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.80), rgba(255, 236, 205, 0.34) 38%, transparent 64%);
  z-index: -1;
}

.closing p {
  margin-inline: auto;
}

.feather {
  position: fixed;
  top: -10vh;
  left: var(--left);
  z-index: 6;
  width: var(--size);
  height: calc(var(--size) * 2.7);
  border-radius: 100% 0 100% 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 232, 226, 0.62));
  box-shadow: 0 0.6rem 1.8rem rgba(138, 88, 96, 0.12);
  opacity: var(--opacity);
  pointer-events: none;
  animation: drift var(--duration) linear var(--delay) infinite;
}

.feather::after {
  content: "";
  position: absolute;
  inset: 10% 46% 8% auto;
  width: 1px;
  background: rgba(174, 116, 126, 0.28);
  transform: rotate(7deg);
}

.reveal {
  opacity: 0;
  transform: translateY(2.8rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--sway), 54vh, 0) rotate(28deg);
  }
  100% {
    transform: translate3d(calc(var(--sway) * -0.45), 112vh, 0) rotate(64deg);
  }
}

@media (max-width: 860px) {
  .nav {
    width: min(100% - 28px, 720px);
  }

  .nav__links {
    gap: 1rem;
    font-size: 0.82rem;
  }

  .hero__content,
  .chapter,
  .love-band,
  .blessings,
  .closing {
    width: min(100% - 28px, 720px);
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(255, 250, 244, 0.76), rgba(255, 250, 244, 0.42) 48%, #fff9ef 100%);
  }

  .hero__content {
    padding: 6vh 0 18vh;
    text-align: left;
  }

  h1 {
    max-width: 7.2em;
    font-size: clamp(3.3rem, 16vw, 5.6rem);
  }

  .chapter,
  .love-band {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .love-band__image {
    order: 2;
    min-height: 22rem;
  }

  .blessings__grid {
    grid-template-columns: 1fr;
  }

  .blessings article {
    min-height: 15rem;
  }

  .blessings article span {
    margin-bottom: 2rem;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 66px;
  }

  .nav__brand span:last-child {
    display: none;
  }

  .nav__links {
    gap: 0.82rem;
  }

  .hero__copy,
  .chapter__inner,
  .love-band__content,
  .closing {
    font-size: 1rem;
    line-height: 1.85;
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
  }

  .hero__link {
    width: 100%;
    justify-content: space-between;
  }

  .sigil {
    min-height: 15rem;
  }

  .vows span {
    flex: 1 1 calc(50% - 0.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .feather {
    display: none;
  }
}
