/* Warm editorial surfaces. The manuscript itself remains free of texture. */
:root{--paper:#fdfaf4;--green:#714b37;--muted:#877765;--line:#e0d6c7;color:#392e25;background:#f6f0e6}
body{background:#f6f0e6 url('/paper.svg');color:#392e25}.library-shell{background:radial-gradient(ellipse at 50% 0,#fffaf244,transparent 70%)}
.brand{color:#423b28}.brand span{font-style:italic;letter-spacing:-1.7px}.library-header{height:98px;border-color:#ded4c3}.library-main{width:min(calc(100% - 96px),1120px);padding-top:50px;padding-bottom:70px}.section-heading{margin-bottom:30px}.section-heading h2{font-size:33px;letter-spacing:-.8px}.count{background:#e8e0d2;color:#7d6b55}
.story-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 26px;align-items:start}.story-card,.story-open,.new-story-card{min-height:0}.story-card.book-cover{aspect-ratio:.69;border:0;border-radius:4px 9px 9px 4px;overflow:hidden;box-shadow:inset 0 0 0 1px #37241412,0 3px 4px #46332114,0 12px 19px -12px #3c261b55}.story-card.book-cover:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px #37241415,0 5px 7px #46332114,0 19px 25px -13px #3c261b55}
.book-cover{--cover-bg:#e9d9bc;--cover-ink:#453222;--cover-accent:#a85f3f;background:var(--cover-bg);color:var(--cover-ink);position:relative;isolation:isolate}.cover-linen{--cover-bg:#e9dac0;--cover-ink:#443023;--cover-accent:#a45b3e}.cover-clay{--cover-bg:#99583e;--cover-ink:#fff4df;--cover-accent:#f2d6b0}.cover-olive{--cover-bg:#646441;--cover-ink:#fff6df;--cover-accent:#e5d4aa}.cover-cocoa{--cover-bg:#5c4237;--cover-ink:#f6e7cf;--cover-accent:#bfa17b}.cover-rose{--cover-bg:#c3a49a;--cover-ink:#49312a;--cover-accent:#795043}.cover-sand{--cover-bg:#cab893;--cover-ink:#46372a;--cover-accent:#796442}
.book-cover:before{content:"";position:absolute;z-index:3;inset:0 auto 0 0;width:16px;background:linear-gradient(90deg,#24160e24,transparent 15%,#ffffff26 34%,transparent 70%,#24160e18 90%,#ffffff30);border-right:1px solid #ffffff20;pointer-events:none}
.book-cover:after{content:"";position:absolute;z-index:3;inset:0;background-image:url('/paper.svg'),repeating-linear-gradient(90deg,#ffffff06 0 1px,transparent 1px 3px),repeating-linear-gradient(0deg,#00000004 0 1px,transparent 1px 4px);opacity:.65;mix-blend-mode:multiply;pointer-events:none;border-radius:inherit}
.cover-decoration{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;border-radius:inherit}.cover-decoration:before,.cover-decoration:after{content:"";position:absolute;border:1px solid var(--cover-accent);opacity:.65}.cover-linen .cover-decoration:before{width:75%;aspect-ratio:1;border-radius:50%;background:var(--cover-accent);border:0;top:-33%;right:-30%;opacity:.9}.cover-clay .cover-decoration:before{width:105%;aspect-ratio:1;border-radius:50%;right:-50%;bottom:-31%}.cover-clay .cover-decoration:after{height:80%;right:21%;top:0;border-right:0;border-top:0;border-bottom:0}.cover-olive .cover-decoration:before{height:100%;right:17%;top:0;border-right:0;border-top:0;border-bottom:0}.cover-olive .cover-decoration:after{width:78%;right:0;bottom:29%;border-right:0;border-left:0;border-bottom:0}.cover-cocoa .cover-decoration:before{inset:18px 17px 18px 26px;opacity:.35}.cover-rose .cover-decoration:before{width:120%;aspect-ratio:1;border-radius:50%;left:22%;bottom:-56%}.cover-rose .cover-decoration:after{width:100%;aspect-ratio:1;border-radius:50%;left:40%;bottom:-45%}.cover-sand .cover-decoration:before{width:160%;aspect-ratio:1;transform:rotate(40deg);top:63%;left:0;background:var(--cover-accent);opacity:.14;border:0}.cover-sand .cover-decoration:after{width:100%;height:1px;bottom:25%;left:17%;transform:rotate(-23deg);opacity:.4}
.story-card.book-cover .story-open{position:relative;z-index:1;min-height:100%;height:100%;padding:29px 22px 17px 29px;background:transparent}.library-story-title{color:var(--cover-ink);font:normal clamp(25px,2.1vw,32px)/1.12 var(--serif);letter-spacing:-.8px;max-height:5.6em;scrollbar-width:none;margin:0;outline:none}.library-story-title:focus{background:#ffffff12;box-shadow:0 1px currentColor;overflow-y:auto}.book-subtitle{font:italic 15px/1.4 var(--serif);margin-top:12px;opacity:.87;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}.cover-rule{height:1px;width:49px;background:currentColor;opacity:.5;margin:19px 0 17px;flex-shrink:0}.book-author{font:normal 15px/1.5 var(--serif);margin-bottom:16px;overflow-wrap:anywhere}.book-bottom{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:4px;padding-top:23px}.book-counts{display:flex;flex-direction:column;gap:6px;font-size:11px;letter-spacing:.6px;color:var(--cover-ink)}.book-counts span{white-space:nowrap}.card-actions{padding:0;margin:0;flex-shrink:0;gap:0}.card-actions .icon-button{color:var(--cover-ink);opacity:.65;width:30px;height:40px;background:transparent}.card-actions .icon-button svg{width:15px;height:15px}.card-actions .icon-button:hover,.card-actions .icon-button:focus-visible{background:#ffffff20;opacity:1}.cover-edit{pointer-events:auto;position:relative;z-index:2}.card-open:focus-visible{outline:2px solid var(--cover-ink);outline-offset:-7px}
.new-story-card{aspect-ratio:.69;min-height:0;border-color:#c5b69d;background:#f8f3ea66;border-radius:5px 9px 9px 5px;color:#887457;font:italic 19px var(--serif);gap:15px}.new-story-card:hover{background:#eee5d666;border-color:#9c8464}.new-circle{border:0;background:none;color:#91774e;width:36px;height:36px}.new-circle svg{width:23px;height:23px;stroke-width:1.2}
.library-footer{border-color:#e1d7c7;color:#9a8c79}.library-footer .text-button{color:#8b7861}.icon-button{color:#8b7963}.icon-button:hover,.text-button:hover{background:#e9dfce;color:#654b34}.button.primary{background:#78563d;border-color:#78563d}.button.primary:hover{background:#62432e}.delete-notice{background:#e7ddca;color:#6b5841}.delete-notice button{color:#654b34}
.writing-room{background:#fdfaf4}.editor-shell{background:#fdfaf4}.outline{background:#eee6d8 url('/paper.svg');border-color:#dfd3bf;box-shadow:inset -5px 0 14px -13px #5f4229}.story-heading{padding-top:24px}.sidebar-author{font:italic 15px/1.5 var(--serif);margin:0 0 9px;color:#8a7058}.story-title-button:hover,.scene-title:focus{color:#754a30}.story-heading .fine{color:#96826a}.outline-top .text-button{color:#8a7459}.outline-label{border-color:#dcd0bc}.outline-label>span{color:#9a856a}.scene-row.selected{background:#e9cdb5}.selected .scene-link{color:#674229}.scene-link{color:#8c755b}.scene-mark{border-color:#ae9a7c}.selected .scene-mark{border-color:#986c48;background:#986c48}.scene-row:not(.selected):hover{background:#e7dcc9}.drag-handle{color:#a4937a}.drag-handle:hover,.drag-handle:focus-visible{background:#e5d4bc;color:#7a5838}.chapter-name.inline-title{font-size:16px;letter-spacing:-.2px}.add-scene,.add-chapter{color:#9c8160}.editor-header,.editor-footer{border-color:#e9dfd0;color:#9d8c75}.scene-breadcrumb{color:#7e674e}.breadcrumb-divider{color:#c2b39a}.prose{color:#514235}.prose::placeholder{color:#b4a48d}.chapter-kicker{color:#9a8468}.title-rule{background:#c8b499}.inline-title:focus{background:#e5cfb544;box-shadow:0 1px #b49b7c}.outline-scrim{background:#513b2938}.drop-before{box-shadow:0 -2px #b28961}.drop-after{box-shadow:0 2px #b28961}.drop-inside{outline-color:#b28961;background:#e9cdb555}
/* Creating a book is a page, with editable type on the actual cover. */
.book-studio{flex:1;width:min(calc(100% - 64px),940px);margin:auto;padding:52px 0 64px}.book-studio-layout{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}.studio-preview{display:flex;justify-content:center;perspective:1000px}.studio-book.story-card{width:340px;min-height:495px;aspect-ratio:.69;transform:rotate(-1.5deg);cursor:default;box-shadow:inset 0 0 0 1px #37241412,0 4px 7px #46332120,0 27px 40px -22px #5f3b2380;transition:background .35s,color .35s}.studio-book.story-card:hover{transform:rotate(-1.5deg);box-shadow:inset 0 0 0 1px #37241412,0 4px 7px #46332120,0 27px 40px -22px #5f3b2380}.book-front{height:100%;min-height:495px;display:flex;flex-direction:column;position:relative;z-index:4;padding:43px 35px 39px 42px;pointer-events:auto}.cover-title,.cover-subtitle,.cover-author{border:0;outline:0;border-radius:0;background:transparent;color:var(--cover-ink);width:100%;resize:none;padding:0;overflow:hidden;font-family:var(--serif);min-width:0}.cover-title{font-size:39px;line-height:1.13;letter-spacing:-1.1px}.cover-title::placeholder,.cover-subtitle::placeholder,.cover-author::placeholder{color:var(--cover-ink);opacity:.5}.cover-subtitle{font-size:18px;line-height:1.4;font-style:italic;margin-top:17px}.cover-title:focus,.cover-subtitle:focus,.cover-author:focus{box-shadow:0 1px #ffffff44}.book-front .cover-rule{width:60px;margin:25px 0}.cover-byline{display:flex;gap:8px;align-items:baseline;margin-top:auto;font:18px/1.5 var(--serif);padding-top:80px}.cover-byline>span{opacity:.7}.cover-author{font-size:18px;line-height:1.5}.studio-controls h1{font:normal 40px/1.15 var(--serif);letter-spacing:-1px;margin:0 0 18px}.studio-controls>p{font-size:14px;line-height:1.9;color:#998368;margin:0 0 34px}.cover-picker{border:0;padding:0;margin:0 0 34px;min-width:0}.cover-picker legend{font-size:13px;color:#8b7459;margin-bottom:17px}.cover-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 13px}.cover-option{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:11px;color:#9b8469;padding:0;min-width:0}.mini-cover{display:block;width:65px;aspect-ratio:.72;border-radius:2px 4px 4px 2px;box-shadow:0 2px 4px #49322222;transition:transform .2s;overflow:hidden}.mini-cover:before{width:7px}.mini-cover .cover-decoration{border-radius:inherit}.mini-title{font:20px var(--serif);position:absolute;top:17px;left:16px;color:var(--cover-ink);z-index:1}.cover-option.chosen .mini-cover{outline:1px solid #a4865e;outline-offset:5px}.cover-option.chosen{color:#6a4d31}.cover-option:hover .mini-cover{transform:translateY(-3px)}.create-book-button{min-width:170px;font-size:14px;padding:14px 24px;border-radius:6px}.studio-note{display:block;font-size:12px;color:#a28e73;margin-top:17px}.studio-draft-note{font-size:12px;color:#a28e73}.just-created{animation:book-arrive .55s ease-out}@keyframes book-arrive{from{opacity:0;transform:translateY(14px) rotate(1deg)}to{opacity:1;transform:none}}
@media(max-width:1200px){.story-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.library-story-title{font-size:30px}.book-studio-layout{gap:50px}.studio-book.story-card{width:310px;min-height:460px}.book-front{min-height:460px;padding:36px 30px 32px 37px}.cover-title{font-size:36px}}
@media(max-width:850px){.library-main{width:calc(100% - 64px)}.story-grid{gap:22px}.library-story-title{font-size:27px}.story-card.book-cover .story-open{padding:25px 18px 13px 26px}.book-counts{font-size:10px;letter-spacing:0}.card-actions .icon-button{width:28px}.book-bottom{gap:0}.book-studio-layout{gap:32px}.book-studio{width:calc(100% - 48px)}.studio-book.story-card{width:290px;min-height:435px}.book-front{min-height:435px}.studio-controls h1{font-size:34px}.cover-title{font-size:33px}.cover-option{font-size:10px}.mini-cover{width:55px}.cover-options{column-gap:10px}}
@media(max-width:700px){.story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}.library-main{width:calc(100% - 40px);padding-top:34px}.section-heading h2{font-size:29px}.library-story-title{font-size:29px}.book-studio{width:calc(100% - 40px);padding:32px 0 42px}.book-studio-layout{grid-template-columns:1fr;gap:40px}.studio-preview{order:1}.studio-controls{display:contents}.studio-controls h1{order:0;text-align:center;margin:0;font-size:31px}.studio-controls>p{display:none}.cover-picker{order:2;margin:0 auto;width:min(330px,100%)}.cover-picker legend{margin-bottom:15px}.cover-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.cover-option{font-size:12px}.mini-cover{width:62px}.create-book-button{order:3;justify-self:center;margin-top:-8px}.studio-note{order:4;text-align:center;margin:-25px 0 0}.studio-draft-note{display:none}.studio-book.story-card{width:295px;min-height:430px;transform:none}.studio-book.story-card:hover{transform:none}.book-front{min-height:430px;padding:34px 31px 32px 37px}.cover-title{font-size:35px}.cover-byline{padding-top:45px}.book-setup-shell .library-header{height:77px}}
@media(max-width:440px){.library-header{height:80px}.story-grid{gap:22px 18px}.library-story-title{font-size:24px;letter-spacing:-.6px}.story-card.book-cover{aspect-ratio:.64}.story-card.book-cover .story-open{padding:23px 13px 9px 22px}.book-cover:before{width:12px}.cover-rule{width:36px;margin:14px 0}.book-subtitle{font-size:13px;margin-top:9px}.book-author{font-size:13px;line-height:1.35;margin-bottom:7px}.book-bottom{padding-top:16px;flex-wrap:wrap;gap:7px}.book-counts{font-size:10px;gap:4px;flex:1}.card-actions{margin-left:auto}.card-actions .icon-button{height:36px;width:30px}.card-actions .icon-button svg{width:14px;height:14px}.book-counts span{white-space:normal}.new-story-card{aspect-ratio:.64;font-size:17px}.book-setup-shell .studio-book:before{width:16px}.book-setup-shell .cover-byline{padding-top:45px}}
.cover-option{font-size:14px}.cover-picker legend{font-size:14px}
@media(prefers-reduced-motion:reduce){.just-created{animation:none}.studio-book.story-card,.mini-cover{transition:none}}
