/* additions for the static copy of johannakorkowski.com */
html{scroll-behavior:smooth;background:#0a0612;overflow-x:clip}
body{overflow-x:clip}
[id^="excerpt"]{scroll-margin-top:110px}
/* two captured layouts: the phone one below 768px, the desktop one from 768px up */
@media (max-width:767.98px){.jk-desktop{display:none}}
@media (min-width:768px){.jk-mobile{display:none}}
.jk-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.6);animation:fade-in .5s ease-out}
.jk-drawer{position:fixed;left:0;top:0;bottom:0;z-index:10001;width:85vw;max-width:500px;overflow:hidden;
  background:linear-gradient(160deg,rgb(13,8,32) 0%,rgb(26,16,48) 50%,rgb(13,8,32) 100%);border-right:1px solid rgba(255,255,255,.1);
  box-shadow:rgba(0,0,0,.5) 4px 0 32px,rgba(255,255,255,.1) -1px 0 0 inset;animation:slide-in-left .5s ease-out}
.jk-drawer a{text-decoration:none}
.jk-drawer nav{overflow-y:auto}
.jk-underline{position:absolute;bottom:0;left:50%;transform:translateX(-50%);height:1px;width:0;opacity:0;
  background:linear-gradient(to right,transparent,#fde047,transparent);transition:all .5s}
.jk-underline.is-on,.jk-drawer nav a:hover .jk-underline{width:100%;opacity:1}
.jk-drawer a:focus-visible,.jk-drawer-close:focus-visible{outline:2px solid #f6e05e;outline-offset:3px}
.jk-menu-open body{overflow:hidden}
.jk-panel{animation:fade-in .45s ease both}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.jk-drawer,.jk-backdrop{animation:none}}

/* blog article page: menu panel used below 1024px (same as the original) */
.jk-pm-shade{position:fixed;inset:0;z-index:60;background:rgba(93,95,105,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.jk-pm-wrap{position:fixed;inset:0;z-index:61;display:flex;align-items:center;justify-content:center;pointer-events:none}
.jk-pm{width:90%;max-width:28rem;max-height:85vh}
.jk-pm a{text-decoration:none}
@media (min-width:1024px){.jk-pm-shade,.jk-pm-wrap{display:none}}

/* ---------- phone fixes (these go beyond the original, which has the same problems) ---------- */
/* the article page footer was designed for a dark page but sits on a light one: give it its dark backdrop */
.jk-post footer{background:linear-gradient(to bottom,#0a0612,#1a1025 50%,#0a0612)}
@media (max-width:767.98px){
  /* footer links ran together with no space between them and were too small to tap */
  .jk-mobile footer nav.space-y-4,.jk-post footer nav.space-y-4{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 22px}
  .jk-mobile footer nav.space-y-4>a,.jk-post footer nav.space-y-4>a{margin:0;padding:10px 2px}
  .jk-mobile footer a[href="/privacy"],.jk-mobile footer a[href="/terms"],.jk-mobile footer a[href="/cookies"],
  .jk-post footer a[href="/privacy"],.jk-post footer a[href="/terms"],.jk-post footer a[href="/cookies"],
  .jk-mobile a[href^="mailto:"],.jk-post a[href^="mailto:"]{display:inline-block;padding:13px 8px;margin:-13px -8px}
  /* bigger tap area for the site name in the header, without moving it */
  .jk-mobile header a[href="/"]{padding:15px 10px;margin:-15px 0}
  .jk-post main a[href="/blog"],.jk-post section a[href="/blog"]{padding:12px 8px;margin:-12px -8px}
}
@media (max-width:480px){
  /* "The Path of the Magician": the two columns of words did not fit narrow phones */
  .jk-mobile .rounded-3xl.p-10:has(>.space-y-8>.flex.items-center.gap-6){padding:28px 14px}
  .jk-mobile .space-y-8>.flex.items-center.gap-6{gap:10px}
  .jk-mobile .space-y-8>.flex.items-center.gap-6 span.text-2xl{font-size:19px;line-height:1.25}
  .jk-mobile .space-y-8>.flex.items-center.gap-6 .w-12.h-12{width:36px;height:36px}
}
