/* Fira Code, self-hosted (latin + latin-ext for č š ž) */
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/firacode-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/firacode-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* palette: the template's, one step darker */
:root {
  --outside: #000307;
  --win: #010c17;
  --panel: #010a14;
  --card: #000913;
  --line: #172535;
  --muted: #607b96;
  --dim: #34495f;
  --white: #ffffff;
  --text: #e5e9f0;
  --orange: #fea55f;
  --orange-hi: #ffac6b;
  --teal: #43d9ad;
  --teal-2: #3c9d93;
  --indigo: #4d5bce;
  --salmon: #e99287;
  --purple: #c98bdf;
  --btn: #1c2b3a;
  --btn-hi: #263b50;
  --mono: 'Fira Code', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gap: clamp(0px, 1.6vw, 22px);
  --head: 56px;
  --foot: 50px;
  --side: 300px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--outside); color: var(--muted); font: 400 16px/1.6 var(--mono); font-feature-settings: 'calt' 1, 'liga' 1; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s, background .15s, border-color .15s, opacity .15s; }
a:hover { color: var(--white); }
button { font: inherit; }
:focus-visible { outline: 1px solid var(--orange); outline-offset: 2px; }
::selection { background: rgba(77, 91, 206, .55); color: var(--white); }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--white); line-height: 1.2; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* syntax colours */
.k { color: var(--indigo); }      /* keyword */
.v { color: var(--teal); }        /* variable */
.s { color: var(--salmon); }      /* string */
.f { color: var(--purple); }      /* function */
.o { color: var(--orange); }      /* number / accent */
.c { color: var(--muted); }       /* comment */
.w { color: var(--text); }

/* ---------- the window ---------- */
body { padding: var(--gap); }
.win {
  height: calc(100vh - 2 * var(--gap)); height: calc(100dvh - 2 * var(--gap));
  min-height: 560px;
  display: grid; grid-template-rows: var(--head) minmax(0, 1fr) var(--foot);
  background: var(--win); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}

.top { display: flex; border-bottom: 1px solid var(--line); }
.top > a, .tabs a { display: flex; align-items: center; padding: 0 22px; white-space: nowrap; position: relative; }
.brand { width: var(--side); flex: none; border-right: 1px solid var(--line); }
.tabs { display: flex; flex: 1; }
.tabs a { border-right: 1px solid var(--line); }
.tabs a[aria-current] { color: var(--white); }
.tabs a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); }
.tabs .end { margin-left: auto; border-right: 0; border-left: 1px solid var(--line); }
.menu { display: none; margin-left: auto; background: none; border: 0; color: var(--muted); padding: 0 20px; cursor: pointer; font-size: 22px; }
.menu .i { display: block; }
.menu .m-close { display: none; }
.mobile-title { display: none; }

.foot { display: flex; border-top: 1px solid var(--line); font-size: 15px; }
.foot > * { display: flex; align-items: center; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); }
.foot a { font-size: 20px; padding: 0 14px; }
.foot a:hover { color: var(--white); }
.foot .me { margin-left: auto; border-right: 0; border-left: 1px solid var(--line); font-size: 15px; padding: 0 22px; }
.foot .me .i { font-size: 20px; }

main { min-height: 0; position: relative; }
.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ---------- buttons (template: primary / default / ghost) ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: .5em; padding: 10px 14px; font-size: 14px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #01080e; }
.btn-primary:hover { background: var(--orange-hi); color: #01080e; }
.btn-default { background: var(--btn); color: var(--white); }
.btn-default:hover { background: var(--btn-hi); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .04); color: var(--white); }

/* ---------- side explorer + editor panes (about, projects, contact, blog) ---------- */
.ide { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: 100%; }
.ide.with-bar { grid-template-columns: 68px calc(var(--side) - 68px) minmax(0, 1fr); }
.bar { border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 26px; padding-top: 18px; font-size: 22px; }
.bar a { color: var(--dim); } .bar a.on, .bar a:hover { color: var(--white); }
.explorer { border-right: 1px solid var(--line); font-size: 15px; }
.explorer details { border-bottom: 1px solid var(--line); }
.explorer summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; color: var(--white); cursor: pointer; user-select: none; }
.explorer summary::-webkit-details-marker { display: none; }
.explorer summary .i { transition: transform .15s; }
.explorer details[open] > summary .i { transform: rotate(90deg); }
.explorer ul { list-style: none; margin: 0; padding: 4px 0 14px; }
.explorer li a, .explorer li label, .explorer li span { display: flex; align-items: center; gap: 10px; padding: 3px 14px 3px 20px; cursor: pointer; }
.explorer li .i { font-size: 16px; }
.explorer li a.on, .explorer li a:hover { color: var(--white); }
.explorer li ul { padding: 0 0 0 26px; }
.tree-caret { font-size: 16px; color: var(--muted); }
.fold-a { color: var(--salmon); } .fold-b { color: var(--teal); } .fold-c { color: #3a49a4; } .fold-d { color: var(--orange); }

.panes { display: grid; grid-template-rows: 42px minmax(0, 1fr); min-width: 0; }
.panes.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tabbar { display: flex; border-bottom: 1px solid var(--line); grid-column: 1 / -1; }
.panes.split .tabbar { grid-column: auto; }
.panes.split .tabbar + .tabbar { border-left: 1px solid var(--line); }
.tab { display: flex; align-items: center; gap: 24px; padding: 0 14px; border-right: 1px solid var(--line); color: var(--muted); font-size: 15px; white-space: nowrap; }
.tab .i { font-size: 16px; }
.pane { min-height: 0; padding: 22px 26px 40px; }
.panes.split .pane + .pane { border-left: 1px solid var(--line); }

/* line-numbered text */
.lines { counter-reset: ln; font-size: 15.5px; line-height: 1.6; max-width: 640px; }
.lines span.l { display: block; position: relative; padding-left: 68px; counter-increment: ln; min-height: 1.6em; }
.lines span.l::before { content: counter(ln); position: absolute; left: 0; width: 34px; text-align: right; color: var(--dim); }
.lines span.l b { font-weight: 400; color: var(--white); }

/* ---------- hello ---------- */
.hello { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 0 clamp(24px, 8vw, 150px) 0 clamp(24px, 12vw, 240px); position: relative; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.glow.a { width: 440px; height: 380px; right: 22%; top: 8%; background: #43d9ad; opacity: .22; }
.glow.b { width: 480px; height: 460px; right: 6%; bottom: 2%; background: #4d5bce; opacity: .3; }
.intro { position: relative; z-index: 1; }
.intro .hi { color: var(--text); font-size: 18px; margin: 0; }
.intro h1 { font-size: clamp(42px, 4.6vw, 62px); line-height: 1.1; margin: 4px 0 6px; letter-spacing: -.01em; }
.intro .role { color: var(--indigo); font-size: clamp(20px, 2.1vw, 32px); margin: 0; }
.intro .code { margin: 64px 0 0; font-size: 16px; line-height: 1.75; }
.intro .code p { margin: 0; }
.intro .code a { color: var(--salmon); }
.intro .code a:hover { color: var(--orange); }
.intro .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.stack { position: relative; z-index: 1; height: min(560px, 78%); justify-self: center; width: min(100%, 560px); }
.stack .layer { position: absolute; inset: 0; overflow: hidden; }
.stack .layer.blur { filter: blur(3px); opacity: .45; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.stack .layer.sharp { -webkit-mask-image: linear-gradient(transparent 32%, #000 38%, #000 66%, transparent 72%); mask-image: linear-gradient(transparent 32%, #000 38%, #000 66%, transparent 72%); }
.stack .col { display: flex; flex-direction: column; gap: 22px; animation: rise 42s linear infinite; }
@keyframes rise { to { transform: translateY(-50%); } }
.snip { background: rgba(1, 15, 28, .92); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; font-size: 13px; line-height: 1.6; color: var(--text); white-space: pre; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.snip .cap { display: block; color: var(--muted); margin-bottom: 8px; }

/* ---------- about ---------- */
.file[hidden] { display: none; }
.show h2 { font-size: 15.5px; color: var(--muted); margin: 0 0 18px; }
.show h2:not(:first-child) { margin-top: 34px; }
.portrait { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: end; }
.portrait img { width: 150px; aspect-ratio: 1; object-fit: cover; object-position: 55% 40%; border-radius: 8px; }
.portrait dl { margin: 0 0 4px; font-size: 14px; line-height: 1.7; }
.portrait dt { color: var(--muted); } .portrait dd { margin: 0 0 6px; color: var(--text); }
.gist { margin-bottom: 26px; }
.gist .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.gist .head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1); }
.gist .who { line-height: 1.35; }
.gist .who b { color: var(--indigo); font-weight: 500; display: block; }
.gist .who small { font-size: 13px; }
.gist .head .det { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.gist pre { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; font: 13.5px/1.6 var(--mono); color: var(--text); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ---------- projects ---------- */
.filters label { color: var(--muted); }
.filters input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--muted); border-radius: 2px; display: grid; place-items: center; cursor: pointer; flex: none; }
.filters input:checked { background: var(--muted); border-color: var(--muted); }
.filters input:checked::after { content: ''; width: 10px; height: 6px; border: solid var(--win); border-width: 0 0 2px 2px; transform: translate(0, -1px) rotate(-45deg); }
.filters label:has(input:checked) { color: var(--white); }
.filters .n { margin-left: auto; font-size: 13px; color: var(--dim); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 40px 32px; max-width: 1240px; margin: 20px auto 0; }
.proj[hidden] { display: none; }
.proj .lbl { margin: 0 0 14px; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj .lbl b { color: var(--indigo); font-weight: 700; }
.card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; height: calc(100% - 39px); transition: border-color .2s, transform .2s; }
.proj:hover .card { border-color: #243a51; transform: translateY(-2px); }
.cover { position: relative; height: 150px; border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; background: #010b16; }
.cover::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; opacity: .35; -webkit-mask-image: radial-gradient(circle at 50% 60%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 60%, #000, transparent 75%); }
.cover::after { content: ''; position: absolute; width: 240px; height: 140px; border-radius: 50%; filter: blur(50px); opacity: .45; background: var(--tint, var(--teal)); bottom: -70px; }
.cover span { position: relative; z-index: 1; font-size: 22px; color: var(--white); letter-spacing: .02em; text-align: center; padding: 0 16px; }
.cover span small { display: block; font-size: 13px; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.cover .badge { position: absolute; top: 14px; right: 14px; z-index: 2; width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center; background: var(--tint, var(--teal)); color: #01080e; font-size: 16px; }
.t-teal { --tint: #43d9ad; } .t-indigo { --tint: #4d5bce; } .t-orange { --tint: #fea55f; } .t-salmon { --tint: #e99287; } .t-purple { --tint: #c98bdf; }
.card .body { padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; }
.card .btn { align-self: flex-start; margin-top: auto; }
.none { text-align: center; padding: 60px 0; }
.none[hidden] { display: none; }

dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 64px); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--win); color: var(--muted); font: inherit; }
dialog::backdrop { background: rgba(0, 3, 7, .78); backdrop-filter: blur(3px); }
dialog .tabbar { height: 44px; }
dialog .tab { flex: 1; justify-content: space-between; border-right: 0; }
dialog .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; display: grid; place-items: center; padding: 6px; }
dialog .x:hover { color: var(--white); }
dialog .in { padding: 26px 30px 30px; overflow-y: auto; max-height: calc(100dvh - 110px); }
dialog h3 { font-size: 22px; line-height: 1.35; margin-bottom: 8px; }
dialog .where { color: var(--orange); font-size: 14px; margin: 0 0 22px; }
dialog p { margin: 0 0 16px; font-size: 15px; line-height: 1.75; color: #aebdcc; }
dialog .role { color: var(--muted); font-size: 14px; }
dialog .role b { color: var(--text); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.chips li { font-size: 13px; padding: 3px 10px; border-radius: 6px; color: var(--teal); border: 1px solid rgba(67, 217, 173, .25); background: rgba(67, 217, 173, .06); }
dialog .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- contact ---------- */
.contact-pane { display: grid; place-items: center; }
form { width: min(100%, 372px); display: grid; gap: 24px; }
form label { display: grid; gap: 10px; font-size: 15.5px; }
form input, form textarea { font: 15px/1.5 var(--mono); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
form textarea { min-height: 145px; resize: vertical; }
form input:focus, form textarea:focus { outline: none; border-color: var(--muted); box-shadow: 0 0 0 2px rgba(96, 123, 150, .3); }
form input::placeholder, form textarea::placeholder { color: var(--dim); }
form .btn { justify-self: start; }
.sent { text-align: center; }
.sent[hidden], form[hidden] { display: none; }
.sent h2 { font-size: 26px; margin-bottom: 12px; }
.sent p { margin: 0 0 22px; }
.mirror { font-size: 15px; }
.mirror .lines { font-size: 15px; max-width: none; }
.mirror .lines span.l { white-space: pre-wrap; word-break: break-word; padding-left: 58px; }

/* ---------- blog ---------- */
.posts { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.posts li a { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.posts time { color: var(--orange); font-size: 14px; padding-top: 2px; }
.posts h3 { font-size: 17px; margin-bottom: 6px; }
.posts h3::before { content: '> '; color: var(--teal); }
.posts p { margin: 0; font-size: 15px; }
.posts li a:hover h3 { color: var(--orange); }
.posts:has(li) + .empty { display: none; }
.empty { margin: 0; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.85; color: #b8c5d3; padding-bottom: 40px; }
.prose > header { margin-bottom: 34px; }
.prose > header h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; margin-bottom: 12px; }
.prose > header time { color: var(--orange); font-size: 14px; }
.prose .body > * { margin: 0 0 1.25em; }
.prose h2 { font-size: 22px; margin: 2.1em 0 .8em; } .prose h2::before { content: '## '; color: var(--dim); }
.prose h3 { font-size: 18px; margin: 1.8em 0 .7em; } .prose h3::before { content: '### '; color: var(--dim); }
.prose a { color: var(--teal); border-bottom: 1px dashed rgba(67, 217, 173, .5); }
.prose a:hover { color: var(--white); }
.prose strong { color: var(--white); font-weight: 600; }
.prose img { border-radius: 10px; border: 1px solid var(--line); margin: 1.6em 0; }
.prose blockquote { margin-left: 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--indigo); color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .35em; } .prose li::marker { color: var(--teal); }
.prose code { font-size: .92em; color: var(--salmon); background: rgba(233, 146, 135, .07); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; overflow-x: auto; line-height: 1.6; font-size: 14px; }
.prose pre code { background: none; color: var(--text); padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { color: var(--white); font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); margin-top: 18px; }

/* ---------- 404 ---------- */
.lost { height: 100%; display: grid; place-content: center; text-align: center; padding: 24px; }
.lost h1 { font-size: clamp(64px, 10vw, 120px); color: var(--indigo); }
.lost p { margin: 8px 0 28px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1280px) {
  .ide.with-bar { grid-template-columns: 0 var(--side) minmax(0, 1fr); }
  .bar { display: none; }
  .hello { padding: 0 clamp(24px, 5vw, 80px); }
}
@media (max-width: 1100px) {
  .panes.split { grid-template-columns: minmax(0, 1fr); grid-template-rows: 42px auto 42px auto; overflow-y: auto; }
  .panes.split .tabbar + .tabbar { border-left: 0; border-top: 1px solid var(--line); }
  .panes.split .pane + .pane { border-left: 0; }
  .panes.split .pane.scroll { overflow: visible; }
  .hello { grid-template-columns: 1fr; padding: 48px clamp(24px, 6vw, 80px); align-content: center; overflow-y: auto; }
  .stack { display: none; }
}
@media (max-width: 860px) {
  :root { --gap: 0px; --head: 56px; }
  body { font-size: 15px; }
  .win { height: auto; min-height: 100dvh; border: 0; border-radius: 0; grid-template-rows: var(--head) 1fr auto; }
  .top { position: sticky; top: 0; z-index: 30; background: var(--win); }
  .brand { width: auto; border-right: 0; }
  .menu { display: flex; align-items: center; justify-content: center; }
  .tabs { display: none; position: absolute; top: var(--head); left: 0; right: 0; flex-direction: column; background: var(--win); border-bottom: 1px solid var(--line); min-height: calc(100dvh - var(--head)); }
  .top.open .tabs { display: flex; }
  .top.open .menu .m-open { display: none; } .top.open .menu .m-close { display: block; }
  .tabs a { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 22px; }
  .tabs .end { margin-left: 0; border-left: 0; }
  .tabs a[aria-current]::after { top: 0; bottom: 0; width: 3px; height: auto; right: auto; }
  .mobile-title { display: block; color: var(--white); padding: 26px 22px 20px; margin: 0; font-size: 15px; }
  .ide, .ide.with-bar { display: block; height: auto; }
  .explorer { border-right: 0; }
  .explorer details { border-bottom: 0; margin-bottom: 4px; }
  .explorer summary { background: var(--line); margin: 0; }
  .panes, .panes.split { display: block; }
  .tabbar { display: none; }
  .pane { padding: 22px 22px 40px; }
  .scroll { overflow: visible; }
  .lines span.l { padding-left: 0; } .lines span.l::before { display: none; }
  .lines span.l.blank { min-height: .8em; }
  .hello { min-height: calc(100dvh - var(--head) - var(--foot)); padding: 40px 26px 56px; align-content: center; overflow: visible; }
  .glow.a { right: -120px; top: 6%; width: 300px; } .glow.b { right: -140px; bottom: 0; width: 320px; }
  .intro .code { margin-top: 48px; font-size: 14px; }
  .intro .code .wide { display: none; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { grid-template-columns: 110px 1fr; } .portrait img { width: 110px; }
  .posts li a { grid-template-columns: 1fr; gap: 4px; }
  .foot { height: var(--foot); }
  .foot .lbl { padding-left: 22px; }
  .foot .me span { display: none; }
  .mirror { display: none; }
}
@media (prefers-reduced-motion: reduce) { .stack .col { animation: none; } * { transition: none !important; } }
.tab .x { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; display: flex; font-size: 16px; }
.tab .x:hover { color: var(--white); }
.ide { grid-template-rows: minmax(0, 1fr); }
main { overflow: hidden; }
.portrait img { height: auto; }
.explorer li a, .explorer li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lines span.l { white-space: pre; }
@media (max-width: 860px) { main { overflow: visible; } .lines span.l { white-space: normal; } }
.win { grid-template-columns: minmax(0, 1fr); }

/* project cards with a screenshot instead of the generated cover */
.cover.shot { height: auto; aspect-ratio: 16 / 10; display: block; background: #010b16; }
.cover.shot::before, .cover.shot::after { display: none; }
.cover.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.proj:hover .cover.shot img { transform: scale(1.03); }
.card .body h3 { font-size: 17px; margin: 0 0 -10px; }

/* ---------- the site tree (filled by site.js) ---------- */
.explorer { font-size: 14.5px; padding-bottom: 24px; }
.tree-head { width: 100%; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--white); font: inherit; text-align: left; cursor: default; }
.tree-head .caret { transform: rotate(90deg); color: var(--muted); }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree { padding-top: 6px; }
.tree .row { --pad: calc(12px + var(--d) * 16px); width: 100%; display: flex; align-items: center; gap: 7px; min-height: 28px; padding: 2px 12px 2px var(--pad); border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; position: relative; white-space: nowrap; }
.tree .row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tree .row .i { font-size: 16px; flex: none; }
.tree .row .ico { margin-left: 23px; color: var(--muted); opacity: .8; }
.tree .row .caret { color: var(--muted); transition: transform .15s; }
.tree .dir.open > .row .caret { transform: rotate(90deg); }
.tree .dir > .row { color: var(--text); }
.tree .row:hover { background: rgba(255, 255, 255, .03); color: var(--white); }
.tree a.row.on { color: var(--white); background: rgba(77, 91, 206, .16); }
.tree a.row.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange); }
.tree a.row.on .ico { color: var(--orange); opacity: 1; }
.tree .row.plain { cursor: default; }
.tree .row.plain:hover { background: none; color: var(--muted); }
.tree .dir > ul { display: none; position: relative; }
.tree .dir.open > ul { display: block; }
.tree .dir > ul::before { content: ''; position: absolute; top: 0; bottom: 4px; left: calc(19px + var(--d) * 16px); width: 1px; background: var(--line); }
.tree .check { gap: 10px; }
.tree .check input { appearance: none; width: 15px; height: 15px; margin: 0 0 0 23px; border: 1px solid var(--muted); border-radius: 2px; display: grid; place-items: center; cursor: pointer; flex: none; }
.tree .check input:checked { background: var(--muted); }
.tree .check input:checked::after { content: ''; width: 8px; height: 5px; border: solid var(--win); border-width: 0 0 2px 2px; transform: translate(0, -1px) rotate(-45deg); }
.tree .check:has(input:checked) { color: var(--white); }
.tree .check .n { margin-left: auto; font-size: 12.5px; color: var(--dim); }
@media (max-width: 860px) {
  .explorer { padding: 0; border-bottom: 1px solid var(--line); }
  .tree-head { cursor: pointer; border-bottom: 0; background: var(--line); }
  .tree-head .caret { transform: none; }
  .explorer.expanded .tree-head .caret { transform: rotate(90deg); }
  .explorer:not(.expanded) .tree { display: none; }
  .tree { padding: 6px 0 12px; }
  .tree .row { min-height: 36px; }
}
