/* Layout: one book page per screen. Big page number, that page's notes in a single readable column, page-turn bar fixed at the bottom. */
/* Night at the mansion: violet-black ground, silver-lavender text, gold for time and progress,
   crimson kept for spoilers and major changes. Matches the Return by Death editor.
   Dark is the main theme; a light "daylight" variant follows the viewer's setting. */
:root {
  --paper: #0f0c17;
  --sheet: #171221;
  --sheet-2: #1f182b;
  --ink: #ece7f6;
  --ink-soft: #a39abb;
  --rule: #2f2642;
  --witch: #b08ae6;
  --witch-soft: #2a1f3d;
  --gold: #d8b46a;
  --gold-soft: #3a2f1c;
  --gold-ink: #1b1408;
  --blood: #d9475f;
  --blood-soft: #3a1520;
  --sev-minor: #6fc1b3;
  --sev-notable: #e0a94e;
  --sev-major: #ec5f78;
  --glow: rgba(154, 107, 216, .22);
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", "Constantia", Georgia, serif;
  --f-body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --paper: #eceef3; --sheet: #f8f8fb; --sheet-2: #f0edf6; --ink: #1d1b2c; --ink-soft: #5d5a74; --rule: #d6d4e2;
    --witch: #6a3e9e; --witch-soft: #e6def2; --gold: #b0842c; --gold-soft: #f3ead6; --gold-ink: #1b1408;
    --blood: #b02a3f; --blood-soft: #f6dde2; --sev-minor: #3f7a72; --sev-notable: #a26a14; --sev-major: #b02a3f;
    --glow: rgba(106, 62, 158, .10);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --paper: #eceef3; --sheet: #f8f8fb; --sheet-2: #f0edf6; --ink: #1d1b2c; --ink-soft: #5d5a74; --rule: #d6d4e2;
  --witch: #6a3e9e; --witch-soft: #e6def2; --gold: #b0842c; --gold-soft: #f3ead6; --gold-ink: #1b1408;
  --blood: #b02a3f; --blood-soft: #f6dde2; --sev-minor: #3f7a72; --sev-notable: #a26a14; --sev-major: #b02a3f;
  --glow: rgba(106, 62, 158, .10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 18px; line-height: 1.6;
  padding-inline: 16px; padding-block: 0 3rem;
}
body.reading { padding-block: 0 calc(7rem + env(safe-area-inset-bottom, 0px)); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--witch); }
:focus-visible { outline: 2px solid var(--witch); outline-offset: 2px; }
[hidden] { display: none !important; }
.col { max-width: 680px; margin-inline: auto; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Top bar */
.top { display: flex; align-items: center; gap: .75rem; padding-block: 1rem .5rem; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand > span:last-child { font-family: var(--f-ja); font-style: normal; color: var(--ink-soft); font-size: .85rem; margin-left: .1rem; }
.top .spacer { flex: 1; }
.crumb { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); text-decoration: none; border: 1px solid var(--rule); border-radius: 4px; padding: .2rem .55rem; }
.crumb:hover { border-color: var(--witch); color: var(--ink); }

/* Progress strip: the whole volume, noted pages marked */
.strip { position: relative; height: 18px; }
.strip .track { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--rule); }
.strip .done { position: absolute; left: 0; top: 8px; height: 2px; background: var(--witch); }
.strip .mark { position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); }
.strip .mark.here { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--witch); }

/* Reading page */
.page { padding-block: 2rem 1rem; }
.folio { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.folio .num { font-family: var(--f-display); font-weight: 500; font-size: clamp(4rem, 16vw, 6.5rem); line-height: .85; color: var(--witch); font-variant-numeric: lining-nums; }
.folio .of { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); }
.chap { margin-top: .6rem; color: var(--ink-soft); font-size: 1rem; }
.chap b { font-weight: 500; color: var(--ink); }
.chap .ja { font-family: var(--f-ja); margin-left: .4rem; }
.chap-open { margin-top: 1.4rem; padding-block: 1rem; border-block: 1px solid var(--rule); }
.chap-open h2 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.9rem; line-height: 1.15; text-wrap: balance; }
.chap-open .ja { font-family: var(--f-ja); color: var(--ink-soft); font-size: 1.1rem; }

.notes { display: grid; gap: 1.25rem; margin-top: 2rem; }
.note { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 1.25rem 1.25rem 1.4rem; display: grid; gap: 1rem; }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cat { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--witch); }
.sev { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--c); color: var(--c); }
.sev-minor { --c: var(--sev-minor); } .sev-notable { --c: var(--sev-notable); } .sev-major { --c: var(--sev-major); }
.sample { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; padding: .05rem .45rem; border: 1px dashed var(--ink-soft); color: var(--ink-soft); border-radius: 3px; }
.note-head .jap { margin-left: auto; font-family: var(--f-mono); font-size: .74rem; color: var(--ink-soft); }
.pair { display: grid; gap: .8rem; }
.line { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.line .lbl { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.line .ja-text { font-family: var(--f-ja); font-weight: 500; font-size: 1.2rem; line-height: 1.8; }
.line .ja-text rt { font-size: .5em; color: var(--ink-soft); }
.line .en-text { font-size: 1.15rem; font-style: italic; }
.line .lit { color: var(--ink-soft); }
.comment { border-top: 1px solid var(--rule); padding-top: 1rem; display: grid; gap: .7rem; }
.comment p { margin: 0; }
details.spoil summary { cursor: pointer; background: var(--witch-soft); padding: .6rem .8rem; border-radius: 4px; color: var(--ink-soft); font-size: .95rem; list-style: none; }
details.spoil summary::-webkit-details-marker { display: none; }
details.spoil[open] summary { display: none; }
details.spoil > div { display: grid; gap: .7rem; }

.quiet { margin-top: 2.5rem; color: var(--ink-soft); display: grid; gap: 1rem; justify-items: start; }
.quiet p { margin: 0; font-size: 1.05rem; }
.jump { display: inline-block; border: 1px solid var(--witch); color: var(--witch); border-radius: 4px; padding: .45rem .9rem; text-decoration: none; font-size: .95rem; }
.jump:hover { background: var(--witch-soft); }

/* Bottom page-turn bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--sheet); border-top: 1px solid var(--rule); padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom, 0px)); }
.bar-inner { max-width: 680px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.turn { border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; padding: .65rem .9rem; font-size: 1rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
a.turn:hover { border-color: var(--witch); }
.turn.off { opacity: .35; }
.turn.next { justify-self: end; }
.turn.prev { justify-self: start; }
.goto { display: flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); margin: 0; }
.goto input { width: 4.2rem; text-align: center; padding: .45rem .2rem; border: 1px solid var(--rule); background: var(--paper); border-radius: 4px; font-family: var(--f-mono); font-size: 1rem; color: var(--ink); }
.skips { max-width: 680px; margin: .45rem auto 0; display: flex; justify-content: space-between; font-size: .82rem; }
.skips a { text-decoration: none; }
.skips span { color: var(--ink-soft); opacity: .5; }

/* Volume index and home */
.hero { padding-block: 2.5rem 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: end; border-bottom: 1px solid var(--rule); }
.hero .volnum { font-family: var(--f-display); font-weight: 500; font-size: clamp(4.5rem, 18vw, 7rem); line-height: .8; color: var(--witch); font-variant-numeric: lining-nums; }
.hero h1 { margin: 0; font-family: var(--f-display); font-weight: 500; font-style: italic; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; text-wrap: balance; }
.hero .ja { font-family: var(--f-ja); color: var(--ink-soft); }
.hero p { margin: .4rem 0 0; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-block: 1.25rem; }
.btn { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 6px; padding: .55rem 1rem; text-decoration: none; cursor: pointer; font-size: 1rem; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .4; cursor: default; }
h2.sect { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 2rem 0 .5rem; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding-block: .75rem; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
a.row:hover { background: var(--witch-soft); }
.row .t { font-size: 1.05rem; }
.row .t small { display: block; color: var(--ink-soft); font-size: .88rem; }
.row .ja { font-family: var(--f-ja); color: var(--ink-soft); margin-left: .4rem; font-size: .95rem; }
.row .m { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.row.soon { opacity: .55; }

/* EPUB patcher */
.patcher { margin-top: 3rem; padding: 1.5rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; display: grid; gap: 1rem; }
.patcher h2 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; line-height: 1.15; }
.patcher p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.drop { border: 1px dashed var(--ink-soft); border-radius: 6px; padding: 1.25rem; display: grid; gap: .5rem; justify-items: start; background: var(--paper); }
.drop.over { border-color: var(--witch); background: var(--witch-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .fname { font-family: var(--f-mono); font-size: .85rem; overflow-wrap: anywhere; }
.field { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.field label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field select { border: 1px solid var(--rule); background: var(--paper); border-radius: 4px; padding: .35rem .5rem; }
.msg { font-size: .95rem; padding: .7rem .9rem; border-radius: 4px; background: var(--paper); border-left: 3px solid var(--rule); }
.msg.err { border-left-color: var(--sev-major); }
.msg.ok { border-left-color: var(--sev-minor); }
.report { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.stat { background: var(--paper); border-radius: 6px; padding: .7rem .8rem; }
.stat b { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums; }
.stat span { font-size: .82rem; color: var(--ink-soft); }
.unplaced { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: .92rem; }
.fine { font-size: .85rem; color: var(--ink-soft); }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .turn { padding: .6rem .7rem; }
  .line { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .note, .patcher { padding: 1rem; }
  .report { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .page { animation: rise .25s ease-out; }
  @keyframes rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Site navigation */
.sitenav { display: flex; gap: .2rem; }
.sitenav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; padding: .2rem .55rem; border-radius: 4px; }
.sitenav a:hover { color: var(--ink); background: var(--witch-soft); }
.sitenav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--witch); border-radius: 0; }

/* Blog */
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-decoration: none; color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 999px; padding: .1rem .6rem; }
.tag:hover { border-color: var(--witch); color: var(--ink); }
.tag[aria-current="page"] { background: var(--witch-soft); border-color: var(--witch); color: var(--ink); }
.post-head { padding-block: 2.5rem 1.5rem; border-bottom: 1px solid var(--rule); display: grid; gap: .6rem; }
.post-head h1 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.08; text-wrap: balance; }
.post-head .lede { margin: 0; font-size: 1.15rem; color: var(--ink-soft); }
.prose { padding-block: 1.5rem 1rem; font-size: 1.08rem; line-height: 1.7; }
.prose > * { margin-block: 0 1.1rem; }
.prose h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; font-weight: 500; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin-inline: 0; padding-left: 1rem; border-left: 3px solid var(--witch); color: var(--ink-soft); font-style: italic; }
.prose code { font-family: var(--f-mono); font-size: .86em; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: .05em .3em; }
.prose pre { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: .9rem 1rem; font-size: .85rem; line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .4rem; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--rule); }
.prose .note { margin-block: 1.5rem; }
.prose [lang="ja"] { font-family: var(--f-ja); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); margin-top: 1rem; }
.post-nav a { display: grid; gap: .1rem; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-size: 1.1rem; line-height: 1.25; }
.post-nav a small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.post-nav a:hover { color: var(--witch); }
.post-nav .newer { text-align: right; }
@media (max-width: 520px) { .sitenav a { padding: .2rem .4rem; } .post-nav { grid-template-columns: 1fr; } .post-nav .newer { text-align: left; } }

/* ---------------------------------------------------------------- theme layer
   Re:Zero motifs shared with the Return by Death editor: the save-point clock, gold for time and
   progress, a miasma glow at the top of the page, ※ as the note mark, crimson for what's ahead. */
body {
  background:
    radial-gradient(ellipse 90% 340px at 50% -60px, var(--glow), transparent 75%) no-repeat,
    var(--paper);
}
a { color: var(--witch); }

/* Brand clock (same mark as the editor) */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-style: normal; }
.brand-text { font-style: italic; }
.brand-clock { position: relative; width: 26px; height: 26px; flex: none; }
.brand-clock svg { width: 100%; height: 100%; display: block; color: var(--gold); }
.brand-clock i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 2px; }
.brand-clock .h-hour { width: 2px; height: 26%; margin-left: -1px; background: var(--ink-soft); transform: rotate(-60deg); }
.brand-clock .h-min { width: 1.5px; height: 36%; margin-left: -.75px; background: var(--blood); transform: rotate(-150deg); transition: transform .6s cubic-bezier(.3, 0, .2, 1); }
.brand:hover .h-min { transform: rotate(-510deg); }
.sitenav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.crumb { border-color: var(--rule); }

/* Section labels with a gold mark and a fading rule */
h2.sect { display: flex; align-items: center; gap: .6rem; }
h2.sect::before { content: "◆"; color: var(--gold); font-size: .55rem; letter-spacing: 0; }
h2.sect::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--rule), transparent); }

/* Gold is time: page numbers, progress, primary actions */
.folio .num, .hero .volnum { color: var(--gold); text-shadow: 0 0 40px var(--glow); }
.strip .done { background: var(--gold); }
.strip .mark.here { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold); }
.btn { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--rule); color: var(--ink); font-weight: 400; }
.btn.ghost:hover { border-color: var(--witch); filter: none; }
.jump { border-color: var(--gold); color: var(--gold); }
.jump:hover { background: var(--gold-soft); }
.stat b { color: var(--gold); }

/* Hero */
.hero { border-bottom-color: var(--rule); }
.hero h1 { color: var(--ink); }
.hero .ja { color: var(--witch); letter-spacing: .2em; }

/* Chapter openers set the Japanese chapter number vertically, as in the printed book */
.chap-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; border-block-color: var(--rule); }
.chap-open .ja { writing-mode: vertical-rl; font-size: 1.45rem; letter-spacing: .35em; color: var(--witch); font-weight: 700; }

/* Notes: ※ is the same mark the EPUB patcher puts in the text */
.note { background: var(--sheet); border-color: var(--rule); position: relative; }
.note::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, var(--c, var(--witch)), transparent 70%); opacity: .8; }
.note:has(.sev-minor) { --c: var(--sev-minor); }
.note:has(.sev-notable) { --c: var(--sev-notable); }
.note:has(.sev-major) { --c: var(--sev-major); }
.note .sev { --c: inherit; }
.note .sev.sev-minor { --c: var(--sev-minor); } .note .sev.sev-notable { --c: var(--sev-notable); } .note .sev.sev-major { --c: var(--sev-major); }
.cat::before { content: "※ "; color: var(--gold); }
.line .ja-text { color: var(--ink); }
details.spoil summary { background: var(--blood-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--blood); }
details.spoil summary::before { content: "◆ "; color: var(--blood); font-size: .7em; }

/* Page-turn bar */
.bar { background: color-mix(in srgb, var(--sheet) 92%, transparent); backdrop-filter: blur(8px); }
.turn { background: var(--sheet-2); border-color: var(--rule); }
a.turn:hover { border-color: var(--gold); }
.goto input { background: var(--paper); }
.skips a { color: var(--witch); }

/* EPUB patcher */
.patcher { background: linear-gradient(180deg, var(--sheet-2), var(--sheet)); border-color: var(--rule); position: relative; overflow: hidden; }
.patcher::after { content: "※"; position: absolute; right: -.1em; top: -.25em; font-size: 9rem; line-height: 1; color: var(--gold); opacity: .07; pointer-events: none; }
.drop { background: var(--paper); }
.field select { background: var(--paper); color: var(--ink); }
.stat { background: var(--paper); }
.msg { background: var(--paper); }
.msg.err { border-left-color: var(--blood); }
.msg.ok { border-left-color: var(--gold); }

/* Blog */
.post-head h1 { color: var(--ink); }
.post-head .eyebrow { color: var(--gold); }
.tag:hover, .tag[aria-current="page"] { border-color: var(--gold); }
.prose blockquote { border-left-color: var(--witch); }
.prose h2::before { content: "◆"; color: var(--gold); font-size: .45em; vertical-align: middle; margin-right: .6rem; }
.post-nav a:hover { color: var(--gold); }

/* Footer */
.foot { margin-top: 4rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; color: var(--ink-soft); }
.foot .ja { font-family: var(--f-ja); color: var(--witch); letter-spacing: .3em; }

@media (prefers-reduced-motion: reduce) { .brand-clock .h-min { transition: none; } }

/* Light/dark toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border: 1px solid var(--rule); border-radius: 50%; background: var(--sheet); color: var(--gold); cursor: pointer; padding: 0; transition: border-color .15s, transform .3s ease; }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle:active { transform: rotate(-30deg); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; grid-area: 1 / 1; transition: opacity .2s, transform .3s ease; }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
.theme-toggle[data-mode="light"] .i-sun { opacity: 0; transform: rotate(40deg) scale(.6); }
.theme-toggle[data-mode="light"] .i-moon { opacity: 1; transform: none; color: var(--witch); }
html { transition: none; }
@media (prefers-reduced-motion: reduce) { .theme-toggle, .theme-toggle svg { transition: none; } }
