:root{color-scheme:light}
.header-actions{display:flex;align-items:center;gap:22px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;color:var(--ink);background:transparent}
.theme-toggle:hover{background:var(--line)}
.theme-toggle svg{display:block;width:22px;height:22px;pointer-events:none}
.work-back-icon{display:none}

:root[data-theme=dark]{color-scheme:dark;--paper:#1c1e1d;--white:#272a27;--ink:#efeee7;--muted:#b6bab1;--line:#454b43;--blue:#b5cbd2;--dark:#161a19}
[data-theme=dark] ::selection{background:#50635f;color:#fff}
[data-theme=dark] .header{background:rgba(28,30,29,.97)}
/* Only the signature logos are inverted; artwork pixels stay unchanged. */
[data-theme=dark] .brand img,[data-theme=dark] .footer-logo img{filter:invert(1);mix-blend-mode:screen}
[data-theme=dark] .button-dark,[data-theme=dark] .filters button[aria-pressed=true],[data-theme=dark] .skip-link{background:var(--ink);color:var(--paper)}
[data-theme=dark] .button-dark:hover{background:var(--blue);color:var(--paper)}
[data-theme=dark] .button-line:hover{background:var(--ink);color:var(--paper)}
[data-theme=dark] .hero-frame,[data-theme=dark] .art-image,[data-theme=dark] .art-card:nth-child(3n+2) .art-image,[data-theme=dark] .art-card:nth-child(3n+3) .art-image,[data-theme=dark] .viewer-stage,[data-theme=dark] .work-figure>a{background:#292d29}
[data-theme=dark] .filters button:hover:not([aria-pressed=true]),[data-theme=dark] .icon-button:hover{background:#363c35;color:var(--ink)}
[data-theme=dark] .commission-art{background:#292f29}
[data-theme=dark] .contact{background:#242a25}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] .email-draft{border-color:#6d776b}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#b3baaf;opacity:1}
[data-theme=dark] select option{background:var(--paper);color:var(--ink)}
[data-theme=dark] .quote-result.is-error{color:#ffc0ad;border-color:#c88772}
[data-theme=dark] #collection-toggle{border-color:#7b8177}
[data-theme=dark] .art-share-trigger{color:var(--ink);border-color:var(--line)}
[data-theme=dark] .art-share-trigger:hover{background:#363c35;border-color:var(--muted)}
[data-theme=dark] .art-share-dialog{background:#242723;color:var(--ink);border-color:var(--line)}
[data-theme=dark] .art-share-close{border-color:#687061}
[data-theme=dark] .art-share-title,[data-theme=dark] .art-share-label,[data-theme=dark] .art-share-status{color:var(--muted)}
[data-theme=dark] .art-share-options button,[data-theme=dark] .art-share-options a,[data-theme=dark] .art-share-url{background:#30362e;color:var(--ink);border-color:#687061}
[data-theme=dark] .art-share-options button:hover,[data-theme=dark] .art-share-options a:hover{background:#40483c;border-color:var(--muted)}
[data-theme=dark] .art-share-options [data-share=copy]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
[data-theme=dark] .art-share-options [data-share=copy]:hover{background:#d7ded0}
[data-theme=dark] .art-share-trigger:focus-visible,[data-theme=dark] .art-share-dialog :focus-visible{outline-color:var(--blue)}

@media(max-width:900px){.header-actions{gap:12px}}
@media(max-width:760px){.header-actions{gap:8px}.theme-toggle{width:44px;height:44px}}
@media(max-width:520px){.work-back{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;width:44px;height:44px;padding:10px;flex-shrink:0}.work-back>span{display:none}.work-back-icon{display:block;width:22px;height:22px}}
@media(max-width:370px){.header-inner{gap:8px}.header-actions{gap:4px}.header .brand{gap:8px}.header .brand>span{font-size:17px}.header .brand small{font-size:7px}}
