/* The desk lamp and dock switch share one saved theme. */
:root { color-scheme: light; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #a99ab150; border-radius: 4px; background: #ffffff08; color: #eee3cf; font: 29px/1 var(--font-body); cursor: pointer; }
.theme-toggle:hover { background: #ffffff19; }
.theme-toggle:focus-visible { outline: 2px solid #e4d5ab; outline-offset: 3px; }
html[data-theme="dark"] {
  color-scheme: dark;
  --modal: #2e2935;
  --modal-top: #3c3346;
  --text: #e9e0e8;
  --muted: #c1b4c2;
  --purple: #cdb2dd;
  --web-ink: #d0badb;
  --web-line: #8f7c99;
  --focus: #dec4ed;
  --dark-gray: #d6cbd9;
}
[data-theme="dark"] body::before { filter: brightness(.45); }
[data-theme="dark"] .window { border-color: #8e7b98; }
[data-theme="dark"] .titlebar { background: #514064; border-color: #786483; box-shadow: inset 0 1px #7c688b; }
[data-theme="dark"] .window:not(.is-front) .titlebar { background: #3c3346; }
[data-theme="dark"] .titlebar .title::before { border-color: #c6b2d1; background: linear-gradient(#9679ac 0 3px, #43374d 3px); box-shadow: none; }
[data-theme="dark"] .window .titlebar .title { color: #e3cbed; }
[data-theme="dark"] .btn-close { color: #e4d3ea; border-color: #907c9c #282030 #282030 #907c9c; background: #493b54; box-shadow: 1px 1px #221d2a; }
[data-theme="dark"] .btn-close:hover { background: #685273; }
[data-theme="dark"] .dock { background: #302a3e; border-top-color: #8d789d; box-shadow: 0 -1px #181521, inset 0 1px #57465f; }
[data-theme="dark"] .dock .icons .task .label, [data-theme="dark"] .dock .profile span, [data-theme="dark"] .dock .right, [data-theme="dark"] .dock .right .vol-btn { color: #e9ddec; }
[data-theme="dark"] .dock .icons .task:hover { border-color: #8d789d #221c2c #221c2c #8d789d; background: #44374f; }
[data-theme="dark"] .dock .icons .task.active, [data-theme="dark"] .dock .icons .task:active { border-color: #221c2c #806b90 #806b90 #221c2c; background: #42324e; box-shadow: inset 1px 1px #291e32; }
[data-theme="dark"] .dock .right .theme-toggle { color: #e9ddec; background: #44374f; border-color: #806b90; }
[data-theme="dark"] .dock .dock-home { color: #d5c2e3; }
[data-theme="dark"] .dock .right .theme-toggle:focus-visible { outline-color: #dec4ed; }
[data-theme="dark"] #win-welcome { background: #302b3b; }
[data-theme="dark"] #win-welcome .desk-room { background: #302b3b; }
[data-theme="dark"] #win-welcome .desk-greeting { background: #292532; color: #e8dced; }
[data-theme="dark"] .welcome-heading em { color: #c5a5d5; }
[data-theme="dark"] .suri-lettering { color: #d8b9e8; }
[data-theme="dark"] .welcome-heading .welcome-hello,
[data-theme="dark"] .welcome-role,
[data-theme="dark"] .welcome-email,
[data-theme="dark"] .desk-screen-nav button { color: #d6c0e0; }
[data-theme="dark"] .desk-screen-nav button[data-open="win-projects"] { color: #f1e2fa; background: #52415e; border-color: #a98bb9; }
[data-theme="dark"] .desk-scene-caption { color: #e6d4ee; background: #332b3c; border-color: #9a82aa; }
[data-theme="dark"] .desk-scene-hotspot:focus-visible { outline-color: #e2c6ef; }
[data-theme="dark"] #win-about .h { color: #cdb2dd; }
[data-theme="dark"] #win-about .pfp { border-color: #605269; }
[data-theme="dark"] .art-lightbox-cap { background: #332c3b; }
[data-theme="dark"] .copy-confirm { background: #51415b; color: #fff2f7; }
[data-theme="dark"] #win-contact .info-card { background: #39313f; border-color: #6c5979; }
[data-theme="dark"] #win-contact a { color: #d8b9e8; }
[data-theme="dark"] .copy-email { background: #51415b; color: #f1e5f5; border-color: #947ca3; }
[data-theme="dark"] #win-projects { --section-accent: #b5d5d8; --section-wash: #303e42; }
[data-theme="dark"] #win-art { --section-accent: #ded0b7; --section-wash: #423c36; }
[data-theme="dark"] #win-music { --section-accent: #e2b9d1; --section-wash: #463443; }
[data-theme="dark"] .section-nav button { color: #d4c9d6; }
[data-theme="dark"] .section-nav button:hover { color: #f8ecff; background: #ffffff12; }
[data-theme="dark"] .section-nav button[aria-current="page"] { background: #201e27; color: var(--section-accent); }
[data-theme="dark"] #win-projects .win-body,
[data-theme="dark"] .notebook-content { background-color: #2c3336; }
[data-theme="dark"] .notebook-content { background-image: radial-gradient(circle at 15px 22px, #181d23 0 3px, #6f7373 4px 5px, transparent 6px), linear-gradient(90deg, transparent 39px, #d9989866 39px 40px, transparent 40px), repeating-linear-gradient(0deg, transparent 0 27px, #a3c4cb18 27px 28px); }
[data-theme="dark"] #win-projects .project-group-heading,
[data-theme="dark"] #win-projects .project-contribution strong,
[data-theme="dark"] #win-projects .project-link { color: #b2d5dc; }
[data-theme="dark"] #win-projects .project-title { color: #c4e2e5; }
[data-theme="dark"] #win-projects .project-contribution,
[data-theme="dark"] #win-projects .desc { color: #d2dcda; }
[data-theme="dark"] #win-projects .chip { color: #d6e2de; background: #3b4949; border-color: #728984; }
[data-theme="dark"] #win-projects .thumb { border-color: #596564; outline-color: #909a8e; }
[data-theme="dark"] .project-hero-image { background: #596564; border-color: #596564; outline-color: #909a8e; }
[data-theme="dark"] #win-projects .project-item::after { color: #b1bfba; }
[data-theme="dark"] #win-art .win-body,
[data-theme="dark"] .sketchbook-pages { background: #332f2d; }
[data-theme="dark"] .sketchbook-pages > .section-heading { color: #dfcfb5; }
[data-theme="dark"] #win-art .art-item { background: #433b35; border-color: #8e7b65; }
[data-theme="dark"] #win-art .thumb { background-color: #2a2624; border-color: #756757; }
[data-theme="dark"] #win-art .caption .title { color: #f0dfc6; }
[data-theme="dark"] #win-art .caption .meta { color: #cbbbA5; }
[data-theme="dark"] #win-music .win-body,
[data-theme="dark"] .record-content { background-color: #352b37; }
[data-theme="dark"] .record-heading,
[data-theme="dark"] .record-library-title { color: #e2b9d1; }
[data-theme="dark"] #win-music .song-time,
[data-theme="dark"] #win-music .music-mute,
[data-theme="dark"] .player-status { color: #d7bccf; }
[data-theme="dark"] #win-music .song-item { color: #e0cdd7; }
[data-theme="dark"] #win-music .song-item:hover { background: #5c4355; }
[data-theme="dark"] #win-music .song-item.active { color: #ffe5f1; background: #62465a; border-color: #b28da5; }
[data-theme="dark"] #win-music .control-btn { color: #f0dce9; background: #5b4558; border-color: #ab859e; box-shadow: 0 3px 0 #211d29; }
[data-theme="dark"] #win-music .control-btn:hover { background: #71546b; }
[data-theme="dark"] #win-journal { --section-accent: #e0b8cf; --section-wash: #443440; }
[data-theme="dark"] #win-journal .win-body,
[data-theme="dark"] .journal-paper { background-color: #332c33; }
[data-theme="dark"] .journal-heading > p,
[data-theme="dark"] .journal-count,
[data-theme="dark"] .journal-empty,
[data-theme="dark"] .journal-search,
[data-theme="dark"] .journal-meta { color: #cbb7c5; }
[data-theme="dark"] .journal-entry-title,
[data-theme="dark"] .journal-post-header h2,
[data-theme="dark"] .journal-back,
[data-theme="dark"] .journal-category { color: #e0b8cf; }
[data-theme="dark"] .journal-entry-title a:hover { color: #ffe2f2; }
[data-theme="dark"] .journal-excerpt,
[data-theme="dark"] .journal-post-body { color: #e4d9df; }
[data-theme="dark"] .journal-filters,
[data-theme="dark"] .journal-post-header,
[data-theme="dark"] .journal-entry { border-color: #806778; }
[data-theme="dark"] .journal-categories button { color: #d8bacd; }
[data-theme="dark"] .journal-categories button:hover { background: #4f3b49; }
[data-theme="dark"] .journal-categories button[aria-pressed="true"] { color: #ffe6f5; background: #65485b; border-color: #a58298; }
[data-theme="dark"] .journal-search input { color: #f0e3ec; background: #28232b; border-color: #917486; }
[data-theme="dark"] .journal-spoiler { color: #edc2ba; border-color: #b68c88; }
@media (max-width: 768px) {
  .dock { gap: 5px; }
  .dock .icons { flex: 1; width: auto; }
  .dock .right { display: flex; flex: 0 0 36px; }
  .dock .right .vol-btn, .dock .right #clock { display: none; }
  .theme-toggle { width: 36px; height: 44px; font-size: 26px; }
}

[data-theme="dark"] #win-music .music-eyebrow,
[data-theme="dark"] .record-instructions { color: #d7bccf; }
[data-theme="dark"] #win-music .song-title { color: #f1d7e7; }
[data-theme="dark"] .turntable { background: linear-gradient(145deg, #677461, #4d5a4d); border-color: #7e8b73; box-shadow: inset 0 0 0 1px #919d80, 0 5px 0 #354139, 3px 9px 12px #19131d50; }
[data-theme="dark"] .turntable.is-drop-target .turntable-platter { outline-color: #edbfd9; }
[data-theme="dark"] .song-item:focus-visible { outline-color: #edbfd9; }
