/* Work page: header like the other pages, category folders stacked like the Skills folders */
:root { --bg: #f5f3eb; --ink: #1a1a18; --dim: #76746c; --muted: #76746c; --line: #dcd9cd; --ease: cubic-bezier(.22,.8,.18,1); --pad: 18px; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #141413; --ink: #ecebe4; --dim: #8d8b83; --muted: #8d8b83; --line: #2d2c29; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #141413; --ink: #ecebe4; --dim: #8d8b83; --muted: #8d8b83; --line: #2d2c29; color-scheme: dark; }
@media (min-width: 900px) { :root { --pad: 28px; } }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.5; transition: background-color .3s, color .3s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.mode-ico { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mode-ico.i-sun { display: none; }
:root[data-theme="dark"] .mode-ico.i-sun { display: block; }
:root[data-theme="dark"] .mode-ico.i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mode-ico.i-sun { display: block; } :root:not([data-theme="light"]) .mode-ico.i-moon { display: none; } }
.bar { position: absolute; inset: 0 0 auto 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 0; }
.back { font-size: 15px; line-height: 1; width: max-content; }
.title { display: block; text-align: center; }
.sigmark { display: block; width: 104px; margin: 0 auto; }
.sigmark .signature { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.signature :is(path, rect, polygon, circle) { fill: currentColor; stroke: none; }
.signature mask polyline { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .sigmark { width: 128px; } }
.hr { justify-self: end; display: flex; align-items: center; gap: 18px; }
.mode { padding: 4px 0; margin: -4px 0; }

.work { max-width: 760px; margin: 0 auto; padding: calc(120px + env(safe-area-inset-top, 0px)) var(--pad) 0; min-height: 100dvh; display: flex; flex-direction: column; }
.work h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wf-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }   /* the folders sit at the bottom of the screen, within thumb reach */
.wf { position: relative; z-index: var(--z); margin-top: -5px; border: 1px solid var(--muted); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--bg); }
.wf:first-child { margin-top: 0; }
.wf--l { border-top-left-radius: 0; }
.wf:last-child { flex: none; display: flex; flex-direction: column; border-bottom: 0; border-radius: 12px 12px 0 0; }
.wf:last-child::after { content: ""; display: block; height: calc(54px + env(safe-area-inset-bottom, 0px)); }   /* room for the "Work" label and credits printed on the last folder */
.wf--l:last-child { border-top-left-radius: 0; }
.wf .tab { position: absolute; top: -23px; left: calc(var(--t) * 31% - 1px); width: 31%; height: 23px; box-sizing: border-box; padding: 5px 0 0 12px;
           border: 1px solid var(--muted); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--bg); color: var(--muted); font-size: 10.5px; letter-spacing: .12em; }
.wf .tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--bg); }
.wf-head { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 20px 20px 40px; text-align: left; }
.wf-title { flex: 1; font-size: clamp(16px, 4.6vw, 20px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.wf-count { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.wf-plus { position: relative; width: 14px; height: 14px; align-self: center; flex: none; }
.wf-plus::before, .wf-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6.25px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.wf-plus::after { transform: rotate(90deg); }
.wf[data-open="true"] .wf-plus::after { transform: rotate(0); }
.wf-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.wf[data-open="true"] .wf-body { grid-template-rows: 1fr; }
.wf-inner { overflow: hidden; min-height: 0; }
.wf-inner ul { list-style: none; margin: 0; padding: 0 20px 34px; }
.wf-inner li { border-top: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.wf-inner li:last-child { border-bottom: 1px solid var(--line); }
.wf[data-open="true"] .wf-inner li { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .05s); }
.wf-inner a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 14px 0; }
.wf-inner a span { font-size: 15px; font-weight: 500; }
.wf-inner a em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.wf-inner a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.wf-soon { margin: 0; padding: 0 20px 34px; color: var(--muted); }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px)); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg) 55%); padding-top: 34px; }
.bottom a { pointer-events: auto; padding: 8px 0; margin: -8px 0; }
.bottom .credits { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); text-align: center; white-space: nowrap; font-size: 9px; line-height: 1.6; letter-spacing: .06em; text-transform: none; }
@media (max-width: 370px) { .bottom .credits { bottom: calc(46px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .wf-body, .wf-inner li, .wf-plus::before, .wf-plus::after { transition: none; } }
