/* Light and dark themes. Dark is the default; theme.js sets html[data-theme] from the visitor's choice,
   else from the device (prefers-color-scheme), else dark. Every colour on the site reads these tokens. */
:root{--bg:#050407;--bg-2:#0c0b10;--ink:#f2eff6;--ink-2:#a8a3b2;--ink-3:#827d8c;--accent:#9b6cff;--accent-ink:#c6aeff;--shade:#000;--s0:#0d0c11;--s1:#15131b;--s2:#1f1d28;--s3:#2a2733;color-scheme:dark}
html[data-theme="light"]{--bg:#f7f5fb;--bg-2:#eeeaf6;--ink:#17141f;--ink-2:#58536a;--ink-3:#756f88;--accent:#7a4df0;--accent-ink:#5a30c8;--shade:#2b2146;--s0:#ffffff;--s1:#f3f0f9;--s2:#e8e3f3;--s3:#d9d2ea;color-scheme:light}

/* the toggle: a small round button; it lives at the end of the header capsule, or floats on pages with no header */
.theme-toggle{flex:none;width:36px;height:36px;margin-left:2px;border-radius:50%;display:inline-grid;place-items:center;color:var(--ink-2);background:transparent;border:0;padding:0;cursor:pointer;pointer-events:auto;transition:color .3s,background-color .3s,transform .5s cubic-bezier(.22,1,.36,1)}
.theme-toggle:hover,.theme-toggle:focus-visible{color:var(--ink);background:color-mix(in srgb,var(--ink) 9%,transparent)}
.theme-toggle:active{transform:scale(.9) rotate(-12deg)}
.theme-toggle svg{width:18px;height:18px;display:block}
.theme-toggle .i-moon{display:none}
html[data-theme="light"] .theme-toggle .i-sun{display:none}
html[data-theme="light"] .theme-toggle .i-moon{display:block}
.theme-toggle.float{position:fixed;top:14px;right:14px;z-index:60;width:40px;height:40px;margin:0;background:color-mix(in srgb,var(--bg-2) 80%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--ink) 14%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
@media (prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
