:root {
  color-scheme: dark;
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  color: #f1f5ee;
  background: #0d1413;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; letter-spacing: 0; }
button:focus-visible { outline: 2px solid #f3ddd1; outline-offset: 5px; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: #9bd4bb; color: #10231e; }
.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.scene picture { display: block; width: 100%; height: 100%; }
.scene-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: moonlit-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(6 12 11 / 35%), transparent 37%, rgb(6 12 11 / 12%) 64%, rgb(6 12 11 / 92%)), linear-gradient(90deg, rgb(5 15 12 / 43%), transparent 44%);
}
@keyframes moonlit-drift {
  from { transform: scale(1.006) translate(0, 0); }
  to { transform: scale(1.024) translate(-0.15%, 0.15%); }
}
html[data-motion="paused"] .scene-art,
html[data-motion="hidden"] .scene-art { animation-play-state: paused; }
.archive {
  position: relative;
  max-width: 1536px;
  min-height: 720px;
  min-height: max(720px, 100svh);
  margin: 0 auto;
  padding: 36px 48px 22px;
  display: flex;
  flex-direction: column;
}
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; color: #d6e8de; }
.identity img { object-fit: contain; flex: 0 0 28px; }
.motion-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #84bda55c; border-radius: 50%; background: #091511ba; color: #caebda; cursor: pointer; }
.motion-toggle:hover { background: #213c32; }
.play-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: block; }
.motion-toggle[aria-pressed="true"] .pause-icon { display: none; }
.introduction { margin-top: 62px; max-width: 400px; text-shadow: 0 2px 14px #000; }
.theme-name { margin: 0 0 14px; color: #bddbc9; font-size: 14px; }
.theme-name::before { content: ""; display: inline-block; width: 17px; height: 1px; margin: 0 10px 5px 0; background: #cfa18f; }
h1 { margin: 0; font-size: 48px; line-height: 1.3; font-weight: 800; }
h1 span { color: #efaaa4; }
.intro-copy { max-width: 290px; margin: 14px 0 0; font-size: 14px; line-height: 1.9; color: #d2e4d8; }
.shelf-region { margin-top: auto; padding-top: 180px; }
.shelf { padding: 20px 0 16px; border-top: 1px solid #8aaf9e70; border-bottom: 1px solid #8aaf9e40; }
.shelf-heading { margin: 0 0 15px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #c4ddcc; }
.shelf-heading span { color: #d5aea0; font-family: Georgia, serif; }
.links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.book-spine {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-content: center;
  gap: 12px 6px;
  min-width: 0;
  min-height: 100px;
  padding: 16px 18px;
  border: 1px solid #7eaa8d70;
  border-left: 3px solid #608b75;
  border-radius: 3px;
  color: #f2f4ed;
  background: linear-gradient(180deg, #173129e8, #091a15f5);
  box-shadow: inset 3px 0 0 #06120e80, 0 5px 18px #0004;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms, background-color 180ms;
}
.volume { grid-column: 1 / -1; font: 11px Georgia, serif; color: #aed0b8; }
.entry-name { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.arrow { align-self: center; color: #abcfb7; font-family: sans-serif; }
.featured { border-color: #c18b817a; border-left-color: #ca9187; }
.featured .volume, .featured .arrow { color: #edb5ae; }
.book-spine:hover { border-color: #e5bcb0; background: #214135; }
.book-spine:disabled { cursor: wait; opacity: .65; }
#nav-status { margin: 16px 0 0; padding: 12px 14px; background: #2b1717; border-left: 3px solid #efa79e; color: #ffe4df; font: 14px/1.6 system-ui, sans-serif; overflow-wrap: anywhere; }
footer { padding-top: 14px; color: #c2cfc6; font-size: 11px; }
@media (min-width: 601px) and (max-width: 1000px) {
  .archive { padding: 28px; }
  .introduction { max-width: 300px; }
  h1 { font-size: 38px; }
  .links { gap: 8px; }
  .book-spine { padding: 14px 9px; }
  .entry-name { font-size: 14px; }
}
@media (max-width: 600px) {
  .scene { position: absolute; top: 176px; bottom: auto; height: 470px; }
  .scene-art { object-position: 50% 0; }
  .scene::after { background: linear-gradient(180deg, #0d1413, transparent 11%, transparent 62%, #0d1413); }
  .archive { min-height: max(780px, 100svh); padding: 16px 20px 18px; }
  .masthead { gap: 10px; }
  .identity { font-size: 11px; gap: 8px; }
  .introduction { margin-top: 22px; max-width: 100%; }
  .theme-name { font-size: 12px; margin-bottom: 8px; }
  h1 { font-size: 34px; line-height: 1.25; }
  .intro-copy { max-width: 100%; margin-top: 8px; font-size: 12px; line-height: 1.7; }
  .shelf-region { padding-top: 272px; }
  .shelf { padding: 12px 0; }
  .shelf-heading { margin-bottom: 10px; font-size: 11px; }
  .links { grid-template-columns: 1fr; gap: 7px; }
  .book-spine { grid-template-columns: 26px minmax(0, 1fr) 18px; align-items: center; min-height: 48px; padding: 10px 14px; gap: 8px; }
  .volume { grid-column: auto; }
  .entry-name { font-size: 15px; }
  footer { padding-top: 12px; }
}
