/* VOICE quiet, precise. IDEA void's graph-paper lattice: zoom halves/doubles the step, everything snaps to points, links route orthogonally.
   PICTURE "hello" drawn on the lattice as orthogonal strokes; notes pinned to points around it. COLOUR paper, blue rules, ink, one red.
   TYPE Newsreader for notes, JetBrains Mono for coordinates. LAYOUT full-bleed canvas. */
:root{--paper:#fbfbf9;--rule:#2b6cb0;--ink:#151a24;--dim:#7b8190;--acc:#e0402b}
*{box-sizing:border-box;min-width:0}
html,body{margin:0;height:100%;overflow:hidden;background:var(--paper);color:var(--ink)}
canvas{position:fixed;inset:0;width:100%;height:100%;cursor:grab;touch-action:none}
canvas.drag{cursor:grabbing}
.hud{position:fixed;font:12px "JetBrains Mono",ui-monospace,monospace;color:var(--dim)}
.tl{top:20px;left:24px}.tl b{display:block;font:400 22px Newsreader,Georgia,serif;color:var(--ink);margin-bottom:2px}
.tr{top:22px;right:24px;text-align:right}
.br{bottom:22px;right:24px}
.hint{bottom:24px;left:50%;transform:translateX(-50%);white-space:nowrap}
@media(max-width:600px){.hint{display:none}}
@media(pointer:coarse){.hint{display:block}}
@media(pointer:coarse) and (max-width:600px){.hint{bottom:58px}}
.sub{display:block}.bl{left:24px;bottom:22px}.links{display:flex;gap:14px;pointer-events:auto}
.links svg{width:22px;height:22px;display:block;fill:currentColor}.links a{display:grid;place-items:center;width:32px;height:32px;margin:-5px}
.links a{color:var(--dim);text-decoration:none;border-bottom:1px solid transparent}
.links a:hover,.links a:focus-visible{color:rgb(37,99,235);border-color:currentColor;outline:none}
.post{position:fixed;left:0;top:0;width:min(520px,calc(100vw - 48px));opacity:0;transition:opacity .6s;pointer-events:auto;background:color-mix(in srgb,var(--paper) 88%,transparent)}
.post.on{opacity:1}.post{cursor:grab;user-select:text;-webkit-user-select:text;touch-action:none}.post.lx-tx{cursor:text}.post.lx-tx a{cursor:pointer}.post img{user-select:none;-webkit-user-select:none}.post.drag{cursor:grabbing;box-shadow:0 10px 30px rgba(21,26,36,.12)}.post a{cursor:pointer}
.post .meta{font:12px "JetBrains Mono",ui-monospace,monospace;color:var(--dim)}
.post h2{font:400 26px/1.15 Newsreader,Georgia,serif;margin:6px 0 8px;text-wrap:balance}
.post h2 a{color:var(--ink);text-decoration:none}.post h2 a:hover{color:rgb(37,99,235)}
.post p{font:17px/1.55 Newsreader,Georgia,serif;color:#3b4150;margin:0 0 10px}
.post .more{font:13px "JetBrains Mono",ui-monospace,monospace;color:rgb(37,99,235);text-decoration:none}
.post .more:hover{text-decoration:underline}
/* logged-in: keep top HUD clear of the WP admin bar */
body.admin-bar .tl{top:calc(20px + var(--wp-admin--admin-bar--height,32px))}
body.admin-bar .tr{top:calc(22px + var(--wp-admin--admin-bar--height,32px))}
.post .thumb{display:block;margin:0 0 12px;line-height:0}
.post .thumb img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block;-webkit-user-drag:none}
/* full-content cards (image-format posts): words, then pictures side by side */
.post .entry p{margin:0 0 12px}
.post .entry figure{margin:0}
.post .entry .wp-block-gallery{display:flex;gap:4px;margin:0;padding:0;list-style:none}
.post .entry .wp-block-gallery>figure{flex:1 1 0;margin:0}
.post .entry img{width:100%;height:auto;display:block;-webkit-user-drag:none}

.post{transform-origin:0 0}

/* the page owns touch: no browser scroll, bounce or page zoom; pan and pinch move the lattice */
html,body{touch-action:none;overscroll-behavior:none}
.post img{pointer-events:none}
/* corner labels sit on a paper backing so posts sliding under them stay legible */
.hud{z-index:2;background:var(--paper);padding:4px 8px;margin:-4px -8px}
.hud.bl{padding:6px 8px}

.post.arch{display:none}html.lx-archive .post.arch{display:block}
.post .plink{color:var(--dim);text-decoration:none}.post .plink:hover{color:rgb(37,99,235)}

/* mobile fixes (dev: 'mobile'): narrow or touch screens drop the coordinates, zoom readout and hint */
@media(max-width:700px),(pointer:coarse){html.lx-m .tr,html.lx-m .br,html.lx-m .hint{display:none!important}}
