/* the standard footer for all three sites (nymira.space, the garden, the calendar):
 * a line with the sleepy bunny sitting on it (poke her), a link home, and who to tell if something's broken.
 * the master copy lives in shared/ — copy it into home/, blog/ and bun/public/ after changing it (see shared/README.md). */
.bunfoot{--bf-w:1160px;--bf-line:#2b3140;--bf-text:#858b9b;--bf-moon:#e9e7de;--bf-link:#a9b2cc;--bf-bubble:#12151c;
  position:relative;z-index:1;width:100%;max-width:var(--bf-w);margin:2rem auto 0;padding:0 1.25rem;box-sizing:border-box}
.bf-horizon{position:relative;height:50px}
.bf-horizon::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--bf-line)}
.bf-sitter{position:absolute;left:10%;bottom:-3px;width:58px;height:58px;z-index:1;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bf-sitter img{display:block;width:100%;height:100%;object-fit:contain}
.bf-sitter:focus-visible{outline:1px solid var(--bf-link);outline-offset:3px;border-radius:6px}
.bf-sitter.poked{animation:bf-poke .35s ease-out}
@keyframes bf-poke{0%,100%{transform:translateY(0)}40%{transform:translateY(-4px) rotate(-3deg)}}
/* her little speech bubble */
.bf-say{position:absolute;left:calc(10% + 36px);bottom:62px;z-index:2;width:max-content;max-width:calc(100% - 10% - 3.5rem);box-sizing:border-box;
  padding:.35rem .85rem .4rem;background:var(--bf-bubble);border:1px solid var(--bf-line);border-radius:14px 14px 14px 4px;
  font:italic 15px/1.35 'Spectral',Georgia,serif;color:var(--bf-moon);overflow-wrap:break-word;pointer-events:none;
  opacity:0;transform:translateY(6px) scale(.96);transform-origin:left bottom;transition:opacity .25s,transform .25s}
.bf-say.on{opacity:1;transform:none}
/* the pet counter: a little secret that appears next to her after your first pet */
.bf-count{position:absolute;left:calc(10% + 68px);bottom:8px;z-index:1;isolation:isolate;display:flex;align-items:baseline;gap:.4rem;white-space:nowrap;pointer-events:none;
  font:italic 13px/1 'Spectral',Georgia,serif;color:var(--bf-text);opacity:0;filter:blur(5px);letter-spacing:.12em;
  transition:opacity 1.1s ease,filter 1.1s ease,letter-spacing 1.4s ease}
.bf-count.on{opacity:1;filter:none;letter-spacing:.02em}
.bf-hush{font-size:12px;letter-spacing:.06em;color:#8a7f98;text-shadow:0 0 10px rgb(180 150 210/.35)}
/* a faint glow behind the secret */
.bf-count::before{content:'';position:absolute;left:-14px;right:-14px;top:-12px;bottom:-10px;z-index:-1;border-radius:50%;background:radial-gradient(ellipse at 60% 55%,rgb(170 140 200/.16),rgb(170 140 200/0) 70%);animation:bf-breathe 5s ease-in-out infinite}
@keyframes bf-breathe{0%,100%{opacity:.6}50%{opacity:1}}
.bf-count b{position:relative;font:italic 500 17px/1 'Spectral',Georgia,serif;font-variant-numeric:lining-nums tabular-nums;letter-spacing:.03em;color:var(--bf-moon);
  background:linear-gradient(100deg,#c9c3b4 20%,#fff8e6 45%,#e3c6d4 55%,#c9c3b4 80%) 0 0/250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  text-shadow:0 0 12px rgb(233 220 190/.25);animation:bf-sheen 6s ease-in-out infinite}
.bf-count b.bump{animation:bf-sheen 6s ease-in-out infinite,bf-bump .35s ease-out}
.bf-tail{color:#8a7f98;text-shadow:0 0 10px rgb(180 150 210/.35)}
@keyframes bf-sheen{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@keyframes bf-bump{40%{transform:translateY(-2px) scale(1.08)}}
/* two tiny four-pointed sparkles that twinkle near the number */
.bf-spark,.bf-spark::after{position:absolute;width:7px;height:7px;background:#f3e6c4;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
  animation:bf-twinkle 3.2s ease-in-out infinite}
.bf-num{position:relative;display:inline-block}
.bf-spark{right:-8px;top:-7px}
.bf-spark::after{content:'';right:auto;left:-14px;top:15px;width:5px;height:5px;animation-delay:-1.6s}
/* stardust drifting up around it */
.bf-motes{position:absolute;inset:-18px -10px -6px;pointer-events:none}
.bf-motes i{position:absolute;bottom:0;width:2px;height:2px;border-radius:50%;background:#f3e6c4;box-shadow:0 0 4px 1px rgb(243 230 196/.6);opacity:0;animation:bf-mote 4.5s ease-in-out infinite}
.bf-motes i:nth-child(1){left:6%;animation-delay:-.4s}
.bf-motes i:nth-child(2){left:24%;animation-delay:-2.1s;animation-duration:5.2s}
.bf-motes i:nth-child(3){left:43%;animation-delay:-3.3s}
.bf-motes i:nth-child(4){left:58%;animation-delay:-1.2s;animation-duration:3.9s}
.bf-motes i:nth-child(5){left:76%;animation-delay:-2.8s;animation-duration:5.6s}
.bf-motes i:nth-child(6){left:92%;animation-delay:-.9s}
@keyframes bf-mote{0%{opacity:0;transform:translate(0,0)}25%{opacity:.85}100%{opacity:0;transform:translate(4px,-26px)}}
/* the little burst from the bunny with each pet */
.bf-dust{position:absolute;z-index:3;width:6px;height:6px;margin-left:-3px;pointer-events:none;background:#f6ead0;
  clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);filter:drop-shadow(0 0 3px rgb(246 234 208/.8));
  opacity:0;animation:bf-dust 1.1s ease-out forwards}
@keyframes bf-dust{0%{opacity:0;transform:translate(0,0) scale(calc(var(--s) * .4)) rotate(0)}20%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(var(--s)) rotate(90deg)}}
@keyframes bf-twinkle{0%,100%{opacity:0;transform:scale(.4) rotate(0)}50%{opacity:.9;transform:scale(1) rotate(45deg)}}
@media (prefers-reduced-motion:reduce){.bf-sitter.poked{animation:none}.bf-say,.bf-count{transition:none}.bf-count b,.bf-spark,.bf-spark::after,.bf-count::before{animation:none}.bf-motes{display:none}}
.bf-inner{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem 1.4rem;flex-wrap:wrap;padding:.9rem 0 1.8rem;
  font:italic 14.5px/1.5 'Spectral',Georgia,serif;color:var(--bf-text)}
.bf-inner a{color:var(--bf-link);text-decoration:none;border-bottom:1px dotted var(--bf-line)}
.bf-inner a:hover{color:var(--bf-moon);border-bottom-color:var(--bf-link)}
.bf-left{display:flex;align-items:baseline;gap:.4rem 1rem;flex-wrap:wrap}
.bf-left > :not(:empty) ~ :not(:empty)::before{content:'·';margin-right:1rem;color:#4a5060}
.bf-contact b{font-weight:600;font-style:normal;color:var(--bf-moon)}
@media (max-width:640px){.bf-sitter{left:4%}.bf-count{left:calc(4% + 68px)}.bf-hush{display:none}.bf-say{left:calc(4% + 36px);max-width:calc(100% - 4% - 3.5rem)}.bf-inner{flex-direction:column;gap:.3rem}}
