:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;--paper:#000;--ink:#f2f2f2;--muted:#aaa;--faint:#929292}
.theme-toggle{position:fixed;z-index:30;right:var(--margin);top:32px;width:16.2px;height:16.2px;pointer-events:auto}
.theme-toggle::before{content:"";position:absolute;inset:-12px}
.theme-toggle::after{content:"";position:absolute;inset:0;background:var(--ink);border-radius:50%;transition:transform .2s}
.theme-toggle:hover::after{transform:scale(.85)}
body.hero-active .theme-toggle{visibility:hidden;pointer-events:none}
.site-header,body[data-page="all-works"]>.site-header{background:var(--paper)}
nav a:hover,nav a[aria-current="page"],.category-menu button:hover,.category-menu button[aria-pressed="true"]{color:var(--ink)}
.site-header nav{padding-right:calc(var(--margin) + 50px)}
.work-card .grid-caption{background:transparent;color:#fff;text-shadow:none}.work-card .grid-caption p{color:inherit}
.grid-caption p,.project-caption p{color:var(--muted)}
.skip-link{background:var(--paper);color:var(--ink)}
::selection{background:var(--ink);color:var(--paper)}
html{scrollbar-color:var(--muted) var(--paper);scrollbar-gutter:stable}
:root[data-theme="dark"] .mw-page{--ink:#f2f2f2;--muted:#abb6ad;--rule:#39433b}
:root[data-theme="dark"] .ac-page{color:var(--ink)}
:root[data-theme="dark"] :is(.ac-label,.ac-client,.ac-role span,.ac-metrics dd,.ac-flow p,.ac-ownership small,.ac-note,.ac-figure figcaption){color:var(--muted)}
:root[data-theme="dark"] .ac-ecosystem{background:#171717;color:var(--ink)}
:root[data-theme="dark"] .ac-ecosystem small{color:var(--muted)}
:root[data-theme="dark"] .ac-hero-art{color:#111}
:root[data-theme="dark"] .related img{filter:invert(1)}
:root[data-theme="dark"] #viewer{background:var(--paper);color:var(--ink)}
:root[data-theme="dark"] .project-source:hover{color:var(--ink)}
@media(max-width:700px){.theme-toggle{top:28px;width:14.4px;height:14.4px}}
@media(prefers-reduced-motion:reduce){.theme-toggle::after{transition:none}}
