/* Recipe letter: charcoal paper, ivory Cormorant italic, ivory hairlines. Copper only for the action link and focus. */
.letter-cta{max-width:var(--max-w);margin:56px auto 72px;padding:0 var(--gutter);display:flex;align-items:center;gap:16px}
.letter-cta__plane{width:72px;height:auto;flex:none;transform:rotate(-8deg);opacity:.95}
@media(min-width:700px){.letter-cta__plane{width:96px}}
.letter-cta p{margin:0;font-size:15px;line-height:1.45;color:var(--ivory);opacity:.85}
.letter-link{display:inline-flex;align-items:center;min-height:44px;padding:0;background:none;border:0;cursor:pointer;font:italic 600 24px 'Cormorant Garamond',Georgia,serif;color:#C47A3A}
.letter-link:hover{opacity:.85}
.letter-link:focus-visible,.lt a:focus-visible,.lt input:focus-visible,.lt textarea:focus-visible,.lt-x:focus-visible{outline:2px solid #C47A3A;outline-offset:3px;border-radius:3px}
.lt textarea:focus-visible{outline-offset:-2px}

.lt-ov{position:fixed;inset:0;z-index:200;display:none;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(32,38,41,.94);padding:16px 12px calc(28px + env(safe-area-inset-bottom))}
.lt-ov.on{display:block}
.lt{position:relative;max-width:560px;margin:0 auto;color:#F5F1EA;font:400 16px/1.5 'IBM Plex Sans',system-ui,sans-serif}
.lt-x{position:absolute;right:4px;top:0;z-index:3;width:44px;height:44px;border:0;background:none;cursor:pointer;color:#F5F1EA;font:500 26px/1 'IBM Plex Sans',sans-serif}
.lt-paper{position:relative;background:#353E43;border:1px solid #46515A;border-radius:3px;padding:44px 14px 14px;box-shadow:0 18px 40px rgba(0,0,0,.35)}
.lt-env{position:relative;padding:50px 14px 12px}
.lt-outline{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.lt-outline path{fill:none;stroke:#F5F1EA;stroke-opacity:.35;stroke-width:1;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.lt h2{margin:0 0 2px;font:italic 600 30px/1.1 'Cormorant Garamond',Georgia,serif;color:#F5F1EA}
.lt .lt-sub{margin:0 0 8px;font:italic 500 18px/1.3 'Cormorant Garamond',Georgia,serif;color:#A9B0B2}
.lt label{display:block;font:italic 600 19px/1.2 'Cormorant Garamond',Georgia,serif;color:#F5F1EA;margin-top:10px}
.lt label[for=lt-rec]{margin-bottom:6px}
.lt label small{font:italic 500 16px 'Cormorant Garamond',Georgia,serif;color:#A9B0B2}
.lt input[type=text],.lt textarea{display:block;width:100%;box-sizing:border-box;border:0;border-bottom:1px solid rgba(245,241,234,.22);background:transparent;color:#F5F1EA;font:italic 500 21px/32px 'Cormorant Garamond',Georgia,serif;padding:0 2px;min-height:44px;border-radius:0}
.lt input::placeholder,.lt textarea::placeholder{font-size:16px;line-height:24px;color:rgba(245,241,234,.5)}
.lt textarea{min-height:192px;resize:vertical;border-bottom:0;padding-top:0;background:repeating-linear-gradient(to bottom,transparent 0 31px,rgba(245,241,234,.14) 31px 32px)}
.lt .lt-ok{display:flex;gap:10px;align-items:flex-start;margin-top:16px;font:400 14px/1.45 'IBM Plex Sans',system-ui,sans-serif;color:#F5F1EA}
.lt .lt-ok input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:#C47A3A}
.lt .lt-ok a,.lt .lt-priv a{color:#F5F1EA;text-decoration:underline;text-decoration-color:rgba(245,241,234,.4)}
.lt .lt-priv{margin:8px 0 0;font:400 13px/1.45 'IBM Plex Sans',system-ui,sans-serif;color:#A9B0B2}
.lt .lt-err{margin:12px 0 0;font:500 14px/1.45 'IBM Plex Sans',system-ui,sans-serif;color:#E6B08A}
.lt .lt-send{margin-top:8px}
.lt .lt-send[disabled]{opacity:.5;cursor:default}
.lt-ts{margin-top:12px;transform-origin:0 0;opacity:.9}

/* send: fold in thirds -> envelope (flap closes) -> envelope becomes the plane, which settles with a slight tilt.
   Then the thank-you (or a quiet "Sending..." while the reply is still pending) where the letter was. */
.lt-stage{display:none;position:relative;height:300px}
.lt.sending .lt-paper{display:none}
.lt.sending .lt-stage{display:block}
.lt-msg{position:absolute;left:0;right:0;top:186px;margin:0;padding:0 12px;text-align:center;opacity:0;z-index:2}
.lt-thanks{font:italic 600 26px/1.25 'Cormorant Garamond',Georgia,serif;color:#F5F1EA}
.lt-wait{font:italic 500 20px/1.25 'Cormorant Garamond',Georgia,serif;color:#A9B0B2}
.lt.settled:not(.done) .lt-wait{animation:ltShow .4s ease-out both}
.lt.done .lt-thanks{animation:ltShow .5s ease-out both}
.lt-fold{position:absolute;left:50%;top:130px;width:220px;height:168px;margin:-84px 0 0 -110px;perspective:700px;animation:ltGone .01s linear .6s both}
.lt-p{position:absolute;left:0;width:100%;height:56px;box-sizing:border-box;background:#353E43 repeating-linear-gradient(to bottom,transparent 0 13px,rgba(245,241,234,.14) 13px 14px);border:1px solid rgba(245,241,234,.35)}
.lt-p1{top:0;transform-origin:50% 100%;animation:ltFoldA .3s ease-in-out both}
.lt-p2{top:56px}
.lt-p3{top:112px;transform-origin:50% 0;animation:ltFoldB .3s ease-in-out .05s both}
.lt-envs{position:absolute;left:50%;top:130px;width:200px;height:124px;margin:-62px 0 0 -100px;opacity:0;animation:ltEnv .3s ease-out .3s both,ltEnvOut .3s ease-in .6s forwards}
.lt-envs svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.lt-envs path{fill:none;stroke:#F5F1EA;stroke-opacity:.5;stroke-width:1;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.lt-flapc{transform-box:fill-box;transform-origin:50% 0;animation:ltClose .3s ease-out .3s both}
.lt-plane{position:absolute;left:50%;top:130px;width:120px;margin:-37px 0 0 -60px;pointer-events:none}
.lt-planey{animation:ltSettle .6s cubic-bezier(.2,.7,.2,1) .9s both}
.lt-fly{display:block;width:100%;height:auto;opacity:0;animation:ltPlane .3s ease-out .6s both}
@keyframes ltFoldA{to{transform:rotateX(-179deg)}}
@keyframes ltFoldB{to{transform:rotateX(179deg)}}
@keyframes ltGone{to{opacity:0;visibility:hidden}}
@keyframes ltEnv{from{opacity:0}to{opacity:1}}
@keyframes ltEnvOut{from{opacity:1;transform:rotate(0) scale(1)}to{opacity:0;transform:rotate(-12deg) scale(.7)}}
@keyframes ltClose{from{transform:scaleY(-1)}to{transform:scaleY(1)}}
@keyframes ltPlane{from{opacity:0;transform:rotate(12deg) scale(.7)}to{opacity:1;transform:rotate(0) scale(1)}}
@keyframes ltSettle{from{transform:translateY(0) rotate(0)}to{transform:translateY(-6px) rotate(-9deg)}}
@keyframes ltShow{to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .lt-fold,.lt-envs{display:none}
  .lt-fly{animation:none;opacity:1}.lt-planey{animation:none;transform:rotate(-9deg)}
  .lt.done .lt-thanks{animation:ltShow .4s ease-out both}
}
@media (min-width:700px){.lt-paper{padding:48px 28px 20px}.lt-env{padding:50px 24px 14px}.lt-ov{padding-top:32px}}
