:root { --paper: #f7eedc; --page: #fffbf1; --ink: #253e33; --bookmark: #304867; }
body { background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1.5; }
h1, h2 { color: var(--ink); }
h1 { font-size: clamp(30px, 5vw, 42px); }
label, .source-picker legend { font-size: 20px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 20px; }
button, .support-link { font-size: 18px; font-weight: 700; }
.source-options strong { font-size: 19px; }
.source-options small, .note, .notice, .consent, .form-support p, .result-support p,
.browser-notice, .pdf-help, #save-status, #copy-status, #status, #error, #share-note,
#feedback p, #feedback-comment p, .book-pages-nav a, .book-contacts a {
  font-size: 16px;
}
.note, .source-options small { color: #465c4f; }
.notice, .form-support, .result-support, .browser-notice, .pdf-help, #theme-note {
  overflow-wrap: anywhere;
}
#name::placeholder { color: #65736b; opacity: 1; }
#ready { font-size: 19px; }
#theme-note { color: #51452e; line-height: 1.55; }
.generator-masthead .form-season { font-size: 13px; }
#pages { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.page {
  position: relative;
  background: var(--page);
  border: 1px solid #dcc9aa;
  border-radius: 10px;
  box-shadow: 0 4px 12px #69512b13;
}
.page:not(.cover-page) > h3 { font: 28px/1.2 Georgia, serif; color: var(--ink); }
.page:not(.cover-page) > p:not(.book-counter) {
  font-size: 24px;
  line-height: 1.55;
  color: var(--ink);
}
.page > h3, .page > p { padding-inline: clamp(14px, 4vw, 28px); }
.cover-page > h3 { font-size: clamp(30px, 5vw, 42px); }
.cover-page > p:not(.cover-series):not(.book-counter) { font-size: 18px; }
.page img[hidden] { display: none; }
.artwork-missing {
  padding: 24px 16px;
  background: #f1eadb;
  color: #465c4f;
  text-align: center;
  font-size: 16px;
}
.page .book-counter { font-size: 14px; }
.redraw-control { margin: 12px clamp(14px, 4vw, 28px); }
.redraw-note { margin: 8px 0 0; color: #465c4f; font-size: 15px; line-height: 1.45; }
.page .redraw-button {
  display: flex;
  width: 100%;
  border: 1px solid #9eaa95;
  background: #f2f3e8;
  color: var(--ink);
  font-size: 16px;
}
#prepare-pdf { background: var(--bookmark); }
#book-pdf-actions { scroll-margin-top: 20px; }
.back-to-pdf { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-size: 18px; }
a:focus-visible { outline: 3px solid #9d6728; outline-offset: 4px; }
@media (max-width: 380px) {
  .source-options { grid-template-columns: minmax(0, 1fr); }
  input[type=file] { font-size: 16px; }
}
