/* The site bar: one header for every page, new and old (Radek, 24 Nov 2026: the old and new
   pages should be seamless, "so we can't tell"). Loaded by the posts, tools, events and history
   pages through tools.css, and by the preserved WordPress pages directly, whose theme header is
   hidden (refresh.css). Moving between pages, the bar stays put and the white line under the
   current item slides to the new one like a radio button (cross-document view transitions;
   legacy/refresh.js slides it where the browser cannot). Each move between sections glitches the menu text. */
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}
@view-transition{navigation:auto}
.bar{position:sticky;top:0;z-index:9999;display:flex;gap:24px;align-items:center;min-height:68px;justify-content:space-between;margin:0;padding:18px 32px;background:rgba(11,11,12,.7);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.12);font-family:var(--sans,Instrument,'Helvetica Neue',Arial,sans-serif);line-height:normal;box-sizing:border-box;view-transition-name:site-bar}
.bar *{box-sizing:border-box}
/* The old theme puts icon-font glyphs before some links; none in the bar. */
.bar a::before,.bar a::after{content:none!important;display:none!important}
.bar a{text-decoration:none;color:#e6e5ea;border:0}
.mark{display:inline-flex;align-items:center;flex:none}.mark img{display:block;height:28px;width:auto;max-width:none;margin:0}
.bar nav{position:relative;display:flex;gap:26px;flex-wrap:wrap;align-items:center;margin:0;padding:0}
.bar nav a{position:relative;display:inline-flex;align-items:center;padding:6px 0;color:#d9d8de}.bar nav a:hover{color:#fff}
.bar nav a[aria-current]{color:#fff}
.bar .menu-word{display:block;height:9px;width:auto;overflow:visible}
/* The selected item's line: one element per page with the same transition name, so the browser
   carries it from the old item to the new one. */
.bar-line{position:absolute;left:0;right:0;bottom:0;height:1px;background:#fff;view-transition-name:bar-line;transform-origin:0 50%}
.icon-link{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px}.icon-link .social-icon{width:17px;height:17px}
.bar .social{display:flex;align-items:center;margin:0;padding:0}.bar .social a{display:inline-flex;align-items:center;gap:7px}.social-icon{flex:none}
.bar nav a,.bar .social a{font:12px var(--mono,Plex,ui-monospace,monospace);letter-spacing:.06em;text-transform:lowercase}
::view-transition-group(bar-line){animation-duration:.42s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(root),::view-transition-new(root){animation-duration:.26s}
/* Glitch on arrival from another section: the menu text splits red and cyan and settles, smoothly. */
.bar.is-glitch nav{animation:bar-glitch .55s cubic-bezier(.2,.8,.2,1) 1}
@keyframes bar-glitch{
  0%{transform:translateX(-3px);filter:drop-shadow(2px 0 rgba(255,42,85,.9)) drop-shadow(-2px 0 rgba(0,229,255,.9))}
  25%{transform:translateX(2px);filter:drop-shadow(-2px 0 rgba(255,42,85,.7)) drop-shadow(2px 0 rgba(0,229,255,.7))}
  55%{transform:translateX(-1px);filter:drop-shadow(1px 0 rgba(255,42,85,.4)) drop-shadow(-1px 0 rgba(0,229,255,.4))}
  100%{transform:none;filter:none}
}
@media (max-width:700px){.bar{flex-wrap:wrap;padding:14px 16px;gap:10px}.bar nav{gap:4px 18px}.bar nav a{padding:5px 0}.bar .menu-word{height:8px}.bar .social{display:none}}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}.bar.is-glitch nav{animation:none}}
/* Held back from the first frame until legacy/post-fx.js decides what plays (no flash of the
   finished page before its build-in). A head script adds fx-wait and drops it after 3 s whatever happens. */
html.fx-wait :is([data-t-generate],h1,.main-content h2),.fx-hold{opacity:0!important}
