/* One palette shared by the index, articles, sign-in, and publishing Studio. */
:root,[data-theme="light"]{--paper:#f8f9f6;--surface:#fff;--ink:#20241e;--muted:#62695e;--line:#d9ded4;--accent:#355a36;--accent-ink:#fff;--wash:#edf0e8;--cover:#e2e9da;--error:#9b2424;color-scheme:light}
[data-theme="dark"]{--paper:#000;--surface:#080808;--ink:#d8d8d5;--muted:#a0a09d;--line:#292929;--accent:#b6cfa9;--accent-ink:#10130e;--wash:#101010;--cover:#151515;--error:#ffb4ab;color-scheme:dark}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:12px Journal,Arial,sans-serif;white-space:nowrap;cursor:pointer;flex:none}
.theme-toggle:hover{background:var(--wash)}.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.theme-toggle img{width:17px;height:17px}.theme-toggle .theme-sun{display:none}[data-theme="dark"] .theme-toggle .theme-sun{display:block}[data-theme="dark"] .theme-toggle .theme-moon{display:none}
.security-card>.theme-toggle{float:right;margin-left:12px}.security-card .totp-qr{background:white;padding:10px;border-radius:6px}
[data-theme="dark"] :is(img.icon,.read-link img,.search-toggle img,.theme-toggle img){filter:invert(1)}
.utility,.article-top{gap:16px}.journal-top-links{flex-wrap:wrap}.article-top nav{align-items:center}.preview-note{background:var(--wash);color:var(--muted)}.skip-content,.search-panel input,.button,.security-card,.security-card input{background:var(--surface);color:var(--ink)}.search-panel input::placeholder,.security-card input::placeholder{color:var(--muted)}.button.primary{background:var(--accent);color:var(--accent-ink)}.text-cover{background:var(--cover);color:var(--accent)}.toast{background:var(--ink);color:var(--paper)}.security-card .form-error{color:var(--error)}::selection{background:var(--accent);color:var(--accent-ink)}
@media(max-width:600px){.utility{align-items:center}.journal-top-links{gap:10px;justify-content:flex-end}.theme-toggle{padding:8px;min-width:44px}.theme-toggle .theme-label{display:none}.article-top nav{gap:12px}.article-top nav>a:nth-child(2){display:none}.article-top .small-brand{white-space:nowrap}.blog-nav .search-toggle{position:sticky;right:0;background:var(--paper);min-width:44px;min-height:44px;justify-content:center}}
