@import "https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&display=swap";*{box-sizing:border-box}body{color:#f5eedc;background:#0b3d2e;margin:0;font-family:system-ui,sans-serif}#root{flex-direction:column;min-height:100vh;display:flex}header{background:#07261d;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:16px 24px;display:flex}header strong,h1{color:#c9a227}nav{gap:20px;display:flex}nav a{color:#f5eedc;text-decoration:none}nav a.active{color:#c9a227;border-bottom:2px solid #c9a227}main{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:24px;display:flex}footer{text-align:center;background:#07261d;padding:16px}.home{width:100%;max-width:900px}.hero{flex-wrap:wrap;justify-content:center;align-items:center;gap:40px;animation:.9s both arrive;display:flex}.hero-cover{border-radius:6px;width:min(320px,80vw);height:auto;transition:transform .4s;box-shadow:0 18px 40px #0000008c}.hero-cover:hover{transform:translateY(-6px)rotate(-1deg)}.hero-text{flex:280px;max-width:440px;line-height:1.6}.hero-text h1{margin:0;font-family:Georgia,serif;font-size:2.4rem;line-height:1.15}.hero-label{letter-spacing:3px;text-transform:uppercase;margin:0 0 8px;font-size:.75rem}.hero-author{opacity:.75;margin-top:6px}.hero-tagline{color:#c9a227;font-style:italic}.button{color:#07261d;font:inherit;cursor:pointer;background:#c9a227;border:0;border-radius:999px;padding:12px 24px;font-weight:700;text-decoration:none;display:inline-block}.shelf-area{justify-content:flex-end;margin-top:72px;display:flex}.shelf{border-bottom:8px solid #5a3b1e;align-items:flex-end;gap:4px;padding:0 14px;display:flex}.book{border:0;border-radius:3px 3px 0 0;width:22px;display:block;box-shadow:inset 0 12px 0 -8px #c9a227,inset 0 -14px 0 -10px #c9a227}.book-a{background:#6e1f24;height:84px}.book-b{background:#14503c;height:98px}.book-c{background:#1d2f4f;height:72px}.book-d{background:#4a2c52;height:90px}.hiding-place{width:96px;height:100px;position:relative}.book-secret{transform-origin:bottom;cursor:pointer;background:#7a5518;width:28px;height:94px;padding:0;transition:transform .5s;position:absolute;bottom:0;left:34px;transform:rotate(7deg)}.book-secret:hover{transform:rotate(11deg)}.book-secret.moved{transform:translate(42px)rotate(16deg)}.envelope-small{color:#3a2a12;opacity:0;background:linear-gradient(155deg,#e2d3ac 50%,#f5eedc 50%);border:0;border-radius:3px;width:72px;height:50px;padding:4px;font:700 .7rem/1 Caveat,cursive;position:absolute;bottom:2px;left:2px}.envelope-small:enabled{opacity:1;cursor:pointer;transition:opacity .4s .2s}.envelope-small span{padding-top:8px;display:block}.letter-dialog{background:0 0;border:0;width:min(460px,92vw);max-height:90vh;padding:0;overflow:auto}.letter-dialog::backdrop{background:#000000c7}.letter-dialog[open]::backdrop{animation:.6s both fade}.stage{place-items:center;display:grid}.stage>*{grid-area:1/1}.envelope-big{pointer-events:none;background:linear-gradient(155deg,#0000 50%,#e8dbb8 50%),linear-gradient(205deg,#d9c89c 50%,#efe4c6 50%);border-radius:8px;width:min(300px,80vw);height:190px;animation:2s both envelope;position:relative}.seal{color:#f0c9a0;background:#8e1b1b;border-radius:50%;place-items:center;width:58px;height:58px;font:700 1.8rem Georgia,serif;display:grid;position:absolute;top:66px;left:calc(50% - 29px)}.seal-left{clip-path:polygon(0 0,55% 0,42% 50%,56% 100%,0 100%);animation:.6s .9s both break-left}.seal-right{clip-path:polygon(55% 0,100% 0,100% 100%,56% 100%,42% 50%);animation:.6s .9s both break-right}.letter{color:#33240f;text-align:left;transform-origin:top;background:#f7efd9;border-radius:4px;padding:28px 24px;font:500 1.35rem/1.35 Caveat,cursive;animation:.9s 1.8s both unfold}.letter h2{text-align:center;margin-top:0;font-size:1.6rem}.letter .sign{text-align:right}.letter .button{margin:16px auto 0;font:700 .95rem system-ui,sans-serif;display:block}@keyframes arrive{0%{opacity:0;transform:translateY(18px)}}@keyframes fade{0%{opacity:0}}@keyframes envelope{0%{opacity:0;transform:translate(35vw,35vh)scale(.25)}35%,80%{opacity:1;transform:none}to{opacity:0;visibility:hidden}}@keyframes break-left{to{transform:translate(-22px,14px)rotate(-24deg)}}@keyframes break-right{to{transform:translate(22px,18px)rotate(20deg)}}@keyframes unfold{0%{opacity:0;transform:perspective(700px)rotateX(-90deg)}}@media (prefers-reduced-motion:reduce){.hero,.envelope-big,.seal,.letter,.letter-dialog::backdrop{animation-duration:10ms!important;animation-delay:0s!important}}.library{flex-wrap:wrap;justify-content:center;gap:32px;display:flex}.card{color:#f5eedc;flex-direction:column;gap:6px;width:200px;text-decoration:none;display:flex}.card img{border-radius:6px;width:100%;height:auto;transition:transform .3s;box-shadow:0 12px 28px #00000080}.card:hover img{transform:translateY(-6px)}.card span{opacity:.75;font-size:.9rem}.reader{flex-direction:column;align-items:center;width:100%;display:flex}.reader h1{margin:0 0 16px;font-family:Georgia,serif}.book-holder{width:100%}.sheet{background:#f5eedc;overflow:hidden}.sheet img{object-fit:contain;width:100%;height:100%;display:block}.sheet img:not([src]){visibility:hidden}.controls{justify-content:center;align-items:center;gap:16px;margin-top:20px;display:flex}.controls .button{padding:10px 18px}.reader-links{gap:24px;display:flex}.reader-links a{color:#c9a227}
