/* Dark theme: opt-in via html[data-theme="dark"] */
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="dark"] body { background: #121212; color: #d4d4d4; }
html[data-theme="dark"] body h1, html[data-theme="dark"] body h2, html[data-theme="dark"] body h3, html[data-theme="dark"] body h4, html[data-theme="dark"] body h5, html[data-theme="dark"] body h6 { color: #eee; }
html[data-theme="dark"] body a { color: #8ab4f8; }
html[data-theme="dark"] body hr { border-color: #2e2e2e; }
html[data-theme="dark"] body header.site-header { background: #181818; border-bottom-color: #2a2a2a; }
html[data-theme="dark"] body header .navbar-default .navbar-nav li a,
html[data-theme="dark"] body header.site-header .navbar-brand { color: #ccc; }
html[data-theme="dark"] body header .navbar-default .navbar-nav li a:hover,
html[data-theme="dark"] body header.site-header .navbar-default .navbar-nav > .active > a,
html[data-theme="dark"] body header.site-header .navbar-default .navbar-nav > .open > a { color: #fff; }
html[data-theme="dark"] body header.site-header .navbar-default .navbar-nav > .active > a { box-shadow: inset 0 -3px 0 #ccc; }
html[data-theme="dark"] body .navbar-default .navbar-toggle { border-color: #444; }
html[data-theme="dark"] body .navbar-default .navbar-toggle .icon-bar { background-color: #ccc; }
html[data-theme="dark"] body .navbar-default .navbar-collapse { border-color: #2a2a2a; }
html[data-theme="dark"] body .dropdown-menu { background: #1e1e1e; border-color: #333; }
html[data-theme="dark"] body .dropdown-menu > li > a { color: #ccc; }
html[data-theme="dark"] body .dropdown-menu > li > a:hover,
html[data-theme="dark"] body .dropdown-menu > .active > a { background: #2a2a2a; color: #fff; }
html[data-theme="dark"] body .dropdown-menu .divider { background-color: #333; }
html[data-theme="dark"] body .theme-toggle { color: #ccc; }
html[data-theme="dark"] body #search-input { background: #1e1e1e; border-color: #3a3a3a; color: #ddd; }
html[data-theme="dark"] body #search-input:focus { border-color: #777; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
html[data-theme="dark"] body #results-container { background: #1e1e1e; border-color: #333; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
html[data-theme="dark"] body #results-container li a { color: #ddd; }
html[data-theme="dark"] body #results-container li a:hover,
html[data-theme="dark"] body #results-container li a:focus { background: #2a2a2a; }
html[data-theme="dark"] body .site-category { background: #181818; border-color: #2a2a2a; }
html[data-theme="dark"] body .site-category li a { color: #ccc; }
html[data-theme="dark"] body .site-category li a:hover { background: #333; color: #fff; }
html[data-theme="dark"] body .post-area { background: #121212; border-bottom-color: #2e2e2e; }
html[data-theme="dark"] body .post-area a:link,
html[data-theme="dark"] body .post-area a:visited { color: #e6e6e6; }
html[data-theme="dark"] body .post-area a:hover { color: #fff; }
html[data-theme="dark"] body #intro { border-color: #2e2e2e !important; }
html[data-theme="dark"] body table tr { background-color: #181818; border-color: #333; }
html[data-theme="dark"] body table tr:nth-child(2n) { background-color: #1e1e1e; }
html[data-theme="dark"] body table tr th,
html[data-theme="dark"] body table tr td { border-color: #333; }
html[data-theme="dark"] body pre { background: #1e1e1e; border-color: #333; color: #d4d4d4; }
html[data-theme="dark"] body code { background: #2a2a2a; color: #f0a3bd; }
html[data-theme="dark"] body pre code { background: none; color: inherit; }
html[data-theme="dark"] body div.highlight { filter: invert(.88) hue-rotate(180deg); }
html[data-theme="dark"] body .highlight pre { background: #fff; border-color: #ddd; color: #333; }
html[data-theme="dark"] body .highlight pre code { color: inherit; }
html[data-theme="dark"] body .post-content img { filter: brightness(.9); }
html[data-theme="dark"] body blockquote { border-left-color: #444; color: #aaa; }
html[data-theme="dark"] body .toc { background: #181818; border-color: #2e2e2e; }
html[data-theme="dark"] body .toc a { color: #aaa; }
html[data-theme="dark"] body .toc a:hover { color: #fff; }
html[data-theme="dark"] body .post-nav a { border-color: #333; color: #ddd; }
html[data-theme="dark"] body .post-nav a:hover { border-color: #777; }
html[data-theme="dark"] body footer { background: #181818; }
html[data-theme="dark"] body footer .footer-manu ul li a { color: #aaa; }
html[data-theme="dark"] body p, html[data-theme="dark"] body li { color: inherit; }
html[data-theme="dark"] body #intro .block p,
html[data-theme="dark"] body #intro .block li { color: inherit; }
html[data-theme="dark"] body .cat-card { background: #131417; border-color: #1f2126; }
html[data-theme="dark"] body .cat-header, html[data-theme="dark"] body .cat-footer { color: #777; }
html[data-theme="dark"] body .cat-footer { border-top-color: #25272d; }
html[data-theme="dark"] body .cat-item { color: #aaa; }
html[data-theme="dark"] body .cat-item:hover { background: #1b1d22; color: #fff; }
html[data-theme="dark"] body .cat-item.active { background: #252a35; color: #fff; }
html[data-theme="dark"] body .cat-icon { color: #888; }
html[data-theme="dark"] body .cat-item.active .cat-icon { color: #ddd; }
html[data-theme="dark"] body .cat-count { color: #777; }
@media (max-width: 767px) {
  html[data-theme="dark"] body .cat-card { background: none; }
  html[data-theme="dark"] body .cat-item { border-color: #3a3a3a; }
  html[data-theme="dark"] body .cat-item.active { background: #ddd; border-color: #ddd; color: #111; }
  html[data-theme="dark"] body .cat-item.active .cat-count { color: #555; }
}
html[data-theme="dark"] body #contact-form,
html[data-theme="dark"] body #contact-box { background: transparent; }
html[data-theme="dark"] body #contact-box .block h2 { color: #eee; }
html[data-theme="dark"] body #contact-box .block p { color: #bbb; }
html[data-theme="dark"] body .skill-group-title { color: #777; }
html[data-theme="dark"] body .skill-list li { background: #1b1d22; border-color: #2a2d34; color: #ddd; }
