/* Theme switcher (header). Colors come from the theme tokens below. */
:root{--th-fg:#c0ccd7;--th-on:#fbf6ed;--th-bd:rgba(255,223,192,.28);--th-act:rgba(232,160,140,.2);--th-ring:#e8a08c}
html[data-theme=dark]{--th-fg:#c9c9c9;--th-on:#fff;--th-bd:rgba(255,255,255,.22);--th-act:rgba(232,160,140,.22)}
html[data-theme=light]{--th-fg:#4a4540;--th-on:#1a1714;--th-bd:rgba(40,30,20,.22);--th-act:rgba(166,84,62,.16);--th-ring:#9a4a36}
.th-switch{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--th-bd);border-radius:999px;margin-right:14px;flex:none}
.th-opt,.th-cycle{display:inline-grid;place-items:center;width:30px;height:30px;border:0;border-radius:999px;background:none;color:var(--th-fg);cursor:pointer;padding:0;transition:background .25s,color .25s,transform .25s}
.th-opt:hover,.th-cycle:hover{color:var(--th-on)}
.th-opt[aria-checked=true]{background:var(--th-act);color:var(--th-on);box-shadow:inset 0 0 0 1px var(--th-ring)}
.th-opt:focus-visible,.th-cycle:focus-visible{outline:2px solid var(--th-ring);outline-offset:2px}
.th-cycle{display:none;border:1px solid var(--th-bd);width:40px;height:40px;margin-right:8px}
@media(max-width:600px){.th-switch{display:none}.th-cycle{display:inline-grid}}
html.th-fade,html.th-fade *,html.th-fade *::before,html.th-fade *::after{transition:background-color .4s ease,color .4s ease,border-color .4s ease,fill .4s ease,stroke .4s ease!important}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){.th-opt,.th-cycle{transition:none}}
html[data-theme=light] .site-brand img{filter:saturate(1.15) brightness(.82)}
/* Light: gradient-clipped headline text needs deeper copper for contrast on paper. */
html[data-theme=light] .atlas-hero h1 span,html[data-theme=light] .ab-stats b,html[data-theme=light] .adm-head h2 em,html[data-theme=light] .mr-cap{background-image:linear-gradient(92deg,#b5604f,#9c4535 55%,#86362a)}
/* Light: the Earth art is a photograph of space, so it keeps a dark window. */
html[data-theme=light] .company-art{background:#10131a;border-color:#d9d4cc}
html[data-theme=light] .company-art:after{background:linear-gradient(0deg,#10131a 0%,transparent 90%)}
html[data-theme=light] .company-art-label strong{color:#fbf6ed}
html[data-theme=light] .company-art-label .art-caption{color:#c9ccd2}
html[data-theme=light] .company-art .art-overline{color:#e9c9a9}
/* Contrast fixes (AA) */
html[data-theme=dark] .subtle-disclosure,html[data-theme=dark] .micro-dark{color:#9a9a9a}
.optional{color:inherit!important;opacity:.8}
.founder-section .section-kicker{color:#d08f8a}
html[data-theme=light] .founder-section .section-kicker{color:#8a3a31}
html[data-theme=dark] .rs-review-options button span{color:#c99a8a}
html[data-theme=light] .rs-experiment span{color:#5f584b}
/* Dark: black surfaces, so navy buttons get a hairline to stay visible. */
html[data-theme=dark] .button-navy{border:1px solid rgba(255,255,255,.32)!important}
/* Dark: gradient-clipped headline text in rose gold (light stops would otherwise map to the black surface). */
html[data-theme=dark] .atlas-hero h1 span,html[data-theme=dark] .ab-stats b,html[data-theme=dark] .adm-head h2 em,html[data-theme=dark] .mr-cap{background-image:linear-gradient(92deg,#f3c9bc,#de968a 55%,#c46e66)}
html[data-theme=dark] .mv-av.you{background:#e8b4a0;color:#1a0b06}
