.reader-page { margin: 0; background: #f5f1e8; color: #34434a; font-family: system-ui, sans-serif; }
.reader-header { padding: 22px 5%; border-bottom: 1px solid #d6d5ca; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reader-page a, .publishing a { color: #245f60; text-underline-offset: 4px; }
.publishing { max-width: 1050px; margin: auto; padding: 36px 22px 80px; color: #34434a; overflow-wrap: anywhere; }
.publishing h1 { font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 20px 0; }
.publishing h2 { font-size: 1.5rem; font-weight: 650; margin: 0 0 16px; }
.publishing h3 { font-weight: 650; }
.publishing p { margin: 14px 0; line-height: 1.6; }
.publishing-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: #566a60; font-weight: 700; }
.publishing-panel { background: #fffdf8; border: 1px solid #deded2; border-radius: 16px; padding: 28px; margin-top: 30px; }
.book-introduction { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.book-cover { width: 100%; max-width: 260px; aspect-ratio: 2 / 3; border-radius: 3px 12px 12px 3px; box-shadow: 6px 12px 22px #192b2926; box-sizing: border-box; }
.uploaded-cover { object-fit: cover; }
.generated-cover { display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 28px 22px; color: #fff6da; background: radial-gradient(ellipse at 100% 0%, #698c77 0%, transparent 60%), #153f43; border-left: 7px solid #ffffff20; }
.cover-palette-1 { background: radial-gradient(ellipse at 100% 0%, #b17d56 0%, transparent 60%), #633730; }
.cover-palette-2 { background: radial-gradient(ellipse at 100% 0%, #889ab0 0%, transparent 60%), #293e59; }
.cover-palette-3 { background: radial-gradient(ellipse at 100% 0%, #9b9862 0%, transparent 60%), #384a32; }
.cover-kicker { font-size: .6rem; text-transform: uppercase; letter-spacing: .2em; }
.cover-ornament { font-size: 3.4rem; color: #e5bf79; }
.cover-title { font: 1.8rem/1.15 Georgia, serif; overflow-wrap: anywhere; }
.cover-author { font-size: .8rem; margin-top: 25px; letter-spacing: .08em; }
.book-blurb, .chapter-prose { white-space: pre-wrap; }
.book-blurb { margin: 25px 0; line-height: 1.7; }
.publication-form { display: grid; gap: 12px; min-width: 0; }
.publication-form input:not([type=checkbox]):not([type=submit]), .publication-form textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #a1aaa2; border-radius: 6px; background: white; color: #34434a; }
.publication-form .field-hint { font-size: .85rem; margin: 0 0 10px; }
.publishing-button, .publishing a.publishing-button { display: inline-block; border: none; border-radius: 7px; padding: 12px 18px; background: #245f60; color: white; font: inherit; cursor: pointer; text-decoration: none; }
.publishing-button:disabled { background: #dce2df; color: #52635b; cursor: not-allowed; }
.publishing-secondary { border: 1px solid #81928a; border-radius: 7px; padding: 10px 16px; color: #245f60; background: transparent; font: inherit; cursor: pointer; }
.publication-chapter { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #deded2; padding: 22px 0; flex-wrap: wrap; }
.publishing-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bookshelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 40px; margin-top: 35px; }
.bookshelf h2 { margin-top: 24px; }
.chapter-list { padding-left: 25px; }
.chapter-list li { padding: 14px 0; border-bottom: 1px solid #deded2; }
.reading-column { max-width: 680px; margin: auto; }
.reading-byline { color: #63726d; margin-bottom: 45px !important; }
.chapter-prose { font: 1.2rem/1.9 Georgia, serif; }
.scene-break { width: 60px; margin: 40px auto; border: 0; border-top: 1px solid #9faea5; }
.reader-pagination { display: flex; justify-content: space-between; gap: 25px; margin-top: 55px; padding-top: 22px; border-top: 1px solid #bdc7bc; }
@media (max-width: 640px) { .book-introduction { grid-template-columns: 1fr; gap: 28px; } .book-cover { max-width: 220px; } .publishing-panel { padding: 20px; } }

.book-cover-link { display: block; text-decoration: none; }
