
.theme-toggle{position:relative;display:inline-flex;align-items:center;flex-shrink:0;width:70px;height:36px;padding:3px;border:1px solid #ffffff70;border-radius:24px;background:linear-gradient(#67b9e5,#c5e8fa);box-shadow:inset 0 2px 5px #183c5750;cursor:pointer;margin-left:18px;color:#fff;overflow:hidden;transition:background .35s}
.theme-toggle:before{content:'';position:absolute;width:25px;height:8px;border-radius:50%;background:#ffffff90;left:8px;bottom:7px;box-shadow:19px -12px 0 -2px #ffffff80}
.theme-knob{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff2c4;color:#bf7d0a;box-shadow:0 2px 5px #0005;transform:translateX(32px);transition:transform .35s,background .35s;color-scheme:light;z-index:1}
.theme-knob svg{width:20px;height:20px}.theme-moon{display:none}.theme-toggle:focus-visible{outline:3px solid #efd48e;outline-offset:4px}
[data-theme=dark] .theme-toggle{background:linear-gradient(#141d3c,#384769)}[data-theme=dark] .theme-toggle:before{width:3px;height:3px;left:48px;bottom:12px;box-shadow:7px -12px 0 #fff,-12px -8px 0 #fff}
[data-theme=dark] .theme-knob{transform:translateX(0);background:#e4e8f2;color:#354263}[data-theme=dark] .theme-sun{display:none}[data-theme=dark] .theme-moon{display:block}
html[data-theme=dark]{color-scheme:dark;--cream:#161e19;--ink:#f1eee5}html[data-theme=dark] body{background:#161e19;color:#f1eee5}
[data-theme=dark] .intro,[data-theme=dark] .section{background:#161e19;color:#f1eee5}[data-theme=dark] .gather,[data-theme=dark] .music-section,[data-theme=dark] .contact{background:#202b23;color:#f1eee5}
[data-theme=dark] p,[data-theme=dark] #article-dialog p{color:#bcc5b9}[data-theme=dark] .hero p{color:#e3e7e0}[data-theme=dark] .verse,[data-theme=dark] .music-song,[data-theme=dark] .music-empty{background:#29352b;color:#f1eee5;border-color:#52604e}
[data-theme=dark] .contact .btn{background:var(--gold);border-color:var(--gold);color:#24271d}[data-theme=dark] .blog-card button,[data-theme=dark] .text-link{color:#dfc480}[data-theme=dark] .filter.active{background:var(--gold);color:#24271d}
[data-theme=dark] .app-section,[data-theme=dark] .app-showcase{background:#fff;color:#212820}[data-theme=dark] .app-description p{color:#70766b}
.theme-floating{position:fixed;top:18px;right:18px;z-index:20}.phone-preview .theme-toggle{pointer-events:none}
@media(max-width:760px){nav .theme-toggle{margin-left:auto;margin-right:18px;width:64px;height:34px}.theme-knob{width:26px;height:26px;transform:translateX(28px)}}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-knob{transition:none}}

.phone-preview .theme-toggle{display:none!important}

@media(orientation:landscape) and (min-width:761px) and (max-width:1400px) and (max-height:600px){body>nav{gap:12px}body>nav .links{gap:clamp(9px,1.2vw,16px);font-size:11px;align-items:center}body>nav .links>a,body>nav .about-menu>summary{font-size:11px!important;line-height:1.4!important;white-space:nowrap}body>nav .about-menu>summary{gap:6px;padding:0!important;width:auto}body>nav .about-menu>summary svg{width:12px;height:12px}body>nav .links>a.outline{padding:10px 12px!important;font-size:11px!important}}

/* Style 2: animated sky, clouds and starlit forest green night. Original saved separately. */
.theme-toggle{background:linear-gradient(180deg,#528fa7 0%,#a9d4d8 68%,#dce7d0 100%);border-color:#c4a35a;box-shadow:inset 0 1px 4px #10392e70,0 1px 2px #0002;transition:background .5s,border-color .5s}
.theme-toggle:before{display:none}.theme-clouds{position:absolute;inset:0;opacity:1;transform:translateX(0);transition:opacity .45s,transform .6s;pointer-events:none}.theme-clouds:before,.theme-clouds:after{content:'';position:absolute;background:linear-gradient(#fffbed,#e1e5d6);border-radius:50%;box-shadow:8px -4px 0 1px #fff9e7,16px -1px 0 0 #f1f1df,23px 3px 0 1px #e8ecdb}.theme-clouds:before{width:16px;height:9px;right:23px;bottom:3px}.theme-clouds:after{width:12px;height:7px;right:8px;top:8px;opacity:.8}
.theme-stars{position:absolute;inset:0;opacity:0;transform:translateY(-8px);transition:opacity .5s,transform .6s;pointer-events:none;background:radial-gradient(circle at 18% 34%,#f8e6ad 0 1px,transparent 1.4px),radial-gradient(circle at 38% 65%,#ebdcb2 0 .8px,transparent 1.3px),radial-gradient(circle at 52% 26%,#fff8df 0 .7px,transparent 1.2px)}.theme-stars:before{content:'';position:absolute;left:14px;top:9px;width:7px;height:7px;background:#ecd18a;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%)}
.theme-knob{background:radial-gradient(circle at 35% 28%,#fff5be 0%,#f9d471 38%,#dba93e 72%,#aa7629 100%);color:#a16d1c;transform:translateX(0);box-shadow:inset 0 1px 1px #fff7d4,0 1px 4px #674d2270;transition:transform .5s cubic-bezier(.22,.8,.25,1),background .5s,box-shadow .5s}.theme-knob .theme-sun{color:#fff3b6;filter:drop-shadow(0 0 2px #e6ac33)}
[data-theme=dark] .theme-toggle{background:linear-gradient(180deg,#071e17,#173e2b 72%,#2b4936);border-color:#b69955}[data-theme=dark] .theme-clouds{opacity:.18;transform:translateX(-20px) translateY(9px)}[data-theme=dark] .theme-stars{opacity:1;transform:translateY(0)}[data-theme=dark] .theme-knob{transform:translateX(32px);background:transparent;box-shadow:none;color:#fff0bc}[data-theme=dark] .theme-knob .theme-moon{width:26px;height:26px;filter:drop-shadow(0 1px 2px #0006)}
@media(max-width:760px){.theme-knob{transform:translateX(0)}[data-theme=dark] .theme-knob{transform:translateX(28px)}[data-theme=dark] .theme-knob .theme-moon{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-knob,.theme-clouds,.theme-stars{transition:none}}
