/* Two art directions, shared contrast-controlled interface colors. */
body.theme-test-ready {
 --theme-surface: #11110f; --theme-panel: rgba(17,17,15,.96); --theme-panel-soft: rgba(17,17,15,.88);
 --theme-header: #11110f; --theme-footer: #0c0c0b; --theme-button: #c4a878; --theme-button-text: #11110f; --theme-button-hover: #e1c99c;
}
body.theme-light {
 color-scheme: light;
 --ink: #f2ede4; --ink-soft: #e8dfd2; --ink-lift: #ded3c2;
 --paper: #27241f; --paper-dim: #575045; --gold: #765327; --gold-light: #6e4c2a;
 --line: rgba(79,62,42,.34); --theme-surface: #f2ede4; --theme-panel: rgba(242,237,228,.97); --theme-panel-soft: rgba(242,237,228,.95);
 --theme-header: #f2ede4; --theme-footer: #e8dfd2; --theme-button: #60462d; --theme-button-text: #fff8ed; --theme-button-hover: #493421;
 background: var(--ink); color: var(--paper);
}
.page-home.theme-test-ready { background: var(--theme-surface); }
.page-home.theme-test-ready::before, .page-home.theme-test-ready::after { z-index: -3; }
.theme-backdrop-light { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url('/assets/backgrounds/christian-breier-couture-ivory.jpeg') center right / cover no-repeat; opacity: 0; transition: opacity 6s cubic-bezier(.45,0,.2,1); }
.theme-backdrop-light.is-visible { opacity: 1; }
@media(max-width:1023px) { .theme-backdrop-light { inset: calc(0px - var(--fashion-overhang)); background-position: 68% center; } }
/* Original text panels, spacing, borders and button styles remain in site.css. */
body.theme-light main h1, body.theme-light main h2, body.theme-light main h3 { color: var(--paper); text-shadow: none; }
body.theme-light main h1 em, body.theme-light main h2 em, body.theme-light main h3 em { color: var(--gold-light); }
body.theme-light main p, body.theme-light main figcaption, body.theme-light main blockquote { color: var(--paper-dim); text-shadow: none; }
body.theme-light main .eyebrow, body.theme-light main .proof-number, body.theme-light main .underlined-link, body.theme-light main .text-link { color: var(--gold-light); }
body.theme-light .site-header, body.theme-light .site-header .mobile-nav { background: var(--theme-header); border-color: var(--line); }
body.theme-light .site-header .mobile-nav > a, body.theme-light .site-header .mobile-nav .nav-group > summary,
body.theme-light .site-header .mobile-nav .nav-submenu a, body.theme-light .site-header .language-link, body.theme-light .header-actions { color: var(--paper); }
body.theme-light .site-header .menu-toggle, body.theme-light .site-header .quick-contact { color: var(--gold-light); border-color: var(--gold); }
body.theme-light .site-header .mobile-nav > .nav-group, body.theme-light .site-header .mobile-nav .nav-submenu a { border-color: var(--line); }
body.theme-light .site-footer { background: var(--theme-footer); color: var(--paper); }
body.theme-light .site-footer a, body.theme-light .site-footer .copyright, body.theme-light .privacy-settings-link { color: var(--paper-dim); }
/* Recolor existing surfaces, preserving their original transparency. */
body.theme-light main figure:has(> img), body.theme-light main .gallery-image { background: rgba(242,237,228,.68); border-color: var(--line); }
body.theme-light.page-home .hero-portrait { background: rgba(242,237,228,.7); }
body.theme-light .home-perspective { background: rgba(242,237,228,.7); }
body.theme-light .home-story-copy { background: rgba(242,237,228,.78); }
body.theme-light .personal-cta { background: rgba(242,237,228,.75); }
body.theme-light.page-home .project-grid article, body.theme-light.page-home .press-item { background: rgba(242,237,228,.56); }
body.theme-light .contact-card, body.theme-light .role-context { background: var(--ink-soft); border-color: var(--line); }
body.theme-light.page-home .site-header { background: rgba(242,237,228,.7); }
body.theme-light .proof-label, body.theme-light .function-summary, body.theme-light .function-subtitle,
body.theme-light .fashion-carousel-count { color: var(--paper-dim); }
body.theme-light .scroll-controls, body.theme-light .music-toggle, body.theme-light .fashion-carousel-controls button, body.theme-light .motion-preference {
 background: var(--theme-surface); color: var(--gold-light); border-color: var(--gold);
}
body.theme-light .scroll-controls button { color: var(--gold-light); }
body.theme-light .privacy-dialog, body.theme-light .privacy-dialog.is-compact { background: var(--theme-surface); color: var(--paper); border-color: var(--line); }
body.theme-light .privacy-actions button { background: var(--ink-soft); color: var(--gold-light); border-color: var(--gold); }
body.theme-light .privacy-actions button:hover { background: var(--ink-lift); }
body.theme-light .enquiry-form input, body.theme-light .enquiry-form textarea { background: #fffaf2; color: var(--paper); border-color: var(--gold); }
body.theme-light :where(a,button,summary,input,textarea,select,[tabindex]):focus-visible { outline-color: #765327 !important; }
.theme-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; width: fit-content; max-width: calc(100% - 2rem); margin: 1.25rem auto; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--theme-panel); }
.theme-controls button { min-height: 44px; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--gold); background: var(--theme-surface); color: var(--gold-light); font: inherit; font-size: .875rem; cursor: pointer; }
.theme-controls button[aria-pressed="true"] { background: var(--theme-button); color: var(--theme-button-text); }
.theme-controls button:disabled { cursor: default; }
.theme-controls .theme-status { display: block; font-size: .875rem; color: var(--paper-dim); padding-inline: .35rem; }
body.reduce-motion .theme-backdrop-light { transition: none !important; }
@media(prefers-reduced-motion: reduce) { .theme-backdrop-light { transition: none; } }
@media(print) { .theme-controls, .theme-backdrop-light { display: none; } }
/* Keep secondary pages legible in the light palette as well. */
body.theme-light .stations-section, body.theme-light .role-detail,
body.theme-light .role-index, body.theme-light .function-directory,
body.theme-light .publication-section, body.theme-light .press-section,
body.theme-light .collaboration-process, body.theme-light .editorial-note,
body.theme-light .home-cta, body.theme-light .draft-notice { background: var(--ink-soft); color: var(--paper); }
body.theme-light .nav-card:hover, body.theme-light .role-index a:hover { background: var(--ink-lift); }
body.theme-light .timeline-date, body.theme-light .timeline-copy h2 { color: var(--paper); }
body.theme-light .skip-link { background: var(--theme-surface); color: var(--gold-light); }
body.theme-light .reel-cover { background: linear-gradient(145deg,#e8dfd2,#f2ede4 65%); }
body.theme-light .image-credit { color: var(--paper-dim); }

/* A right-side drawer replaces the in-page test toolbar. */
.theme-drawer { position: fixed; right: .6rem; top: 50%; transform: translateY(-50%); z-index: 35; }
.theme-drawer-toggle { width: 44px; min-height: 44px; border: 1px solid var(--gold); border-radius: 50%; background: var(--ink); color: var(--gold-light); font: 1rem var(--sans); letter-spacing: .08em; cursor: pointer; }
.theme-drawer .theme-controls { position: absolute; right: 54px; top: 50%; transform: translateY(-50%); width: min(260px,calc(100vw - 80px)); max-width: none; margin: 0; padding: .85rem; border-radius: 8px; box-sizing: border-box; background: var(--ink); box-shadow: 0 8px 24px #0003; animation: drawer-in .3s ease-out; }
.theme-drawer .theme-controls[hidden] { display: none; }
.theme-drawer .theme-controls button { flex: 1 1 auto; }
.theme-drawer .theme-controls .theme-drawer-close { flex-basis: 100%; border-color: var(--line); }
@keyframes drawer-in { from { opacity: 0; translate: 12px 0; } to { opacity: 1; translate: 0 0; } }
/* Override fixed pale text from the original dark homepage in the light view. */
body.theme-light.page-home main p:not(.eyebrow), body.theme-light.page-home main blockquote,
body.theme-light.page-home main figcaption { color: #342a20 !important; }
body.theme-light.page-home main :is(h1,h2,h3), body.theme-light.page-home main .heading-link { color: #272018; }
body.theme-light.page-home main :is(.eyebrow,.text-link,.underlined-link) { color: #61401f !important; }
body.theme-light.page-home main :is(h1,h2,h3) em { color: #61401f; }
body.theme-test-ready main :is(h1,h2,h3,p,blockquote,figcaption,a) { transition: color .55s ease; }
body.reduce-motion .theme-drawer .theme-controls, body.reduce-motion.theme-test-ready main * { animation: none; transition: none; }
@media(prefers-reduced-motion:reduce) { .theme-drawer .theme-controls, body.theme-test-ready main * { animation: none; transition: none; } }
@media(print) { .theme-drawer { display: none; } }
