:root{color-scheme:light;--ink:#242624;--muted:#575c57;--line:#d7d9d4;--metal:#76654c;--paper:#f7f7f4;font:100%/1.5 system-ui,sans-serif;color:var(--ink);background:#fbfbf9}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:.2em}button,input,select,textarea{font:inherit}button,select,input[type=file],a{touch-action:manipulation}
.topline{display:flex;align-items:center;justify-content:space-between;padding:.9rem max(5vw,1rem);background:white;border-bottom:1px solid var(--line);position:relative;z-index:2}
.topline img{display:block;width:clamp(9rem,17vw,13.5rem);height:auto}.topline nav{display:flex;gap:1.4rem}.topline a{text-decoration:none}.topline a:hover{text-decoration:underline}
main{max-width:1240px;margin:auto;padding:clamp(1rem,4vw,3.6rem)}h1,h2,h3,p{margin:0}h1,h2,.title{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.035em;line-height:1.08}h1{font-size:clamp(2.4rem,5vw,4.8rem);max-width:17ch}h2{font-size:clamp(1.7rem,3vw,2.7rem)}.intro{max-width:52rem;margin:.7rem 0 1.8rem;color:var(--muted);font-size:1.08rem}.eyebrow{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--metal);font-weight:650;margin-bottom:.65rem}
.workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(19rem,.75fr);gap:clamp(1.4rem,3.5vw,3.1rem);align-items:start}
.monitor{background:linear-gradient(140deg,#e8e9e6,#fff 47%,#e0e1db);border-radius:1.1rem;padding:clamp(.8rem,2vw,1.6rem);position:sticky;top:1rem}
.screen{display:grid;place-items:center;background:#d9dad5;border-radius:.5rem;overflow:hidden;min-height:14rem}.screen canvas{display:block;width:auto;height:auto;max-width:100%;max-height:min(59vh,36rem);object-fit:contain}.caption,.toolbar,.action-row{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}.caption{margin-top:.8rem}.caption small,.helper{color:var(--muted)}.controls{display:grid;gap:1rem}.cols{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}fieldset{border:0;margin:0;padding:0;min-width:0}label{display:grid;gap:.3rem;font-size:.92rem;font-weight:570}select,input:not([type=checkbox]),textarea{width:100%;min-width:0;border:1px solid #bbbeb8;border-radius:.45rem;background:white;color:var(--ink);padding:.58rem .65rem}input[type=file]{font-size:.92rem}input[type=checkbox]{width:1.15rem;height:1.15rem;accent-color:#393f39}.check{display:flex;align-items:center;gap:.6rem;font-weight:400}.btn,button{display:inline-flex;align-items:center;justify-content:center;background:white;color:var(--ink);border:1px solid #b9bbb5;border-radius:1.5rem;padding:.5rem 1.05rem;text-decoration:none;font-weight:550;line-height:1.4;cursor:pointer}.dark{color:white;background:#242824;border-color:#242824}button:disabled{opacity:.55;cursor:default}button:hover:enabled,.btn:hover{box-shadow:0 2px 7px #21291b24}:focus-visible{outline:3px solid #88764d;outline-offset:3px}
.controls details{border-block:1px solid var(--line);padding:.65rem 0}.controls details>*+*{margin-top:.75rem}summary{cursor:pointer;font-weight:570}.actions{display:flex;gap:.5rem;flex-wrap:wrap}progress{width:100%;height:.65rem;accent-color:var(--metal)}[role=status]{font-size:.95rem;min-height:1.4rem;color:#4e503e}
.library,.tech-body{margin-top:3rem;border-top:1px solid var(--line);padding-top:1.6rem}.library>p,.tech-body p{color:var(--muted);max-width:53rem;margin:.5rem 0 1rem}.media-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:.6rem 0;padding:.8rem 0;border-bottom:1px solid var(--line)}.media-card strong{overflow-wrap:anywhere}.media-card .actions{font-size:.9rem}
#output{max-width:100%;margin:1rem 0}#output video,#output img,#saved video,#saved img,.shared-player{display:block;max-height:60vh;max-width:100%;margin:.5rem auto;border-radius:.5rem}footer{padding:1.5rem 5vw;font-size:.9rem;color:var(--muted);text-align:center}[hidden]{display:none!important}
.tech-story{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:3rem}.tech-story img{width:100%;border-radius:.9rem}.tech-body h2{margin-top:1.5rem}.tech-body li{margin:.3rem auto}
@media(max-width:760px){.workspace,.tech-story{grid-template-columns:1fr}.monitor{position:static}.topline nav{gap:.65rem;font-size:.9rem}.screen canvas{max-height:42vh}.intro{margin-bottom:1.1rem}.library{margin-top:2rem}}
@media(max-width:390px){.cols{grid-template-columns:1fr}.topline nav a:first-child{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
