.room-book {
  --book-paper: #f8f0e1;
  --book-ink: #322b21;
  --book-muted: #6a5c49;
  --book-red: #953d2c;
  --book-rule: #d8c7ac;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--book-ink);
  background: var(--book-paper);
}
.room-book[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.room-book h2, .room-book h3 {
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", serif;
}
.book-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px clamp(16px, 6vw, 88px);
  border-bottom: 1px solid var(--book-rule);
}
.book-wordmark { font: 700 20px/1.1 "Songti SC", SimSun, serif; }
.book-wordmark small {
  margin-inline-start: 9px;
  font: 700 9px/1.2 "Microsoft YaHei", sans-serif;
  letter-spacing: .15em;
  color: var(--book-muted);
}
.room-book button { color: var(--book-red); min-height: 44px; }
.book-close { padding-inline: 12px; border: 1px solid var(--book-rule); border-radius: 24px; white-space: nowrap; }
.book-close:hover { background: #ecdfca; }
.book-content { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.book-content:focus-visible { outline: 2px solid var(--book-rule); outline-offset: -2px; }
.book-cover, .book-chapter { width: min(100%, 1220px); margin-inline: auto; padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 62px); }
.book-cover {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.book-eyebrow { color: var(--book-red); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.book-cover h2 { margin: .13em 0 .26em; font-size: clamp(48px, 8vw, 106px); line-height: 1.05; letter-spacing: -.055em; }
.book-cover-lead { max-width: 22em; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.85; color: var(--book-muted); }
.book-contents { margin-top: clamp(24px, 5vw, 58px); border-top: 1px solid var(--book-rule); }
.book-contents button {
  display: grid;
  grid-template-columns: 2.1em 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 4px;
  text-align: start;
  border-bottom: 1px solid var(--book-rule);
}
.book-contents button:hover { background: #eee2cd; }
.book-contents button span { font-size: .78rem; font-variant-numeric: tabular-nums; }
.room-book figure { margin: 0; }
.book-cover-photo { background: #433c2c; color: #fff1d8; }
.book-cover-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 57%; }
.book-cover-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 11px 14px; font-size: .82rem; }
.book-cover-photo figcaption span { color: #e4ceb0; }
.book-space-photos { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: -10px; }
.book-space-photos img { display: block; width: 100%; aspect-ratio: 1.8; object-fit: cover; }
.book-space-photos figcaption { padding-block: 7px; font-size: .78rem; color: var(--book-muted); }
.book-chapter-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr);
  align-items: end;
  gap: 18px 38px;
  padding-block: clamp(20px, 3vw, 36px) 22px;
  border-top: 1px solid var(--book-rule);
}
.book-chapter-heading h3 { margin: .25em 0 0; font-size: clamp(33px, 5.7vw, 72px); line-height: 1.15; letter-spacing: -.045em; }
.book-chapter-heading > p { color: var(--book-muted); font-size: .94rem; line-height: 1.7; }
.book-records { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--book-rule); }
.book-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 12px 28px;
  padding-block: 16px;
  border-top: 1px solid var(--book-rule);
}
.book-record h4 { margin: 0 0 6px; font-size: clamp(15px, 1.6vw, 21px); line-height: 1.45; }
.book-record p, .book-source-note { color: var(--book-muted); font-size: .84rem; line-height: 1.65; }
.book-record-images { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.book-record-images img { display: block; width: auto; max-width: 100%; height: 112px; object-fit: contain; object-position: left; }
.book-source-note { margin-top: 14px; }
.book-record--feature {
  display: block;
  padding: clamp(20px, 4vw, 44px) clamp(12px, 4vw, 44px);
  background: #f0e4d0;
}
.book-feature-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; margin-bottom: 18px; }
.book-feature-heading .book-eyebrow { color: var(--book-red); }
.book-feature-heading h4 {
  margin-top: 6px;
  font: 700 clamp(24px, 4vw, 44px)/1.16 "Songti SC", SimSun, "Noto Serif CJK SC", serif;
}
.book-original { padding: 8px 0; font-size: .84rem; text-decoration: underline; text-underline-offset: .25em; }
.book-feature-art img { display: block; width: 100%; height: auto; }
.book-feature-art figcaption { margin-top: 10px; color: var(--book-muted); font-size: .78rem; }
@media (max-width: 680px) {
  .book-wordmark small { display: none; }
  .book-cover { grid-template-columns: minmax(0, 1fr); }
  .book-cover-photo { grid-row: 1; }
  .book-cover-photo img { aspect-ratio: 1.25; }
  .book-space-photos { grid-column: auto; margin-top: 0; }
  .book-chapter-heading, .book-record { grid-template-columns: minmax(0, 1fr); }
  .book-record-images img { height: 96px; }
}
