@font-face{font-family:"Dawning of a New Day";src:url("assets/dawning.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url("assets/dm-sans.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:light;--ink:#443d36;--hand:"Dawning of a New Day",cursive;--flower-size:min(64svh,540px,92vw)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{color:var(--ink);background:#e4dfc7;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
button{touch-action:manipulation}
button{cursor:pointer}
button:focus-visible{outline:2px solid #6c6346;outline-offset:6px}
.landscape{position:fixed;inset:0;background-image:linear-gradient(180deg,rgba(255,252,242,.2),transparent 55%,rgba(252,247,227,.08)),url("assets/meadow.webp");background-position:center;background-size:cover}
.landscape::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 110px 30px rgba(249,245,227,.23)}
.page-heading{position:fixed;top:max(32px,env(safe-area-inset-top));left:16px;right:16px;z-index:20;text-align:center;pointer-events:none}
h1{margin:0;font:400 clamp(37px,4.4vw,57px)/1.15 var(--hand);letter-spacing:normal;color:#484437;text-shadow:0 1px 18px #fffbed}
.pluck-invitation{max-width:100%;margin:15px auto 0;padding:5px 3px;text-shadow:0 1px 9px #fffbed}
.pluck-invitation em{font:italic 14px/1.45 "DM Sans",Arial,sans-serif;color:#4b4a3b}
#garden{position:fixed;inset:0;overflow:hidden}
.plant{position:absolute;width:var(--flower-size);height:var(--flower-size);left:50%;top:53%;transform:translate(-50%,-50%);transition:opacity .7s ease,filter .7s ease;animation:arrive 1.8s ease backwards}
.flower-head{position:absolute;inset:0;transform-origin:50% 50%;animation:flower-breeze 8s ease-in-out infinite}
.stem{position:absolute;left:calc(50% - 69px);top:48%;width:180px;height:700px;filter:drop-shadow(1px 2px 2px #48552f12);opacity:.93}
.petal{position:absolute;left:21%;top:-2.25%;width:58%;height:55%;padding:0;border:0;background:none;transform-origin:50% 95%;transform:rotate(var(--angle)) scale(var(--scale));clip-path:polygon(50% 19%,40% 9%,29% 2%,15% 10%,5% 24%,0 39%,2% 55%,12% 72%,33% 88%,50% 98%,67% 88%,88% 72%,98% 55%,100% 39%,95% 24%,85% 10%,71% 2%,60% 9%);transition:filter .35s,opacity .45s,transform .45s;filter:drop-shadow(0 2px 2px #7042320a)}
.petal-inner{z-index:2}
.petal img{width:100%;height:100%;object-fit:fill;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none}
.petal:hover,.petal:focus-visible{transform:rotate(var(--angle)) translateY(-9px) scale(var(--scale));filter:brightness(1.04) drop-shadow(0 1px 6px #fff2d9aa);z-index:3;outline:0}
.petal:focus-visible{filter:drop-shadow(0 0 4px #665236)}
.petal.is-selected,.petal.is-read{opacity:0;pointer-events:none}
.flower-heart{position:absolute;left:39%;top:39%;width:22%;height:22%;z-index:5;filter:drop-shadow(0 2px 3px #79591f16);pointer-events:none}
body[data-phase="reading"] .plant,body[data-phase="wind"] .plant{opacity:.43;filter:blur(.8px)}
body[data-phase="ending"] .plant{opacity:0;pointer-events:none}
.reader{position:fixed;inset:145px 0 62px;z-index:15}
.reader-scroll{position:absolute;inset:0;overflow:hidden;outline:0}
.reading-petal{position:relative;width:min(800px,98vw);height:100%;margin:0 auto;isolation:isolate;will-change:transform,opacity}
.reading-petal-paint{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;user-select:none;filter:drop-shadow(0 8px 16px #9b694215)}
.poem-ink{position:absolute;top:25%;bottom:27%;left:19%;width:62%;padding:0 4px 24px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b89d8c66 transparent}
.poem-text{margin:0;font:400 31px/1.19 var(--hand);text-align:center;white-space:pre-wrap;overflow-wrap:break-word;outline:0;color:#3e3433;text-shadow:0 1px 3px #fff8f3aa}
.release-button{display:flex;align-items:center;gap:13px;justify-content:center;margin:36px auto 0;padding:9px 15px;background:none;border:0;border-bottom:1px solid #98696b59;font:italic 16px/1.3 Georgia,serif;color:#735054;transition:color .2s,transform .3s}
.release-button svg{width:35px;height:18px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round}
.release-button:hover{color:#432e33;transform:translateX(3px)}
.release-button:disabled{cursor:default}
.icon-button{display:grid;place-items:center;width:36px;height:36px;padding:8px;background:rgba(255,251,235,.54);border:1px solid #766b4b30;border-radius:50%;transition:background .2s}
.icon-button:hover{background:rgba(255,251,235,.9)}
.icon-button svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.return-button{position:absolute;top:13px;right:max(22px,calc((100vw - 800px)/2 + 20px));z-index:5;background:#fcf1e6b3}
.ending{position:fixed;inset:150px 22px 100px;z-index:10;display:flex;align-items:center;justify-content:center;text-align:center}
.ending-lines{position:relative;padding:35px 20px;width:min(760px,100%);outline:0}
.ending-lines::before{content:"";position:absolute;inset:-50px -40px;z-index:-1;background:radial-gradient(ellipse,rgba(255,250,234,.88) 0%,rgba(255,250,234,.58) 47%,rgba(255,250,234,0) 72%);filter:blur(12px)}
.ending-line{margin:0 0 14px;opacity:0;font:400 clamp(30px,3.2vw,43px)/1.35 var(--hand);color:#3e3c31;animation:line-arrives .85s ease forwards;animation-delay:var(--delay)}
.ending-line:last-child{margin-top:34px;margin-bottom:0}
.restart-button{position:fixed;bottom:24px;right:24px;animation:line-arrives 1.5s ease both}
.signature{position:fixed;bottom:max(17px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);white-space:nowrap;z-index:25;font:400 30px/1.1 var(--hand);color:#3b402c;text-shadow:0 1px 10px #fffce7}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.noscript{position:fixed;left:10%;right:10%;top:40%;text-align:center;background:#fff8e4;padding:20px}
@keyframes flower-breeze{0%,100%{transform:rotate(-1.6deg)}50%{transform:rotate(1.6deg)}}
@keyframes arrive{from{opacity:0}to{opacity:1}}
@keyframes line-arrives{from{opacity:0;transform:translateY(8px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@media(max-width:600px){
  :root{--flower-size:min(52svh,94vw)}
  .page-heading{top:max(29px,env(safe-area-inset-top))}
  h1{font-size:39px}
  .pluck-invitation{margin-top:13px;max-width:330px}
  .pluck-invitation em{font-size:12px;line-height:1.5}
  .plant{top:52%}
  .reader{top:132px;bottom:59px}
  .reading-petal{width:100%}
  .poem-text{font-size:27px;line-height:1.22}
  .return-button{right:12px;top:0;width:31px;height:31px}
  .release-button{margin-top:27px;font-size:15px}
  .signature{font-size:28px;bottom:max(18px,env(safe-area-inset-bottom))}
  .ending{inset:132px 14px 80px}
  .ending-lines{padding:10px 0}
  .ending-line{font-size:31px;margin-bottom:12px}
  .ending-line:last-child{margin-top:29px}
  .restart-button{bottom:20px;right:17px;width:31px;height:31px}
}
@media(max-height:600px) and (min-width:601px){.page-heading{top:16px}h1{font-size:37px}.pluck-invitation{margin-top:7px}.reader{top:110px;bottom:49px}.ending{top:110px;bottom:55px}.ending-line{font-size:29px;margin-bottom:4px}.ending-line:last-child{margin-top:15px}.signature{font-size:25px;bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.ending-line{opacity:1}.plant{opacity:1}}
