/* Appearance: the footer control (System, Light, Dark) and the parts of the dark palette that tokens alone do not reach. */
.site-foot .foot-note { align-items: center; }
.appearance { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.appearance legend { float: left; padding: 0; margin-right: 10px; font-size: 13.5px; color: var(--muted); }
.appearance { flex-wrap: nowrap; }
.appearance label { position: relative; display: inline-flex; cursor: pointer; }
.appearance input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.appearance span { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); font: 550 13.5px/1 var(--sans); color: var(--ink-2); background: var(--surface); }
.appearance label:first-of-type span { border-radius: 999px 0 0 999px; }
.appearance label:last-of-type span { border-radius: 0 999px 999px 0; }
.appearance label + label span { margin-left: -1px; }
.appearance label:hover span { border-color: var(--line-hover); color: var(--ink-solid); }
.appearance input:checked + span { background: var(--ink-solid); border-color: var(--ink-solid); color: var(--on-ink); position: relative; z-index: 1; }
.appearance input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; position: relative; z-index: 2; }
@media (max-width: 760px) {
  .site-foot .foot-note { flex-direction: column; align-items: flex-start; }
  .appearance { flex-wrap: wrap; row-gap: 8px; }
  .appearance legend { float: none; flex-basis: 100%; margin: 0; }
  .appearance span { min-height: 44px; padding: 0 18px; }
}

/* Dark: the brand mark is one colour, and the illustrations are drawn on near-white paper, so they are
   inverted (hue kept) and screened onto the dark page instead of sitting in light boxes. */
:root[data-theme="dark"] .brand img { filter: invert(1); }
:root[data-theme="dark"] .art,
:root[data-theme="dark"] .hero-art img,
:root[data-theme="dark"] .hero-id img { filter: invert(1) hue-rotate(180deg) brightness(.92); mix-blend-mode: screen; }
:root[data-theme="dark"] .hero-id img { mix-blend-mode: normal; border-radius: 10px; }
:root[data-theme="dark"] .app-hero-art { mix-blend-mode: screen; }
:root[data-theme="dark"] .prose pre, :root[data-theme="dark"] .code { background: #0b0c0e; border: 1px solid var(--line); }
