/* Dark palette: applied when <html data-mode="dark"> (visitor's choice or system preference). Loaded after the theme. */
html[data-mode=dark]{
  color-scheme:dark;
  --bg:#0a1019; --surface:#111a27; --surface-2:#182334; --text:#dfe6ef; --muted:#97a5b8; --border:#1f2c3f;
  --heading:#f4f7fb; --link:color-mix(in oklab,var(--accent) 55%,#fff); --band:#060b13; --footer-bg:#060b13;
  --shadow:0 24px 60px -20px rgba(0,0,0,.7); --shadow-sm:0 6px 20px -8px rgba(0,0,0,.6);
}
html[data-mode=dark] .hero-slide,html[data-mode=dark] .gallery img,html[data-mode=dark] .post-cover img,html[data-mode=dark] .split img,html[data-mode=dark] .marquee img{filter:brightness(.86)}
html[data-mode=dark] .bento-card:nth-child(1){background:#0e1726;border:1px solid var(--border)}
html[data-mode=dark] .contact-form input,html[data-mode=dark] .contact-form textarea{background:#0a1019}
html[data-mode=dark] .notice.ok{background:#12301f;color:#8fe0b0} html[data-mode=dark] .notice.err{background:#3a1717;color:#f5b1b1}
html[data-mode=dark] .logos li>*{background:var(--surface)}
html[data-mode=dark] .logos li>a:hover{background:var(--heading);color:#0a1019}
html[data-mode=dark] .btn-ghost{color:var(--heading)} html[data-mode=dark] .btn-ghost:hover{color:#0a1019}
