/* Final Book notes use the same generated paper, ink, fonts and art as the preview. */
[data-theme] .soft-book-card { color: var(--book-ink); }
[data-theme] .soft-book-card::before { background-image: var(--book-material); }
[data-theme] .soft-book-card[data-stock=sky] { --soft-book-tone: sepia(.3) saturate(.9) hue-rotate(160deg); }
[data-theme] .soft-book-card[data-stock=lavender] { --soft-book-tone: sepia(.28) saturate(.9) hue-rotate(220deg); }
[data-theme] .soft-book-card[data-stock=peach] { --soft-book-tone: sepia(.2) saturate(1.5) hue-rotate(335deg); }
[data-theme] .soft-book-card[data-stock=walnut] { --soft-book-tone: brightness(.25) sepia(.9) saturate(1.5) hue-rotate(-10deg); }
[data-theme] .soft-book-card[data-stock=slate] { --soft-book-tone: brightness(.25) sepia(1) saturate(1.2) hue-rotate(155deg); }
[data-theme] .soft-book-art[hidden] { display: none; }
[data-theme] .soft-book-card[data-stock=walnut] .soft-book-art,
[data-theme] .soft-book-card[data-stock=slate] .soft-book-art { filter: invert(1); }
[data-theme] .soft-book-card h2,
[data-theme] .soft-book-words { font-family: var(--book-font); }
[data-theme] .soft-book-card[data-font='ephesis'] h2 { font-size: 40px; }
[data-theme] .soft-book-card[data-font='ephesis'] .soft-book-words { font-size: 28px; }
[data-theme] .soft-book-card.has-card-image { min-height: 0; padding: 0; }
[data-theme] .soft-book-card.has-card-image::before { display: none; }
[data-theme] .has-card-image h2 { margin: 0; font-size: inherit; line-height: 0; }
.soft-book-image { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 6px #34261930); }
[data-theme] .has-card-image :is(.soft-book-art,.soft-book-heading,.soft-book-words) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-theme] .has-card-image .soft-book-author { position: absolute; bottom: 17%; left: 12%; right: 12%; text-align: center; margin: 0; color: var(--book-muted); pointer-events: none; }
[data-theme] .has-card-image[data-orientation=portrait] .soft-book-author { bottom: 12%; }
[data-theme] .has-card-image .soft-book-number { top: 8%; left: 12%; }
[data-theme] .soft-book-number { color: var(--book-muted); }
[data-theme] .soft-book-author { color: var(--book-muted); }
.has-card-image a:focus-visible { display: block; outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
#book-load-status:empty { background: none; }
