:root {
  --mint-50: #f2f8f5;
  --mint-100: #dcefe6;
  --mint-300: #9bc8b5;
  --mint-600: #39735f;
  --paper: #fffefd;
  --ink: #202724;
  --muted: #68736e;
  --wine: #7b3040;
  --line: #d9e2dd;
  --serif: "Songti SC", "Noto Serif SC", STSong, serif;
  --art: "Kaiti SC", STKaiti, KaiTi, "楷体", "Songti SC", STSong, serif;
  --editorial: "Songti SC", STSong, "Noto Serif SC", serif;
  --latin-art: "Bodoni 72", Didot, Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.media-button:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--mint-600);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
}

.login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--mint-50);
}
.login::before,
.login::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 38vh;
  background: var(--mint-300);
  opacity: .55;
}
.login::before { left: 12vw; top: 0; }
.login::after { right: 12vw; bottom: 0; }
.login__leaf {
  position: absolute;
  width: min(72vw, 720px);
  height: min(72vw, 720px);
  border: 1px solid rgba(57, 115, 95, .25);
  border-radius: 100% 0 100% 0;
  transform: rotate(18deg);
}
.login__panel {
  width: min(100%, 420px);
  position: relative;
  z-index: 1;
  text-align: center;
}
.login__monogram {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border: 1px solid var(--mint-300);
  border-radius: 50%;
  color: var(--wine);
  background: rgba(255, 254, 253, .72);
  font-family: var(--art);
  font-size: 2rem;
}
.login h1 {
  margin: 0;
  font-family: var(--editorial);
  font-size: 2.35rem;
  font-weight: 500;
}
.login__hint { margin: 10px 0 30px; color: var(--muted); }
.login__form { display: grid; gap: 12px; }
.login__form input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  text-align: center;
  background: var(--paper);
}
.login__form input:focus { border-color: var(--mint-600); }

.button {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .06em;
  transition: background .2s, color .2s, border-color .2s, transform .2s, translate .18s ease;
  translate: var(--magnetic-x, 0) var(--magnetic-y, 0);
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button--dark { color: #fff; background: var(--ink); }
.button--dark:hover { background: var(--mint-600); }
.button--outline { border-color: var(--mint-600); color: var(--mint-600); background: transparent; }
.button--outline:hover { color: #fff; background: var(--mint-600); }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.form-message { min-height: 1.5em; margin: 0; color: var(--wine); font-size: .86rem; }

.intro-reveal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--mint-100);
}
.intro-reveal__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--mint-100);
  transition: transform .8s cubic-bezier(.76, 0, .24, 1) .52s;
}
.intro-reveal__panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(57, 115, 95, .22);
}
.intro-reveal__panel--left { left: 0; }
.intro-reveal__panel--left::after { right: 0; }
.intro-reveal__panel--right { right: 0; }
.intro-reveal__panel--right::after { left: 0; }
.intro-reveal__letter {
  z-index: 1;
  width: min(78vw, 340px);
  padding: 40px 34px;
  border: 1px solid rgba(57, 115, 95, .3);
  color: var(--ink);
  text-align: center;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(32, 39, 36, .12);
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .38s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.intro-reveal__letter p { margin: 0 0 18px; color: var(--mint-600); font-size: .7rem; letter-spacing: .2em; }
.intro-reveal__letter span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border: 1px solid var(--wine);
  border-radius: 50%;
  color: var(--wine);
  font-family: var(--art);
  font-size: 2rem;
}
.intro-reveal__letter small { color: var(--muted); font-family: var(--art); font-size: .95rem; }
.intro-reveal.is-active .intro-reveal__letter { opacity: 1; transform: none; }
.intro-reveal.is-active .intro-reveal__panel--left { transform: translateX(-101%); }
.intro-reveal.is-active .intro-reveal__panel--right { transform: translateX(101%); }
.intro-reveal.is-leaving .intro-reveal__letter { opacity: 0; transform: translateY(-12px) scale(.98); }

.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.nav {
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(32, 39, 36, .12);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.is-scrolled {
  position: fixed;
  background: rgba(255, 254, 253, .88);
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(32, 39, 36, .07);
  backdrop-filter: blur(16px);
}
.nav a { color: inherit; text-decoration: none; }
.nav__brand { font-family: var(--latin-art); letter-spacing: .12em; }
.nav__links { display: flex; gap: 34px; font-size: .86rem; }
.nav__links a:hover { color: var(--wine); }
.nav__exit {
  justify-self: end;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: .82rem;
}

.hero {
  min-height: 94svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 110px clamp(24px, 8vw, 132px) 80px;
  background: var(--mint-100);
}
.hero__copy { max-width: 700px; position: relative; z-index: 2; }
.site:not(.is-entered) .hero__copy > *,
.site:not(.is-entered) .hero__date,
.site:not(.is-entered) .hero__status { opacity: 0; }
.site.is-entered .hero__copy > * { animation: heroEnter .85s both cubic-bezier(.22, 1, .36, 1); }
.site.is-entered .hero__copy > :nth-child(2) { animation-delay: .08s; }
.site.is-entered .hero__copy > :nth-child(3) { animation-delay: .16s; }
.site.is-entered .hero__copy > :nth-child(4) { animation-delay: .24s; }
.site.is-entered .hero__date { animation: heroDateEnter 1.1s .12s both cubic-bezier(.22, 1, .36, 1); }
.site.is-entered .hero__status { animation: heroEnter .8s .32s both cubic-bezier(.22, 1, .36, 1); }
.hero h1 {
  margin: 0;
  max-width: 8em;
  position: relative;
  font-family: var(--art);
  font-size: 6.2rem;
  font-weight: 400;
  line-height: 1.18;
  text-shadow: 0 10px 26px rgba(57, 115, 95, .08);
}
.hero h1::after {
  content: "";
  display: block;
  width: clamp(58px, 8vw, 110px);
  height: 1px;
  margin-top: 18px;
  background: var(--wine);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.hero__lead { margin: 30px 0 32px; color: #43504a; font-size: 1.08rem; }
.hero__date {
  justify-self: end;
  display: grid;
  justify-items: center;
  color: rgba(57, 115, 95, .26);
  font-family: Georgia, serif;
  font-size: 10rem;
  line-height: .72;
}
.hero__date i { width: 1px; height: clamp(48px, 8vw, 90px); margin: 22px 0; background: currentColor; }
.hero__status {
  display: flex;
  align-items: baseline;
  gap: 8px;
  position: absolute;
  right: clamp(24px, 8vw, 132px);
  bottom: 34px;
  color: var(--mint-600);
}
.hero__status p { margin: 0 8px 0 0; color: var(--muted); font-size: .82rem; }
.hero__status strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.hero__botanical { position: absolute; inset: 0; pointer-events: none; }
.hero__botanical span {
  position: absolute;
  display: block;
  width: 180px;
  height: 420px;
  border-left: 1px solid rgba(57, 115, 95, .24);
  transform: translate3d(0, var(--parallax-y, 0), 0) rotate(35deg);
  will-change: transform;
}
.hero__botanical span::before,
.hero__botanical span::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 110px;
  border: 1px solid rgba(57, 115, 95, .24);
  border-radius: 100% 0 100% 0;
}
.hero__botanical span::before { left: -70px; top: 90px; transform: rotate(-20deg); }
.hero__botanical span::after { left: 0; top: 210px; transform: rotate(20deg); }
.hero__botanical span:nth-child(1) { right: 2%; top: -120px; }
.hero__botanical span:nth-child(2) { left: 44%; bottom: -280px; transform: translate3d(0, var(--parallax-y, 0), 0) rotate(205deg); }
.hero__botanical span:nth-child(3) { left: -100px; bottom: -180px; transform: translate3d(0, var(--parallax-y, 0), 0) rotate(150deg); }

.section { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-heading { margin-bottom: 62px; text-align: center; }
.section-heading--left { max-width: 640px; text-align: left; }
.section-heading h2 { margin: 0; font-family: var(--art); font-size: 3.25rem; font-weight: 400; line-height: 1.35; }
.section-heading h2::first-letter { color: var(--wine); }
.section-heading > p:last-child { margin: 14px 0 0; color: var(--muted); }
.letter { width: min(820px, calc(100% - 48px)); }
.letter__body {
  position: relative;
  padding: 50px clamp(0px, 5vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.24rem;
}
.letter__body p { margin: 0 0 28px; }
.letter__body p:last-child { margin-bottom: 0; }
.letter__sign { color: var(--wine); font-family: var(--art); font-size: 1.18em; text-align: right; }

.counter-band {
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 80px 24px;
  color: #fff;
  text-align: center;
  background: var(--mint-600);
}
.counter-band p { margin: 10px 0; opacity: .76; }
.counter-band__number { display: flex; align-items: baseline; gap: 12px; }
.counter-band strong { font-family: Georgia, serif; font-size: 10rem; font-weight: 400; line-height: 1; }
.counter-band span { font-family: var(--art); font-size: 1.2rem; }

.timeline { --timeline-progress: 0%; position: relative; margin-left: 9px; border-left: 1px solid var(--mint-300); }
.timeline::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -1px;
  top: 0;
  width: 1px;
  height: var(--timeline-progress);
  background: var(--wine);
  transition: height .12s linear;
}
.timeline__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  position: relative;
  padding: 0 0 64px 44px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  z-index: 2;
  background: var(--wine);
  box-shadow: 0 0 0 7px var(--paper);
}
.timeline time { color: var(--mint-600); font-family: Georgia, serif; }
.timeline h3 { margin: 0 0 8px; font-family: var(--editorial); font-size: 1.35rem; font-weight: 500; overflow-wrap: anywhere; }
.timeline p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

.moments { background: var(--mint-50); }
.moments__inner { width: min(1180px, calc(100% - 48px)); }
.moments__heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.composer {
  display: grid;
  gap: 22px;
  margin-bottom: 68px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.composer label { display: grid; gap: 8px; color: var(--muted); font-size: .86rem; }
.composer input, .composer textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  color: var(--ink);
  background: #fff;
}
.composer input:focus, .composer textarea:focus { border-color: var(--mint-600); }
.composer textarea { resize: vertical; min-height: 100px; }
.composer__row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.segmented { display: flex; width: fit-content; padding: 3px; background: var(--mint-50); border: 1px solid var(--line); border-radius: 4px; }
.segmented label { display: block; cursor: pointer; color: var(--muted); }
.segmented input { position: absolute; width: auto; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 14px; border-radius: 2px; }
.segmented input:checked + span { color: #fff; background: var(--mint-600); }
.upload { min-height: 86px; place-items: center; align-content: center; border: 1px dashed var(--mint-300); cursor: pointer; }
.upload span { color: var(--mint-600); font-weight: 600; }
.upload small { color: var(--muted); }
.composer__previews { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.preview { aspect-ratio: 1; position: relative; overflow: hidden; border-radius: 3px; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 50%; color: #fff; background: rgba(32, 39, 36, .76); cursor: pointer; }
.composer__actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }

.feed { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.post {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  grid-column: span 6;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(32, 39, 36, .05);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.post:hover { border-color: rgba(57, 115, 95, .35); box-shadow: 0 20px 52px rgba(32, 39, 36, .1); }
.post:nth-child(3n) { grid-column: span 12; display: grid; grid-template-columns: 1.1fr .9fr; }
.post__media { display: grid; aspect-ratio: 4 / 3; min-height: 310px; overflow: hidden; background: var(--mint-100); }
.post__media--multi { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 2px; }
.media-button { min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 0; background: none; cursor: zoom-in; }
.media-button:focus-visible { outline-offset: -4px; }
.post__media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transform: scale(1.02); transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.post:hover .post__media img { transform: scale(1.055); }
.post__content { padding: 25px; display: flex; flex-direction: column; }
.post time { color: var(--mint-600); font-family: Georgia, serif; font-size: .82rem; letter-spacing: .08em; }
.post h3 { margin: 8px 0; font-family: var(--editorial); font-size: 1.35rem; font-weight: 500; overflow-wrap: anywhere; }
.post__text { margin: 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.post__actions { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 24px; }
.post__actions button { border: 0; background: none; cursor: pointer; color: var(--muted); }
.post__actions button:hover { color: var(--wine); }
.post__like.liked { color: var(--wine); }
.feed-status { padding: 60px 20px; border-top: 1px solid var(--line); text-align: center; }
.feed-status p { margin: 0 0 16px; color: var(--muted); }
.empty { padding: 80px 24px; border-top: 1px solid var(--line); text-align: center; }
.empty__mark { margin: 0; color: var(--mint-300); font-family: Georgia, serif; font-size: 4rem; line-height: 1; }
.empty h3 { margin: 18px 0 8px; font-family: var(--art); font-size: 1.4rem; font-weight: 400; }
.empty > p:not(.empty__mark) { margin: 0 0 22px; color: var(--muted); }

.footer { display: flex; justify-content: space-between; padding: 50px clamp(24px, 8vw, 132px); border-top: 1px solid var(--line); color: var(--muted); font-family: var(--serif); font-size: .86rem; }
.footer p { margin: 0; color: var(--wine); font-family: var(--latin-art); font-size: 1rem; font-style: italic; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 40px; border: 0; background: rgba(20, 26, 23, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; }
.lightbox__close { position: fixed; top: 18px; right: 24px; z-index: 2; border: 0; color: #fff; background: none; font-size: 2rem; cursor: pointer; }

.cursor-ring {
  position: fixed;
  z-index: 1800;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(123, 48, 64, .55);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: width .2s, height .2s, margin .2s, opacity .2s, border-color .2s;
}
.cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-hovering { width: 42px; height: 42px; margin: -7px; border-color: rgba(123, 48, 64, .85); }

.reveal-ready [data-reveal],
.reveal-ready [data-reveal-card] { opacity: 0; translate: 0 24px; transition: opacity .8s ease, translate .8s cubic-bezier(.22, 1, .36, 1); }
.reveal-ready [data-reveal].is-visible,
.reveal-ready [data-reveal-card].is-visible { opacity: 1; translate: 0 0; }

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroDateEnter {
  from { opacity: 0; transform: translateY(28px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .hero { min-height: 92svh; grid-template-columns: 1fr; padding: 110px 24px 96px; }
  .login h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 4.2rem; }
  .hero__date { position: absolute; right: 18px; bottom: 120px; opacity: .55; font-size: 6rem; }
  .hero__status { left: 24px; right: auto; bottom: 30px; }
  .section { width: min(100% - 40px, 1120px); padding: 88px 0; }
  .letter { width: min(100% - 40px, 820px); }
  .section-heading { margin-bottom: 44px; }
  .section-heading h2 { font-size: 2.4rem; }
  .letter__body { font-size: 1.08rem; }
  .counter-band { min-height: 360px; }
  .counter-band strong { font-size: 6.5rem; }
  .timeline__item { grid-template-columns: 1fr; gap: 5px; padding-left: 30px; }
  .moments__inner { width: min(100% - 40px, 1180px); }
  .moments__heading { align-items: start; flex-direction: column; }
  .composer { padding: 20px; }
  .composer__row { grid-template-columns: 1fr; }
  .composer__previews { grid-template-columns: repeat(3, 1fr); }
  .post, .post:nth-child(3n) { grid-column: span 12; display: block; }
  .post { transform: none; }
  .post__media { min-height: 240px; }
  .cursor-ring { display: none; }
  .footer { flex-direction: column; gap: 8px; padding: 40px 20px; text-align: center; }
}

@media (max-height: 680px) and (max-width: 760px) {
  .hero__date { display: none; }
  .hero { min-height: 100svh; }
}

@media (pointer: coarse), (hover: none) {
  .cursor-ring { display: none; }
  .button { translate: 0 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .cursor-ring, .intro-reveal { display: none !important; }
  .post { transform: none !important; }
  .hero__botanical span { transform: rotate(35deg); }
  .hero__botanical span:nth-child(2) { transform: rotate(205deg); }
  .hero__botanical span:nth-child(3) { transform: rotate(150deg); }
}
