/* Site surfaces only. Project specimens, photographs and films retain their colors. */
:root{color-scheme:light dark;--theme-bg:#FFFDF1;--theme-text:#13322B;--theme-border:#8c9c91}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--theme-bg:#171a19;--theme-text:#eeeee6;--theme-border:#68766d}
.theme-control{display:inline-flex;align-items:center;gap:10px;font:14px/1.4 "Helvetica Neue",Arial,sans-serif;letter-spacing:normal;white-space:nowrap}
.theme-control select{font:inherit;color:inherit;background:transparent;border:1px solid currentColor;border-radius:4px;min-height:44px;padding:8px 30px 8px 12px;cursor:pointer;color-scheme:inherit}
.theme-control option{background:var(--theme-bg);color:var(--theme-text)}
.theme-control select:focus-visible{outline:2px solid currentColor;outline-offset:4px}
html[data-theme=dark] body{background:#171a19;color:#eeeee6}
html[data-theme=dark] .identity-root.pf-root{--brand-paper:#eeeee6;--brand-pale:#333e38;--brand-green:#b2cabd;--brand-deep:#171a19;--pf-paper:#171a19;--pf-ink:#eeeee6;--pf-accent:#b2cabd;--pf-surface:#232a26;--pf-muted:#b5beb7;--pf-line:#536158;--ink:#eeeee6;--muted:#b5beb7;background:var(--pf-paper);color:var(--pf-ink)}
html[data-theme=dark] .identity-root>header{color:#eeeee6!important}
html[data-theme=dark] .identity-home header{background:#171a19}
html[data-theme=dark] .identity-home header nav{color:#eeeee6}
html[data-theme=dark] .identity-home .home-arrival{background:#171a19}
html[data-theme=dark] .identity-home .arrival-copy{color:#eeeee6}
html[data-theme=dark] .identity-home .arrival-copy>p{color:#c4cbc5}
html[data-theme=dark] .identity-home .arrival-scroll{color:#b2cabd}
html[data-theme=dark] .identity-home .work-gallery{background:#202622;color:#eeeee6}
html[data-theme=dark] .identity-home .work-gallery-heading h2{color:#eeeee6}
html[data-theme=dark] .identity-home .search input{background:transparent;color:#eeeee6;border-color:#68766d}
html[data-theme=dark] .identity-home .search input::placeholder{color:#b5beb7}
html[data-theme=dark] .identity-home .work-gallery .work-in-progress{color:#b5beb7}
html[data-theme=dark] .identity-root>footer{background:#111513;color:#eeeee6;border-top:1px solid #414c44}
html[data-theme=dark] .identity-root :is(#viewer,.pf-film-dialog){background:#111513;color:#eeeee6}
html[data-theme=dark] .identity-root :is(#viewer,.pf-film-dialog) .close{background:#111513;color:#eeeee6}
html[data-theme=dark] .identity-root :is(#viewer,.pf-film-dialog)::backdrop{background:#090b0aeb}
html[data-theme=dark] .identity-root main figcaption{color:var(--pf-muted)}
html[data-theme=dark] .identity-root .pf-next strong{color:#b2cabd}
html[data-theme=dark] .identity-root .pf-next span{color:#b5beb7}
html[data-theme=dark] .identity-root.about-project .about-contact{background:#232e27;--pf-accent:#eeeee6;--pf-ink:#eeeee6;--pf-muted:#b5beb7;color:#eeeee6}
html[data-theme=dark] .identity-root .skip{background:#171a19;color:#eeeee6}
html[data-theme=dark] .identity-root .pf-deck-controls button{border-color:#68766d;background:#232a26;color:#eeeee6}
/* Preserve the ink of intentionally light project specimens and sample forms. */
html[data-theme=dark] .rosie-project :is(.crs-type-specimen,.crs-form-demo,.crs-control-panel,.crs-discussion){color:#34312b;color-scheme:light}
html[data-theme=dark] .rosie-project .crs-book-hint{color:#b5beb7}
html[data-theme=dark] .rosie-project .crs-form-footnote{color:#625c51}
html[data-theme=dark] .shift-project .pf-chart{background:#232a26;color:#eeeee6;--pf-accent:#d8ce80}
html[data-theme=dark] .identity-root .vetiver-lockup figcaption{color:inherit}
html[data-theme=dark] .vetiver-project .vetiver-title>a{display:block;background:#f8f5e6;color:#004d33;padding:clamp(20px,3vw,40px)}
html[data-theme=dark] .identity-root :is(.project-wordmark-study-beverage,.project-wordmark-study-slow-food) .pf-caption{color:#363b32}
html[data-theme=dark] .identity-root .project-wordmark-study-farmtender .pf-caption{color:#FFFDF1}
/* The photography site uses independent foreground/background tokens. */
html[data-theme=dark]:has(.photo-header){--cream:#171a19;--paper:#eeeee6;--green:#d6e0d7;--deep:#101512;--line:#536158}
html[data-theme=dark] .photo-header~main{color:#d6e0d7}
html[data-theme=dark] .photo-header~footer{color:#b5beb7}
html[data-theme=dark] .photo-header~main .button{background:#b2cabd;border-color:#b2cabd;color:#152019}
html[data-theme=dark] .photo-header~main .button:hover{background:#d0e0d5;border-color:#d0e0d5}
html[data-theme=dark] .photo-header~main .service-ending{background:#101512;color:#eeeee6;--line:#536158}
html[data-theme=dark] .photo-header~main .inquiry-form :is(input,textarea){background:#202622;border-color:#68766d;color:#eeeee6;accent-color:#b2cabd}
html[data-theme=dark] .photo-header~main .field-error{color:#ffb4a9}
html[data-theme=dark] .photo-header~main .form-notice{background:#29382d;color:#eeeee6}
html[data-theme=dark] .viewer{background:#101512;color:#eeeee6}
html[data-theme=dark] .viewer::backdrop{background:#101512}
html[data-theme=dark] .viewer button{border-color:#68766d}
html[data-theme=dark] :is(input,textarea,select):focus-visible{outline:2px solid currentColor;outline-offset:4px}
html[data-theme=dark] .identity-root :focus-visible{outline-color:currentColor}
@media(max-width:800px){html[data-theme=dark] .identity-home .arrival-project{color:#c4cbc5}.theme-control{margin-top:12px}}
@media(prefers-color-scheme:dark){html:not([data-theme]) body{background:#171a19;color:#eeeee6}}
