:root {
  color-scheme: light;
  --syntax-key: #743b8a;
  --syntax-file: #854b25;
  --paper: #edf1f7;
  --surface: #fbfcff;
  --surface-quiet: #f0f4fa;
  --white: var(--surface);
  --ink: #192539;
  --body-copy: #354862;
  --muted: #526379;
  --line: #cbd5e3;
  --blue: #0b4fb3;
  --blue-dark: #073879;
  --teal: #245898;
  --copper-dark: #804828;
  --mark: #f4e5d7;
  --selected: #e1ebfb;
  --on-action: #fff;
  --footer: #182135;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-theme-changing] :where(body, header, main, section, nav, article, aside, footer, figure, figcaption, dl, dt, dd, div, p, a, h1, h2, h3, li, time, pre, code, button, span, small, strong) {
    transition: background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;
  }
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 86px;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.theme-picker button {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0;
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.theme-picker button:hover { color: var(--ink); }
.theme-picker button[aria-pressed="true"] { color: var(--ink); background: var(--selected); }
.topbar .theme-picker { margin-left: auto; }
.language-switch button[aria-pressed="true"], .project-home .lang-button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--selected);
}
.button.primary { color: var(--on-action); }
@media (max-width: 480px) {
  .site-header { padding-inline: 8px; gap: 4px; align-items: center; }
  .header-actions, .topbar { gap: 4px; }
  .language-switch { width: 84px; }
  .language-switch button { min-width: 0; padding-inline: 0; white-space: nowrap; }
  .theme-picker { width: 76px; }
  .nav-toggle, .icon-link { width: 34px; }
  .brand img { width: 36px; }
}
@media (max-width: 360px) {
  .theme-picker { width: 72px; }
  .language-switch { width: 74px; }
  .brand img { width: 32px; }
  .nav-toggle, .icon-link { width: 32px; }
  .topbar .brand-name { display: none; }
}
@media (forced-colors: active) {
  .theme-picker button[aria-pressed="true"] { outline: 1px solid Highlight; }
}
