/* Cafe24 Gowoonbam: https://noonnu.cc/font_page/342
   Handwritten Korean wedding typeface; externally loaded WOFF. */
@font-face{
  font-family:"Cafe24Gowoonbam";
  src:url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.1/Cafe24Oneprettynight.woff") format("woff");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
:root{--ink:#483c33;--muted:#78675d;--paper:#faf4e8;--wine:#956e68}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%}body{background:#e8e6df;color:var(--ink);font-family:"Cafe24Gowoonbam","Malgun Gothic",sans-serif}button{font:inherit;cursor:pointer}button:focus-visible{outline:2px solid #91584f;outline-offset:2px}.app{position:relative;isolation:isolate;height:100vh;height:100dvh;min-height:520px;max-width:540px;margin:auto;overflow:hidden;background:#b8d1b6}.scene,.scene-shade{position:absolute;inset:0;pointer-events:none}.scene{z-index:-2;background:#b8d1b6 url("../assets/illustrations/hero-forest.webp") center 53%/cover no-repeat}.scene-shade{z-index:-1;background:linear-gradient(180deg,#fff8 0%,transparent 30%,transparent 74%,#27382980 100%)}.masthead{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;justify-content:space-between;gap:10px;padding:calc(17px + env(safe-area-inset-top)) 18px 5px;color:#534b42;text-shadow:0 1px 8px #fff;font:9px Georgia,serif;letter-spacing:.12em}.masthead-star{font-size:16px;color:#af7162}.viewport{position:absolute;top:60px;bottom:calc(88px + env(safe-area-inset-bottom));inset-inline:0;overflow:hidden}.panel{height:100%;width:100%;position:relative;display:flex;justify-content:center;align-items:flex-start;padding:clamp(10px,3vh,32px) 15px 10px}.panel[hidden]{display:none}.letter{position:relative;display:flex;flex-direction:column;justify-content:space-between;width:min(88vw,390px);min-height:280px;max-height:100%;overflow:auto;padding:18px 20px 15px;background:var(--paper) url("../assets/illustrations/letter-texture.webp") center/cover no-repeat;border:1px solid #a18b7040;box-shadow:0 15px 65px #292a2538;filter:drop-shadow(0 2px 2px #594a3325)}.letter:before{content:"";position:absolute;inset:7px;border:1px solid #a18b7020;pointer-events:none}.letter__top,.letter__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font:9px Georgia,serif;letter-spacing:.1em;color:#887165}.letter__stamp{display:flex;flex-direction:column;align-items:center;justify-content:center;width:43px;height:42px;border:1px dashed #b49988;color:#9a7770;font-size:24px;line-height:1}.letter__stamp small{font:7px Georgia,serif;margin-top:3px}.letter__body{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:8px 3px}.letter__script{font:italic 24px "Cormorant Garamond",Georgia,serif;color:#a38377;margin:0}.letter h1{font-size:clamp(25px,7vw,30px);letter-spacing:-.035em;font-weight:400;line-height:1.35;margin:0}.letter__message{white-space:pre-line;font-size:clamp(11px,2.9vw,13px);line-height:1.9;word-break:keep-all;margin:0;color:#68594e}.letter__names{font-size:15px;margin:0;font-weight:400}.letter__names i{font:italic 23px "Cormorant Garamond",serif;margin:0 5px;color:#a97b70}.letter__date{font-size:12px;margin:0;color:#8e7267}.letter__foot{border-top:1px solid #a18b703d;padding-top:8px;font-size:8px}.letter__foot span:nth-child(2){font-size:17px;color:#a97b70}.flight{position:absolute;inset:0;z-index:3;opacity:0;pointer-events:none}.flight__plane{position:absolute;top:10%;right:-10%;width:clamp(100px,32vw,166px);aspect-ratio:1;background:url("../assets/illustrations/paper-plane.webp") center/contain no-repeat;filter:drop-shadow(0 4px 5px #43392e44)}.flight__trail{position:absolute;right:18%;top:12%;width:75px;height:45px;border-bottom:1px dashed #fff9;border-radius:50%}.app.is-animating .flight{animation:flight-opacity 1.16s both}.app.is-animating .flight__plane{animation:fly 1.16s ease-in-out both}.app.is-animating .letter{animation:unfold 1.3s .55s cubic-bezier(.2,.8,.2,1) both}@keyframes flight-opacity{0%,75%{opacity:1}100%{opacity:0}}@keyframes fly{0%{transform:translate(35px,-55px) rotate(-25deg) scale(.4)}55%{transform:translate(-90px,85px) rotate(9deg) scale(.8)}100%{transform:translate(calc(-36vw + 55px),125px) rotate(2deg) scale(1.05)}}@keyframes unfold{0%{opacity:0;transform:translateY(65px) rotate(-10deg) scale(.2,.12)}45%{opacity:1;transform:translateY(10px) rotate(3deg) scale(.7,.35)}100%{opacity:1;transform:none}}.replay{position:absolute;bottom:9px;right:18px;border:0;border-radius:25px;background:#24362888;color:#fff;padding:7px 11px;font:11px sans-serif;backdrop-filter:blur(4px)}.post-tabs{position:absolute;bottom:0;inset-inline:0;z-index:4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px 12px calc(11px + env(safe-area-inset-bottom));background:linear-gradient(180deg,transparent,#28392c77 38%,#28392c99)}.post-tab{background:#f8f3e7ee;color:#5a5047;border:1px dashed #fff;min-height:62px;border-radius:2px;padding:5px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;box-shadow:0 1px 5px #28271d33}.post-tab span:first-child{font-size:23px;line-height:1}.post-tab[aria-selected=true]{background:#fff7e8;color:#8d5d56;transform:translateY(-5px);outline:2px solid #fff8}.info-card{width:min(88vw,420px);max-height:100%;overflow-y:auto;background:#fbf7edf7;border:1px solid #baa79366;box-shadow:0 12px 45px #28271c40;padding:26px 23px}.overline{font:10px Georgia,serif;color:#a17d72;letter-spacing:.15em;margin:0}.info-card h2{font:500 38px "Cormorant Garamond",serif;margin:5px 0 2px}.subhead{font-size:12px;color:#987a6d;margin:0 0 25px}.info-line{display:grid;grid-template-columns:72px 1fr;gap:10px;border-top:1px solid #e3d8c9;padding:17px 0;font-size:14px;line-height:1.7}.info-line span{font:14px Georgia,serif;letter-spacing:.1em;color:#96796b}.info-line strong{font-weight:500;overflow-wrap:anywhere}.action{margin-top:15px;border:0;background:#647c67;color:#fff;padding:12px 18px}.action:disabled{opacity:.5;cursor:default}.footnote{font-size:10px;line-height:1.8;color:#9b8b7e;margin-top:15px}.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.gallery-grid img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border:6px solid #fffdf5;box-shadow:0 3px 10px #bbb5a5}.empty{text-align:center;grid-column:1/-1;padding:24px 8px;font-size:12px;color:#917d70}.reply-envelope{height:165px;margin:15px auto;background:url("../assets/illustrations/reply-envelope.webp") center/contain no-repeat}.reply-note{text-align:center;line-height:2;font-size:13px;color:#756153}@media(max-height:710px){.viewport{top:48px;bottom:calc(81px + env(safe-area-inset-bottom))}.masthead{padding-top:calc(10px + env(safe-area-inset-top))}.panel{padding-top:5px}.letter{padding:11px 15px;min-height:240px}.letter__body{gap:6px}.letter__message{line-height:1.65}.post-tab{min-height:53px}.post-tab span:first-child{font-size:18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.app.is-animating .flight{display:none}}
