/* villykoliogeorgi.com — shared styles
   Type: Geist Mono (fine print), EB Garamond (the quiet voice, a few short lines), the Vagus wordmark is an image (assets/img/vagus/wordmark.png); no font file for it is served.
   Wall: pale blue #acc3d6 with one uneven sheet of paper grain, only on the wall. */

:root { --ink: #0b0b0b; --paper: #acc3d6; --soft: #3d5063; --rail: #7d93a6; --hair: rgba(11,11,11,.16);
        --ease: cubic-bezier(.2,.7,.2,1); --fs: 11px; --lh: 16px; }
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--paper); font: 400 var(--fs)/var(--lh) "Geist Mono", ui-monospace, monospace; letter-spacing: .02em; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
.k { color: var(--soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the wall's paper grain: one large uneven sheet, never a repeating tile */
.paper { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url("img/paper-grain.jpg") center / cover;
         mix-blend-mode: overlay; opacity: .42; }

/* ---------- header: name and title alone top left; menu, place and contact top right ---------- */
.site-name { position: fixed; top: 16px; left: 24px; z-index: 40; }
.site-name b { font-weight: 500; display: block; } .site-name span { display: block; color: var(--soft); }
.site-nav { position: fixed; top: 16px; right: 24px; z-index: 40; display: grid; grid-auto-flow: column; gap: 56px; align-items: start; }
.site-nav .col { display: grid; justify-items: start; }

/* the hover: a small dot appears and the word steps aside for it; the page you're on keeps its dot */
.dotlink { position: relative; display: inline-block; transition: transform .45s var(--ease); }
.dotlink::before { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-radius: 50%;
  background: currentColor; transform: scale(0); transition: transform .45s var(--ease); }
.dotlink:hover, .dotlink[aria-current] { transform: translateX(10px); }
.dotlink:hover::before, .dotlink[aria-current]::before { transform: scale(1); }
@media (hover: none) { .dotlink:hover:not([aria-current]) { transform: none; } .dotlink:hover:not([aria-current])::before { transform: scale(0); } }

/* ---------- the open blank (from the team deck: origins_, signs_): only at thresholds ---------- */
.blank { display: inline-flex; align-items: baseline; text-transform: none; letter-spacing: .02em; }
.blank .u { display: inline-block; width: .62em; height: 1px; margin-left: 1px; background: currentColor; transform: translateY(1px);
  animation: blank-wait 2.4s ease-in-out infinite; transition: width .6s var(--ease); }
a.blank:hover .u, a.blank:focus-visible .u { width: 3.2em; animation: none; opacity: 1; }
@keyframes blank-wait { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }

/* ---------- glassine: one material, used for reveals ---------- */
.sheet { position: absolute; background: rgba(236, 242, 246, .34);
  -webkit-backdrop-filter: blur(7px) saturate(.85) brightness(1.06); backdrop-filter: blur(7px) saturate(.85) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(11,11,11,.05); }

/* ---------- the tiny dot cursor (kept from the earlier site) ---------- */
@media (hover: hover) and (pointer: fine) { html.cur, html.cur * { cursor: none !important; } }
.cursor { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; z-index: 2147482000; pointer-events: none;
  background: #fff; mix-blend-mode: difference; opacity: 0;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .3s ease; }
.cursor.on { opacity: 1; }
.cursor span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 400 9px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .04em; color: #fff; opacity: 0; transition: opacity .25s ease; }
.cursor.view span { opacity: 1; }
.cursor.link { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.cursor.down { width: 4px; height: 4px; margin: -2px 0 0 -2px; }

/* ---------- the lightbox: any photograph, large, on the same pale wall ---------- */
img.zoom { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 2147481000; display: grid; grid-template-rows: 1fr auto; padding: 24px 24px 16px; gap: 14px;
      background: rgba(172, 195, 214, .97); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.lb.on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.lb img { align-self: center; justify-self: center; max-width: 100%; max-height: calc(100svh - 80px); width: auto; height: auto; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.lb-n { color: var(--soft); } .lb-cap { flex: 1; }
.lb-nav { display: flex; gap: 24px; }
.lb button { all: unset; cursor: pointer; color: var(--soft); } .lb button:hover, .lb button:focus-visible { color: var(--ink); }
.lb.one .lb-prev, .lb.one .lb-next, .lb.one .lb-n { display: none; }
html.lb-open { overflow: hidden; }

@media (max-width: 760px) {
  .lb { padding: 16px 16px 20px; }
  .lb-bar { flex-wrap: wrap; row-gap: 6px; } .lb-cap { order: 3; flex-basis: 100%; }
  .site-name { position: absolute; left: 16px; }
  .site-nav { position: absolute; top: 62px; left: 16px; right: 16px; gap: 28px; }
  .site-nav .hide-s { display: none; }
  .site-nav { justify-content: space-between; right: auto; width: min(calc(48 * (1ch + .02em)), calc(100% - 32px)); }
      /* the header block is exactly as wide as the 48-character title line, so EMAIL ends where IMAGE ends */
  .site-nav .col:last-child { justify-items: end; text-align: right; }
}
@media (max-width: 360px) { .site-nav { top: 78px; } }   /* very small phones: the title wraps to two lines, so the menu sits lower */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
