/* Two trial looks, picked with ?theme=room or ?theme=vim. The chosen one gets folded into index.html. */

/* ---------- room: the page is the film's set. Hard edges, ink outlines, paper, wood. ---------- */
html body{background:var(--wall) repeating-linear-gradient(90deg,transparent 0 125px,#2b2640 125px 126px,#1f1c2e 126px 127px);font-weight:600}
html :is(.btn,.step,.row,.video,.scene,.ex,.cmd,.term,.pill,.ep-num,.facts li,.lang,.lang button,.copy,.thumb,.ask-open,.ask-panel,.ask-form input,.ask-form button,.ask-dl,.seasons button,.ask-chips button,.ask-msg.me){border-radius:0!important}
html header.top{background:var(--ink);border-bottom:3px solid #0d0c17;backdrop-filter:none}
html :is(h1,h2,.row-head h3,.step h3){font-family:var(--pix);font-weight:700;letter-spacing:-.5px}
html h1{font-size:clamp(32px,4.4vw,52px);letter-spacing:-2px;text-shadow:4px 4px 0 var(--ink)}
html h1 .tq{font-weight:700;color:var(--amber)}
html h2{font-size:30px;display:inline-block;background:#f9e4ba;color:var(--ink);padding:4px 14px;box-shadow:0 0 0 3px var(--ink),6px 6px 0 3px rgba(0,0,0,.35);margin-bottom:26px}
html .lede{color:var(--cream)}
html .kicker{color:var(--light,#76ddaf)}
html .scene{box-shadow:0 0 0 4px var(--ink),10px 10px 0 4px rgba(0,0,0,.4)}
html .btn{border:0;background:var(--walnut);color:var(--cream);box-shadow:0 0 0 3px var(--ink),5px 5px 0 3px rgba(0,0,0,.4);font-family:var(--pix)}
html .btn.primary{background:var(--amber);color:var(--ink)}
html .btn:hover{transform:translate(2px,2px);box-shadow:0 0 0 3px var(--ink),3px 3px 0 3px rgba(0,0,0,.4)}
html .facts li{background:var(--ink);border:0;color:#b3a39a;font:700 12px var(--pix)}
/* the desk: a wooden edge between sections */
html section{border-top:0;position:relative;padding-top:86px}
html section:before{content:"";position:absolute;left:0;right:0;top:0;height:26px;background:linear-gradient(#a97163 0 3px,#755052 3px 14px,#a16d5e 14px 16px,#473441 16px 26px);box-shadow:0 4px 0 rgba(0,0,0,.25)}
html :is(.step,.row){background:#2f2a42;border:0;box-shadow:0 0 0 3px var(--ink),6px 6px 0 3px rgba(0,0,0,.35)}
html .row{margin-bottom:16px}
html .row.featured{box-shadow:0 0 0 3px var(--ink),0 0 0 6px var(--amber),8px 8px 0 6px rgba(0,0,0,.35)}
html .step .pic{border-bottom:3px solid var(--ink)}
html .step:before{border-radius:0;background:var(--amber);color:var(--ink);font-family:var(--pix);box-shadow:0 0 0 2px var(--ink)}
html .step p,html .ep p.sum{color:#cbbfae}
html .ep-num{background:var(--ink);border:0;color:var(--light,#76ddaf);font:700 14px var(--pix)}
html .pill{border:0;background:var(--amber);color:var(--ink);font-family:var(--pix)}
html .thumb{box-shadow:0 0 0 3px var(--ink),0 0 0 5px #a49486}
html a{color:#76ddaf}
html .ex a{color:var(--teal)}
html details.ch{border-top:3px solid var(--ink)}
html .video button.play:after{border-radius:0;background-color:var(--amber);box-shadow:0 0 0 3px var(--ink),5px 5px 0 3px rgba(0,0,0,.4)}
/* the mascots stand on the desk */
html .faces{padding:70px 0 0}
html .faces .wrap{max-width:none;padding:0}
html .faces .strip{position:relative;z-index:1;margin-bottom:-10px}
html .faces p{margin:0;padding:34px 20px 30px;background:linear-gradient(#a97163 0 3px,#755052 3px);color:var(--cream)}
html footer{background:#473441;border-top:3px solid #a16d5e;color:#cbbfae}
html footer .right a{color:var(--cream)}
html .lang{background:none;border:0;box-shadow:0 0 0 2px #46585a}
html .lang button[aria-pressed=true]{background:#76ddaf}
html .ask-open,html .ask-panel{border:0;background:#2f2a42;box-shadow:0 0 0 3px var(--ink),6px 6px 0 3px rgba(0,0,0,.4)}

/* ---------- vim: the page is the buffer on the CRT. One mono face, line numbers, a status line. ---------- */

/* Reader progress */
.ticks{display:inline-flex;gap:4px;margin-left:auto}
.ticks+.ep-meta{margin-left:10px}
.ticks i{width:12px;height:12px;background:var(--ink);box-shadow:inset 0 0 0 2px #4a445c}
.ticks i.on{background:var(--turquoise);box-shadow:none}
.checks{grid-column:1/-1;min-width:0;display:flex;flex-wrap:wrap;gap:12px 22px}
.check{display:inline-flex;align-items:center;gap:10px;background:none;border:0;padding:4px 0;color:var(--cream);font:700 15px var(--pix);cursor:pointer}
.check i{width:22px;height:22px;background:var(--ink);box-shadow:inset 0 0 0 3px var(--seam);position:relative}
.check[aria-pressed=true] i{background:var(--turquoise);box-shadow:inset 0 0 0 3px var(--ink)}
.check[aria-pressed=true] i:after{content:"";position:absolute;left:7px;top:3px;width:5px;height:11px;border:solid var(--ink);border-width:0 3px 3px 0;transform:rotate(45deg)}
.check:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
.faces .strip img{opacity:.28;filter:grayscale(1);transition:opacity .3s,filter .3s}
.faces .strip img.lit{opacity:1;filter:none}
.faces p b{display:block;font:700 17px var(--pix);margin-bottom:6px}
@media (max-width:560px){.ticks{margin-left:0}}

/* Episode note: a paper page */
.note{grid-column:1/-1;min-width:0;background:var(--paper);color:var(--paper-ink);box-shadow:0 0 0 3px var(--ink),6px 6px 0 3px rgba(0,0,0,.35)}
.note summary{display:flex;align-items:center;gap:12px;padding:12px 18px;cursor:pointer;list-style:none}
.note summary::-webkit-details-marker{display:none}
.note summary .label{font:700 12px var(--pix);letter-spacing:.14em;text-transform:uppercase;color:var(--teal)}
.note summary b{font:700 18px var(--pix);flex:1;min-width:0}
.note summary small{font:700 12px var(--pix);color:#7a6a55;white-space:nowrap}
.note summary:after{content:"+";font:700 22px var(--pix)}
.note[open] summary:after{content:"–"}
.note article{padding:4px 22px 22px;max-width:760px;font-size:16.5px;line-height:1.6}
.note article p{margin:14px 0 0}
.note article p b{font:700 .95em var(--pix)}
.note article code{font:700 .88em var(--mono);background:rgba(41,55,66,.1);padding:1px 5px}
.note article pre.cmd{margin:12px 0 0;overflow-x:auto;font-size:13px}
.note article pre.cmd code{background:none}
.note a.ts{font:700 .82em var(--pix);color:var(--paper);background:var(--teal);padding:1px 6px;text-decoration:none;white-space:nowrap}
.note a.ts:before{content:"▶ "}
.note .flow{list-style:none;margin:18px 0 4px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:22px;counter-reset:f}
.note .flow li{counter-increment:f;position:relative;background:#fff3d6;box-shadow:0 0 0 3px var(--ink);padding:14px 12px 12px;display:flex;flex-direction:column;gap:6px;min-width:0}
.note .flow li:before{content:counter(f);position:absolute;left:-3px;top:-14px;background:var(--amber);box-shadow:0 0 0 3px var(--ink);font:700 13px var(--pix);padding:1px 7px}
.note .flow li:not(:last-child):after{content:"";position:absolute;right:-19px;top:50%;border:7px solid transparent;border-left-color:var(--ink);margin-top:-7px}
.note .flow b{font:700 16px var(--pix)}
.note .flow code{font-size:12px;overflow-wrap:anywhere;align-self:flex-start}
.note .flow span{font-size:14px;line-height:1.4}
@media (max-width:640px){.note .flow{grid-template-columns:1fr;gap:20px}.note .flow li:not(:last-child):after{right:auto;left:50%;top:auto;bottom:-19px;margin:0 0 0 -7px;border:7px solid transparent;border-top-color:var(--ink)}.note summary small{display:none}}

/* Season intro and teasers */
.season-intro{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:0 0 18px;color:var(--cream)}
.season-intro b{font:700 20px var(--pix);color:var(--amber)}
.season-intro span{flex:1 1 320px}
.season-intro small{font:700 12px var(--pix);background:var(--ink);color:var(--turquoise);padding:4px 9px;white-space:nowrap}
h3.sub{font:700 17px var(--pix);color:var(--cream);margin:38px 0 14px;display:flex;align-items:center;gap:14px}
h3.sub:after{content:"";flex:1;height:3px;background:var(--seam)}
.tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tiles.two{grid-template-columns:repeat(2,1fr)}
.tiles li{display:flex;gap:12px;align-items:flex-start;min-width:0;padding:12px;background:var(--wall);box-shadow:0 0 0 3px var(--ink);border:2px dashed var(--seam)}
.tiles canvas{flex:none;width:72px;height:45px;box-shadow:0 0 0 2px var(--ink)}
.tiles li>div{min-width:0}
.tiles li:has(.preview-material){display:grid;grid-template-columns:72px minmax(0,1fr)}
.tiles .preview-material{grid-column:1/-1}
.preview-material>a{color:var(--cream);font-size:14px}
.preview-material .note{margin:12px 0 0;box-shadow:0 0 0 2px var(--ink)}
.preview-material .note summary{gap:8px;padding:10px}
.preview-material .note summary .label,.preview-material .note summary small,.preview-material .note summary img{display:none}
.preview-material .note summary b{font-size:15px}
.preview-material .note article{padding:0 12px 14px}
.tiles .preview-material .note p{margin-top:10px;color:var(--paper-ink)}
.tiles .ep-num{margin-right:8px}
.tiles .pill{font-size:10px;padding:2px 7px;background:var(--seam);color:var(--cream)}
.tiles h3{font:700 15px/1.25 var(--pix);margin:8px 0 3px;color:var(--text)}
.tiles p{margin:0;font-size:14px;line-height:1.4;color:var(--muted)}
.tiles li.big{flex-direction:column;padding:0;border:0}
.tiles li.big canvas{width:100%;height:auto;aspect-ratio:96/54;box-shadow:none;border-bottom:3px solid var(--ink)}
.tiles li.big>div{padding:14px 16px 16px}
.tiles li.big h3{font-size:22px}
.tiles li.big p{font-size:15.5px;color:var(--cream)}
@media (max-width:900px){.tiles{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.tiles,.tiles.two{grid-template-columns:1fr}}
