/* Reviewed warm-paper palette; artwork, geometry and layout stay the same. */
html[data-theme="light"], html[data-theme="light"] .is-home {
  color-scheme: light;
  --intro-paper: #f7f3eb;
  --intro-ink: #30271e;
  --intro-muted: #675c50;
  --intro-clay: #985c2b;
  --intro-line: #d7cbb9;
}
html[data-theme="light"] .public-home .topbar,
html[data-theme="light"] .is-home .topbar { background: #fffaf2f2; }
html[data-theme="light"] .intro-bowl { filter: drop-shadow(12px 20px 20px #60482a24); }
html[data-theme="light"] .intro-caption-rule { background: #9b876d; }
html[data-theme="light"] .intro-origins { background: #eee7da; }
html[data-theme="light"] .intro-map { border-color: #c4c7b5; }
html[data-theme="light"] .intro-map-ground { fill: #edf0e5; }
html[data-theme="light"] .intro-map-corridor { stroke: #c6cebc; }
html[data-theme="light"] .intro-map-water { fill: #bfd8db; }
html[data-theme="light"] .intro-map-rivers { stroke: #3e737d; }
html[data-theme="light"] .intro-map-labels { fill: #485744; }
html[data-theme="light"] .intro-map-labels path { stroke: #485744; }
html[data-theme="light"] .intro-map #map-grid path { stroke: #87947f; }
html[data-theme="light"] .intro-find-region { fill: #b68143; stroke: #8e592b; fill-opacity: .23; stroke-opacity: .8; }
html[data-theme="light"] .intro-region-key { background: #b681433b; border-color: #8e592b; }
html[data-theme="light"] .intro-scholarship { background: #eaf0e8; }
html[data-theme="light"] .intro-chart-svg text,
html[data-theme="light"] .intro-chart-svg-h text { fill: #52624f; }
html[data-theme="light"] .intro-chart-svg line,
html[data-theme="light"] .intro-chart-svg-h line { stroke: #b8c4b0; }
html[data-theme="light"] #intro-current-decade path,
html[data-theme="light"] #intro-current-decade-h path { stroke: var(--intro-clay); }
html[data-theme="light"] .intro-field-panel { background: #fffaf2; border-color: #cfc1ac; }
html[data-theme="light"] .intro-controls button { color: #67513a; border-color: #bba88e; }
html[data-theme="light"] .intro-controls button[aria-pressed="true"] { color: #fffaf2; background: var(--intro-clay); border-color: var(--intro-clay); }
html[data-theme="light"] .intro-circle { stroke: #75401e; }
html[data-theme="light"] .intro-circle.is-softened { fill: #c7b8a4; stroke: transparent; opacity: .6; }
html[data-theme="light"] .intro-selection { color: #67513a !important; }
html[data-theme="light"] .intro-dot-muted { background: #c7b8a4; }
html[data-theme="light"] .intro-withheld { background: #eee7dc; }
html[data-theme="light"] .intro-interest { background: #eee5d6; }
html[data-theme="light"] .interest-form input[type="email"] { background: #fffaf2; border-color: #bba88e; }
html[data-theme="light"] .interest-form input[type="email"]::placeholder { color: #7b6c5a; }
html[data-theme="light"] .interest-form button { color: #fffaf2; }
html[data-theme="light"] .interest-form button:hover:not(:disabled) { background: #7e481f; border-color: #7e481f; }
html[data-theme="light"] .interest-status.is-error { color: #a23d2a !important; }

/* Approved Brass pill: a clear label, drawn icons and a restrained gold finish. */
.theme-toggle {
  --theme-metal: #d9b875;
  --theme-base: #221c16;
  --theme-soft: #392e20;
  --theme-shadow: #0004;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 0 0 auto; margin-left: auto; min-height: 44px; padding: 0 14px;
  border: 1px solid #bc9e6a80; border-radius: 14px;
  background: linear-gradient(140deg, var(--theme-base), var(--theme-soft));
  color: var(--theme-metal); box-shadow: inset 0 1px 0 #fff2, 0 2px 7px var(--theme-shadow);
  font: 500 12px/1.2 var(--sans, sans-serif); white-space: nowrap; cursor: pointer;
  transition: border-color .18s, transform .18s;
}
html[data-theme="light"] .theme-toggle {
  --theme-metal: #93682f; --theme-base: #fbf8f2; --theme-soft: #eee3d1; --theme-shadow: #70502315;
}
.theme-toggle svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none;
  stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle:hover { border-color: var(--theme-metal); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 3px solid var(--reading-accent, var(--intro-clay, currentColor)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }
.preview-bar .theme-toggle { order: 4; }
.local-controls { gap: .65rem; }
html[data-theme="light"] .is-home .topbar { color: var(--intro-ink); }
@media (max-width: 650px) {
  .preview-bar .theme-toggle { order: 0; }
  .preview-bar nav { order: 1; }
  .public-home .wordmark { gap: .5rem; }
  .public-home .wordmark small { max-width: 9rem; }
}
