/* Two explicit choices; light remains the original approved appearance. */
:root { color-scheme: light; }
html:not([data-site-theme="dark"]) .study-shape::after {
  border-top: 2px solid #fff;
}
.site-theme-control {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #868b8238;
  border-radius: 999px;
  background: #ffffff38;
}
.site-theme-control button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #54594f;
  cursor: pointer;
}
.site-theme-control button[aria-pressed="true"] {
  background: #fff;
  color: #d94c00;
  box-shadow: 0 1px 5px #0000000a;
}
@media (hover: hover) and (pointer: fine) {
.site-theme-control button:hover { color: #d94c00; } }
.site-theme-control button:focus-visible { outline: 2px solid #ff5900; outline-offset: 2px; }
@media (min-width: 961px) {
  .site-header { gap: clamp(14px, 2vw, 28px); }
  .site-nav { gap: clamp(14px, 2vw, 32px); margin-left: auto; }
}
@media (max-width: 960px) {
  .site-header { gap: 16px; }
  .menu-toggle { margin-left: auto; }
  .site-theme-control { gap: 0; padding: 2px; }
}
@media (max-width: 380px) {
  .site-header { gap: 10px; }
  .site-brand img { width: 88px; }
  .site-theme-control button { width: 34px; height: 36px; }
}

/* Dark uses real surface/text colors. Gallery media and product canvases keep
   their original colors; the alternate brand preserves its orange square. */
html[data-site-theme="dark"] {
  color-scheme: dark;
  --paper: #000000;
  --ink: #f3f3f1;
  --muted: #b1b5ad;
  --line: #363936;
  --home-surface: #000;
  background: #000000;
}
html[data-site-theme="dark"] .site-intro,
html[data-site-theme="dark"] body,
html[data-site-theme="dark"] body #site-page,
html[data-site-theme="dark"] body .quadrant-study,
html[data-site-theme="dark"] body #sobre-nos,
html[data-site-theme="dark"] body .catalog-view,
html[data-site-theme="dark"] body .site-copyright {
  background: #000000;
  color: #f3f3f1;
}
html[data-site-theme="dark"] body .site-header { background: transparent !important; color: #f3f3f1; }
html[data-site-theme="dark"] .site-theme-control { background: #000000; border-color: #ffffff24; }
html[data-site-theme="dark"] .site-theme-control button { color: #bec2bb; }
html[data-site-theme="dark"] .site-theme-control button[aria-pressed="true"] { background: #000000; color: #ff9c66; }
html[data-site-theme="dark"] .menu-toggle,
html[data-site-theme="dark"] .nav-view { color: #f3f3f1; }
html[data-site-theme="dark"] body[data-view] .language-control button,
html[data-site-theme="dark"] .language-control > span { color: #b1b5ad; }
html[data-site-theme="dark"] body[data-view] .language-control button[aria-pressed="true"] { color: #f3f3f1; }
@media (hover: hover) and (pointer: fine) {
html[data-site-theme="dark"] body[data-view] .language-control button:hover { color: #f3f3f1; } }
html[data-site-theme="dark"] body[data-view="home"] .site-copyright { background: transparent; }
html[data-site-theme="dark"] .study-guidance .study-step-label,
html[data-site-theme="dark"] .study-guidance .study-step-count { color: #b1b5ad; }
html[data-site-theme="dark"] .study-stage .study-edge-control { color: #fff; }
html[data-site-theme="dark"] .study-copy[data-story] h2 { color: #f3f3f1; }
html[data-site-theme="dark"] .study-copy[data-story] > p:not(.study-copy-eyebrow) { color: #b1b5ad; }
html[data-site-theme="dark"] .study-copy,
html[data-site-theme="dark"] .about-manifesto .about-origin,
html[data-site-theme="dark"] .study-guidance { color: #f3f3f1; }
html[data-site-theme="dark"] .study-copy > p:not(.study-copy-eyebrow),
html[data-site-theme="dark"] .study-copy-eyebrow,
html[data-site-theme="dark"] .study-wordmark p,
html[data-site-theme="dark"] .site-copyright p { color: #b1b5ad; }
html[data-site-theme="dark"] .study-brand-svg path { fill: #f3f3f1; }
html[data-site-theme="dark"] .study-scroll-prompt { color: #f3f3f1; }
html[data-site-theme="dark"] .study-scroll-prompt-icon { color: #ff9c66; border-color: #ff9c6666; }
@media (hover: hover) and (pointer: fine) {
html[data-site-theme="dark"] .study-scroll-prompt:hover .study-scroll-prompt-icon { color: #ff5900; border-color: #ff5900; } }
html[data-site-theme="dark"] .study-products-link,
html[data-site-theme="dark"] .study-final-products { color: #f3f3f1; border-color: #6a6e65; }
html[data-site-theme="dark"] .catalog-brand { color: #f3f3f1; }
html[data-site-theme="dark"] .catalog-description,
html[data-site-theme="dark"] .catalog-private,
html[data-site-theme="dark"] .catalog-choice-number { color: #b1b5ad; }
html[data-site-theme="dark"] .catalog-access { color: #f3f3f1; border-color: #5b6055; }
html[data-site-theme="dark"] .catalog-art { background: #000000; border-color: #363936; box-shadow: 0 -1px #363936, 0 1px #363936; }
html[data-site-theme="dark"] .catalog-choices button { color: #aeb3a7; }
html[data-site-theme="dark"] .catalog-choices button[aria-pressed="true"] { color: #f3f3f1; }
html[data-site-theme="dark"] .catalog-track { background: #363936; }
html[data-site-theme="dark"] .gallery-meta,
html[data-site-theme="dark"] .gallery-work-author,
html[data-site-theme="dark"] .gallery-message { color: #b1b5ad; }
html[data-site-theme="dark"] .gallery-caption,
html[data-site-theme="dark"] .gallery-selected-caption { color: #f3f3f1; }
html[data-site-theme="dark"] .gallery-retry { background: #000000; color: #f3f3f1; border-color: #5b6055; }
html[data-site-theme="dark"] .gallery-lightbox { background: #000000f7; color: #f3f3f1; }
html[data-site-theme="dark"] .gallery-lightbox::backdrop { background: #000000cc; }
html[data-site-theme="dark"] .contact-view .editorial-description,
html[data-site-theme="dark"] .contact-message-form label > span { color: #f3f3f1; }
html[data-site-theme="dark"] .editorial-description,
html[data-site-theme="dark"] .contact-detail-label,
html[data-site-theme="dark"] .contact-message-note,
html[data-site-theme="dark"] .contact-preview-note { color: #b1b5ad; }
html[data-site-theme="dark"] .contact-message-form input,
html[data-site-theme="dark"] .contact-message-form textarea,
html[data-site-theme="dark"] .solution-fields input,
html[data-site-theme="dark"] .solution-fields textarea { color: #f3f3f1; background: #000000; border-color: #484c46; }
html[data-site-theme="dark"] .contact-email-copy,
html[data-site-theme="dark"] .contact-email-open { background: transparent; color: #ff9c66; border-color: #363936; }
@media (hover: hover) and (pointer: fine) {
html[data-site-theme="dark"] .contact-email-copy:hover,html[data-site-theme="dark"] .contact-email-open:hover { background: #ff590018; border-color: #ff590066; } }
html[data-site-theme="dark"] .contact-copy-status,
html[data-site-theme="dark"] .contact-message-status { color: #a9d598; }
html[data-site-theme="dark"] .contact-copy-status[data-state="error"],
html[data-site-theme="dark"] .contact-message-status[data-state="error"] { color: #ffb199; }
html[data-site-theme="dark"] .contact-thanks-eyebrow,
html[data-site-theme="dark"] .contact-thanks-description { color: #b1b5ad; }
html[data-site-theme="dark"] .contact-thanks-products { border-color: #363936; }
html[data-site-theme="dark"] .contact-product-card { background: #000000; color: #f3f3f1; border-color: #363936; }
html[data-site-theme="dark"] .contact-product-card > p,
html[data-site-theme="dark"] .contact-thanks-again { color: #b1b5ad; }
html[data-site-theme="dark"] .contact-product-card > button { color: #f3f3f1; border-color: #363936; }
html[data-site-theme="dark"] .gallery-toggle,
html[data-site-theme="dark"] .gallery-audio { color: #b1b5ad; }
html[data-site-theme="dark"] .solution-dialog { color: #f3f3f1; background: #000000; border-color: #363936; }
html[data-site-theme="dark"] .solution-intro,
html[data-site-theme="dark"] .solution-eyebrow { color: #b1b5ad; }
html[data-site-theme="dark"] .solution-close { color: #f3f3f1; }
html[data-site-theme="dark"] .skip-link { background: #f3f3f1; color: #000000; }
@media (max-width: 960px) {
  html[data-site-theme="dark"] .js .site-nav,
  html[data-site-theme="dark"] .site-nav { background: #000000; border-color: #41443e; box-shadow: 0 12px 30px #0005; }
  html[data-site-theme="dark"] .language-control { border-color: #41443e; }
}
