@font-face {
  font-family: Moonlight;
  src: url("../assets/moonlight-font.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
}

/* Personal signatures follow the same quiet silver typography as the moonlight. */
.brand-signature {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  color: #a8b5c8;
  font-size: 10px;
  letter-spacing: .17em;
}
.brand-signature > span:first-child {
  color: #d7dfeb;
  font-size: 13px;
  letter-spacing: .24em;
}
.signature-divider {
  width: 23px;
  height: 1px;
  background: #a8b5c84d;
}
.blessing-signature {
  display: block;
  margin-top: 13px;
  color: #a8b5c8;
  font-size: 10px;
  letter-spacing: .18em;
}
.ending footer {
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer-brand {
  color: #b9c5d7;
  letter-spacing: .22em;
}
.easter-signature {
  margin-top: 30px;
  color: #a8b5c8;
  font-size: 11px;
  letter-spacing: .21em;
}
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .brand-signature {
    justify-content: center;
    margin-top: 20px;
    font-size: 9px;
  }
  .brand-signature > span:first-child {
    font-size: 12px;
  }
}
:root {
  color-scheme: dark;
  --night: #05070d;
  --paper: #eceeea;
  --muted: #9ca7b8;
  --silver: #bccde2;
  --moon-size: min(47vw, 74vh);
  --light-x: 32%;
  --light-y: 22%;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--night);
  scroll-behavior: smooth;
  scrollbar-color: #3a4352 var(--night);
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: Moonlight, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 300;
  overflow-x: clip;
}
::selection {
  background: #becce33b;
  color: #fff;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 1px solid #d6e5ff;
  outline-offset: 9px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin: 0;
}
button {
  border: 0;
}
main {
  position: relative;
  z-index: 3;
  pointer-events: none;
}
main button,
main a {
  pointer-events: auto;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 14px;
  z-index: 30;
  background: #1b2535;
  text-decoration: none;
}
.skip-link:focus {
  top: 20px;
}
.universe {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
#sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: sky-arrive 2.5s 0.15s forwards;
}
.atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 74% 48%, #22304928, transparent 54%),
    radial-gradient(ellipse at 17% 90%, #222b471f, transparent 55%);
}
.haze {
  position: absolute;
  width: 145%;
  height: 52%;
  left: -25%;
  opacity: 0;
  will-change: transform, opacity;
  background: radial-gradient(
    ellipse,
    #8ea3be12 0%,
    #687e9720 18%,
    transparent 62%
  );
  filter: blur(35px);
}
.haze-one {
  top: 21%;
  transform: rotate(-14deg);
}
.haze-two {
  top: 54%;
  transform: rotate(9deg);
}
.pointer-light {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, #bdcfff08, transparent 66%);
  transform: translate(-500px, -500px);
  will-change: transform;
}
.grain {
  position: absolute;
  inset: -10%;
  opacity: 0.018;
  background-image: url("../assets/grain.webp");
  background-repeat: repeat;
  animation: grain-shift 0.7s steps(2) infinite;
}
.moon-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.moon-position {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--moon-size);
  height: var(--moon-size);
  will-change: transform;
  transform: translate(calc(72vw - 50%), calc(49vh - 50%));
}
.moon-parallax {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform;
  opacity: 0;
  animation: moon-arrive 2.6s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.moon {
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
  border-radius: 50%;
  pointer-events: auto;
  position: relative;
  touch-action: pan-y;
  isolation: isolate;
  outline-offset: 14px;
  transition: filter 1.8s;
}
.moon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  filter: brightness(0.96) contrast(1.08);
  will-change: transform;
}
.moon-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at var(--light-x) var(--light-y),
    transparent 30%,
    #05080e30 69%,
    #05080e8c 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
.moon-aura {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #c5d6f009 40%,
    #b7cced0b 48%,
    #9cafcf06 57%,
    transparent 70%
  );
  opacity: 0.8;
  transition: opacity 1.8s;
  animation: breathe 9s ease-in-out infinite;
}
.moon-parallax:has(.moon:hover) .moon-aura {
  opacity: 1.5;
}
.moon-ripple {
  position: absolute;
  inset: -2%;
  border: 1px solid #d0def850;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.moon-ripple.rippling {
  animation: ripple 2s ease-out;
}
.is-lit .moon {
  filter: brightness(1.22);
}
.is-lit .moon-aura {
  opacity: 1.9;
}
.hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
}
.hero-copy {
  position: absolute;
  left: 10%;
  top: 31%;
  max-width: 48%;
  opacity: 0;
  animation: text-arrive 1.5s 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
h1 {
  font-size: clamp(48px, 5.15vw, 94px);
  font-weight: 250;
  letter-spacing: 0.045em;
  line-height: 1.42;
}
h1 span {
  display: block;
}
.festival {
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.25em;
  color: #aeb8c7;
  margin-top: 30px;
}
.festival span {
  display: inline-block;
  margin-left: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}
.dedication {
  margin-top: 35px;
  font-size: 13px;
  letter-spacing: 0.13em;
  color: #adb7c7;
}
.hero-bottom {
  position: absolute;
  inset: auto 5% max(36px, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0;
  animation: text-arrive 1.3s 2s forwards;
}
.quiet-note,
.moon-note {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #8995a8;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 8px;
}
.scroll-line {
  height: 35px;
  width: 1px;
  background: linear-gradient(#a9b5c9, transparent);
  transform-origin: top;
  animation: scroll-breathe 3s ease-in-out infinite;
}
.constellation {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: sky-arrive 2s 1s forwards;
}
.wish-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: transparent;
  pointer-events: auto;
  padding: 20px;
  display: grid;
  place-items: center;
}
.wish-star i {
  display: block;
  width: 3px;
  height: 3px;
  background: #ced8ec;
  border-radius: 50%;
  box-shadow: 0 0 7px #b6cdffa0;
  position: absolute;
  transition:
    transform 0.6s,
    box-shadow 0.6s,
    background 0.6s;
}
.wish-star i:before,
.wish-star i:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #becce3aa, transparent);
  transform: translate(-50%, -50%);
}
.wish-star i:after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.star-tip,
.star-word {
  position: absolute;
  top: 38px;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0;
  transition:
    opacity 0.5s,
    transform 0.5s;
  transform: translateY(3px);
  pointer-events: none;
  color: #bccae0;
}
.wish-star:hover i,
.wish-star:focus-visible i {
  transform: scale(1.45);
}
.wish-star:hover .star-tip,
.wish-star:focus-visible .star-tip {
  opacity: 1;
  transform: none;
}
.wish-star[aria-pressed="true"] i {
  background: #fff;
  box-shadow: 0 0 13px #e3edff;
  transform: scale(1.35);
}
.wish-star[aria-pressed="true"] .star-word {
  opacity: 1;
  transform: none;
  font-size: 12px;
  letter-spacing: 0.24em;
}
.wish-star[aria-pressed="true"] .star-tip {
  display: none;
}
.together {
  height: 120svh;
  position: relative;
  display: grid;
  place-items: center;
}
.passage-copy {
  text-align: center;
  margin-top: 8vh;
}
h2 {
  font-weight: 300;
}
.passage-copy h2 {
  font-size: clamp(27px, 3vw, 53px);
  line-height: 1.9;
  letter-spacing: 0.11em;
}
.passage-copy h2 span {
  display: block;
}
.micro {
  font-size: 9px;
  line-height: 2;
  letter-spacing: 0.21em;
  color: var(--muted);
}
.passage-copy .micro {
  margin-top: 35px;
}
.reveal {
  opacity: 1;
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition:
    opacity 1.4s,
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.4s;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.passage-copy h2 span:last-child {
  transition-delay: 0.2s;
}
.lighting {
  height: 130svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.light-copy {
  margin-top: 31vh;
  text-align: center;
}
.light-whisper {
  font-size: 11px;
  letter-spacing: 0.23em;
  margin-bottom: 24px;
}
.light-action {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px 0 19px;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: 0.12em;
  border-bottom: 1px solid #b9cee044;
  background: none;
  transition:
    border-color 0.6s,
    text-shadow 0.6s;
}
.light-action:hover {
  border-color: #c7d8edbd;
  text-shadow: 0 0 25px #d9e6ff30;
}
.light-symbol {
  width: 13px;
  height: 13px;
  border: 1px solid #b3c6e1;
  border-radius: 50%;
  transition:
    background 1s,
    box-shadow 1s;
}
.action-arrow {
  font-size: 22px;
  color: #8a9aae;
  transition: transform 0.4s;
}
.light-action:hover .action-arrow {
  transform: translate(3px, -3px);
}
.is-lit .light-symbol {
  background: #dce5f0;
  box-shadow: 0 0 18px #d4e3ff70;
}
.lit-message {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 1.1s,
    opacity 1.5s;
  margin-top: 0;
}
.lit-message p {
  overflow: hidden;
  font-size: clamp(16px, 1.6vw, 23px);
  line-height: 2;
  letter-spacing: 0.09em;
}
.is-lit .lit-message {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 30px;
}
.star-invitation {
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.ending {
  height: 120svh;
  min-height: 730px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ending-copy {
  text-align: center;
  margin-top: 16vh;
}
.ending h2 {
  font-size: clamp(30px, 3.4vw, 54px);
  letter-spacing: 0.26em;
  line-height: 1.5;
  padding-left: 0.26em;
}
.ending h2 span {
  display: block;
}
.ending h2 span + span {
  margin-top: 40px;
}
.translation {
  margin-top: 37px;
  font-size: 9px;
  line-height: 2.2;
}
.closing-mark {
  margin-top: 42px;
  font-size: 9px;
}
.closing-mark span {
  display: block;
  margin: 6px 0 0;
  font-size: 11px;
}
.ending footer {
  position: absolute;
  bottom: max(30px, env(safe-area-inset-bottom));
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #8390a4;
}
.moon-blessing {
  position: fixed;
  bottom: max(14vh, 80px);
  left: 50%;
  transform: translate(-50%, 15px);
  width: max-content;
  max-width: 88%;
  text-align: center;
  color: #e2e7ef;
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: 0.1em;
  line-height: 1.9;
  z-index: 8;
  opacity: 0;
  filter: blur(5px);
  transition:
    opacity 0.8s,
    transform 0.8s,
    filter 0.8s;
  pointer-events: none;
  text-shadow: 0 2px 18px #000;
}
.moon-blessing.shown {
  opacity: 1;
  transform: translate(-50%, 0);
  filter: none;
}
.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 12;
  background: #05070de8;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s;
  text-align: center;
}
.easter-egg.active {
  opacity: 1;
}
.easter-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 250;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}
.easter-copy {
  margin-top: 32px;
  font-size: clamp(12px, 1.5vw, 17px);
  letter-spacing: 0.12em;
}
.easter-egg.active:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #6f83951c, transparent 65%);
  animation: sky-arrive 2s;
}
.noscript-note {
  position: fixed;
  bottom: 8px;
  left: 10%;
  width: 80%;
  text-align: center;
  font-size: 12px;
  z-index: 10;
  background: #05070d;
  padding: 10px;
}
@keyframes text-arrive {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes moon-arrive {
  from {
    opacity: 0;
    filter: brightness(0.15);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}
@keyframes sky-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes ripple {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  12% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}
@keyframes breathe {
  50% {
    transform: scale(1.04);
  }
}
@keyframes grain-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-3%, 2%);
  }
}
@keyframes scroll-breathe {
  50% {
    opacity: 0.3;
    transform: scaleY(0.75);
  }
}
@media (min-width: 1800px) {
  .hero-copy {
    left: 12%;
  }
  .dedication {
    font-size: 15px;
  }
  .hero-bottom {
    inset-inline: 6%;
  }
  .quiet-note,
  .moon-note {
    font-size: 11px;
  }
}
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  :root {
    --moon-size: min(76vw, 43svh);
  }
  .hero {
    min-height: 650px;
  }
  .moon-position {
    transform: translate(calc(50vw - 50%), calc(29vh - 50%));
  }
  .hero-copy {
    left: 0;
    top: 54%;
    max-width: none;
    width: 100%;
    text-align: center;
  }
  h1 {
    font-size: clamp(34px, 8.2vw, 56px);
    line-height: 1.35;
    letter-spacing: 0.07em;
  }
  h1 span {
    display: inline;
  }
  .festival {
    margin-top: 21px;
    font-size: 8px;
    letter-spacing: 0.19em;
  }
  .festival span {
    margin-left: 15px;
  }
  .dedication {
    margin-top: 21px;
    font-size: 11px;
    letter-spacing: 0.09em;
  }
  .hero-bottom {
    inset-inline: 7%;
    bottom: max(25px, env(safe-area-inset-bottom));
  }
  .quiet-note {
    display: none;
  }
  .moon-note {
    font-size: 9px;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 84px;
    color: #8d9bb0;
  }
  .scroll-cue {
    gap: 11px;
    font-size: 8px;
  }
  .scroll-line {
    height: 28px;
  }
  .wish-star:nth-child(2) {
    --x: 15% !important;
    --y: 11% !important;
  }
  .wish-star:nth-child(4) {
    --x: 91% !important;
    --y: 57% !important;
  }
  .wish-star:nth-child(5) {
    --x: 9% !important;
    --y: 43% !important;
  }
  .wish-star:nth-child(6) {
    --x: 18% !important;
    --y: 85% !important;
  }
  .wish-star:nth-child(8) {
    --x: 53% !important;
    --y: 7% !important;
  }
  .star-tip {
    font-size: 8px;
  }
  .wish-star:nth-child(3) .star-tip,
  .wish-star:nth-child(4) .star-tip {
    right: 0;
  }
  .passage-copy {
    width: 92%;
    margin-top: 0;
  }
  .passage-copy h2 {
    font-size: clamp(22px, 5.5vw, 34px);
    letter-spacing: 0.055em;
    line-height: 2.1;
  }
  .passage-copy .micro {
    font-size: 7px;
    letter-spacing: 0.14em;
    margin-top: 25px;
  }
  .light-copy {
    margin-top: 18vh;
    width: 84%;
  }
  .light-action {
    font-size: 23px;
    gap: 14px;
    margin: auto;
    letter-spacing: 0.06em;
  }
  .light-symbol {
    width: 10px;
    height: 10px;
  }
  .action-arrow {
    font-size: 18px;
  }
  .lighting {
    height: 120svh;
  }
  .lit-message p {
    font-size: 15px;
  }
  .star-invitation {
    font-size: 9px;
  }
  .ending {
    height: 120svh;
    min-height: 670px;
  }
  .ending-copy {
    margin-top: 12vh;
  }
  .ending h2 {
    font-size: 32px;
    letter-spacing: 0.2em;
  }
  .ending h2 span + span {
    margin-top: 29px;
  }
  .translation {
    font-size: 7px;
    margin-top: 33px;
  }
  .closing-mark {
    font-size: 8px;
    margin-top: 35px;
  }
  .closing-mark span {
    font-size: 10px;
    margin: 5px 0 0;
  }
  .ending footer {
    font-size: 9px;
  }
  .moon-blessing {
    bottom: 18vh;
    font-size: 13px;
    max-width: 80%;
  }
  .pointer-light {
    display: none;
  }
  .grain {
    opacity: 0.025;
  }
}
@media (max-height: 650px) and (min-width: 761px) {
  .hero {
    min-height: 540px;
  }
  .hero-copy {
    top: 23%;
  }
  h1 {
    font-size: 55px;
  }
  .dedication {
    margin-top: 22px;
  }
  .ending {
    min-height: 650px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready .reveal {
    filter: none;
    transform: none;
  }
  .pointer-light,
  .grain,
  .haze {
    display: none;
  }
  .moon-parallax,
  #sky,
  .constellation,
  .hero-copy,
  .hero-bottom {
    opacity: 1;
  }
  .moon-blessing {
    filter: none;
  }
}
.motion-paused *,
.motion-paused *:before,
.motion-paused *:after {
  animation-play-state: paused !important;
}

/* Keep the light ritual anchored beneath the moon throughout its scroll interval. */
.lighting {
  display: block;
  padding-top: 52svh;
  padding-bottom: 8svh;
}
.light-copy {
  position: sticky;
  top: 52svh;
  margin: 0 auto;
  width: max-content;
  max-width: 88%;
}
.lit-message {
  display: block;
  height: 104px;
  margin-top: 26px;
  transform: translateY(12px);
  transition:
    opacity 1.4s,
    transform 1.4s;
}
.is-lit .lit-message {
  margin-top: 26px;
  transform: none;
}
.lit-message p {
  overflow: visible;
}
.star-invitation {
  margin-top: 8px;
}
.js-ready .passage-copy h2 span {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1.4s,
    transform 1.4s;
}
.js-ready .passage-copy h2 span:last-child {
  transition-delay: 0.3s;
}
.js-ready .passage-copy.visible h2 span {
  opacity: 1;
  transform: none;
}
.universe:before {
  content: "";
  position: absolute;
  left: 52%;
  top: 37%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #e0e7f0;
  box-shadow: 0 0 9px #c9dcf8;
  animation: first-star 1.4s both;
}
@keyframes first-star {
  0% {
    opacity: 0;
  }
  30%,
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
main,
.moon-stage,
.constellation,
.universe {
  transition:
    opacity 1.2s,
    filter 1.4s;
}
.easter-active main,
.easter-active .moon-stage,
.easter-active .constellation {
  opacity: 0 !important;
  pointer-events: none;
}
.easter-active .moon,
.easter-active button {
  pointer-events: none;
}
.easter-active .universe {
  filter: brightness(0.1);
}
.easter-stars .universe {
  filter: brightness(1.5);
}
.easter-egg {
  background: transparent;
}
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .light-copy {
    margin: 0 auto;
    top: 48svh;
  }
  .lighting {
    padding-top: 48svh;
  }
  .lit-message {
    height: 90px;
  }
  .light-action {
    white-space: nowrap;
  }
  .star-invitation {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .universe:before {
    display: none;
  }
  .lit-message,
  .js-ready .passage-copy h2 span {
    transform: none;
  }
}
