/* nikoladenic.dev/blog: the same night as behind the gate, and the writing in an ASCII-framed window (sky.js). */
/* the night itself is the page's background, the same as the gate's, so nothing flashes between the two pages */
html{height:100%;background:#04070f linear-gradient(#04070f,#16203a) fixed}
body{margin:0;height:100%;overflow:hidden;-webkit-font-smoothing:antialiased}
/* the command line above the status line: `cd` is typed here on the way to another page */
.cmdline{position:fixed;z-index:3;left:max(20px,env(safe-area-inset-left));bottom:calc(env(safe-area-inset-bottom,0px) + 36px);margin:0;pointer-events:none;
  font:400 12px/18px "IBM Plex Mono",ui-monospace,Menlo,monospace;color:#7fbf7a;text-shadow:0 1px 10px #060a14,0 0 2px #060a14;white-space:pre}
.js .term-box:not(.placed),.arriving .term-box{visibility:hidden}
#scene{position:fixed;left:0;top:0;width:100%;height:100vh;height:100lvh;display:block;pointer-events:none}
#lvh{position:absolute;left:0;top:0;width:0;height:100vh;height:100lvh;visibility:hidden;pointer-events:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.prompt{color:#7fbf7a;margin-right:.6ch}
.hero{position:fixed;left:max(20px,env(safe-area-inset-left));top:calc(env(safe-area-inset-top,0px) + 28px);z-index:1;margin:0;
  display:flex;flex-direction:column;gap:12px;color:#f7f5f0;text-shadow:0 1px 18px #060a14,0 0 2px #060a14;pointer-events:none}
.eyebrow{margin:0;font:500 12px/16px "IBM Plex Mono",ui-monospace,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase;color:#e2ad55}
.hero h1{margin:0;font:400 clamp(3rem,7.4vw,5.25rem)/.95 "Instrument Serif",Georgia,"Times New Roman",serif;letter-spacing:-.02em}

/* the way between the pages: a tmux status line at the bottom, the same on both pages; the window that is open is lit */
.tmux{position:fixed;left:0;right:0;bottom:0;z-index:6;display:flex;align-items:center;gap:1ch;margin:0;box-sizing:border-box;
  height:calc(26px + env(safe-area-inset-bottom,0px));padding:0 max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom,0px) max(12px,env(safe-area-inset-left));
  font:500 12px/26px "IBM Plex Mono",ui-monospace,Menlo,monospace;color:#aea69c;background:rgba(6,9,16,.92);border-top:1px solid #1f2a40}
.tmux .sess{color:#7fbf7a;margin-right:.5ch}
.tmux .win{color:#aea69c;text-decoration:none;padding:0 .7ch;white-space:nowrap}
.tmux .win:hover{color:#ece5d4}
.tmux .win.on{background:#7fbf7a;color:#0b0d12}
.tmux .win:focus-visible{outline:2px solid #e2ad55;outline-offset:1px}
.tmux .clock{margin-left:auto;white-space:nowrap}
@media (max-width:420px){.tmux .date{display:none}}

/* boxes with an ASCII frame (drawn by sky.js on the canvas inside) and a dark see-through background */
.box{position:relative;box-sizing:border-box;background:rgba(8,10,16,.72)}
.box>canvas.frame{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
/* the writing, in a window under the name, over the plain night sky; it scrolls inside when it is longer */
.term-box{position:fixed;z-index:2;display:flex;flex-direction:column;padding:30px 24px 28px}
.term{position:relative;flex:1 1 auto;min-height:0;margin:0;overflow-y:auto;overscroll-behavior:contain;outline:none;padding:0 4px;
  font:400 15px/24px "IBM Plex Mono",ui-monospace,Menlo,monospace;color:#ece5d4;scrollbar-width:thin;scrollbar-color:#6b6158 transparent}
.term.scrolls{-webkit-mask-image:linear-gradient(transparent,#000 14px,#000 calc(100% - 14px),transparent);mask-image:linear-gradient(transparent,#000 14px,#000 calc(100% - 14px),transparent)}
.term h2{margin:0 0 4px;font:500 15px/24px "IBM Plex Mono",ui-monospace,Menlo,monospace;color:#d9d1c1}
.term h2:not(:first-of-type){margin-top:26px}
.term .lead{margin:0 0 14px;color:#aea69c;font-size:13px;line-height:20px}
.cards{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr))}
.card{padding:24px 24px 22px;display:flex;flex-direction:column;gap:8px;background:rgba(8,10,16,.55);transition:background-color .2s}
.card:hover,.card:focus-within{background:rgba(20,22,30,.85)}
.card p{margin:0}
.card .meta{font-size:12px;line-height:16px;letter-spacing:.04em;color:#aea69c}
.card .src{color:#e2ad55}
.card h3{margin:0;font:400 clamp(1.3rem,1.7vw,1.55rem)/1.15 "Instrument Serif",Georgia,"Times New Roman",serif;color:#f7f5f0;text-wrap:balance}
.card h3 a{color:inherit;text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0}   /* the whole card is the link */
.card h3 a:focus-visible{outline:none}
.card:focus-within{outline:2px solid #e2ad55;outline-offset:2px}
.card .tags{font-size:12px;line-height:16px;color:#7fbf7a}
@media (max-width:760px){.term{font-size:13px;line-height:20px}.term-box{padding:26px 18px 22px}.card{padding:22px 20px 20px}}
@media (prefers-reduced-motion:reduce){.card{transition:none}}
