/* Light theme, 2026-10-30. Dark stays the default (the brand canvas); light
   is opt-in from the header switch and remembered per browser. The page
   colours come from the :root tokens in style.css, so the light palette is
   mostly a token swap: paper canvas, coffee type, a deeper ember that holds
   up as text on paper. Rules below cover what isn't tokenised: imagery,
   overlays and shadows. Mock product UIs keep their products' own colours. */
:root[data-theme=light]{--night:#f5f0e6;--surface:#ece5d7;--raised:#e2d9c7;--cream:#1c1814;--sand:#5e5446;--whisper:#706456;--amber:#a84916;--highlight:#a84916;--line:#1c18141f;color-scheme:light}
:root{color-scheme:dark}

/* Header switch */
.site-theme-toggle{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid color-mix(in srgb,var(--cream) 16%,transparent);border-radius:50%;background:transparent;color:inherit;cursor:pointer;transition:border-color .3s,color .3s}
.site-theme-toggle:hover{border-color:var(--highlight);color:var(--highlight)}
.site-theme-toggle:focus-visible{outline:2px solid var(--highlight);outline-offset:3px}
.site-theme-toggle .icon-sun,:root[data-theme=light] .site-theme-toggle .icon-moon{display:none}
:root[data-theme=light] .site-theme-toggle .icon-sun{display:block}
@media(max-width:900px){.site-theme-toggle{width:44px;height:44px;margin-left:auto}.site-header-inner{gap:12px}}
@media(min-width:901px){.site-header nav{order:1}.site-theme-toggle{order:2;margin-left:-15px}.site-menu-toggle{order:3}}

/* Keep the dark palette where the content is imagery or a mock of someone
   else's site: the illustrative clinic website in the hero. */
:root[data-theme=light] :is(.site-window){--night:#14110e;--surface:#1c1814;--raised:#28221c;--cream:#ede6d7;--sand:#b8ab95;--whisper:#6f6457;--amber:#ff8c42;--highlight:#ffaa66;--line:#ede6d723}

/* Mobile homepage (/landing/mobile): the switch sits between WhatsApp and the menu */
.header-wa+.site-theme-toggle{margin-left:0;width:40px;height:40px;flex-shrink:0}
.site-theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Work gallery in light: paper cards, photos in natural colour, caption on
   the card below the image. Dark mode's dimmed, greyed photos fading into a
   near-black caption read as dark tiles pasted onto the page. */
:root[data-theme=light] .work-gallery .work-grid .work-card,:root[data-theme=light] .work-gallery .work-grid .work-card:last-child{background:#fbf8f2;border-color:var(--line);box-shadow:none}
:root[data-theme=light] .work-gallery .work-grid .project-image{background:var(--raised)}
:root[data-theme=light] .work-gallery .work-grid .project-image:after,:root[data-theme=light] .work-gallery .work-grid .project-image.hero-preview:after{display:none}
:root[data-theme=light] .work-gallery .work-grid .project-image img,:root[data-theme=light] .work-gallery .work-grid .is-wide .project-image img{filter:saturate(.9)}
:root[data-theme=light] .work-gallery .work-grid .work-card:is(:hover,:focus-visible) .project-image img{filter:none}
:root[data-theme=light] .work-gallery .work-grid .work-card:is(:hover,:focus-visible){box-shadow:0 0 0 1px color-mix(in srgb,var(--highlight) 25%,transparent),0 24px 48px -30px #1c181466}

/* Light: surfaces sit flat on a hairline; shadow only on hover (cards) and on
   the floating hero mocks, which keep theirs. */
:root[data-theme=light] .service-template{box-shadow:none}
:root[data-theme=light] .service-template:hover{box-shadow:0 24px 48px -30px #1c181466}

/* ChatGPT mock: ChatGPT's own light interface in light mode, instead of a
   570px dark block. Claude, Perplexity and Google mocks are light already. */
:root[data-theme=light] .native-chat:not(.native-claude,.native-perplexity,.native-google){--ui-bg:#fff;--ui-panel:#f4f4f4;--ui-text:#0d0d0d;--ui-muted:#5d5d5d;--ui-border:#0d0d0d1a}

/* Light: two hard-coded dark fills that kept theme-coloured text (found by a
   contrast scan): the campaign's destination chips, and amber-on-beige on the
   selected "How it works" step (2.3:1). */
:root[data-theme=light] .campaign-destination>span{background:var(--surface);color:var(--cream)}
:root[data-theme=light] .delivery-tabs button[aria-selected=true]{color:var(--highlight)}

/* Step cards in light: paper card, the tool slice on a sand band */
:root[data-theme=light] .step-card{background:#fbf8f2}
:root[data-theme=light] .step-slice{background:var(--surface)}
:root[data-theme=light] .step-slice:after{background:linear-gradient(transparent,var(--surface))}
:root[data-theme=light] .mini-window{background:#fffdf8}
:root[data-theme=light] .mini-0 .mini-rows li{background:#f8f4ec}
/* The dial keeps its dark palette; its caption sits on the page, not on it */
:root[data-theme=light] .dial-caption{color:#5e5446}
:root[data-theme=light] .dial-caption span{color:#a84916}
:root[data-theme=light] .industry-selector .labels{box-shadow:0 12px 30px -20px #1c181440}
