:root {
  color-scheme: dark;
  --ink: #f1eedc;
  --soft: #d8d8c8;
  --lilac: #c8b9db;
  --cn: 'GardenWenKai', 'KaiTi', sans-serif;
  --ja: 'GardenKlee', 'Yu Gothic', sans-serif;
  --shift-x: 0px;
  --shift-y: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: #102022; }
body { font-family: var(--cn); color: var(--ink); font-weight: 400; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lilac); outline-offset: 7px; }
[lang='ja'] { font-family: var(--ja); }
::selection { background: #c5abd448; }
.garden { position: relative; isolation: isolate; width: 100%; min-height: 720px; height: 100svh; overflow: hidden; }
.scenery { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #102022; }
.breathing { position: absolute; inset: -2%; animation: breath 23s ease-in-out infinite alternate; }
.portrait { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 58% 45%; transform: translate3d(var(--shift-x),var(--shift-y),0) scale(1.025); transition: transform 1.8s ease-out; }
.veil { position: absolute; inset: 0; background: linear-gradient(90deg, #081d1be6 0%, #0c211da6 16%, #0c211d33 35%, transparent 58%), linear-gradient(0deg, #071c20bd 0%, transparent 21%, transparent 80%, #07191c80 100%); }
.light { position: absolute; inset: -15%; background: radial-gradient(ellipse at 75% 20%, #b4c0ed2e, transparent 50%), linear-gradient(123deg, transparent 38%, #bac9d210 49%, transparent 57%); mix-blend-mode: screen; animation: light 18s ease-in-out infinite alternate; pointer-events: none; }
.frame { position: absolute; inset: 22px; pointer-events: none; z-index: 2; }
.frame-corner { width: 19px; height: 19px; border-color: #d6d5b845; border-style: solid; position: absolute; }
.corner-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 42px 4.7vw; position: relative; z-index: 3; }
.identity { display: flex; align-items: center; gap: 16px; }
.identity > span[lang='en'] { font: 400 11px/1 Arial, sans-serif; letter-spacing: .28em; color: #e6e3cb; }
.identity-line { width: 20px; height: 1px; background: #dcd9ba55; }
.identity-jp { font-size: 13px; letter-spacing: .15em; color: #d6d8c3; }
.motion { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px; border: 0; background: transparent; font-size: 12px; letter-spacing: .15em; color: #dce0cf; }
.motion:hover { color: #fff; }
.motion-lines { display: flex; gap: 4px; height: 16px; align-items: center; }
.motion-lines i { display: block; width: 1px; height: 14px; background: currentColor; animation: wind 2s ease-in-out infinite; transform-origin: center; }
.motion-lines i:nth-child(2) { animation-delay: -.6s; height: 9px; }
.motion-lines i:nth-child(3) { animation-delay: -1.1s; height: 12px; }
.poem { position: absolute; left: 9%; top: 18%; bottom: 14%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.title-composition { position: relative; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 30px; }
h1 { margin: 0; display: flex; flex-direction: row-reverse; gap: .02em; font: 300 clamp(77px, 7.6vw, 125px)/1.12 var(--cn); letter-spacing: .13em; }
.title-pair { writing-mode: vertical-rl; display: inline-block; animation: ink-arrive 2s cubic-bezier(.16,1,.3,1) both; }
.title-pair.first { margin-top: 0; animation-delay: .1s; }
.title-pair.second { margin-top: 1.0em; animation-delay: .3s; }
.title-jp { writing-mode: vertical-rl; letter-spacing: .19em; font-size: 16px; line-height: 1.5; color: #e0ddc7; display: flex; align-items: center; gap: 22px; padding-top: .3em; animation: appear 1.8s both .45s; }
.jp-stem { height: 37px; width: 1px; background: #cac6aa82; }
.title-seal { position: absolute; left: -.7em; bottom: -.35em; color: #d3c1cf; font: 400 14px/1 var(--cn); border: 1px solid #c3a4c066; width: 28px; height: 31px; display: grid; place-items: center; border-radius: 2px 1px 2px 1px; transform: rotate(-4deg); animation: appear 1.5s both .8s; }
.invitation { margin-top: 28px; animation: appear 1.8s both .7s; }
.line-cn { font-size: 23px; letter-spacing: .14em; margin: 0 0 9px; color: #ece8d9; }
.line-jp { font-size: 14px; letter-spacing: .10em; margin: 0; color: #cbcbbd; }
.entry { margin-top: 28px; width: 232px; min-height: 61px; padding: 0 16px 0 19px; border: 1px solid #d9d5ba70; position: relative; display: flex; align-items: center; color: #f0ecda; text-decoration: none; background: #192d2b21; transition: background .45s, border-color .45s; }
.entry::before { position: absolute; content: ''; height: 1px; width: 26px; left: -1px; bottom: -1px; background: #ded7ed; transition: width .5s; }
.entry-cn { font: 400 22px var(--cn); letter-spacing: .24em; }
.entry-jp { font-size: 12px; letter-spacing: .1em; color: #c8d0bc; margin-left: 18px; padding-left: 17px; border-left: 1px solid #c5c9b144; }
.entry-arrow { width: 33px; height: 20px; margin-left: auto; transition: transform .4s; }
.entry:hover { background: #c2bd9b15; border-color: #e0d8e8cc; }
.entry:hover::before { width: calc(100% + 2px); }
.entry:hover .entry-arrow { transform: translateX(4px); }
.margin-note { position: absolute; right: 5%; bottom: 24%; writing-mode: vertical-rl; display: flex; align-items: center; gap: 20px; font-size: 13px; letter-spacing: .25em; color: #e7e4c5be; animation: appear 1.8s both 1s; }
.small-star { font: 300 20px Arial, sans-serif; color: #e0d1ec; }
.margin-line { width: 1px; height: 50px; background: #d1cdbb4f; }
.footer { display: flex; align-items: center; justify-content: space-between; position: absolute; bottom: 43px; left: 4.8vw; right: 4.8vw; gap: 20px; }
.edition { font: 400 9px Arial, sans-serif; letter-spacing: .2em; color: #c9cdbc; display: flex; gap: 12px; align-items: center; }
.edition-dot { width: 4px; height: 4px; background: #c6b0d6; border-radius: 50%; }
.credit { display: flex; gap: 10px; font: 400 10px Arial, sans-serif; letter-spacing: .04em; color: #c3cbbc; }
.artist { color: #ede8d6; letter-spacing: .06em; }
.petals { position: absolute; inset: 0; pointer-events: none; }
.petal { position: absolute; top: -8%; left: var(--left); height: var(--size); width: calc(var(--size) * .54); background: linear-gradient(135deg,#c6a2e77a,#b49dd13b); border-radius: 85% 10% 80% 20%; filter: blur(var(--blur)); opacity: 0; animation: falling var(--duration) linear infinite; animation-delay: var(--delay); }
.mote { position: absolute; top: var(--top); left: var(--left); width: 3px; height: 3px; background: #ddd5b9; box-shadow: 0 0 10px 3px #b5c4bd4d; border-radius: 50%; opacity: 0; animation: glimmer 8s ease-in-out infinite; animation-delay: var(--delay); }
html[data-motion='off'] .scenery *, html[data-motion='off'] .motion-lines i, html[data-hidden='true'] * { animation-play-state: paused !important; }
html[data-motion='off'] .portrait { transform: none; transition: none; }
html[data-motion='off'] .petals { visibility: hidden; }
@keyframes ink-arrive { from { opacity: 0; transform: translateY(18px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes breath { from { transform: scale(1); } to { transform: scale(1.03) translate3d(.2%,-.3%,0); } }
@keyframes light { from { opacity: .3; transform: translateX(-2%); } to { opacity: .7; transform: translateX(2%); } }
@keyframes wind { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
@keyframes falling { 0% { opacity: 0; transform: translate3d(0,-5vh,0) rotate(-25deg); } 12%,75% { opacity: .4; } 100% { opacity: 0; transform: translate3d(var(--sway),115vh,0) rotate(270deg); } }
@keyframes glimmer { 0%,100% { opacity: 0; transform: translateY(9px); } 55% { opacity: .55; transform: translateY(-12px); } }
@media (min-aspect-ratio: 2/1) {
  .garden { min-height: 650px; }
  .poem { top: 15%; bottom: 13%; flex-direction: row; gap: 65px; align-items: flex-end; }
  .title-composition { align-self: flex-start; }
  h1 { font-size: min(11vh,100px); }
  .invitation { margin-bottom: 10px; }
}
@media (max-width: 1000px) {
  .poem { left: 8%; top: 18%; bottom: 15%; }
  h1 { font-size: clamp(74px,10vw,100px); }
  .title-composition { gap: 19px; }
  .portrait { object-position: 60% 45%; }
  .veil { background: linear-gradient(90deg,#10231cc4 0%,#10231c44 36%,transparent 70%),linear-gradient(0deg,#0e2326f2,transparent 43%,transparent 80%,#10202177); }
}
@media (max-width: 600px) {
  .garden { min-height: 760px; }
  .frame { inset: 14px; }
  .frame-corner { width: 12px; height: 12px; }
  .header { padding: max(27px,env(safe-area-inset-top)) 28px 0; }
  .identity { gap: 10px; }
  .identity img { width: 24px; height: 24px; }
  .identity > span[lang='en'] { font-size: 9px; }
  .identity-line { width: 12px; }
  .identity-jp { font-size: 11px; }
  .motion { font-size: 11px; gap: 8px; }
  .breathing { inset: 0; }
  .portrait { height: 79%; object-position: 56% 40%; }
  .veil { background: linear-gradient(0deg,#102326 1%,#102326f5 18%,#10232699 38%,transparent 70%,#10232622); }
  .poem { top: auto; bottom: 108px; left: 8%; right: 8%; gap: 0; display: block; }
  .title-composition { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  h1 { display: block; font-size: clamp(44px,12vw,65px); letter-spacing: .03em; line-height: 1.2; white-space: nowrap; }
  .title-pair { writing-mode: horizontal-tb; display: inline; }
  .title-pair.second { margin-top: 0; }
  .title-jp { writing-mode: horizontal-tb; font-size: 13px; gap: 12px; padding: 0; letter-spacing: .12em; }
  .jp-stem { width: 26px; height: 1px; }
  .title-seal { left: auto; bottom: auto; right: 0; top: 12px; font-size: 11px; width: 22px; height: 25px; }
  .invitation { margin-top: 23px; }
  .line-cn { font-size: 19px; margin-bottom: 6px; letter-spacing: .1em; }
  .line-jp { font-size: 12px; letter-spacing: .04em; }
  .entry { margin-top: 20px; min-height: 53px; width: 213px; padding-left: 16px; }
  .entry-cn { font-size: 20px; }
  .entry-jp { font-size: 11px; margin-left: 12px; padding-left: 12px; }
  .margin-note { top: 17%; bottom: auto; right: 26px; font-size: 11px; gap: 12px; }
  .margin-line { height: 32px; }
  .footer { left: 8%; right: 8%; bottom: max(29px,env(safe-area-inset-bottom)); gap: 13px; align-items: flex-start; flex-direction: column; }
  .edition { font-size: 8px; }
  .credit { font-size: 9px; }
}
@media (max-width: 360px) { .identity-line,.identity-jp { display: none; } h1 { font-size: 42px; } .title-seal { right: -1px; } }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion='on']) .scenery *, html:not([data-motion='on']) .motion-lines i { animation: none !important; }
  html:not([data-motion='on']) .portrait { transform: none !important; transition: none !important; }
  .title-pair,.title-jp,.title-seal,.invitation,.margin-note { animation: none !important; }
}
