html[data-phase-theme] {
  --surface-brand: #141418;
  --surface-switch2: #184898;
  --surface-classic: #18181d;
  --bg-canvas: #f4efe0;
  --bg-paper: #faf6ec;
  --bg-parchment: #efe8d8;
  --text-primary: #141418;
  --text-muted: #5c5a56;
  --sheet-muted: #5c5a56;
  --canvas-muted: #504e4a;
  --reading-link: #184898;
  --border-hairline: #d6cebc;
  --accent-shield: var(--reading-link);
  --brass-light: #ebc268;
  --brass: #c4902e;
  --ruby: #cc2030;
  --ruby-deep: #8e101e;
  --ruby-wash: #fcebee;
  --accent-lens: #7c3aed;
  --lens-halo: #8b5cf6;
  --ruby-ink: #8e101e;
  --accent-gold: var(--brass);
  --accent-ruby: var(--ruby);
  --phase-serif: "Marcellus", "Noto Serif JP", "Yu Mincho", "Songti SC", Georgia, serif;
  --phase-sans: "Manrope", "Noto Sans JP", "Hiragino Sans", "Microsoft YaHei", system-ui, sans-serif;
  --phase-mono: "IBM Plex Mono", monospace;
  --phase-bar: 60px;
  color-scheme: light !important;
  scroll-padding-top: calc(var(--phase-bar) + 10px);
}
html[data-phase-theme="dark"] {
  --surface-brand: #17171c;
  --surface-switch2: #184898;
  --surface-classic: #18181d;
  --bg-canvas: #121216;
  --bg-paper: #1b1b21;
  --bg-parchment: #232329;
  --text-primary: #f3f1ec;
  --text-muted: #b4b2ac;
  --sheet-muted: #b4b2ac;
  --canvas-muted: #b4b2ac;
  --reading-link: #6ba3f7;
  --border-hairline: #47464c;
  --accent-gold: var(--brass-light);
  --accent-ruby: #f24454;
  --ruby-ink: #ff9da5;
  --ruby-wash: #321b21;
  --accent-lens: #c4a5ff;
  color-scheme: dark !important;
}
html[data-phase-theme]:lang(zh) {
  --phase-serif: "Marcellus", "Noto Serif SC", "Songti SC", SimSun, serif;
  --phase-sans: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
html[data-phase-theme]:is(:lang(ja),:lang(zh)) .guide-reader__body :is(p,li) { line-height: 1.75; }
html[data-phase-theme] body,
html[data-phase-theme] .s2-guide,
html[data-phase-theme] .atlas-shell {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--phase-sans);
}
html[data-phase-theme] ::selection { background: #e2c88f; color: #141418; }
html[data-phase-theme] :is(a, button, input, summary):focus-visible { outline: 2px solid var(--accent-shield); outline-offset: 3px; }
@media (max-width: 48rem) { html[data-phase-theme] { --phase-bar: 56px; } }
