@font-face{font-family:'Archivo';font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;src:url(/fonts/archivo-wdth.woff2) format('woff2-variations'),url(/fonts/archivo-wdth.woff2) format('woff2')}
:root{
  --lume-bg:#F4F4F1; --lume-surface:#EAEAE5; --lume-white:#FFFFFF; --lume-border:#DCDCD5; --lume-border-dark:#C4C4BB;
  --lume-text:#16181C; --lume-text-muted:#585B62; --lume-text-subtle:#60636A;
  --lume-font-sans:'Archivo',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --rail:#16181C; --c:#16181C;
  --brand:#1EA7FF; --brand-deep:#0868BD; --dm-body:#16181C; --dm-accent:#1EA7FF;
  box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 1rem);scroll-behavior:smooth}
html[data-theme="dark"]{
  --dm-body:#383C44;--dm-shadow:.55;
  --lume-bg:#111214; --lume-surface:#17181B; --lume-white:#1D1F23; --lume-surface-overlay:#25272C;
  --lume-border:#2A2C31; --lume-border-dark:#3B3E44; --lume-text:#EEEEEA; --lume-text-muted:#A1A3A8; --lume-text-subtle:#94969B;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;--lume-bg:#111214;--lume-surface:#17181B;--lume-white:#1D1F23;--lume-border:#2A2C31;--lume-text:#EEEEEA;--lume-text-muted:#A1A3A8}}
body{background:var(--lume-bg);color:var(--lume-text)}

/* Each chapter sets its own colour; the rail follows the chapter in view */
[data-ch="intro"]{--c:#16181C;--c-ink:#16181C;--c-soft:#E4E4DE}
[data-ch="lume"]{--c:#5B5BD6;--c-ink:#2A2A78;--c-soft:#E6E6F8}
[data-ch="seat"]{--c:#B86E00;--c-ink:#4F3204;--c-soft:#F7E8CF}
[data-ch="ticket"]{--c:#C2185B;--c-ink:#5A0B2C;--c-soft:#F8DCE7}
[data-ch="up"]{--c:#16884A;--c-ink:#0C3D23;--c-soft:#D8F0E2}
[data-ch="ai"]{--c:#0868BD;--c-ink:#052E54;--c-soft:#DCEDFC}
[data-ch="work"]{--c:#16181C;--c-ink:#16181C;--c-soft:#E4E4DE}
html[data-theme="dark"] [data-ch="intro"],html[data-theme="dark"] [data-ch="work"]{--c:#EEEEEA;--c-ink:#000000;--c-soft:#24262A}
html[data-theme="dark"] [data-ch="lume"]{--c:#8E8EF0;--c-soft:#22224A}
html[data-theme="dark"] [data-ch="seat"]{--c:#F0A93A;--c-soft:#3A2A10}
html[data-theme="dark"] [data-ch="ticket"]{--c:#F06A9E;--c-soft:#3D1426}
html[data-theme="dark"] [data-ch="up"]{--c:#4CCB84;--c-soft:#123222}
html[data-theme="dark"] [data-ch="ai"]{--c:#1EA7FF;--c-soft:#0D2740}
[data-ch="labs"]{--c:#0868BD;--c-ink:#052E54;--c-soft:#DCEDFC}
html[data-theme="dark"] [data-ch="labs"]{--c:#1EA7FF;--c-soft:#0D2740}
.chap,.page{--lume-accent:var(--c);--lume-accent-fill:var(--c);--lume-accent-fill-hover:var(--c-ink);--lume-accent-light:var(--c-soft)}
html[data-theme="dark"] .chap .lume-btn-primary,html[data-theme="dark"] .page .lume-btn-primary{color:#111214}

.shell{display:grid;grid-template-columns:minmax(17rem,23rem) minmax(0,1fr);min-height:100vh}

/* ---------- Rail ---------- */
.rail{position:sticky;top:env(safe-area-inset-top,0px);height:calc(100vh - env(safe-area-inset-top,0px));background:var(--c-ink);color:#F4F4F1;
  display:flex;flex-direction:column;padding:2rem 1.75rem;transition:background-color .6s ease;overflow-y:auto}
.rail a{color:inherit}
.rail .who{font-stretch:125%;font-weight:800;font-size:1.65rem;line-height:1;letter-spacing:-.02em;text-decoration:none}
/* Wordmark prompt ">_" opens the shell: only the underscore blinks, off for reduced motion (global rule below) */
.rail .brand{font-size:1.65rem;line-height:1}
.rail .cur{font:inherit;font-stretch:125%;font-weight:800;font-size:1.65rem;line-height:1;color:var(--brand);background:none;border:0;padding:0 .12em;margin-left:.1em;vertical-align:baseline;cursor:pointer;border-radius:4px;white-space:nowrap}
.rail .cur .blink{animation:blink 1.1s steps(1) infinite}
.rail .cur:hover .blink,.rail .cur:focus-visible .blink{animation:none}
.rail .cur:focus-visible{outline:2px solid #fff;outline-offset:2px}
@keyframes blink{50%{opacity:0}}
.rail .what{margin-top:.75rem;color:rgba(244,244,241,.72);font-size:.98rem;line-height:1.5;max-width:17rem}
.idx{list-style:none;margin-top:2.75rem;display:grid}
.idx a{position:relative;display:block;padding:.6rem 0 .6rem 1rem;text-decoration:none;border-bottom:1px solid rgba(244,244,241,.12);color:rgba(244,244,241,.72);transition:color .2s ease}
/* Active marker: a short bar in the left gutter, so text never shifts */
.idx a::before{content:"";position:absolute;left:0;top:.7rem;bottom:.7rem;width:3px;border-radius:2px;background:#fff;transform:scaleY(0);transition:transform .25s ease}
.idx a b{display:block;font-weight:500;font-stretch:100%;font-size:1.05rem;letter-spacing:-.005em;line-height:1.25;transition:font-weight .25s ease,font-stretch .25s ease}
.idx a small{display:block;margin-top:.15rem;font-size:.84rem;line-height:1.3;color:rgba(244,244,241,.64);transition:color .2s ease}
.idx a:hover{color:#fff}
.idx a:hover small{color:rgba(244,244,241,.8)}
.idx a[aria-current="true"]{color:#fff}
.idx a[aria-current="true"]::before{transform:scaleY(1)}
.idx a[aria-current="true"] b{font-weight:800;font-stretch:118%}
.idx a[aria-current="true"] small{color:rgba(244,244,241,.85)}
.idx a:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:4px}
.rail .foot{margin-top:auto;padding-top:2rem;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.rail .cta{background:#F4F4F1;color:#16181C;border-color:#F4F4F1}
.rail .cta:hover{background:#fff;color:#16181C}
.rail .ghost{color:#F4F4F1;border:1px solid rgba(244,244,241,.3);background:transparent}
.rail .ghost:hover{background:rgba(255,255,255,.08);color:#fff}
.ico{width:18px;height:18px}
[data-theme="dark"] .moon,[data-theme="light"] .sun{display:none}

/* ---------- Chapters ---------- */
.chap{padding:clamp(3rem,7vw,6rem) clamp(1.25rem,5vw,4.5rem);border-bottom:1px solid var(--lume-border);min-height:92vh;display:flex;flex-direction:column;justify-content:center}
.chap > *{max-width:58rem}
.kicker{display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600;color:var(--c)}
.kicker::before{content:"";width:1.5rem;height:3px;background:var(--c);border-radius:2px}
.name{margin-top:.75rem;font-stretch:125%;font-weight:800;font-size:clamp(2.75rem,7.5vw,6rem);line-height:.92;letter-spacing:-.035em}
.pitch{margin-top:1rem;font-size:clamp(1.1rem,1.8vw,1.35rem);line-height:1.5;color:var(--lume-text-muted);max-width:40rem}
.demo{margin-top:clamp(2rem,4vw,2.75rem);border:1.5px solid var(--lume-text);border-radius:14px;background:var(--lume-white);overflow:hidden;box-shadow:8px 8px 0 var(--c)}
.demo-bar{flex-wrap:wrap;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1.1rem;border-bottom:1px solid var(--lume-border);background:var(--lume-surface);font-size:.88rem}
.demo-bar b{font-weight:700}
.demo-body{padding:1.25rem}
.demo-note{font-size:.85rem;color:var(--lume-text-muted);margin-top:.9rem}
.facts{margin-top:2rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 2.5rem;list-style:none}
.facts li{padding-left:1.1rem;position:relative;color:var(--lume-text-muted)}
.facts li::before{content:"";position:absolute;left:0;top:.6em;width:.45rem;height:.45rem;background:var(--c);border-radius:1px}
.facts li strong{color:var(--lume-text);font-weight:600}
.acts{margin-top:2rem;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.stack{font-size:.85rem;color:var(--lume-text-muted);margin-left:.5rem}
@media(max-width:700px){.facts{grid-template-columns:1fr}}

/* intro */
.intro h1{font-stretch:125%;font-weight:800;font-size:clamp(2.6rem,6.6vw,5.4rem);line-height:.95;letter-spacing:-.035em;max-width:14ch;text-wrap:balance}
.intro .pitch{margin-top:1.5rem}
.intro .kicker{margin-bottom:1rem}
.why{margin-top:1.75rem;font-size:.95rem;color:var(--lume-text-muted);max-width:40rem;display:flex;align-items:center;gap:1rem}
.why .daemon{flex:none;width:3.6rem;height:auto}
.why b{color:var(--lume-text);font-weight:600}
.shelf{margin-top:clamp(2.5rem,5vw,3.5rem);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--lume-border);border:1px solid var(--lume-border);border-radius:12px;overflow:hidden}
.shelf a{background:var(--lume-white);padding:1.1rem 1.1rem 1.25rem;text-decoration:none;color:var(--lume-text);display:grid;gap:.35rem;border-top:4px solid var(--c)}
.shelf a:hover{background:var(--lume-surface)}
.shelf b{font-stretch:115%;font-weight:800;font-size:1.15rem}
.shelf span{font-size:.88rem;color:var(--lume-text-muted)}
@media(max-width:1200px){.shelf{grid-template-columns:1fr 1fr}.shelf a:last-child:nth-child(odd){grid-column:1/-1}}

/* Lume specimen */
.spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.spec .row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
@media(max-width:600px){.spec{grid-template-columns:1fr}}

/* Seatbookr floor */
.floor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.zone{border:1px dashed var(--lume-border-dark);border-radius:10px;padding:.9rem}
.zone h3{font-size:.8rem;font-weight:600;color:var(--lume-text-muted);margin-bottom:.6rem}
.desks{display:grid;grid-template-columns:repeat(4,1fr);gap:.45rem}
.desk{aspect-ratio:1.4;border-radius:7px;border:1.5px solid var(--lume-border-dark);background:var(--lume-white);font:inherit;font-size:.8rem;font-weight:600;color:var(--lume-text);cursor:pointer}
.desk:hover{border-color:var(--c)}
.desk:focus-visible{outline:2px solid var(--c);outline-offset:2px}
.desk[data-taken]{cursor:not-allowed;color:var(--lume-text-muted);background:repeating-linear-gradient(135deg,var(--lume-surface) 0 5px,transparent 5px 10px)}
.desk[aria-pressed="true"]{background:var(--c);border-color:var(--c);color:#fff}
html[data-theme="dark"] .desk[aria-pressed="true"]{color:#111214}
.days{display:flex;gap:.35rem;flex-wrap:wrap}
.days button{font:inherit;font-size:.82rem;padding:.3rem .65rem;border-radius:999px;border:1px solid var(--lume-border-dark);background:transparent;color:var(--lume-text);cursor:pointer}
.days button[aria-pressed="true"]{background:var(--lume-text);color:var(--lume-bg);border-color:var(--lume-text)}
@media(max-width:600px){.floor{grid-template-columns:1fr}}

/* TicketHub queue */
.tq{list-style:none}
.tq li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:1rem;align-items:center;padding:.8rem 0;border-bottom:1px solid var(--lume-border)}
.tq li:last-child{border-bottom:0}
.tq .t{font-weight:600}
.tq .m{font-size:.82rem;color:var(--lume-text-muted)}
.sla{font-variant-numeric:tabular-nums;font-stretch:85%;font-weight:700;font-size:1.05rem;min-width:4.5rem;text-align:right}
.sla.warn{color:var(--lume-warning)}
.sla.breach{color:var(--lume-danger)}
.tq li.done{opacity:.5}
.tq li.done .t{text-decoration:line-through}
@media(max-width:520px){.tq li{grid-template-columns:1fr auto}.tq li .lume-btn{grid-column:1/-1;justify-self:start}}

/* UpWatch */
.svc{padding:.75rem 0;border-bottom:1px solid var(--lume-border)}
.svc:last-child{border-bottom:0}
.svc-h{display:flex;justify-content:space-between;gap:1rem;font-size:.92rem;margin-bottom:.5rem}
.svc-h b{font-weight:600}
.svc-h span{color:var(--lume-text-muted);font-variant-numeric:tabular-nums}
.bars{display:flex;gap:2px;height:2.1rem}
.bars i{flex:1;border-radius:2px;background:var(--c);opacity:.85}
.bars i.deg{background:var(--lume-warning)}
.bars i.down{background:var(--lume-danger)}
.bars i:hover{opacity:1;transform:scaleY(1.12)}
.status-ok{display:flex;align-items:center;gap:.5rem;font-weight:600}
.status-ok::before{content:"";width:.6rem;height:.6rem;border-radius:50%;background:var(--c);box-shadow:0 0 0 4px var(--c-soft)}

/* work + contact */
.offer{margin-top:2rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem 2.5rem}
.offer h3{font-stretch:110%;font-weight:700;font-size:1.15rem;margin-bottom:.35rem}
.offer p{color:var(--lume-text-muted)}
@media(max-width:860px){.offer{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.offer{grid-template-columns:1fr}}
.flow{list-style:none;margin-top:2.5rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));counter-reset:f;border-top:1.5px solid var(--lume-text)}
.flow li{counter-increment:f;padding:1rem 1.25rem 0 0}
.flow li::before{content:counter(f);font-stretch:125%;font-weight:800;font-size:1.6rem;display:block;margin-bottom:.4rem}
.flow b{display:block;font-weight:700;margin-bottom:.2rem}
.flow span{color:var(--lume-text-muted);font-size:.95rem}
@media(max-width:760px){.flow{grid-template-columns:1fr 1fr;row-gap:1.5rem}}
.form{margin-top:2rem;display:grid;gap:1rem;max-width:44rem}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form .lume-error-message{display:none}
.form .bad .lume-error-message{display:block}
.form .bad .lume-input,.form .bad .lume-textarea{border-color:var(--lume-danger)}
@media(max-width:520px){.row2{grid-template-columns:1fr}}
.sitefoot{padding:2rem clamp(1.25rem,5vw,4.5rem) 2.5rem;font-size:.88rem;color:var(--lume-text-muted);display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between}
.sitefoot a{color:inherit}

/* Live demo / screenshots switch */
.demo-switch{display:flex;gap:.25rem;padding:.4rem;border-bottom:1px solid var(--lume-border);background:var(--lume-bg)}
.demo-switch button{font:inherit;font-size:.85rem;font-weight:600;padding:.4rem .85rem;border-radius:7px;border:0;background:transparent;color:var(--lume-text-muted);cursor:pointer}
.demo-switch button[aria-selected="true"]{background:var(--lume-white);color:var(--lume-text);box-shadow:var(--lume-shadow-xs)}
.demo-switch button:focus-visible{outline:2px solid var(--c);outline-offset:1px}
.demo.show-shots > .demo-bar,.demo.show-shots > .demo-body{display:none}
.shots{display:none;padding:1.1rem}
.demo.show-shots .shots{display:block}
.shot-main{display:block;width:100%;padding:0;border:1px solid var(--lume-border);border-radius:8px;overflow:hidden;cursor:zoom-in;background:var(--lume-surface)}
.shot-main img,.shot-big img{display:block;width:100%;height:auto;aspect-ratio:16/10}
.shot-main:focus-visible{outline:2px solid var(--c);outline-offset:3px}
html[data-theme="dark"] .light-only,html[data-theme="light"] .dark-only{display:none!important}
.shot-cap{display:flex;justify-content:space-between;align-items:center;gap:.75rem 1rem;flex-wrap:wrap;margin-top:.75rem;font-size:.88rem;color:var(--lume-text-muted)}
.shot-thumbs{display:flex;gap:.4rem;flex-wrap:wrap}
.shot-thumbs button{font:inherit;font-size:.82rem;padding:.3rem .7rem;border-radius:999px;border:1px solid var(--lume-border-dark);background:transparent;color:var(--lume-text);cursor:pointer}
.shot-thumbs button[aria-pressed="true"]{background:var(--c);border-color:var(--c);color:#fff}
html[data-theme="dark"] .shot-thumbs button[aria-pressed="true"]{color:#111214}
#shot-modal .lume-modal{max-width:min(1200px,94vw);width:100%}
.shot-big{border-radius:8px;overflow:hidden;border:1px solid var(--lume-border)}

/* How I work */
.engage{margin-top:3rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.engage article{border:1.5px solid var(--lume-text);border-radius:12px;padding:1.4rem;background:var(--lume-white)}
.engage h3{font-stretch:110%;font-weight:800;font-size:1.2rem;margin-bottom:.15rem}
.engage .fit{font-size:.85rem;font-weight:600;color:var(--lume-text-muted);margin-bottom:.6rem}
.engage p{color:var(--lume-text-muted);font-size:.97rem}
.details{margin-top:1.5rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem 2rem;padding:1.25rem 0;border-top:1px solid var(--lume-border);border-bottom:1px solid var(--lume-border)}
.details dt{font-size:.82rem;color:var(--lume-text-muted)}
.details dd{font-weight:600;margin-top:.15rem}
@media(max-width:900px){.engage{grid-template-columns:1fr}.details{grid-template-columns:1fr 1fr}}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
/* Skip link: hidden until focused, then a visible pill over the rail */
.skip:focus{position:fixed;left:1rem;top:1rem;z-index:1000;width:auto;height:auto;margin:0;padding:.6rem 1rem;clip:auto;overflow:visible;white-space:nowrap;background:var(--lume-white);color:var(--lume-text);border-radius:8px;box-shadow:0 4px 18px rgba(0,0,0,.25);outline:2px solid var(--brand-deep);outline-offset:2px;font-weight:700}
/* Lume's modal close button is narrower than the 24px minimum target */
.lume-modal-close{min-width:2rem;min-height:2rem}
.privacy{display:inline-flex;align-items:center;gap:.45rem}
.privacy::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:#16884A}

/* ---------- Mobile: rail becomes a header + sticky chapter bar ---------- */
.mbar{display:none}
@media(max-width:900px){
  html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 3.75rem)}
  .shell{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;height:auto;padding:1.5rem 1.25rem 1.25rem}
  .idx{display:none}
  .rail .foot{padding-top:1.25rem}
  .mbar{display:flex;position:sticky;top:env(safe-area-inset-top,0px);z-index:50;gap:.4rem;overflow-x:auto;scrollbar-width:none;padding:.6rem 1.25rem;background:var(--c-ink);transition:background-color .6s ease}
  .mbar a{flex:none;color:rgba(244,244,241,.7);text-decoration:none;font-size:.88rem;font-weight:600;padding:.35rem .75rem;border-radius:999px}
  .mbar a[aria-current="true"]{background:#F4F4F1;color:#16181C}
  .chap{min-height:auto}
  .demo{box-shadow:5px 5px 0 var(--c)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
.lume-toast-container{bottom:env(safe-area-inset-bottom,0px)}

/* Blog link sits apart from the chapters */
.idx li:not(.out) + li.out{margin-top:1.5rem}
.idx li.out a{border-top:1px solid rgba(244,244,241,.12)}

/* ---------- AI tooling chapter ---------- */
.xr-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.xr-stats{display:flex;gap:1.75rem;flex-wrap:wrap}
.xr-stats dt{font-size:.78rem;color:var(--lume-text-muted)}
.xr-stats dd{font-variant-numeric:tabular-nums;font-stretch:85%;font-weight:700;font-size:1.15rem}
.xr-grid{display:grid;grid-template-columns:repeat(32,minmax(0,1fr));gap:3px}
.xr-grid i{aspect-ratio:1;border-radius:2px;background:var(--lume-surface);box-shadow:inset 0 0 0 1px var(--lume-border)}
.xr-grid i.run{background:var(--c-soft);box-shadow:inset 0 0 0 1.5px var(--c)}
.xr-grid i.done{background:var(--c);box-shadow:none}
.xr-grid i.retry,.xr-grid i.rt{background:var(--lume-warning);box-shadow:none}
.xr-log{list-style:none;margin-top:1rem;height:9.5rem;overflow-y:auto;padding:.6rem .8rem;border-radius:8px;background:var(--lume-surface);border:1px solid var(--lume-border);
  font-family:ui-monospace,'Cascadia Mono',Consolas,Menlo,monospace;font-size:.78rem;line-height:1.6}
.xr-log li{white-space:pre-wrap;overflow-wrap:anywhere}
.xr-log time{color:var(--lume-text-muted);margin-right:.9em}
.xr-log .warn{color:var(--lume-warning)}
.xr-log .ok{color:var(--c);font-weight:600}
.tools{margin-top:2rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.tools article{border:1.5px solid var(--lume-text);border-radius:12px;padding:1.3rem 1.4rem;background:var(--lume-white)}
.tools h3{font-stretch:110%;font-weight:800;font-size:1.2rem;margin-bottom:.4rem}
.tools p{color:var(--lume-text-muted);font-size:.97rem}
@media(max-width:1100px){.tools{grid-template-columns:1fr}}
@media(max-width:700px){.xr-grid{grid-template-columns:repeat(16,minmax(0,1fr))}}

/* ---------- Blog ---------- */
.page{padding:clamp(3rem,7vw,6rem) clamp(1.25rem,5vw,4.5rem);border-bottom:1px solid var(--lume-border);min-height:80vh}
.page > *{max-width:46rem}
.page h1.name{font-size:clamp(2.3rem,5vw,4.2rem);line-height:.95;text-wrap:balance}
article.page h1.name{font-size:clamp(2.1rem,4.2vw,3.4rem);line-height:1}
.posts{list-style:none;margin-top:clamp(2rem,5vw,3rem);border-top:1.5px solid var(--lume-text)}
.posts li{padding:1.5rem 0;border-bottom:1px solid var(--lume-border)}
.posts h2{font-stretch:112%;font-weight:800;font-size:clamp(1.35rem,2.6vw,1.75rem);line-height:1.15;letter-spacing:-.015em}
.posts h2 a{color:var(--lume-text);text-decoration:none}
.posts h2 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.15em}
.posts p{margin-top:.5rem;color:var(--lume-text-muted)}
.meta{display:flex;flex-wrap:wrap;gap:.35rem .9rem;align-items:center;font-size:.88rem;color:var(--lume-text-muted);margin-top:.5rem}
.posts .meta{margin-top:0;margin-bottom:.4rem}
.empty{margin-top:2rem;color:var(--lume-text-muted)}

.prose{margin-top:clamp(2rem,5vw,3rem);font-size:1.08rem;line-height:1.7}
.prose > * + *{margin-top:1.1rem}
.prose h2{margin-top:2.75rem;font-stretch:115%;font-weight:800;font-size:clamp(1.45rem,2.6vw,1.85rem);line-height:1.15;letter-spacing:-.02em}
.prose h3{margin-top:2rem;font-stretch:110%;font-weight:700;font-size:1.2rem}
.prose a{color:var(--lume-text);text-decoration-color:var(--c);text-decoration-thickness:2px;text-underline-offset:.15em}
.prose ul,.prose ol{padding-left:1.4rem}
.prose li + li{margin-top:.4rem}
.prose strong{font-weight:700}
.prose blockquote{border-left:3px solid var(--c);padding-left:1.1rem;color:var(--lume-text-muted)}
.prose code{font-family:ui-monospace,'Cascadia Mono',Consolas,Menlo,monospace;font-size:.88em;background:var(--lume-surface);border:1px solid var(--lume-border);border-radius:4px;padding:.05em .3em}
.prose pre{background:var(--lume-surface);border:1px solid var(--lume-border);border-radius:10px;padding:1rem 1.1rem;overflow-x:auto;font-size:.86rem;line-height:1.55}
.prose pre code{background:none;border:0;padding:0;font-size:inherit}
.prose hr{border:0;border-top:1px solid var(--lume-border);margin:2.5rem 0}
.post-end{margin-top:3rem;padding-top:1.5rem;border-top:1.5px solid var(--lume-text)}
.post-end p{color:var(--lume-text-muted)}

/* ---------- Daemon mascot spots ---------- */
.lost{display:flex;align-items:center;gap:clamp(1.5rem,5vw,3.5rem);flex-wrap:wrap}
.lost .daemon{width:clamp(7rem,18vw,11rem);height:auto;flex:none}
.empty .daemon{width:5rem;height:auto;display:block;margin-bottom:1rem}
.contact{display:grid;grid-template-columns:minmax(0,44rem) 9rem;gap:1rem 2.5rem;align-items:end}
.contact .hello{width:100%;height:auto;margin-bottom:.5rem}
.empty .daemon{width:7rem}
@media(max-width:760px){.contact{grid-template-columns:1fr}.contact .hello{width:6.5rem;order:-1;margin:1.5rem 0 -1rem}}

/* ---------- The shell (easter egg, js/shell.js) ---------- */
.dm-shell{position:fixed;z-index:1000;left:50%;bottom:max(1rem,env(safe-area-inset-bottom,0px));width:min(46rem,calc(100vw - 2rem));max-height:min(28rem,70vh);
  display:flex;flex-direction:column;background:#0D0E10;color:#E6E6E2;border:1px solid #2A2C31;border-top:2px solid #1EA7FF;border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.45);
  --dm-body:#383C44;--dm-accent:#1EA7FF;--dm-shadow:.6;font-family:ui-monospace,'Cascadia Mono',Consolas,Menlo,monospace;font-size:.86rem;line-height:1.55;
  transform:translate(-50%,1.5rem);opacity:0;transition:transform .25s ease,opacity .25s ease}
.dm-shell.on{transform:translate(-50%,0);opacity:1}
.dm-bar{display:flex;justify-content:space-between;align-items:center;padding:.45rem .6rem .45rem .9rem;border-bottom:1px solid #2A2C31;color:#8A8D93;font-size:.78rem}
.dm-x{background:none;border:0;color:#A1A3A8;font-size:1.3rem;line-height:1;cursor:pointer;padding:.1rem .4rem;border-radius:6px}
.dm-x:hover{color:#fff;background:#1D1F23}
.dm-out{flex:1;overflow-y:auto;padding:.7rem .9rem;min-height:9rem}
.dm-l{white-space:pre-wrap;overflow-wrap:anywhere}
.dm-l:empty{min-height:1.55em}
.dm-l a{color:#1EA7FF}
.dm-head{color:#1EA7FF;font-weight:700}
.dm-dim{color:#8A8D93}
.dm-err{color:#F0A93A}
.dm-dir{color:#1EA7FF}
.dm-cmd{margin-top:.35rem;color:#fff}
.dm-pr{color:#1EA7FF}
.dm-art svg{height:7.5rem;width:auto;margin:.4rem 0}
.dm-line{display:flex;gap:.6ch;align-items:center;padding:.55rem .9rem;border-top:1px solid #2A2C31}
.dm-line label{color:#1EA7FF;white-space:nowrap}
.dm-line input{flex:1;min-width:0;background:none;border:0;color:#fff;font:inherit;caret-color:#1EA7FF;outline:none}
.dm-line:focus-within{background:#121317}
.dm-chips{display:none;gap:.4rem;padding:0 .9rem .7rem;overflow-x:auto;scrollbar-width:none}
.dm-chips button{flex:none;font:inherit;font-size:.78rem;color:#E6E6E2;background:#1D1F23;border:1px solid #2A2C31;border-radius:999px;padding:.25rem .7rem;cursor:pointer}
.dm-chips button:focus-visible,.dm-x:focus-visible{outline:2px solid #1EA7FF;outline-offset:1px}
@media(pointer:coarse),(max-width:600px){.dm-chips{display:flex}.dm-line label{display:none}.dm-line::before{content:"$";color:#1EA7FF}.dm-line input{font-size:16px}}

/* ---------- Labs gallery (labs/index.php) ---------- */
.labs-page > .lab-grid,.labs-page > .lab-tags{max-width:72rem}
.lab-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:clamp(1.5rem,3vw,2rem)}
.lab-tags button{font:inherit;font-size:.85rem;font-weight:600;padding:.35rem .8rem;border-radius:999px;border:1px solid var(--lume-border-dark);background:transparent;color:var(--lume-text);cursor:pointer}
.lab-tags button small{color:var(--lume-text-muted);font-weight:500;margin-left:.15rem}
.lab-tags button[aria-pressed="true"]{background:var(--c);border-color:var(--c);color:#fff}
.lab-tags button[aria-pressed="true"] small{color:inherit;opacity:.8}
html[data-theme="dark"] .lab-tags button[aria-pressed="true"]{color:#111214}
.lab-tags button:focus-visible{outline:2px solid var(--c);outline-offset:2px}
.lab-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));gap:1.25rem;margin-top:1.25rem}
.lab-grid a{display:flex;flex-direction:column;height:100%;border:1.5px solid var(--lume-text);border-radius:14px;overflow:hidden;background:var(--lume-white);color:var(--lume-text);text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.lab-grid a:hover{transform:translate(-3px,-3px);box-shadow:6px 6px 0 var(--c)}
.lab-grid a:focus-visible{outline:2px solid var(--c);outline-offset:3px}
.lab-thumb{display:grid;place-items:center;aspect-ratio:16/10;background:var(--c-soft);color:var(--c);font-stretch:125%;font-weight:800;font-size:3rem;border-bottom:1px solid var(--lume-border)}
.lab-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:top left}
.lab-body{display:flex;flex-direction:column;gap:.35rem;padding:.9rem 1rem 1.05rem;flex:1}
.lab-body b{font-stretch:112%;font-weight:800;font-size:1.12rem;line-height:1.2}
.lab-sum{font-size:.92rem;color:var(--lume-text-muted)}
.lab-body small{margin-top:auto;padding-top:.35rem;font-size:.78rem;font-weight:600;color:var(--c)}

/* ---------- One lab, full page (labs/index.php?slug=) ---------- */
body.tool-page{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--lume-bg)}
.tbar{flex:none;display:flex;align-items:center;gap:.4rem .9rem;min-height:3.1rem;padding:.35rem .6rem .35rem .9rem;background:#16181C;color:#F4F4F1;
  border-bottom:2px solid var(--brand);position:relative;z-index:5}
.tbar a{color:inherit;text-decoration:none}
.tb-brand{display:flex;align-items:center;gap:.5rem;font-stretch:118%;font-weight:800;font-size:.95rem;white-space:nowrap}
.tb-brand img{border-radius:6px}
.tb-back{font-size:.86rem;color:rgba(244,244,241,.75)!important;padding:.3rem .55rem;border-radius:7px;white-space:nowrap}
.tb-back:hover,.tb-back:focus-visible{color:#fff!important;background:rgba(255,255,255,.08)}
/* tool switcher: the title opens a drawer of mini cards */
.tb-switch{flex:1;min-width:0;display:flex;padding-left:.6rem;border-left:1px solid rgba(244,244,241,.2)}
.tb-title{display:inline-flex;align-items:center;gap:.4rem;max-width:100%;min-width:0;padding:.35rem .6rem;border-radius:8px;cursor:pointer;list-style:none}
.tb-title::-webkit-details-marker{display:none}
.tb-title h1{font-size:.95rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tb-title:hover,.tb-switch[open] > .tb-title{background:rgba(255,255,255,.1)}
.tb-title:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.tb-chev{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:.75;transition:transform .2s ease}
.tb-switch[open] .tb-chev{transform:rotate(180deg)}
.tb-drawer{position:fixed;left:0;right:0;top:var(--tb-h,3.25rem);bottom:0;z-index:4;background:rgba(13,14,16,.45)}
.tb-drawer-in{max-height:min(34rem,calc(100% - 2rem));overflow-y:auto;padding:1rem clamp(.8rem,3vw,1.6rem) 1.2rem;background:var(--lume-white);color:var(--lume-text);
  border-bottom:1px solid var(--lume-border);box-shadow:0 24px 60px rgba(0,0,0,.35);animation:tb-drop .22s ease}
@keyframes tb-drop{from{transform:translateY(-10px);opacity:0}to{transform:none;opacity:1}}
.tb-drawer-head{display:flex;align-items:baseline;gap:.4rem .9rem;flex-wrap:wrap;margin-bottom:.8rem;max-width:72rem;margin-inline:auto}
.tb-drawer-head b{font-stretch:115%;font-weight:800;font-size:1.05rem}
.tb-drawer-head span{color:var(--lume-text-muted);font-size:.85rem}
.tb-drawer-head a{margin-left:auto;font-size:.85rem;font-weight:600;color:var(--lume-text)!important;text-decoration:underline!important;text-decoration-color:var(--brand)!important;text-underline-offset:.15em}
.tb-cards{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));gap:.6rem;max-width:72rem;margin-inline:auto}
.tb-cards a{display:flex;gap:.75rem;align-items:center;height:100%;padding:.5rem;border:1px solid var(--lume-border);border-radius:12px;background:var(--lume-bg);color:var(--lume-text)!important;transition:border-color .15s ease,transform .15s ease}
.tb-cards a:hover,.tb-cards a:focus-visible{border-color:var(--brand);transform:translateY(-1px)}
.tb-cards a:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.tb-cards a[aria-current="page"]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);background:color-mix(in srgb,var(--brand) 7%,var(--lume-bg))}
.tb-thumb{flex:none;width:6.6rem;aspect-ratio:16/10;border-radius:7px;overflow:hidden;background:var(--lume-surface);display:grid;place-items:center;font-weight:800;font-size:1.4rem;color:var(--brand);border:1px solid var(--lume-border)}
.tb-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:top left}
.tb-ctext{display:grid;gap:.15rem;min-width:0}
.tb-ctext b{font-weight:700;font-size:.92rem;line-height:1.25}
.tb-ctext em{font-style:normal;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--brand);margin-left:.3rem;white-space:nowrap}
.tb-ctext small{font-size:.78rem;line-height:1.35;color:var(--lume-text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tb-acts{display:flex;align-items:center;gap:.35rem}
.tb-btn{display:inline-flex;align-items:center;font:inherit;font-size:.82rem;font-weight:600;padding:.38rem .75rem;border-radius:8px;border:1px solid rgba(244,244,241,.25);background:transparent;color:#F4F4F1;cursor:pointer;white-space:nowrap;list-style:none}
.tb-btn::-webkit-details-marker{display:none}
.tb-btn:hover,.tb-about[open] > .tb-btn{background:rgba(255,255,255,.1);border-color:rgba(244,244,241,.5)}
.tb-btn:focus-visible,.tb-brand:focus-visible,.tb-back:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.tb-icon{padding:.38rem .45rem}
.tb-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tb-about{position:relative}
.tb-pop{position:absolute;right:0;top:calc(100% + .5rem);width:min(26rem,calc(100vw - 1.5rem));padding:1rem 1.1rem;border-radius:12px;background:var(--lume-white);color:var(--lume-text);
  border:1px solid var(--lume-border);box-shadow:0 18px 50px rgba(0,0,0,.3);display:grid;gap:.55rem;font-size:.9rem}
.tb-pop h2{font-stretch:112%;font-weight:800;font-size:1.15rem}
.tb-pop .meta{margin:0}
.tb-muted{color:var(--lume-text-muted)}
.tb-links a{color:var(--lume-text)!important;text-decoration:underline!important;text-decoration-color:var(--brand)!important;text-underline-offset:.15em}
.tool-frame{flex:1;min-height:0}
.tool-frame iframe{display:block;width:100%;height:100%;border:0;background:#fff}
@media(max-width:700px){.tb-brand span,.tb-acts > a.tb-btn{display:none}.tb-switch{padding-left:.3rem}.tb-cards{grid-template-columns:1fr}.tb-thumb{width:5.4rem}.tb-drawer-in{max-height:calc(100% - 1rem)}}
