/* =========================================================
   月之畔 — a pink-and-white fan tribute to Sakurakouji Luna
   ========================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fffafb;
  --paper-warm: #fff6f8;
  --blush: #f9e8ee;
  --blush-deep: #f2d4df;
  --rose: #d98ba4;
  --rose-bright: #e7a7ba;
  --rose-deep: #b35f7d;
  --wine: #5c3345;
  --wine-deep: #422532;
  --ink: #3e2b34;
  --muted: #8d707c;
  --muted-light: #af929e;
  --gold: #c39a63;
  --line: rgba(107, 59, 78, 0.14);
  --line-strong: rgba(107, 59, 78, 0.24);
  --white: #fffdfd;
  --serif-en: "Cormorant Garamond", "Baskerville", "Times New Roman", serif;
  --serif-zh: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow-soft: 0 34px 90px -48px rgba(101, 50, 71, 0.45);
  --shadow-card: 0 24px 70px -38px rgba(101, 50, 71, 0.32);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 86px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  min-width: 300px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -8%, rgba(246, 211, 222, 0.72), transparent 38rem),
    radial-gradient(circle at -8% 24%, rgba(255, 231, 238, 0.8), transparent 34rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: var(--wine-deep);
  background: var(--blush-deep);
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--wine);
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Global atmosphere
   --------------------------------------------------------- */

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.065;
  background-image: radial-gradient(rgba(73, 39, 53, 0.34) 0.55px, transparent 0.65px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

.petal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal-field .petal {
  position: absolute;
  top: -8vh;
  left: var(--x, 10%);
  width: var(--size, 10px);
  height: calc(var(--size, 10px) * 0.72);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(233, 164, 184, 0.82));
  box-shadow: 0 1px 3px rgba(153, 80, 106, 0.1);
  opacity: 0;
  animation: petal-fall var(--duration, 18s) linear var(--delay, 0s) infinite;
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -4vh, 0) rotate(0deg);
  }
  8% {
    opacity: 0.72;
  }
  50% {
    transform: translate3d(var(--drift, 40px), 54vh, 0) rotate(180deg);
  }
  92% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--drift, 40px) * -0.55), 110vh, 0) rotate(390deg);
  }
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 249, 251, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 48px -42px rgba(80, 38, 55, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--rose-deep);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--serif-en);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.27em;
}

.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 40px);
}

.site-nav > a:not(.nav-cta) {
  position: relative;
  padding: 8px 0;
  color: #674b57;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  transition: color 0.25s ease;
}

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--rose-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.site-nav > a:not(.nav-cta):hover {
  color: var(--rose-deep);
}

.site-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 22px;
  border: 1px solid rgba(179, 95, 125, 0.42);
  border-radius: 999px;
  color: var(--rose-deep);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s var(--ease-out);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.nav-cta:hover {
  color: var(--white);
  background: var(--rose-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--wine);
  transition: transform 0.3s ease;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 56px) 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -24rem;
  right: -16rem;
  width: 64rem;
  height: 64rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(249, 225, 233, 0.55) 36%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 5%;
  left: -10rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(179, 95, 125, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  top: 8%;
  right: -2%;
  z-index: 0;
  color: rgba(179, 95, 125, 0.045);
  font-family: var(--serif-en);
  font-size: clamp(8rem, 25vw, 24rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 0.72;
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
}

.hero-copy {
  padding-top: 8px;
}

.eyebrow,
.section-index,
.checkin-kicker,
.countdown-overline,
.calendar-overline,
.tea-card-overline,
.closing-overline {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--rose-deep);
  font-family: var(--serif-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-line {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.hero-title {
  margin-top: 24px;
  font-weight: 400;
  line-height: 1;
}

.title-zh {
  display: block;
  font-family: var(--serif-zh);
  font-size: clamp(48px, 6.6vw, 84px);
  letter-spacing: 0.075em;
  line-height: 1.14;
}

.title-zh em {
  position: relative;
  color: var(--rose-deep);
  font-style: normal;
}

.title-zh em::after {
  content: "";
  position: absolute;
  right: 0.05em;
  bottom: 0.06em;
  left: 0.05em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(179, 95, 125, 0.4), transparent);
}

.title-en {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font-family: var(--serif-en);
  font-size: clamp(17px, 1.8vw, 24px);
  font-style: italic;
  letter-spacing: 0.13em;
}

.hero-kicker {
  margin-top: 34px;
  color: #5d3c4a;
  font-family: var(--serif-zh);
  font-size: clamp(18px, 1.8vw, 23px);
  letter-spacing: 0.06em;
  line-height: 1.75;
}

.hero-intro {
  max-width: 470px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, #6e3b50, #432531);
  box-shadow: 0 18px 34px -18px rgba(73, 37, 51, 0.65);
}

.button-primary:hover {
  box-shadow: 0 22px 40px -18px rgba(73, 37, 51, 0.72);
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--wine);
  background: rgba(255, 255, 255, 0.4);
}

.button-quiet:hover {
  border-color: var(--rose);
  background: rgba(255, 255, 255, 0.8);
}

.sound-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 18px;
  height: 18px;
}

.sound-bars i {
  width: 2px;
  border-radius: 99px;
  background: var(--rose-deep);
  animation: sound-wave 1.4s ease-in-out infinite;
}

.sound-bars i:nth-child(1) {
  height: 6px;
  animation-delay: -0.2s;
}

.sound-bars i:nth-child(2) {
  height: 13px;
  animation-delay: -0.45s;
}

.sound-bars i:nth-child(3) {
  height: 9px;
  animation-delay: -0.7s;
}

@keyframes sound-wave {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.button.is-speaking .sound-bars i {
  animation-duration: 0.55s;
}

.hero-facts {
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 3.4vw, 48px);
  margin-top: 48px;
}

.hero-facts > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-facts > div + div::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(clamp(24px, 3.4vw, 48px) / -2);
  width: 1px;
  background: var(--line);
}

.hero-facts dt {
  color: var(--muted-light);
  font-family: var(--serif-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.hero-facts dd {
  color: var(--wine);
  font-family: var(--serif-en);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero-facts dd span {
  margin-left: 3px;
  color: var(--rose);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Hero artwork */

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: min(100%, 560px);
  padding: 20px 28px 12px;
}

.moon-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 247, 249, 0.88) 30%, rgba(248, 224, 232, 0.55) 55%, transparent 72%);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -47%);
  pointer-events: none;
}

.halo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 98%;
  aspect-ratio: 1;
  border: 1px solid rgba(179, 95, 125, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -47%);
  pointer-events: none;
}

.halo-ring::before,
.halo-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.halo-ring::before {
  inset: 7%;
  border: 1px dashed rgba(179, 95, 125, 0.13);
}

.halo-ring::after {
  top: 8%;
  right: 12%;
  width: 6px;
  height: 6px;
  background: var(--rose);
  box-shadow: 0 0 0 7px rgba(217, 139, 164, 0.12);
}

.orbit-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%;
  height: auto;
  transform: translate(-50%, -47%);
  animation: orbit-spin 54s linear infinite;
  pointer-events: none;
}

.orbit-copy text {
  fill: rgba(132, 73, 94, 0.58);
  font-family: var(--serif-en);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 3.2px;
}

@keyframes orbit-spin {
  to {
    transform: translate(-50%, -47%) rotate(360deg);
  }
}

.portrait-shell {
  position: relative;
  z-index: 2;
  width: min(82%, 430px);
  margin: 12px auto 0;
  padding: 10px;
  border-radius: 48% 48% 12px 12px / 34% 34% 8px 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(250, 232, 238, 0.72));
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.portrait-offset {
  position: absolute;
  inset: -15px;
  z-index: -1;
  border: 1px solid rgba(195, 154, 99, 0.42);
  border-radius: 48% 48% 12px 12px / 34% 34% 8px 8px;
  transform: rotate(-2.4deg);
  pointer-events: none;
}

.portrait-offset::after {
  content: "✦";
  position: absolute;
  right: 12%;
  bottom: 8%;
  color: var(--gold);
  font-size: 16px;
  transform: rotate(2.4deg);
}

.portrait-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 48% 48% 8px 8px / 34% 34% 5px 5px;
  background: #f1dce4;
  cursor: pointer;
  isolation: isolate;
}

.portrait-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 28%;
  transform: scale(1.006);
  transition:
    transform 1.2s var(--ease-out),
    filter 1.2s ease;
}

.portrait-button:hover img,
.portrait-button:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.02);
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(66, 37, 50, 0.38) 0%, transparent 30%),
    radial-gradient(circle at 50% 42%, transparent 52%, rgba(86, 44, 60, 0.16) 100%);
  pointer-events: none;
}

.portrait-label {
  position: absolute;
  bottom: 24px;
  left: 26px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif-zh);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-shadow: 0 1px 12px rgba(65, 32, 45, 0.5);
}

.listen-hint {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--white);
  background: rgba(67, 33, 47, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--ease-out);
}

.listen-hint svg {
  width: 13px;
  height: 13px;
}

.portrait-button:hover .listen-hint,
.portrait-button:focus-visible .listen-hint {
  opacity: 1;
  transform: translateY(0);
}

.click-bloom {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.portrait-button.is-blooming .click-bloom {
  animation: click-bloom 0.9s var(--ease-out);
}

@keyframes click-bloom {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(15);
  }
}

.portrait-stamp {
  position: absolute;
  right: -16px;
  bottom: -22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(179, 95, 125, 0.3);
  border-radius: 50%;
  color: var(--rose-deep);
  background: rgba(255, 249, 251, 0.92);
  box-shadow: 0 12px 26px -18px rgba(85, 45, 60, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--serif-en);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: rotate(7deg);
}

.portrait-stamp i {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
  transform: rotate(-10deg);
}

.art-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted-light);
  font-family: var(--serif-en);
  font-size: 8.5px;
  letter-spacing: 0.3em;
}

.art-caption i {
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.floating-petal {
  position: absolute;
  width: 13px;
  height: 9px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #fff, #eab5c4);
  opacity: 0.8;
  pointer-events: none;
}

.petal-a {
  top: 18%;
  left: 5%;
  animation: float-soft 7s ease-in-out infinite;
}

.petal-b {
  top: 62%;
  right: 1%;
  width: 10px;
  height: 7px;
  animation: float-soft 9s ease-in-out -2s infinite reverse;
}

.petal-c {
  bottom: 15%;
  left: 12%;
  width: 8px;
  height: 6px;
  animation: float-soft 6s ease-in-out -4s infinite;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  50% {
    transform: translate3d(10px, -16px, 0) rotate(22deg);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted-light);
  font-family: var(--serif-en);
  font-size: 8.5px;
  letter-spacing: 0.28em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--rose-deep);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    top: -100%;
  }
  60%,
  100% {
    top: 100%;
  }
}

/* ---------------------------------------------------------
   Stats ribbon
   --------------------------------------------------------- */

.stats-ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 253, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  gap: 20px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex: 1 1 0;
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.stat p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--wine);
  font-family: var(--serif-en);
  font-size: 30px;
  line-height: 1;
}

.stat p strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stat p span {
  color: var(--muted-light);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
  flex: 0 0 auto;
}

.stat-signature {
  justify-content: flex-end;
}

.stat-signature .signature {
  color: var(--rose-deep);
  font-size: 34px;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   Sections and headings
   --------------------------------------------------------- */

.section {
  padding: 128px 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.section-index {
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.25em;
}

.section-index span {
  color: var(--rose-deep);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.section-index::after {
  content: "";
  width: 42px;
  height: 1px;
  margin-left: 4px;
  background: var(--line-strong);
}

.section h2 {
  margin-top: 23px;
  font-family: var(--serif-zh);
  font-size: clamp(34px, 4vw, 51px);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.42;
}

.section h2 em {
  color: var(--rose-deep);
  font-style: normal;
}

.section-lead {
  max-width: 360px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13.5px;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

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

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */

.about-section {
  padding-top: 140px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  column-gap: clamp(38px, 5vw, 76px);
  row-gap: 44px;
  align-items: start;
}

.about-grid .section-heading {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  column-gap: clamp(38px, 5vw, 76px);
  row-gap: 0;
}

.about-grid .section-heading .section-index {
  grid-column: 1 / -1;
}

.about-grid .section-heading h2 {
  grid-column: 1;
  max-width: 760px;
}

.about-grid .section-heading .section-lead {
  grid-column: 2;
  justify-self: end;
  max-width: 330px;
  margin-top: 0;
  padding-bottom: 7px;
}

.about-story {
  padding-top: 8px;
}

.about-story p {
  color: #6f5561;
  font-size: 13.5px;
  line-height: 2.05;
}

.about-story p + p {
  margin-top: 18px;
}

.trait-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.trait-list li {
  display: grid;
  grid-template-columns: 30px 66px 1fr;
  align-items: baseline;
  gap: 6px 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.trait-list li > span {
  color: var(--rose);
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.trait-list strong {
  color: var(--wine);
  font-family: var(--serif-zh);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.trait-list p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.about-figure {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin-top: 0;
  justify-self: end;
}

.figure-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 8px 8px / 31% 31% 5px 5px;
  background: var(--blush);
  box-shadow: var(--shadow-card);
}

.figure-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transition: transform 1.2s var(--ease-out);
}

.about-figure:hover .figure-image img {
  transform: scale(1.035);
}

.figure-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(57, 30, 42, 0.36), transparent 38%);
  pointer-events: none;
}

.about-figure figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 20px;
  text-align: right;
}

.fig-overline {
  color: var(--rose-deep);
  font-family: var(--serif-zh);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.fig-quote {
  color: var(--wine);
  font-family: var(--serif-zh);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.fig-source {
  color: var(--muted-light);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.figure-ornament {
  position: absolute;
  bottom: 66px;
  left: -27px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(195, 154, 99, 0.4);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 250, 251, 0.9);
  font-size: 14px;
}

/* ---------------------------------------------------------
   Marquee
   --------------------------------------------------------- */

.word-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(249, 232, 238, 0.46);
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-slide 42s linear infinite;
}

.marquee-track span {
  padding: 0 26px;
  color: rgba(126, 75, 94, 0.7);
  font-family: var(--serif-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--rose);
  font-size: 9px;
  font-style: normal;
}

@keyframes marquee-slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------
   Check-in
   --------------------------------------------------------- */

.checkin-section {
  position: relative;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.7), transparent 26rem),
    linear-gradient(180deg, rgba(249, 232, 238, 0), rgba(249, 232, 238, 0.55) 25%, rgba(249, 232, 238, 0.24) 100%);
}

.checkin-heading {
  max-width: 660px;
}

.checkin-heading > p:last-child,
.birthday-heading > p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.checkin-layout {
  margin-top: 48px;
}

.checkin-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  overflow: hidden;
  border: 1px solid rgba(163, 97, 120, 0.18);
  border-radius: 30px;
  background: rgba(255, 252, 253, 0.86);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.checkin-main {
  padding: clamp(32px, 5vw, 62px);
}

.checkin-kicker {
  color: var(--muted-light);
  font-size: 9.5px;
  letter-spacing: 0.3em;
}

.checkin-main h3 {
  margin-top: 13px;
  color: var(--wine);
  font-family: var(--serif-zh);
  font-size: clamp(25px, 2.8vw, 35px);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.checkin-copy {
  max-width: 470px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
}

.checkin-counts {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  margin-top: 34px;
}

.checkin-counts > div > span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.checkin-counts p {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 5px;
  color: var(--wine);
  font-family: var(--serif-en);
  line-height: 1;
}

.checkin-counts strong {
  font-size: clamp(46px, 5vw, 62px);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.02em;
}

.checkin-counts small {
  color: var(--rose);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.checkin-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 370px);
  min-height: 62px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(120deg, #b8617e, #7b4057);
  box-shadow: 0 20px 36px -20px rgba(118, 55, 78, 0.7);
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    opacity 0.35s ease;
}

.checkin-button::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 30%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(22deg);
  transition: left 0.7s var(--ease-out);
}

.checkin-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 44px -20px rgba(118, 55, 78, 0.8);
}

.checkin-button:not(:disabled):hover::after {
  left: 110%;
}

.checkin-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.checkin-button.is-checked {
  color: var(--rose-deep);
  border-color: rgba(179, 95, 125, 0.32);
  background: rgba(255, 246, 249, 0.9);
  box-shadow: none;
  cursor: default;
  opacity: 1;
}

.checkin-button-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.checkin-button-icon svg {
  width: 23px;
  height: 23px;
}

.checkin-button-orbit {
  position: absolute;
  top: 50%;
  left: 24px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.07),
    296px 0 0 rgba(255, 255, 255, 0.34),
    296px 0 0 5px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.checkin-button.is-checked .checkin-button-orbit {
  display: none;
}

.checkin-status {
  min-height: 22px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.checkin-status.is-error {
  color: #a34e5e;
}

.checkin-rank {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 18px 10px 13px;
  border: 1px dashed rgba(179, 95, 125, 0.36);
  border-radius: 999px;
  color: var(--wine);
  background: rgba(249, 232, 238, 0.6);
  animation: rank-in 0.55s var(--ease-out);
}

.checkin-rank p {
  font-size: 12px;
  letter-spacing: 0.03em;
}

.checkin-rank strong {
  color: var(--rose-deep);
  font-family: var(--serif-en);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.rank-flower {
  color: var(--rose-deep);
  font-size: 15px;
}

@keyframes rank-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkin-fineprint {
  margin-top: 20px;
  color: var(--muted-light);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.tea-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 46px 30px;
  overflow: hidden;
  color: #f8e9ee;
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 139, 161, 0.34), transparent 20rem),
    linear-gradient(150deg, #5a3244, #39212d);
  text-align: center;
}

.tea-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(249, 224, 232, 0.17);
  border-radius: 20px;
  pointer-events: none;
}

.tea-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(249, 224, 232, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(249, 224, 232, 0.03),
    0 0 0 58px rgba(249, 224, 232, 0.02);
  pointer-events: none;
}

.tea-card-overline {
  color: rgba(249, 224, 232, 0.58);
  font-size: 9px;
}

.tea-date {
  margin-top: 22px;
  color: #fff7f9;
  font-family: var(--serif-en);
  font-size: clamp(55px, 6vw, 76px);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.tea-date span {
  margin: 0 5px;
  color: rgba(231, 167, 186, 0.72);
  font-size: 0.45em;
  vertical-align: 0.15em;
}

.tea-weekday {
  margin-top: 8px;
  color: rgba(249, 224, 232, 0.65);
  font-family: var(--serif-zh);
  font-size: 12px;
  letter-spacing: 0.3em;
}

.tea-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 160px;
  margin: 25px 0;
}

.tea-divider::before,
.tea-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(249, 224, 232, 0.2);
}

.tea-divider span {
  color: rgba(231, 167, 186, 0.8);
  font-size: 9px;
}

.tea-quote {
  color: rgba(255, 246, 249, 0.86);
  font-family: var(--serif-zh);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 2;
}

.tea-signature {
  margin-top: 18px;
  color: #eab0c1;
  font-family: var(--serif-en);
  font-size: 27px;
  font-style: italic;
}

.tea-seal {
  position: absolute;
  right: 27px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(231, 167, 186, 0.45);
  border-radius: 50%;
  color: rgba(231, 167, 186, 0.8);
  font-family: var(--serif-en);
  font-size: 13px;
  font-style: italic;
}

.tea-card-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(249, 224, 232, 0.4);
}

.corner-tl {
  top: 27px;
  left: 27px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-br {
  right: 27px;
  bottom: 27px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

/* ---------------------------------------------------------
   Birthday
   --------------------------------------------------------- */

.birthday-section {
  background: rgba(255, 253, 254, 0.62);
}

.birthday-heading {
  max-width: 690px;
}

.birthday-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  margin-top: 48px;
}

.countdown-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 530px;
  padding: clamp(34px, 4.7vw, 58px);
  overflow: hidden;
  border-radius: 30px;
  color: #fff6f9;
  background:
    radial-gradient(circle at 75% 20%, rgba(216, 146, 168, 0.3), transparent 18rem),
    linear-gradient(155deg, #623749, #3c222f 70%);
  box-shadow: var(--shadow-card);
}

.countdown-card::before {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -9rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(247, 221, 230, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(247, 221, 230, 0.03),
    0 0 0 84px rgba(247, 221, 230, 0.02);
}

.countdown-overline {
  color: rgba(244, 208, 220, 0.52);
  font-size: 9px;
}

.countdown-copy {
  margin-top: 30px;
  color: rgba(255, 246, 249, 0.7);
  font-family: var(--serif-zh);
  font-size: 15px;
  letter-spacing: 0.13em;
}

.countdown-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  line-height: 1;
}

.countdown-number span {
  color: #fff8fa;
  font-family: var(--serif-en);
  font-size: clamp(105px, 14vw, 168px);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.countdown-number small {
  color: #e9afc1;
  font-family: var(--serif-zh);
  font-size: 21px;
  letter-spacing: 0.12em;
}

.countdown-date {
  margin-top: 8px;
  color: rgba(255, 246, 249, 0.6);
  font-family: var(--serif-en);
  font-size: 16px;
  letter-spacing: 0.26em;
}

.countdown-message {
  position: relative;
  z-index: 1;
  max-width: 290px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 246, 249, 0.16);
  color: rgba(255, 246, 249, 0.6);
  font-family: var(--serif-zh);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

.countdown-card.is-birthday .countdown-number span {
  color: #ffdce6;
  font-size: clamp(76px, 9vw, 120px);
  letter-spacing: 0;
}

.countdown-moon {
  position: absolute;
  right: 11%;
  bottom: 15%;
  width: 150px;
  height: 150px;
  pointer-events: none;
}

.moon-core {
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 244, 247, 0.96), rgba(236, 181, 198, 0.75));
  box-shadow:
    0 0 38px rgba(245, 203, 217, 0.36),
    inset -10px -8px 22px rgba(133, 72, 92, 0.2);
}

.moon-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 213, 223, 0.22);
  border-radius: 50%;
  transform: rotate(-28deg) scaleY(0.48);
}

.moon-orbit::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 5%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f6d6df;
}

.moon-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f7dfe6;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.star-one {
  top: 12%;
  left: 8%;
}

.star-two {
  right: 4%;
  bottom: 25%;
  width: 2px;
  height: 2px;
}

.star-three {
  top: 35%;
  right: 16%;
  width: 2px;
  height: 2px;
}

.countdown-ornament {
  position: absolute;
  right: 34px;
  top: 34px;
  color: rgba(244, 208, 220, 0.24);
  font-family: var(--serif-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

.calendar-card {
  padding: clamp(26px, 3.6vw, 44px);
  border: 1px solid rgba(163, 97, 120, 0.17);
  border-radius: 30px;
  background: rgba(255, 251, 252, 0.92);
  box-shadow: var(--shadow-card);
}

.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.calendar-overline {
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.calendar-head h3 {
  margin-top: 8px;
  color: var(--wine);
  font-family: var(--serif-zh);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.calendar-controls button:hover {
  color: var(--white);
  border-color: var(--rose-deep);
  background: var(--rose-deep);
}

.calendar-controls button svg {
  width: 16px;
  height: 16px;
}

.calendar-controls .calendar-today-button {
  width: auto;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.calendar-controls .calendar-today-button:hover {
  color: var(--white);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 34px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
  font-family: var(--serif-en);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding-top: 10px;
}

.calendar-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #533542;
  font-family: var(--serif-zh);
  font-size: 15px;
  font-weight: 400;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.calendar-cell.is-empty {
  visibility: hidden;
}

.calendar-cell.is-weekend {
  color: var(--rose-deep);
}

.calendar-cell.is-other-month {
  color: var(--muted-light);
  opacity: 0.3;
}

.calendar-cell.is-today {
  color: var(--wine);
  background: var(--blush);
  box-shadow: inset 0 0 0 1px rgba(179, 95, 125, 0.32);
}

.calendar-cell.is-birthday {
  color: var(--white);
  background: linear-gradient(145deg, #d5849e, #a95371);
  box-shadow: 0 8px 20px -10px rgba(151, 72, 98, 0.8);
}

.calendar-cell.is-birthday::before {
  content: "♥";
  position: absolute;
  top: 14%;
  right: 17%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 6px;
}

.calendar-cell.is-birthday::after {
  content: "BIRTHDAY";
  position: absolute;
  bottom: 6%;
  left: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--serif-en);
  font-size: 4.5px;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.calendar-cell .birthday-label {
  display: none;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.today-dot {
  border: 1px solid var(--rose-deep);
  background: var(--blush);
}

.birthday-dot {
  background: var(--rose-deep);
}

.calendar-note {
  margin-left: auto;
  color: var(--muted-light);
  font-size: 9px;
}

/* ---------------------------------------------------------
   Artwork
   --------------------------------------------------------- */

.artwork-section {
  padding: 122px 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8), transparent 24rem),
    rgba(249, 232, 238, 0.35);
  border-top: 1px solid var(--line);
}

.artwork-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.artwork-heading h2 {
  margin-top: 22px;
  font-family: var(--serif-zh);
  font-size: clamp(34px, 4vw, 51px);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.42;
}

.artwork-heading h2 em {
  color: var(--rose-deep);
  font-style: normal;
}

.artwork-heading > p {
  justify-self: end;
  color: var(--muted);
  font-family: var(--serif-zh);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 2;
  text-align: right;
}

.artwork-frame {
  padding: 13px;
  border: 1px solid rgba(163, 97, 120, 0.2);
  background: rgba(255, 252, 253, 0.82);
  box-shadow: var(--shadow-soft);
}

.artwork-image {
  position: relative;
  overflow: hidden;
  background: var(--blush);
}

.artwork-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.4s var(--ease-out);
}

.artwork-frame:hover .artwork-image img {
  transform: scale(1.012);
}

.artwork-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(76, 39, 54, 0.1), transparent 30%);
  pointer-events: none;
}

.artwork-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 10px 4px;
  color: var(--muted);
  font-family: var(--serif-en);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.artwork-frame figcaption span:last-child {
  font-family: var(--serif-zh);
  letter-spacing: 0.12em;
}

/* ---------------------------------------------------------
   Closing and footer
   --------------------------------------------------------- */

.closing-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 120%, rgba(246, 211, 222, 0.75), transparent 30rem),
    var(--paper);
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing-moon {
  position: relative;
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff9fb, #e7b7c7);
  box-shadow:
    0 0 0 12px rgba(231, 183, 199, 0.08),
    0 20px 48px -24px rgba(132, 70, 92, 0.4);
}

.closing-moon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
}

.closing-overline {
  color: var(--muted-light);
  font-size: 9px;
}

.closing-quote {
  margin-top: 22px;
  color: var(--wine);
  font-family: var(--serif-zh);
  font-size: clamp(27px, 3.6vw, 42px);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.closing-copy {
  max-width: 480px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12.5px;
}

.closing-section .button {
  margin-top: 29px;
}

.site-footer {
  padding: 64px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(249, 232, 238, 0.36);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(163, 97, 120, 0.3);
  border-radius: 50%;
  color: var(--rose-deep);
  font-family: var(--serif-en);
  font-size: 24px;
  font-style: italic;
}

.footer-name {
  color: var(--wine);
  font-family: var(--serif-en);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.footer-tagline {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--rose-deep);
}

.footer-disclaimer {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-family: var(--serif-en);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.footer-made span {
  color: var(--rose-deep);
}

.admin-link {
  color: var(--muted-light);
  transition: color 0.25s ease;
}

.admin-link:hover {
  color: var(--rose-deep);
}

/* ---------------------------------------------------------
   Toast and small effects
   --------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(67, 36, 49, 0.94);
  box-shadow: 0 20px 48px -24px rgba(55, 28, 40, 0.8);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.is-speaking .portrait-button {
  animation: speaking-pulse 0.7s ease;
}

@keyframes speaking-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.12);
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero-grid {
    gap: 28px;
  }

  .hero-art {
    padding-inline: 10px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 38px;
  }

  .about-grid .section-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: 38px;
  }

  .about-grid .section-heading h2 {
    max-width: 650px;
  }

  .about-figure {
    max-width: 350px;
  }

  .about-story {
    padding-top: 0;
  }

  .stat {
    gap: 10px;
  }

  .stat-label {
    font-size: 9px;
  }

  .stat p {
    font-size: 27px;
  }

  .checkin-card {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.7fr);
  }
}

@media (max-width: 940px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(100% - 56px, 760px);
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 28px;
    left: 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 22px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 250, 252, 0.97);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.3s var(--ease-out);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a:not(.nav-cta) {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .site-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 46px);
    padding-bottom: 100px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-art {
    justify-self: center;
    width: min(100%, 480px);
  }

  .hero-watermark {
    top: 2%;
    font-size: 30vw;
  }

  .scroll-cue {
    display: none;
  }

  .stats-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px;
    padding: 26px 0;
  }

  .stat {
    flex: 0 1 auto;
    min-width: 130px;
  }

  .stat-signature {
    display: none;
  }

  .stat-divider:nth-of-type(3) {
    display: none;
  }

  .section {
    padding: 100px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-grid .section-heading {
    display: block;
  }

  .about-grid .section-heading .section-lead {
    max-width: 390px;
    margin-top: 18px;
    padding-bottom: 0;
  }

  .about-figure {
    max-width: 400px;
    justify-self: start;
  }

  .checkin-card {
    grid-template-columns: 1fr;
  }

  .tea-card {
    min-height: 360px;
  }

  .birthday-layout {
    grid-template-columns: 1fr;
  }

  .countdown-card {
    min-height: 440px;
  }

  .countdown-moon {
    right: 12%;
    bottom: 13%;
  }

  .artwork-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .artwork-heading > p {
    justify-self: start;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-disclaimer {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    gap: 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .hero {
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 76px;
  }

  .hero-title {
    margin-top: 20px;
  }

  .title-zh {
    font-size: clamp(42px, 13vw, 58px);
  }

  .title-en {
    margin-top: 12px;
    font-size: 15px;
  }

  .hero-kicker {
    margin-top: 26px;
    font-size: 17px;
  }

  .hero-intro {
    margin-top: 15px;
    font-size: 12.5px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    min-height: 48px;
    padding-inline: 21px;
    font-size: 11.5px;
  }

  .hero-facts {
    gap: 22px;
    margin-top: 36px;
  }

  .hero-facts > div + div::before {
    left: -11px;
  }

  .hero-facts dd {
    font-size: 23px;
  }

  .hero-art {
    padding: 10px 10px 0;
  }

  .portrait-shell {
    width: min(84%, 330px);
    padding: 7px;
  }

  .portrait-offset {
    inset: -10px;
  }

  .portrait-label {
    bottom: 17px;
    left: 19px;
    font-size: 10px;
  }

  .listen-hint {
    right: 14px;
    bottom: 13px;
    padding: 6px 10px;
    font-size: 9px;
    opacity: 1;
    transform: none;
  }

  .portrait-stamp {
    right: -6px;
    bottom: -18px;
    width: 64px;
    height: 64px;
    font-size: 17px;
  }

  .art-caption {
    margin-top: 26px;
    font-size: 7.5px;
  }

  .stats-grid {
    gap: 18px;
    min-height: 0;
  }

  .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 30%;
  }

  .stat p {
    font-size: 25px;
  }

  .stat-divider {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .section h2 {
    margin-top: 17px;
    font-size: 34px;
    line-height: 1.45;
  }

  .section-lead {
    margin-top: 17px;
    font-size: 12.5px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-grid .section-heading {
    display: block;
    grid-column: auto;
  }

  .about-grid .section-heading .section-lead {
    max-width: 390px;
    margin-top: 17px;
    padding-bottom: 0;
  }

  .about-story p {
    font-size: 12.5px;
  }

  .about-figure {
    width: min(100%, 380px);
    max-width: none;
    margin-inline: auto;
    justify-self: center;
  }

  .figure-ornament {
    left: -12px;
  }

  .word-marquee {
    padding: 14px 0;
  }

  .marquee-track span {
    padding-inline: 18px;
    font-size: 11px;
  }

  .checkin-layout {
    margin-top: 32px;
  }

  .checkin-card {
    border-radius: 22px;
  }

  .checkin-main {
    padding: 30px 22px;
  }

  .checkin-main h3 {
    font-size: 24px;
    line-height: 1.5;
  }

  .checkin-counts {
    gap: 32px;
    margin-top: 27px;
  }

  .checkin-counts strong {
    font-size: 45px;
  }

  .checkin-button {
    min-height: 56px;
    margin-top: 27px;
    font-size: 12px;
  }

  .checkin-button-orbit {
    display: none;
  }

  .checkin-rank {
    width: 100%;
    border-radius: 15px;
  }

  .tea-card {
    min-height: 330px;
    padding: 42px 24px;
  }

  .birthday-layout {
    margin-top: 32px;
  }

  .countdown-card {
    min-height: 390px;
    padding: 34px 25px;
    border-radius: 22px;
  }

  .countdown-number span {
    font-size: 104px;
  }

  .countdown-moon {
    right: 7%;
    bottom: 11%;
    width: 120px;
    height: 120px;
    opacity: 0.8;
  }

  .countdown-ornament {
    right: 22px;
    top: 24px;
  }

  .calendar-card {
    padding: 24px 17px;
    border-radius: 22px;
  }

  .calendar-head {
    align-items: center;
  }

  .calendar-controls button {
    width: 33px;
    height: 33px;
  }

  .calendar-controls .calendar-today-button {
    padding-inline: 10px;
    font-size: 9px;
  }

  .calendar-weekdays {
    margin-top: 25px;
    font-size: 9px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-cell {
    font-size: 13px;
  }

  .calendar-cell.is-birthday::after {
    font-size: 3.5px;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 9px;
  }

  .calendar-note {
    width: 100%;
    margin-left: 0;
  }

  .artwork-section {
    padding: 82px 0;
  }

  .artwork-frame {
    padding: 7px;
  }

  .artwork-frame figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 13px 6px 5px;
    font-size: 8px;
  }

  .closing-section {
    padding: 86px 0;
  }

  .closing-moon {
    width: 64px;
    height: 64px;
  }

  .closing-moon::after {
    top: 7px;
    left: 21px;
    width: 46px;
    height: 46px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-disclaimer {
    grid-column: auto;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 34px;
  }

  .admin-link {
    margin-left: auto;
  }
}

@media (max-width: 390px) {
  .title-zh {
    font-size: 40px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-facts {
    gap: 15px;
  }

  .hero-facts > div + div::before {
    left: -8px;
  }

  .checkin-counts {
    gap: 20px;
  }

  .checkin-counts strong {
    font-size: 39px;
  }

  .countdown-number span {
    font-size: 88px;
  }
}

@media (hover: none) {
  .listen-hint {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }

  .petal-field {
    display: none;
  }
}
