@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/jbm-400.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/jbm-600.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/jbm-800.woff2) format("woff2")}
/* VOICE: friendly, nerdy, confident; a developer saying hello from their own shell.
   IDEA: a shell session you can type into, and the same session already printed below as a readable page.
   PICTURE: a terminal window that boots and answers commands; below, each section is a command and its output.
   COLOUR and TYPE: deep spruce ground, warm paper text, coral prompt, mint links; JetBrains Mono throughout.
   LAYOUT: header with command-links, terminal hero, then sections (about, articles, projects, cv, contact), footer. */
:root{color-scheme:light dark;
--bg:light-dark(#e9e4d6,#0b1311);--win:light-dark(#fbf8f1,#111d1a);--bar:light-dark(#ddd6c4,#182824);
--ink:light-dark(#1d2421,#e8e3d4);--dim:light-dark(#575c55,#9aa59f);--acc:light-dark(#b23a28,#ff7a63);
--link:light-dark(#0a6653,#6fe0c0);--line:light-dark(#cfc7b2,#22352f)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 "JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;overflow-x:clip;min-height:100vh;display:flex;flex-direction:column}
a{color:var(--link)}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
header,footer{padding:18px max(5vw,16px);display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;justify-content:space-between;max-width:1240px;width:100%;margin:0 auto}
header h1{font-size:clamp(20px,3vw,28px);font-weight:800;margin:0;line-height:1.05}
header h1 span{color:var(--acc)}
header p{margin:0;color:var(--dim);font-size:14px}
main{flex:1;padding:0 max(5vw,16px) 24px;max-width:1240px;width:100%;margin:0 auto}
.win{background:var(--win);border:1px solid var(--line);border-radius:12px;box-shadow:0 30px 60px -30px rgba(0,0,0,.45),0 2px 0 var(--line);overflow:hidden;display:flex;flex-direction:column;height:min(56vh,520px);min-height:360px}
.bar{background:var(--bar);display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:13px;color:var(--dim)}
.dot{width:12px;height:12px;border-radius:50%;background:#ff5f57}.dot:nth-child(2){background:#febc2e}.dot:nth-child(3){background:#28c840}
.bar b{margin-left:auto;margin-right:auto;font-weight:400;padding-right:44px}
#out{flex:1;overflow-y:auto;padding:16px 18px 8px;white-space:pre-wrap;overflow-wrap:anywhere}
#out .cmd{color:var(--ink)}#out a.p{text-decoration:none}#out a.p:hover{text-decoration:underline}#out .p,.prompt{color:var(--acc);font-weight:600}
.d{color:var(--dim)}.h{font-weight:800}.ban{color:var(--acc);font-size:clamp(7px,1.45vw,13px);line-height:1.15;white-space:pre;overflow-x:auto}
form{display:flex;gap:8px;padding:8px 18px 16px;align-items:center}
#in{flex:1;background:transparent;border:0;color:var(--ink);font:inherit;font-size:16px;caret-color:var(--acc);padding:6px 0}
#in:focus{outline:none}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.chips button{font:inherit;font-size:14px;min-height:44px;padding:0 16px;border-radius:8px;border:1px solid var(--line);background:var(--win);color:var(--ink);cursor:pointer}
.chips button:hover{border-color:var(--acc);color:var(--acc)}
.chips span{color:var(--dim);font-size:13px;align-self:center;margin-right:4px}
footer{color:var(--dim);font-size:14px;border-top:1px solid var(--line)}
footer nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.row{display:grid;grid-template-columns:9em minmax(0,1fr);gap:0 12px}
.cur::after{content:"▌";color:var(--acc);animation:b 1s steps(1) infinite}
@keyframes b{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.cur::after{animation:none}}
@media(max-width:600px){.win{height:68vh;min-height:380px}#out{padding:12px;font-size:13px}form{padding:8px 12px 12px}.row{grid-template-columns:minmax(0,1fr)}header p{display:none}.bar b{padding-right:0}}
.who{display:flex;align-items:center;gap:14px}
.ava{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid var(--acc);flex:none;background:var(--bar)}
.lang{display:flex;gap:4px}.lang a{font:inherit;font-size:14px;min-height:44px;min-width:44px;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--dim);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.lang a[aria-current=true]{background:var(--acc);border-color:var(--acc);color:var(--win);font-weight:600}
.pic{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;margin:4px 0}
.pic img{width:clamp(96px,16vw,150px);aspect-ratio:1;object-fit:cover;border-radius:10px;border:1px solid var(--line);filter:contrast(1.05)}
@media(max-width:600px){.pic{grid-template-columns:minmax(0,1fr)}.ava{width:44px;height:44px}}
.nav{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
.nav a{text-decoration:none;color:var(--ink);font-size:14px;padding:10px 2px;min-height:44px;display:inline-flex;align-items:center}
.nav a::before{content:"$";color:var(--acc);margin-right:.5ch}.nav a:hover{color:var(--acc)}
.hint{color:var(--dim);font-size:14px;margin:14px 2px 0}
.sec{padding:40px 2px 8px;border-top:1px dashed var(--line);margin-top:40px;scroll-margin-top:16px}
.sec h2{font-size:clamp(20px,2.6vw,28px);line-height:1.1;margin:0 0 18px;font-weight:800}
.sec h2 a{color:var(--ink);text-decoration:none}.sec h2 a:hover{color:var(--acc)}.sec h2 .p{color:var(--acc)}
.body{white-space:pre-wrap;overflow-wrap:anywhere;max-width:1000px}
.go{color:var(--link)}
.socials{display:flex;gap:4px;align-items:center}
.socials a,.socials button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:8px;color:var(--ink);background:none;border:0;cursor:pointer;padding:0}
.socials a:hover,.socials button:hover{color:var(--acc)}.socials .ok{color:var(--link)}
.socials .ico{width:20px;height:20px}
.ico{width:1em;height:1em;vertical-align:-.125em}
.sn{display:inline-flex;gap:.5ch;align-items:center}
footer .foot{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
footer .socials .ico{width:18px;height:18px}
@media(max-width:600px){header{column-gap:8px}.socials{gap:0}}
.theme{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer}
.theme:hover{color:var(--acc);border-color:var(--acc)}.theme .ico{width:20px;height:20px}
.theme[data-mode=dark] .i-moon,.theme[data-mode=light] .i-sun{display:none}
.ctl{display:flex;gap:8px;align-items:center}
html:not(.js) #f,html:not(.js) .theme,html:not(.js) .hint{display:none}html:not(.js) .win{height:auto;min-height:0}
.vids{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;white-space:normal;margin:4px 0 14px;max-width:1000px}
.vid{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--win);color:var(--ink);text-decoration:none;line-height:1.4}
.vid:hover{border-color:var(--acc)}.vid:hover .th{color:var(--acc)}
.vid .th{display:grid;place-items:center;aspect-ratio:16/9;border-radius:6px;color:var(--dim);background:repeating-linear-gradient(0deg,transparent 0 3px,color-mix(in srgb,var(--line) 45%,transparent) 3px 4px),var(--bar);margin-bottom:4px}
.vid.ch .th{color:var(--acc)}
.vid .th .ico{width:48px;height:48px}
.vid .vt{font-weight:600}.vid .d{font-size:13px}
#out .vids{margin-top:8px}
