@import url("style/chinese-fonts.css?v=9068e3988799");
:root { --paper: #faf7ef; --ink: #473e33; --cloth: #796041; --book-serif: "Source Serif 4", "Noto Serif SC", "Songti SC", serif; --book-sans: "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #f0ede6; }
html, body { background: #f0ede6; color: var(--ink); }
::selection { background: #796041; color: #faf7ef; }
.room { padding: 28px 32px 20px; }
.book-header { width: min(100%, 1160px); grid-template-columns: 1fr auto 1fr; }
.book-header a, .book-header button { color: #65573f; font: 400 12px/1.4 var(--book-sans); }
.book-header a { padding: 12px 0; width: fit-content; text-decoration: none; text-underline-offset: 5px; }
.book-header a:hover { text-decoration: underline; }
.book-header h1 { font-size: 19px; font-weight: 400; }
.book-header h1 span { display: inline-block; margin-left: 13px; color: #65573f; font: 400 11px var(--book-sans); }
.book-header #restart { justify-self: end; border: 0; background: none; padding: 12px 0 12px 12px; cursor: pointer; }
.book-header #restart:hover { color: #473e33; }
.book-header #restart:disabled { opacity: .4; cursor: default; }
.book { filter: drop-shadow(0 14px 16px rgb(30 49 63 / 18%)); }
.art-page.endpaper { background-color: #e5dccc; }
.art-page.cloth { background-color: #796041; color: #f4f0e7; }
.art-page .cover-title { font-size: 10.5cqw; top: 11%; letter-spacing: .08em; }
.art-page .cover-subtitle { top: 23%; font-size: 3cqw; letter-spacing: .01em; }
.art-page .cover-plate { width: 40%; left: auto; right: 13.5%; bottom: 17%; }
.art-page .cover-foot { display: flex; justify-content: space-between; right: 13.5%; bottom: 6.5%; font: 400 2.3cqw var(--book-serif); letter-spacing: .04em; }
.art-page .cover-foot span { color: #f0e5d2; }
.art-page .title-block { top: 23%; }
.art-page .title-block h2 { font-size: 8cqw; letter-spacing: .05em; margin-bottom: 3cqw; }
.art-page .title-block .english-title { font-size: 3.5cqw; }
.art-page .title-block .title-note { margin-top: 13cqw; font-size: 2.6cqw; }
.art-page .title-block .title-credit { margin-top: 19cqw; font-size: 2.4cqw; line-height: 1.9; color: #65573f; }
.art-page .endpaper-note { position: absolute; bottom: 12%; left: 15%; font: 400 2.5cqw/1.7 var(--book-serif); color: #65573f; }
.art-page .plate { flex-direction: column; gap: 3cqw; top: 47%; }
.art-page .plate img { min-height: 0; flex: 1; }
.art-page .plate.small { width: 52%; height: 61%; }
.art-page .plate.medium { width: 70%; height: 75%; }
.art-page .plate.large { width: 85%; height: 86%; }
.art-page .plate.portrait { width: 74%; height: 85%; }
.art-page .plate.high { top: 42%; }
.art-page .plate.low { top: 54%; }
.art-page figcaption { flex: none; font: 400 2.4cqw/1.5 var(--book-sans); color: #626c72; text-align: center; white-space: nowrap; }
.art-page .folio { color: #6c787e; font-size: 2.1cqw; bottom: 3.4%; }
.art-page .colophon { font-size: 3cqw; }
.art-page .colophon .small-print { font-size: 2.5cqw; color: #65573f; }
.art-page .back-mark { font-size: 3cqw; }
.art-page .back-mark i { display: block; margin-top: 2cqw; font-size: 2.6cqw; color: #f0e5d2; }
.controls { width: min(100%, 350px); grid-template-columns: 44px 1fr 44px; gap: 20px; }
.controls button { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border-color: #b9c5cc; transition: background-color 160ms ease, border-color 160ms ease; }
.controls button:not(:disabled):hover { background: #e5dccc; border-color: #65573f; }
.controls button:not(:disabled):active { background: #e5dccc; }
.status span { color: #473e33; font: 400 12px/1.5 var(--book-sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.status small { font: 400 11px/1.5 var(--book-sans); color: #65573f; white-space: nowrap; }
.reader-options { display: flex; justify-content: center; margin-top: 10px; font: 400 11px/1.5 var(--book-sans); color: #65573f; }
.reader-options label { cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 4px 8px; }
.reader-options input { accent-color: #796041; width: 13px; height: 13px; margin: 0; }
.book-rig { --available-height: max(150px, calc(100dvh - 205px)); width: min(100%, calc(var(--available-height) * var(--page-ratio) * 2), 1024px); height: min(var(--available-height), 640px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #796041; outline-offset: 5px; }
html[data-reduced-motion="true"] .book { transition: none; }
html[data-reduced-motion="true"] .controls button { transition: none; }
@media (max-width: 700px) {
  .room { padding: 15px 16px 14px; }
  .book-header { gap: 12px; }
  .book-header h1 { font-size: 18px; }
  .book-header h1 span { display: none; }
  .book-header a, .book-header button { font-size: 11px; }
  .book-rig { --available-height: max(150px, calc(100dvh - 192px)); width: min(100%, calc(var(--available-height) * var(--page-ratio)), 512px); }
  .status small { font-size: 10px; }
  .controls { gap: 12px; }
  .art-page figcaption { font-size: max(2.5cqw, 9px); }
}
@media (max-height: 480px) {
  .room { padding-block: 5px; }
  .book-header { display: none; }
  .book-rig { --available-height: max(140px, calc(100dvh - 110px)); }
  .reader-options { margin-top: 2px; }
  .stage { padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) { .controls button { transition: none; } }

.art-page figcaption { white-space: normal; text-wrap: balance; max-width: 100%; }

.book-rig { width: min(100%, calc(var(--available-height) * var(--page-ratio) * 2), 1280px); height: min(var(--available-height), 480px); }
.art-page .cover-title { font-size: 7.5cqw; top: 8%; }
.art-page .cover-subtitle { top: 22%; font-size: 2.6cqw; }
.art-page .cover-plate { width: 43%; bottom: 16%; }
.art-page .cover-foot { font-size: 2cqw; }
.art-page .title-block { top: 17%; }
.art-page .title-block h2 { font-size: 6cqw; margin-bottom: 2cqw; }
.art-page .title-block .english-title { font-size: 2.7cqw; }
.art-page .title-block .title-note { margin-top: 7cqw; font-size: 2.3cqw; }
.art-page .title-block .title-credit { margin-top: 8cqw; font-size: 2cqw; }
.art-page .colophon { top: 26%; font-size: 2.5cqw; }
.art-page .colophon .small-print { font-size: 2cqw; }
.art-page .plate { gap: 2cqw; }
.art-page figcaption { font-size: 2cqw; }
.art-page .plate.portrait { height: 87%; }
@media (max-width: 700px) {
 .book-rig { width: min(100%, calc(var(--available-height) * var(--page-ratio)), 640px); }
 .art-page figcaption { font-size: 11px; }
 .art-page .title-block .title-note, .art-page .title-block .title-credit { font-size: 11px; }
}
