@font-face{font-family:'Grenze';font-weight:600;src:url(vellum/fonts/Grenze-600.woff2) format('woff2');font-display:block}
@font-face{font-family:'Share Tech Mono';src:url(vellum/fonts/ShareTechMono.woff2) format('woff2');font-display:block}
:root{--ink:#1c1018;--paper:#f6f2f5}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html{background:#f3eff2}
body{background:#f3eff2;color:var(--ink);font-family:'Share Tech Mono',monospace;overflow-x:hidden}
#site{zoom:var(--k,1)}
.sheet{position:relative;margin:0 auto}
.sheet>img.bake{position:absolute;left:0;top:0;width:100%;height:100%;
}
html[data-l=desk] .sheet>img.bake{left:-420px;width:calc(100% + 840px)}
.sheet>img.bake{z-index:0;pointer-events:none;user-select:none;-webkit-user-drag:none}
.abs,.frame,.cap,.rule{position:absolute}
.lbl{letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.title{font-family:'Grenze',serif;font-weight:600;line-height:.9;white-space:nowrap}
.txt{letter-spacing:.01em} .txt p{margin-bottom:.9em} .list div{white-space:nowrap}
.cap{letter-spacing:.02em} .cap small{display:block;letter-spacing:.12em;text-transform:uppercase}
.lk{display:inline-block;padding:1px 6px;margin:0 -6px;letter-spacing:.1em;white-space:nowrap}
.lk b{font-weight:400;margin-left:10px;font-size:.82em}
/* the scan image shows everything; the live layer is invisible text for reading, selecting and clicking */
.sheet *:not(img){color:transparent!important;border-color:transparent!important;outline-color:transparent!important;background:transparent!important}
.rule,.frame::before{display:none}
::selection{background:rgba(28,16,24,.22)}
a{text-decoration:none;cursor:pointer}
.sheet a.lk:hover,.sheet a.lk:focus-visible{background:var(--ink)!important;outline:none}
.sheet a.lk:hover,.sheet a.lk:hover *,.sheet a.lk:focus-visible,.sheet a.lk:focus-visible *{color:#f6f2f5!important}
.vid{cursor:pointer;z-index:2}
.vid img.color{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s;display:block}
.vid:hover img.color,.vid:focus-visible img.color{opacity:1}
.vid .play{display:none}
/* player */
#player{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center}
#player .scrim{position:absolute;inset:0;background:rgba(28,16,24,.78)}
#player .sheetp{position:relative;background:#f6f2f5 url(vellum/paper.jpg) 0 0/900px;padding:16px 16px 60px;border:2px solid #1c1018;outline:2px solid #1c1018;outline-offset:8px}
#player .sheetp.h{width:min(1100px,90vw)} #player .sheetp.h .fr{aspect-ratio:16/9}
#player .sheetp.v{height:min(84vh,900px)} #player .sheetp.v .fr{height:calc(min(84vh,900px) - 78px);aspect-ratio:9/16}
#player .fr{position:relative;background:#000} #player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
#player .pt{position:absolute;left:18px;right:130px;bottom:16px;font:20px/28px 'Share Tech Mono',monospace;letter-spacing:.04em;color:#1c1018;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#player .cl{position:absolute;right:16px;bottom:12px;font:20px 'Share Tech Mono',monospace;letter-spacing:.1em;background:none;border:0;color:#1c1018;cursor:pointer}
#player .cl:hover{background:#1c1018;color:#f6f2f5}

#site{position:relative}
#ghost{position:absolute;left:0;top:0;width:100%;pointer-events:none;opacity:0;mix-blend-mode:multiply;z-index:5;will-change:transform,opacity}
#ghost .gsheet{position:relative;margin:0 auto}
#ghost .gsheet img{position:absolute;left:0;top:0;width:100%;height:100%;image-rendering:pixelated}
html[data-l=desk] #ghost .gsheet img{left:-420px;width:calc(100% + 840px)}

/* looping reel: live video on the scanned page; its white background multiplies into the paper */
.sheet .hero{visibility:visible;mix-blend-mode:multiply}
.hero video{display:block;width:100%;height:100%;object-fit:contain;filter:grayscale(1) brightness(1.05) contrast(1.1);transition:filter .35s}
.sheet .hero{cursor:pointer}
.hero:hover video,.hero.on video{filter:brightness(1.05) contrast(1.05) saturate(.95)}

/* light / dark switch: drawn in the scan; the live layer has the same box so each half takes its own clicks */
.sheet .mode{display:flex;border:2px solid;letter-spacing:.14em;white-space:nowrap;z-index:3}
.sheet .mode span{padding:5px 12px 4px;cursor:pointer}
.sheet .mode span:hover,.sheet .mode span:focus-visible{outline:2px solid var(--ink)!important;outline-offset:3px}

/* ---- dark mode (toggle adds html.dark): near-black paper, off-white ink, scans swapped to vellum_bake_dark/ ---- */
html.dark{--ink:#e8dee4;--paper:#1a1419}
html.dark,html.dark body{background:#191418}
html.dark ::selection{background:rgba(232,222,228,.25)}
html.dark .sheet a.lk:hover,html.dark .sheet a.lk:focus-visible{background:#e8dee4!important}
html.dark .sheet a.lk:hover,html.dark .sheet a.lk:hover *,html.dark .sheet a.lk:focus-visible,html.dark .sheet a.lk:focus-visible *{color:#1a1419!important}
html.dark #player .scrim{background:rgba(6,4,6,.82)}
html.dark #player .sheetp{background:#1d171c;border-color:#e8dee4;outline-color:#e8dee4}
html.dark #player .pt,html.dark #player .cl{color:#e8dee4}
html.dark #player .cl:hover{background:#e8dee4;color:#1a1419}
html.dark #ghost{mix-blend-mode:screen}
/* loops were re-rendered on black, so screen drops their background into the paper; the framed tile stays opaque */
html.dark .sheet .hero{mix-blend-mode:screen}
html.dark .sheet .hero.tile{mix-blend-mode:normal}
