/* Paper, form, and message-list refinements. The tree keeps its full-screen size. */
html{scrollbar-gutter:stable}
body{color:#3e3b32}
.landscape{position:fixed;inset:0;z-index:0;pointer-events:none}
.tree-scene{position:absolute}
.snowmen-button{position:absolute;z-index:0;left:calc(50% - max(100vw,177.7778svh) * .19);bottom:5.5svh;width:clamp(155px,14vw,210px);border:0;padding:0;background:none;line-height:0;pointer-events:auto;border-radius:35%;touch-action:manipulation}
.background-snowmen{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
.snowmen-button:focus-visible{outline:1px dashed #a94b3b;outline-offset:0}
body:not([data-volume="tree"]) .snowmen-button{visibility:hidden;pointer-events:none}
.tree-scene{transform-origin:60% 87%}
.landscape.is-shaking .tree-scene{animation:tree-root-sway 1.7s ease-out both}
.landscape.is-shaking .tree-ribbons{transform-origin:60% 87%;animation:tree-branch-sway 1.7s ease-out both}
.branch-snow{position:absolute;z-index:2;width:max(100vw,177.7778svh);height:max(100svh,56.25vw);left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}
.branch-snow i{position:absolute;left:var(--fall-x);top:var(--fall-y);width:var(--fall-size);height:var(--fall-size);background:#fffef8;border-radius:45% 55% 60% 40%;box-shadow:0 0 3px #fffdf6,.5px 1px 1px #68655766;opacity:0;animation:branch-snow-fall var(--fall-time) ease-in var(--fall-delay) both}
@keyframes tree-root-sway{0%,100%{transform:scale(1.004) rotate(0)}18%{transform:scale(1.004) rotate(-.22deg)}39%{transform:scale(1.004) rotate(.18deg)}60%{transform:scale(1.004) rotate(-.1deg)}80%{transform:scale(1.004) rotate(.04deg)}}
@keyframes tree-branch-sway{0%,100%{rotate:0deg}18%{rotate:-.22deg}39%{rotate:.18deg}60%{rotate:-.1deg}80%{rotate:.04deg}}
@keyframes branch-snow-fall{0%{opacity:0;transform:translate3d(0,0,0) scale(.8)}12%{opacity:.95}70%{opacity:.85}100%{opacity:0;transform:translate3d(var(--fall-drift),var(--fall-distance),0) rotate(90deg) scale(.65)}}
@media(max-width:650px){.snowmen-button{left:calc(50% - 115px);right:auto;bottom:15svh;width:140px}.branch-snow{left:41%}}
@media(prefers-reduced-motion:reduce){.landscape.is-shaking .tree-scene,.landscape.is-shaking .tree-ribbons{animation:none!important}.branch-snow{display:none}.snowmen-button.is-touched{filter:drop-shadow(0 0 6px #c29666)}}
.tree-ribbons{position:absolute;transition:opacity .4s ease}
.tree-ribbons.is-changing{opacity:0}
.tree-ribbons.is-changing .tree-ribbon{pointer-events:none}
.snowfall{position:fixed;inset:0;z-index:2;overflow:hidden;contain:strict;opacity:1}
.snowfall,.snowfall *{pointer-events:none!important;user-select:none}
.snowflake{position:absolute;top:-12px;left:var(--snow-left);display:block;width:var(--snow-size);height:var(--snow-size);border-radius:50%;background:#fffef8;box-shadow:0 0 3.5px #fffdf7cf,.6px .9px 1.2px #6e6b5c50;filter:blur(var(--snow-blur));animation:snow-drift var(--snow-duration) linear var(--snow-delay) infinite;opacity:0}
body:not([data-volume="tree"]) .snowfall{opacity:.6}
.snowfall.is-paused .snowflake,body.dialog-open .snowflake{animation-play-state:paused}
@keyframes snow-drift{
  0%{opacity:0;transform:translate3d(0,-20px,0)}
  12%{opacity:var(--snow-alpha)}
  35%{transform:translate3d(calc(var(--snow-drift) * .5),35svh,0)}
  65%{transform:translate3d(calc(var(--snow-drift) * -.2),65svh,0)}
  88%{opacity:var(--snow-alpha)}
  100%{opacity:0;transform:translate3d(var(--snow-drift),calc(100svh + 32px),0)}
}
@media(max-width:650px){.snowflake:nth-child(n+41){display:none}}
@media(prefers-reduced-motion:reduce){.snowfall{display:none!important}}
.tree-ribbon,.wall-ribbon{
  animation:ribbon-breeze var(--duration,8s) ease-in-out var(--delay,0s) infinite;
  animation-play-state:paused;
  backface-visibility:hidden;
}
.tree-ribbon.is-new{
  animation:ribbon-breeze var(--duration,8s) ease-in-out var(--delay,0s) infinite,ribbon-appear .9s ease-out;
  animation-play-state:paused;
}
body[data-volume="tree"] .tree-ribbon,
body[data-volume="wall"] .wall-ribbon.is-in-view{animation-play-state:running}
body[data-volume] .tree-ribbon:hover,
body[data-volume] .tree-ribbon:focus-visible,
body[data-volume] .wall-ribbon:hover,
body[data-volume] .wall-ribbon:focus-visible,
body[data-volume].dialog-open .tree-ribbon,
body[data-volume].dialog-open .wall-ribbon{animation-play-state:paused}
.tree-ribbon:hover,.tree-ribbon:focus-visible{z-index:90!important}
@keyframes ribbon-breeze{
  0%,100%{transform:rotate(var(--wind-left,-2.5deg)) skewX(-1.4deg)}
  28%{transform:rotate(calc(var(--wind-right,3.5deg) * .35)) skewX(.8deg)}
  55%{transform:rotate(var(--wind-right,3.5deg)) skewX(1.8deg)}
  78%{transform:rotate(calc(var(--wind-left,-2.5deg) * .4)) skewX(-.7deg)}
}
@keyframes ribbon-appear{from{opacity:0}to{opacity:1}}
.tree-ribbon.is-arriving{opacity:0!important;pointer-events:none!important;animation-play-state:paused!important}
.tree-ribbon.is-tying{pointer-events:none}
.tree-ribbon.is-tying:before{animation:ribbon-knot-cinch .75s ease-out both}
.tree-ribbon.is-tied{z-index:95!important;filter:drop-shadow(0 0 10px #efd390) drop-shadow(0 3px 4px #81322350)}
body .ribbon-in-flight{position:fixed;left:0;top:0;z-index:65;margin:0;opacity:0;animation:none!important;pointer-events:none!important;transform-origin:50% 0;will-change:transform,opacity;background:linear-gradient(95deg,#b33628,#d2583d 40%,#a92d23);filter:drop-shadow(0 0 10px #edd4a99c) drop-shadow(3px 7px 5px #60281c30)}
.ribbon-tie-ring{position:fixed;width:36px;height:36px;z-index:64;border:1px solid #c9a56688;border-radius:50%;background:radial-gradient(circle,#edd9a64d,transparent 70%);pointer-events:none}
@keyframes ribbon-knot-cinch{0%{transform:scale(1.6,.45);opacity:.4}55%{transform:scale(.8,1.35);opacity:1}100%{transform:scale(1);opacity:1}}
@media(max-width:650px){.tree-ribbon{width:21px;max-height:185px}}
.paper-veil{background:#f0ebdf}
body:not([data-volume="tree"]) .paper-veil{opacity:.88}
.site-header{padding:30px 3vw 18px}
.wordmark{font-family:var(--calligraphy);font-size:28px;letter-spacing:.18em;color:#34352d}
nav{font-size:16px;gap:22px;letter-spacing:.1em;color:#837e6f}
nav a[aria-current]{color:#a94b3b}
.poem{left:3.4vw;top:23%;height:46%;font-size:16px;letter-spacing:.2em;line-height:2.2;color:#777364}
.dedication{right:3.5vw;top:24.5%;flex-direction:column;align-items:center;gap:34px;font-family:var(--calligraphy);font-size:39px;letter-spacing:.48em;line-height:1.55;color:#292d26}
.dedication em{font-size:34px;margin-top:0;color:#a94332}

.tree-count{left:3.4vw;font-size:16px;letter-spacing:.12em;color:#837c6d;bottom:6.8%}
.tree-count span{font-size:20px}
.tie-invitation{left:57%;padding:11px 30px;font-size:20px;letter-spacing:.16em;background:#f6f0e4de;border-color:#be8d7473;box-shadow:0 4px 20px #5a39200a}
.tie-invitation:hover{border-color:#ad604b;background:#faf4e7}
h2{font-family:var(--calligraphy);font-size:43px;letter-spacing:.16em;color:#34382f}
.volume-description{font-size:17px;color:#777361;letter-spacing:.08em}
.wish-content{width:min(700px,100%)}
.wish-content .volume-description{margin-top:22px;margin-bottom:36px}
.wish-paper{padding:47px 42px 33px;box-shadow:0 16px 42px #51412a16,0 2px 5px #6d593e12;background:linear-gradient(118deg,#fcf8ebf0,#f1ead8ed);border-color:#cabea37d}
.wish-paper:before{inset:10px;border-color:#bb8a6633}
textarea{font-size:21px;letter-spacing:.08em;line-height:44px;color:#484638}
textarea::placeholder{font-family:var(--calligraphy);font-size:27px;color:#9e9277}
.writing-footer p{font-size:15px;color:#92866e}
.signature-line{font-size:16px;color:#8a806a}
.submit-wish{font-family:var(--calligraphy);font-size:25px;letter-spacing:.2em;padding:8px 28px;background:linear-gradient(135deg,#a83e2f,#913126);box-shadow:0 5px 13px #863c231a}
.wall-content{width:min(1160px,100%)}
.wall-description{font-size:17px;letter-spacing:.08em;margin-top:18px;margin-bottom:38px;color:#837b67}
.count-seal{font-size:15px;border-color:#bd7b5e59;background:#c9866410;color:#b1674c}
.ribbon-gallery{padding-top:12px;padding-bottom:15px;min-height:390px}
.wall-rail{padding-top:33px;padding-left:38px;padding-right:38px}
.wall-ribbons{gap:50px}
.wooden-pole{height:10px;top:10px;background:linear-gradient(#73684f,#3c382a 75%,#58503c);box-shadow:0 3px 8px #3f33251c}
.wooden-pole:before,.wooden-pole:after{width:22px;height:23px;top:-6px;background:radial-gradient(circle at 35% 30%,#8b7f64,#403a29 75%)}
.is-sparse .wall-ribbons{justify-content:center;gap:90px}
.is-sparse .wall-ribbon{width:30px}
.wall-ribbon{box-shadow:3px 6px 10px #68322312;background:linear-gradient(92deg,#9f3327,#b74733 37%,#a13729 81%,#8d2b22)}
.wall-ribbon span{font-size:15px;letter-spacing:.12em;color:#f0c59b}
.wall-author{font-size:14px;color:#8d8269;max-height:125px}
.wall-tools{display:flex;align-items:center;justify-content:center;gap:30px;margin-top:24px;flex-wrap:wrap}
.gallery-hint{margin:0;font-size:15px;letter-spacing:.12em;color:#958970}
.view-all{background:#f5eee0a8;border:1px solid #b7876b80;border-radius:2px;font-size:17px;letter-spacing:.12em;color:#96533e;padding:9px 23px;transition:background .2s,border-color .2s;min-height:44px}
.view-all:hover{background:#faf4e7;border-color:#a7654e}
.demo-note{font-size:13px;letter-spacing:.07em;color:#a79a81;margin-top:23px}
.ribbon-note{background:linear-gradient(125deg,#fbf5e7,#f1e7d3);border-color:#b89c7259;box-shadow:0 9px 26px #3d302224;padding:27px 24px 22px}
.note-text{font-size:19px;letter-spacing:.05em;line-height:1.9;border-color:#c4b18b9c}
.note-close{padding:5px 8px;right:0;top:0;min-width:35px;min-height:35px}
.music-toggle{right:24px;bottom:22px;width:35px;height:35px;background:#f7f1e2d9}
.dialog-open{overflow:hidden}
.all-wishes-dialog{width:min(740px,calc(100vw - 48px));height:fit-content;min-height:360px;max-height:84svh;max-width:none;padding:0;border:1px solid #c6b69a;border-radius:2px;background:linear-gradient(120deg,#fcf7eb,#f0e7d5);color:var(--ink);box-shadow:0 26px 80px #2f271f40;overflow:hidden;isolation:isolate}
.all-wishes-dialog[open]{display:flex;flex-direction:column}
.all-wishes-dialog::backdrop{background:#302c245b;backdrop-filter:blur(5px)}
.all-wishes-dialog:before{content:"";position:absolute;inset:10px;border:1px solid #bd916430;pointer-events:none;z-index:-1}
.all-wishes-header{position:relative;flex:none;text-align:center;padding:35px 44px 26px}
.dialog-eyebrow{font-size:14px;color:#a29881;letter-spacing:.3em;margin:0 0 9px}
.all-wishes-header h2{font-family:var(--calligraphy);font-size:35px;letter-spacing:.26em;line-height:1.4}
.all-wishes-header>p:last-of-type{font-size:15px;color:#9a8d75;margin-top:11px;letter-spacing:.1em}
.all-wishes-close{position:absolute;top:14px;right:14px;background:none;border:0;font:31px/1 Georgia,serif;color:#918975;width:42px;height:42px;padding:3px}
.all-wishes-close:hover{color:#aa4b37}
.all-wishes-list{list-style:none;padding:0 28px 22px;margin:0 10px;overflow:auto;flex:0 1 auto;min-height:0;max-height:calc(84svh - 225px);scrollbar-width:thin;scrollbar-color:#b7a78b #e6ddcb66;overscroll-behavior:contain}
.wish-entry{position:relative;border:1px solid #d4c8b18c;background:#fffdf859;padding:24px 58px 21px 24px;margin-bottom:14px;box-shadow:0 2px 4px #7c684406}
.wish-entry:last-child{margin-bottom:0}
.wish-entry-text{font-family:var(--hand);font-size:20px;letter-spacing:.07em;line-height:1.95;overflow-wrap:anywhere;color:#4c493c;white-space:pre-wrap}
.wish-entry-author{font-size:15px;color:#b56b50;letter-spacing:.1em;margin-top:9px}
.wish-entry-remove{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:36px;height:36px;font:25px/1 Georgia,serif;background:none;border:0;color:#b0a38c;padding:4px}
.wish-entry-remove:hover{color:#ab4f3a}
.all-wishes-footer{flex:none;text-align:center;font-size:14px;letter-spacing:.14em;color:#a29478;padding:18px 20px 23px}
@media(min-width:1700px){.wish-content{width:730px}.wall-content{width:1280px}}
@media(max-width:1000px){.site-header{padding:25px 28px}.wordmark{font-size:28px}nav{gap:15px;font-size:15px}.dedication{right:27px;top:24.5%;font-size:34px;gap:24px}.dedication em{font-size:29px;margin-top:0}.poem{left:28px;font-size:15px;height:43%}.tree-count{left:28px;font-size:15px}.tie-invitation{left:46%}.wall-tools{gap:22px}}
@media(max-width:650px){.site-header{padding:21px 20px;background:linear-gradient(#eee9dcf5,#eee9dc00)}.wordmark{font-size:27px;letter-spacing:.12em}nav{gap:13px;font-size:15px;padding-top:5px}.tree-scene{background-position:57% center}.tree-ribbons{left:41%}.dedication{top:22%;right:19px;font-size:28px;gap:21px;letter-spacing:.35em}.dedication em{font-size:25px;margin-top:0}.poem{top:19%;left:19px;height:38%;font-size:14px;letter-spacing:.12em;line-height:1.9;color:#7c7565}.tree-count{left:15px;right:15px;bottom:5.5%;font-size:14px;letter-spacing:.07em}.tree-count span{font-size:18px}.tie-invitation{left:50%;bottom:12%;font-size:18px;padding:10px 24px}.volume-wish{padding:105px 20px 70px}h2{font-size:38px;letter-spacing:.17em}.wish-content .volume-description{font-size:15px;margin-top:18px;margin-bottom:28px;line-height:1.95;letter-spacing:.04em}.wish-paper{padding:32px 23px 27px}.wish-paper:before{inset:9px}textarea{font-size:20px;height:220px}textarea::placeholder{font-size:25px}.writing-footer p{font-size:14px}.signature-line{font-size:15px}.submit-wish{padding:7px 26px;font-size:24px}.volume-wall{padding:105px 27px 75px}.wall-description{font-size:15px;line-height:1.9;gap:10px;margin-top:17px;margin-bottom:31px}.count-seal{font-size:14px}.ribbon-gallery{min-height:340px}.wall-rail{padding-left:25px;padding-right:25px}.wall-ribbons{gap:32px}.is-sparse .wall-ribbons{gap:38px}.wall-tools{gap:19px;margin-top:20px;flex-direction:column}.gallery-hint{font-size:14px}.view-all{font-size:16px;padding:8px 23px}.demo-note{font-size:12px;line-height:1.8;margin-top:20px}.all-wishes-dialog{width:calc(100vw - 30px);height:fit-content;min-height:330px;max-height:78svh}.all-wishes-header{padding:32px 22px 23px}.all-wishes-header h2{font-size:32px}.dialog-eyebrow{font-size:13px}.all-wishes-header>p:last-of-type{font-size:14px;letter-spacing:.05em}.all-wishes-close{top:9px;right:8px;width:38px;height:38px;font-size:28px}.all-wishes-list{margin:0 8px;padding:0 13px 18px;max-height:calc(78svh - 210px)}.wish-entry{padding:19px 43px 18px 18px}.wish-entry-text{font-size:18px;letter-spacing:.04em}.wish-entry-author{font-size:14px}.wish-entry-remove{right:4px;width:33px}.all-wishes-footer{font-size:13px;padding:15px 12px 20px}.music-toggle{right:16px;bottom:16px;width:33px;height:33px}}
@media(max-height:740px) and (min-width:651px){.dedication{top:22%;font-size:34px}.dedication em{font-size:29px;margin-top:0}.volume-wall{padding-top:115px;padding-bottom:65px}.ribbon-gallery{min-height:340px}.wall-description{margin-bottom:28px}.wall-ribbon{max-height:250px}.wall-author{max-height:100px}.wall-tools{margin-top:18px}}
