/* Página do livro. */
.library {
  min-height: calc(100svh - 110px);
  padding: 48px clamp(20px, 4vw, 60px) 60px;
  background: #fff1e6;
  color: #314e49;
  text-align: center;
}
.library-heading .eyebrow { color: #437a77; margin: 0 0 10px; }
.library-heading h1 {
  margin: 0;
  font: 400 clamp(42px, 5vw, 64px) / 1.1 Garamond, Georgia, serif;
  font-variant: small-caps;
  letter-spacing: .035em;
}
.library-heading .ornament { margin: 18px auto 25px; }
.library-toolbar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 28px; }
.chapters-label { font: 20px Garamond, Georgia, serif; }
#chapters { padding: 9px 32px 9px 12px; color: #314e49; background: #fffaf2; border: 1px solid #b99d72; font: 16px Garamond, Georgia, serif; }
.book-stage { width: min(1318px, calc(67.5% + 27px)); margin: auto; display: flex; justify-content: center; align-items: center; gap: 12px; }
.book { width: min(1800px, calc(100% - 88px)); flex: 0 1 1800px; }
.book-page { background: #fffaf0; border: 1px solid #cfbd9f; overflow: hidden; }
.pdf-page img { width: 100%; height: 100%; display: block; object-fit: fill; }
.blank-page { background: #f4eddb; }
.blank-cover { background: #235d5b; box-shadow: inset 0 0 0 11px #235d5b, inset 0 0 0 12px #d4b873; }
.book-arrow { flex: none; border: 0; background: transparent; color: #a67427; font: 32px/1 Garamond, Georgia, serif; padding: 12px; cursor: pointer; }
.book-arrow:hover:not(:disabled) { color: #75501b; }
.book-arrow:disabled { opacity: .3; cursor: default; }
@media (max-width: 680px) {
  .library { padding: 95px 14px 50px; }
  .book-stage { gap: 2px; }
  .book { width: calc(100% - 70px); }
  .book-arrow { padding: 8px; }
}

/* Capa própria da família; o PDF aparece apenas nas folhas internas. */
.book-cover { background: #235d5b; color: #fff1ca; box-shadow: inset 0 0 0 12px #235d5b, inset 0 0 0 13px #d4b873; }
.cover-content { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cover-content img { width: 48%; max-width: 260px; height: auto; object-fit: contain; }
.cover-content p { font: 10px Cinzel, serif; letter-spacing: .14em; }
.cover-content h2 { margin: 14px 0; font: 400 clamp(26px, 3.5vw, 45px) Garamond, Georgia, serif; font-variant: small-caps; }

/* Folhas provisórias dos atos ainda não escritos. */
.coming-soon-page { background: #fffaf0; color: #6b7b69; }
.coming-soon-content { width: 100%; height: 100%; display: grid; place-items: center; font: italic 22px Garamond, Georgia, serif; }


/* Teste da JMH Typewriter nos textos. */
html body :is(p, a, button, label, input, select, .family-name, .family-role, .council-coin-face) { font-family: "JMH Typewriter", Garamond, serif; }

/* Fonte dos títulos. */
.library-heading h1, .cover-content h2 { font-family: "The Inquisition", Garamond, serif; font-variant: normal; }
