/* The K that travels with the pointer (the lens) and the flip, on every page of the site (home.js), 14 Nov 2026.
   Moved here from style.css when the privacy page got the lens too (the user: the K should travel on every page). */

/* No scroll bar on any page (the user, 14 Nov: "u privatnosti ubij scroll, da ga nema, al da se da scrollat"): the
   privacy pages still scroll with the wheel, a finger or the keys; on the home page, which never scrolls, a bar
   that came for a moment would narrow the page and move the big K */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* the two colours, swapped on the white (English) pages and inside the flip's copy */
.inv, .flip-layer.inv { --ink: #0A0A0A; --paper: #F5F5F5; --hair: 1; }
.flip-layer:not(.inv) { --ink: #F5F5F5; --paper: #0A0A0A; --hair: 0; }

/* with a mouse the lens is the cursor; while it drifts off on its own (html.idle), the normal cursor shows. Over a
   link or a button the lens shrinks away and the normal link cursor shows, so small links are easy to hit; it comes
   back when the pointer leaves (the user, 14 Nov; it used to shrink to .45 and stay the cursor) */
.mouse:not(.idle), .mouse:not(.idle) * { cursor: none; }
.mouse:not(.idle) :is(a, button), .mouse:not(.idle) :is(a, button) * { cursor: pointer; }

/* The flip's copy of the page (home.js): not clipped to its box. On iOS 26 the page shows under Safari's floating
   toolbar, below the layout viewport, and a clipped copy cut the K's bottom there until the flip ended (the user,
   13 Nov). The copy reaches the large viewport's bottom (100lvh) and only the growing K's clip-path cuts it. It is
   absolute, not fixed (the page never scrolls, so it sits in the same place): iOS 26 Safari tints its bars from
   full-width fixed elements at the screen's edges, and a fixed copy in the new colours made the toolbar change at the
   start of the flip and again at the end (the user, 13 Nov: "toolbar trzne i naknadno se pofarba"). */
.flip-layer { position: absolute; z-index: 4; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; background: var(--paper); color: var(--ink); }
@supports (height: 100lvh) { .flip-layer { bottom: auto; height: max(100%, 100lvh); } }

/* the lens: the logo's K, white with difference, above everything; home.js sizes and moves it */
.lens { position: fixed; z-index: 5; left: 0; top: 0; display: block; pointer-events: none; mix-blend-mode: difference;
  transform: translate3d(-200px, -200px, 0); will-change: transform; }
.lens svg { display: block; width: 100%; height: 100%; }
