@font-face{font-family:Source Sans;src:url(/fonts/SourceSans3-Regular.ttf)format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Source Sans;src:url(/fonts/SourceSans3-Semibold.ttf)format("truetype");font-weight:600;font-display:swap}@font-face{font-family:Source Serif;src:url(/fonts/SourceSerif4-Regular.ttf)format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Source Serif;src:url(/fonts/SourceSerif4-Semibold.ttf)format("truetype");font-weight:600;font-display:swap}:root{--color-text:#173b52;--color-canvas:#faf9f5;--color-surface:#fff;--color-soft:#c5dae0;--color-accent:#d99b73;--color-action:#173b52;--color-inverse:#faf9f5;--color-border:#173b52;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px;--radius-control:8px;--radius-card:16px;--radius-pill:999px}*{box-sizing:border-box}html{background:var(--color-canvas);color:var(--color-text)}body{margin:0;font:16px/1.5 Source Sans,sans-serif}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select,summary{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-underline-offset:4px}a:hover{text-decoration-thickness:2px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Source Serif,serif;font-weight:400}h1{font-size:44px;line-height:1.18}h2{font-size:32px;line-height:1.25}h3{font-size:24px;line-height:1.33}p{max-width:75ch}.lead{font-size:20px;line-height:1.5}.caption,small{font-size:14px;line-height:20px}.eyebrow{font-weight:600}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:13px}:focus-visible{outline:3px solid var(--color-accent);outline-offset:4px}.button{border:1px solid var(--color-action);border-radius:var(--radius-control);background:var(--color-action);color:var(--color-inverse);cursor:pointer;text-align:center;justify-content:center;align-items:center;gap:8px;max-width:100%;min-height:48px;padding:12px 24px;font-weight:600;line-height:24px;text-decoration:none;display:inline-flex}.button:hover{filter:brightness(1.12);text-decoration:none}.button:active{transform:translateY(1px)}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.button.quiet{color:var(--color-text);background:0 0;border-color:#0000}.button.quiet:hover{background:#c5dae055}.field{flex-direction:column;gap:8px;font-weight:600;display:flex}.field input,.field textarea,.field select,select{border:1px solid var(--color-border);background:#fff;border-radius:8px;width:100%;min-height:52px;padding:12px 16px;font-weight:400}.field textarea{resize:vertical;min-height:128px;line-height:1.5}.field input:read-only{background:#c5dae040}.check{align-items:flex-start;gap:12px;display:flex}.check input{width:20px;height:20px;accent-color:var(--color-action);flex-shrink:0}.stack{flex-direction:column;gap:24px;display:flex}.actions,.section-head,.identity,.record{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.section-head{justify-content:space-between;align-items:flex-start}.section-head>div{flex-direction:column;gap:16px;display:flex}.card{background:var(--color-surface);border-radius:16px;flex-direction:column;gap:16px;min-width:0;padding:32px;display:flex}.card h2{font-size:24px;font-weight:600}.status{background:#c5dae060;border-radius:8px;max-width:none;padding:12px 16px}.status.error{background:#fff1ec;border-left:3px solid #9d4538}.logo{width:220px;height:auto;display:block}.site-header{align-items:center;gap:24px;max-width:1600px;margin:auto;padding:32px;display:flex}.desktop-nav{align-items:center;gap:16px;margin-left:auto;display:flex}.mobile-menu{display:none}.site-footer{background:var(--color-soft);flex-direction:column;gap:32px;padding:48px;display:flex}.site-footer h2{font-size:24px;font-weight:600}.footer-columns{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;display:grid}.footer-columns nav{flex-direction:column;gap:8px;display:flex}.footer-columns h3{font:600 16px/24px Source Sans,sans-serif}.footer-columns a{text-decoration:none}.page{flex-direction:column;gap:48px;max-width:1440px;min-height:60vh;margin:auto;padding:64px 96px;display:flex}.page.narrow{max-width:860px}.hero{gap:48px;display:flex}.home h1{font-size:64px;line-height:1.125}.brand-showcase{background:var(--color-soft);aspect-ratio:3/2;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-width:0;display:flex}.brand-showcase img{max-width:80%;height:auto}.brand-showcase p{font-size:14px}.prose{flex-direction:column;gap:16px;display:flex}.prose p{max-width:940px}details{border-bottom:1px solid #173b5220;padding:16px 0}summary{cursor:pointer;min-height:32px;font-weight:600}details>p,details>pre{margin-top:16px}details>.button,details>div{margin-top:12px}.parent-header{padding:24px}.parent-header .logo{width:200px}.account-layout{grid-template-columns:220px minmax(0,1fr);gap:48px;max-width:1600px;min-height:70vh;margin:auto;padding:48px;display:grid}.account-nav{flex-direction:column;gap:8px;display:flex}.account-nav a{border-radius:8px;padding:12px 24px;font-weight:600;text-decoration:none}.account-nav a[aria-current],.account-nav a:hover{background:#c5dae055}.account-content{min-width:0}.book-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px;display:grid}.book-card{background:#fff;border-radius:16px;flex-direction:column;min-width:0;text-decoration:none;display:flex;overflow:hidden}.book-card>img{aspect-ratio:3/2;object-fit:contain;background:#eef2ef;width:100%}.book-card>div:last-child{flex-direction:column;gap:8px;padding:24px;display:flex}.book-card h2{font-size:24px}.book-placeholder{aspect-ratio:3/2;background:var(--color-soft);justify-content:center;align-items:center;padding:24px;font-family:Source Serif,serif;display:flex}.avatar{background:var(--color-soft);border-radius:50%;place-items:center;width:64px;height:64px;font-size:24px;display:grid}.balance{font-family:Source Serif,serif;font-size:44px}.record{border-bottom:1px solid #173b5220;justify-content:space-between;padding:16px 0}.file-image{object-fit:contain;width:100%;height:200px}.reader-image{object-fit:contain;width:100%;max-height:75vh;display:block}.menu-links{flex-direction:column;gap:8px;display:flex}.menu-links a{padding:12px}.skip{z-index:100;background:var(--color-canvas);padding:12px;position:absolute;top:-100px;left:16px}.skip:focus{top:12px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}dialog{color:var(--color-text);background:var(--color-canvas);border:0;border-radius:16px;width:min(760px,100vw - 32px);max-height:calc(100dvh - 48px);padding:32px;overflow:auto;box-shadow:0 16px 72px #173b5230}dialog::backdrop{background:#173b5270}.dialog-head{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px;display:flex}.dialog-head h2{font-size:32px}dialog>p{margin-bottom:24px}.studio{flex-direction:column;height:100dvh;display:flex;overflow:hidden}.studio-header{flex-shrink:0;align-items:center;gap:16px;height:64px;padding:8px 16px;display:flex}.studio-title{text-overflow:ellipsis;white-space:nowrap;max-width:50vw;margin-left:auto;font-weight:600;overflow:hidden}.studio-tabs{display:none}.studio-body{grid-template-columns:minmax(0,1fr) 360px;gap:24px;height:calc(100dvh - 64px);min-height:0;padding:16px;display:grid}.book-pane{flex-direction:column;align-items:center;gap:12px;min-width:0;min-height:0;display:flex}.book-surface{flex:1;justify-content:center;align-items:center;width:100%;min-width:0;min-height:0;display:flex}.book-surface>.book-artwork-view{height:100%}.manuscript{aspect-ratio:3/2;background:#fff;flex-direction:column;justify-content:center;gap:24px;width:min(100%,150dvh - 222px);max-height:100%;padding:clamp(24px,4vw,64px);display:flex;overflow:auto}.manuscript h1{font-size:32px}.manuscript>p{font:20px/1.6 Source Serif,serif}.page-nav{flex-shrink:0;align-items:center;gap:8px;display:flex}.page-nav .button{min-height:40px;padding:8px 16px}.page-picker select{background:0 0;border:0;width:auto;max-width:120px;min-height:40px;padding:8px}.chat-pane{background:#fff;flex-direction:column;gap:24px;min-width:0;min-height:0;padding:16px;display:flex}.chat-pane>h2{flex-shrink:0;font-size:24px;font-weight:600}.messages{scrollbar-gutter:stable;flex-direction:column;flex:1;gap:24px;min-height:0;display:flex;overflow:auto}.message{flex-direction:column;gap:8px;min-width:0;display:flex}.message.parent{background:#c5dae030;border-radius:8px;padding:12px}.composer{flex-direction:column;flex-shrink:0;gap:12px;display:flex}.composer-status{justify-content:space-between;align-items:center;font-size:14px;display:flex}.composer-status .button{min-height:28px;padding:0 8px;font-size:14px}.composer form{flex-direction:column;gap:12px;display:flex}.composer .field>span{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.composer textarea{min-height:100px;max-height:160px;padding:12px 16px}.composer-actions{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.composer-actions .button{min-height:40px;padding:8px 12px}.composer-actions button:last-child{margin-left:auto}.upload-button{position:relative;overflow:hidden}.upload-button input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.upload-button:focus-within{outline:3px solid var(--color-accent);outline-offset:3px}.conversation-only .studio-body{justify-content:center;display:flex}.conversation-only .chat-pane{width:min(860px,100%)}@media (max-width:1100px){.site-header{padding:24px}.desktop-nav{gap:0}.desktop-nav .button{padding:12px}.logo{width:180px}.page{padding:48px}.account-layout{grid-template-columns:200px 1fr;gap:32px;padding:32px}.account-nav a{padding:12px}.home h1{font-size:48px}.home-hero{align-items:center}.site-footer{padding:32px}}@media (max-width:899px){.desktop-nav{display:none}.mobile-menu{margin-left:auto;display:inline-flex}.account-layout{padding:24px;display:block}.account-nav{display:none}.hero{flex-direction:column}.brand-showcase{width:100%}.footer-columns{grid-template-columns:repeat(2,1fr)}.studio-header{gap:4px;padding:8px}.studio-header .button{padding:8px 12px}.studio-title{max-width:30vw;font-size:14px}.studio-tabs{flex-shrink:0;gap:8px;height:60px;padding:0 16px 12px;display:flex}.studio-tabs .button{min-height:40px;padding:8px 24px}.studio-body{gap:0;height:calc(100dvh - 124px);padding:0 16px 16px;display:flex}.studio-body.tab-chat .book-pane,.studio-body.tab-book .chat-pane{display:none}.book-pane,.chat-pane{width:100%}.book-surface{flex:1}.manuscript{aspect-ratio:auto;width:100%;min-height:280px}.manuscript h1{font-size:24px}.manuscript>p{font-size:18px}.page-nav{gap:0}.page-nav .button{padding:8px 12px}.conversation-only .studio-body{height:calc(100dvh - 64px)}.chat-pane{padding:16px}.composer textarea{min-height:88px}.studio-body .status{max-height:100px;overflow:auto}}@media (max-width:600px){h1{font-size:32px;line-height:40px}h2{font-size:24px}.home h1{font-size:40px;line-height:1.2}.page{gap:32px;padding:32px 24px 48px}.site-header,.parent-header{padding:24px}.logo,.parent-header .logo{width:156px}.lead{font-size:20px}.hero{gap:24px}.home-hero .actions{flex-direction:column;align-items:flex-start}.card,.site-footer{padding:24px}.footer-columns{grid-template-columns:1fr;gap:32px}.section-head{gap:24px}.book-grid{grid-template-columns:1fr}.account-content>.stack{gap:24px}.dialog-head{gap:8px}.dialog-head h2{font-size:24px}dialog{padding:24px}.studio-header .studio-title{display:none}.studio-header .button:first-child{margin-right:auto}.page-picker select{max-width:86px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}.button:active{transform:none}}dialog.wide-dialog{flex-direction:column;width:calc(100vw - 32px);height:calc(100dvh - 32px);max-height:none;display:flex}dialog.wide-dialog:not([open]){display:none}.full-reader{flex-direction:column;flex:1;align-items:center;gap:16px;min-height:0;display:flex}.full-reader>.book-artwork-view{flex:1;height:auto}.full-reader>p{flex:1;font:24px/1.6 Source Serif,serif;overflow:auto}.full-reader>nav{flex-shrink:0;justify-content:center}.wide-dialog .dialog-head{margin-bottom:16px}.page-nav{flex-wrap:wrap;justify-content:center}.home-hero{align-items:center}.home-hero>div{flex:0 44%}.brand-showcase{aspect-ratio:auto;background:0 0;flex:1;gap:12px;margin:0}.brand-showcase img{border-radius:8px;width:100%;max-width:100%;box-shadow:0 12px 36px #173b521c}.brand-showcase figcaption{text-align:center;font-size:14px}.home .card{border-top:3px solid var(--color-accent)}.book-artwork-view{aspect-ratio:3/2;place-items:center;width:100%;min-width:0;height:auto;min-height:0;max-height:75dvh;display:grid;container-type:size}.book-artwork-view.single{aspect-ratio:2/3}.book-artwork{aspect-ratio:3/2;width:min(100cqw,150cqh);position:relative}.book-artwork.single{aspect-ratio:2/3;width:min(100cqw,66.6667cqh)}.book-artwork>img{object-fit:contain;width:100%;height:100%;display:block}.book-seam{pointer-events:none;background:linear-gradient(90deg,#0000,#173b5214 42%,#173b5226 49%,#fff5 51%,#173b5208 60%,#0000);width:12px;max-width:2%;position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%)}.book-surface>.book-artwork-view,.full-reader>.book-artwork-view{aspect-ratio:auto;max-height:none}
