/* Charlie in the blog header: a small tile that reacts to the reader. Blog only. */
.bo-charlie{position:relative;display:block;width:72px;height:72px;flex:none;z-index:5;transition:width .34s cubic-bezier(.3,1.3,.5,1)}
.bo-charlie-lens{position:absolute;left:0;top:0;width:72px;height:72px;overflow:hidden;border:1.5px solid #ffffff24;border-radius:23px;background:#0d1320;transition:width .34s cubic-bezier(.3,1.3,.5,1),height .34s cubic-bezier(.3,1.3,.5,1),top .34s,border-color .25s,border-radius .34s}
.bo-charlie-zoom{position:absolute;inset:0;transform-origin:0 0;transform:scale(1.24) translate(-9.7%,-2%);transition:transform .34s cubic-bezier(.3,1.3,.5,1)}
.bo-charlie-body{position:absolute;inset:0;transform-origin:50% 100%;transition:transform .4s ease-out,filter .6s;transform:rotate(calc(var(--lx,0)*3deg))}
.bo-charlie-breath{position:absolute;inset:0;transform-origin:50% 100%;animation:bo-charlie-breath 3.4s ease-in-out infinite}
/* The base image keeps the bo-knight-mark class so the BlackOrder dialog still opens from the logo; undo the knight sizing here. */
header a.bo-knight-brand .bo-charlie img,header a.bo-knight-brand .bo-charlie img.bo-knight-mark{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover!important;filter:none!important;transform:none!important;opacity:0;transition:opacity .11s linear}
header a.bo-knight-brand .bo-charlie img.on{opacity:1}
@keyframes bo-charlie-breath{0%,100%{transform:translateY(0) scaleY(1)}50%{transform:translateY(-.8%) scaleY(1.012)}}
.bo-charlie.jump .bo-charlie-breath{animation:bo-charlie-jump .55s cubic-bezier(.3,1.4,.5,1)}
@keyframes bo-charlie-jump{0%{transform:translateY(0) scale(1,1)}18%{transform:translateY(2%) scale(1.05,.93)}50%{transform:translateY(-11%) scale(.97,1.05)}78%{transform:translateY(0) scale(1.03,.97)}100%{transform:translateY(0) scale(1,1)}}
.bo-charlie.asleep .bo-charlie-body{transform:rotate(5deg) translateY(2.5%);filter:brightness(.72)}
.bo-charlie.asleep .bo-charlie-breath{animation-duration:5.5s}

/* Room for the larger mark in the blog bar. */
@media (min-width:641px){
  .nav .nav-in{height:88px}
  .nav .nav-links a.active::after{bottom:-34px}
  .aside{top:108px}
}
@media (hover:hover) and (min-width:641px){
  a.bo-knight-brand:hover .bo-charlie,a.bo-knight-brand:focus-visible .bo-charlie{width:148px}
  a.bo-knight-brand:hover .bo-charlie-lens,a.bo-knight-brand:focus-visible .bo-charlie-lens{width:148px;height:148px;top:-4px;border-color:#3aa0ff;border-radius:30px}
  a.bo-knight-brand:hover .bo-charlie-zoom,a.bo-knight-brand:focus-visible .bo-charlie-zoom{transform:scale(1.45) translate(-15.5%,-5%)}
}
@media (max-width:640px){
  .bo-charlie,.bo-charlie-lens{width:46px;height:46px}
  .bo-charlie-lens{border-radius:15px}
}
@media (max-width:360px){
  .bo-charlie,.bo-charlie-lens{width:40px;height:40px}
  .bo-charlie-lens{border-radius:13px}
}

/* Hearts, z's and sparks that fly off. */
.bo-charlie-fly{position:fixed;z-index:60;pointer-events:none;line-height:1;font-weight:800;animation:bo-charlie-fly var(--vt,1.25s) ease-out forwards}
.bo-charlie-fly svg{display:block;width:100%;height:100%;fill:#ff3347}
.bo-charlie-fly.z{color:#9bdcff}
.bo-charlie-fly.spark{color:#f2b45c}
@keyframes bo-charlie-fly{0%{transform:translate(0,0) scale(.3) rotate(0);opacity:0}15%{opacity:1}100%{transform:translate(var(--vx),var(--vy)) scale(1) rotate(var(--vr));opacity:0}}

@media (prefers-reduced-motion:reduce){
  .bo-charlie,.bo-charlie-lens,.bo-charlie-zoom,.bo-charlie-body{transition:none}
  .bo-charlie-breath{animation:none}
}
