html{scrollbar-gutter:stable;scroll-padding-top:var(--site-header-clearance,92px)}
.header-space{height:72px;flex:none}
/* One surface, fixed reservation: changing the header never changes document height. */
body .header.literary-header.adaptive-header{position:fixed;left:50%;top:0;transform:translateX(-50%);width:100%;max-width:none;height:72px;margin:0;padding:0;z-index:100;border:1px solid transparent;border-bottom-color:#ffffff0b;border-radius:0;background:#0b0a11f7;box-shadow:none;overflow:visible;backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px);transition:width .3s cubic-bezier(.22,1,.36,1),height .3s cubic-bezier(.22,1,.36,1),top .3s cubic-bezier(.22,1,.36,1),border-radius .3s cubic-bezier(.22,1,.36,1),background-color .3s,border-color .3s,box-shadow .3s,backdrop-filter .3s}
body .header.literary-header.adaptive-header::before,body .header.literary-header.adaptive-header::after{display:none}
body .header.literary-header.adaptive-header.is-compact{height:56px;top:12px;width:min(var(--header-compact-width,940px),calc(100% - 32px));border-radius:20px;border-color:#e0d5ff19;background:#100d18d9;box-shadow:0 8px 30px #00000038,inset 0 1px 0 #ffffff04;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body .adaptive-header.literary-header .header-inner.wrap{display:flex;align-items:center;justify-content:space-between;gap:32px;height:100%;min-height:0;width:100%;max-width:1280px;padding:0 24px;margin:auto}
body .adaptive-header.literary-header .workshop-brand{display:inline-flex;align-items:center;gap:10px;flex:none;min-width:0;font-size:17px;line-height:1.2;font-weight:600;letter-spacing:-.035em;color:#ede8f7;white-space:nowrap}
body .adaptive-header.literary-header .workshop-brand>span{margin:0;color:inherit;font-weight:inherit}
body .adaptive-header.literary-header .brand-avatar{width:32px;height:32px;border-radius:10px;object-fit:cover;box-shadow:none;transition:width .3s,height .3s,opacity .2s}
body .adaptive-header.literary-header.is-compact .brand-avatar{width:28px;height:28px}
body .adaptive-header.literary-header .header-navigation{display:flex;align-items:center;justify-content:center;position:relative;isolation:auto;width:auto;flex:0 1 auto;flex-wrap:nowrap;gap:24px;border:0;padding:0;background:none;box-shadow:none;border-radius:0;min-width:0}
body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]{background:none;box-shadow:none;color:#c3a5f3}
body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]::after{content:'';display:block;position:absolute;left:0;right:0;bottom:5px;height:2px;border-radius:2px;background:#b793ea}
body .adaptive-header.literary-header .header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none;grid-column:auto;grid-row:auto;align-self:center}
.header-icon-button{appearance:none;border:0;background:none;color:#bdb2cc;font:inherit;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border-radius:12px;cursor:pointer;transition:background-color .2s,color .2s,box-shadow .2s}
.header-icon-button:hover,.header-icon-button[aria-expanded=true]{color:#efe5fc;background:#b794ef0b}
.header-icon-button:active{background:#b794ef15}
body .adaptive-header.literary-header .header-mobile-toggle{display:none}
.header-account-image{display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff13;border-radius:11px;overflow:hidden;background:#aaa0c30a;color:#b9a7cd}
.header-account-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:contrast(1.06)}
body .adaptive-header .page-progress{position:absolute;bottom:-1px;left:20px;right:20px;top:auto;height:1px;overflow:hidden;border-radius:1px;pointer-events:none;opacity:.4;background:transparent}
body .adaptive-header .page-progress>span{height:1px;background:#a58bcb}
body .adaptive-header.is-compact .page-progress{left:22px;right:22px;bottom:0}
.header-popover{position:fixed;z-index:110;width:280px;max-width:calc(100vw - 32px);max-height:min(65dvh,600px);overflow:auto;overscroll-behavior:contain;padding:9px;border:1px solid #d7c1ff1c;border-radius:18px;background:#120f1af5;color:#e5dbee;box-shadow:0 18px 55px #0007;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);animation:header-panel-enter .22s cubic-bezier(.22,1,.36,1) both}
.header-popover[hidden]{display:none!important}
.header-popover a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;min-height:44px;text-decoration:none;font-size:16px;line-height:1.4;color:#d4c8e1;transition:color .2s,background .2s}
.header-popover a:hover{background:#b495e10a;color:#f0e7fb}
.header-popover a>span{min-width:0;overflow-wrap:anywhere}
.header-popover a .ui-icon{flex:none;color:#a993c1}
.header-popover small{display:block;margin-top:4px;color:#897e98;font-size:16px}
.header-popover p{margin:8px 12px 10px;color:#a297ad;line-height:1.5;font-size:16px;overflow-wrap:anywhere}
.header-account-panel #header-account-status{font-size:16px;color:#e3d6f0;padding-bottom:12px;border-bottom:1px solid #ffffff0b}
.header-account-panel .header-profile-link{display:flex;font-size:16px!important;color:#d4c8e1!important}
.header-account-panel a[data-account-signout]{margin-top:7px;border-top:1px solid #ffffff0a;border-radius:0 0 10px 10px;color:#9b8aa8}
.header-search-status{font-size:16px;line-height:1.6;color:#9788a6;margin:14px 2px}
.header-search-results{display:grid;gap:4px}
.header-search-result{display:flex;align-items:center;gap:14px;padding:13px 12px;border-radius:12px;text-decoration:none;color:#d7cbe4;min-width:0;transition:background .18s}
.header-search-result:hover,.header-search-result:focus-visible{background:#b595e50d}
.header-search-result>svg{flex:none;color:#a98bc8}
.header-search-result>span{min-width:0}
.header-search-result strong{display:block;font-size:17px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}
.header-search-result small{display:block;font-size:16px;color:#9788a6;margin-top:4px;line-height:1.5;overflow-wrap:anywhere}
@keyframes header-panel-enter{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}
:is(#popular,#work-about,#work-text,#book-contents,#book-excerpt,.publication-body h2,.publication-body h3){scroll-margin-top:16px}
@media(max-width:1000px){
 body .adaptive-header.literary-header .header-inner.wrap{gap:12px;padding:0 18px}
 body .adaptive-header.literary-header .header-mobile-toggle{display:inline-flex}
 body .adaptive-header.literary-header .header-navigation{display:none;position:absolute;top:calc(100% + 10px);right:16px;width:min(310px,calc(100vw - 32px));max-height:calc(100dvh - 110px);overflow:auto;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:2px;padding:8px;border:1px solid #d7c1ff1c;border-radius:18px;background:#120f1af5;box-shadow:0 18px 55px #0007;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
 body .adaptive-header.literary-header.is-mobile-open .header-navigation{display:flex;animation:header-panel-enter .22s ease both}
 body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]{background:#b595e50a}
 body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]::after{top:16px;bottom:16px;left:4px;right:auto;width:2px;height:auto}
 body .adaptive-header.literary-header.is-compact{width:min(460px,calc(100% - 24px));border-radius:20px}
 body .adaptive-header.literary-header.is-compact .header-navigation{right:0}
}
@media(max-width:480px){
 body .adaptive-header.literary-header .header-inner.wrap{padding:0 12px;gap:8px}
 body .adaptive-header.literary-header .workshop-brand{font-size:16px;gap:8px}
 body .adaptive-header.literary-header .brand-avatar{width:28px;height:28px}
 body .adaptive-header.literary-header .header-actions{gap:0}
}
@media(max-width:350px){body .adaptive-header.literary-header .workshop-brand>span{max-width:106px;overflow:hidden;font-size:16px}body .adaptive-header.literary-header.is-compact .workshop-brand>span{display:none}}
@supports not (backdrop-filter:blur(1px)){body .header.literary-header.adaptive-header.is-compact{background:#100d18f5}.header-popover{background:#120f1a}}
.reading-focus .header-space{display:none}

/* Search grows within the header, to the left of its icon. */
body .adaptive-header.literary-header .workshop-brand{gap:10px;transition:gap .3s}
body .adaptive-header.literary-header .workshop-brand>span{display:block;max-width:140px;overflow:hidden;opacity:1;transition:max-width .3s cubic-bezier(.22,1,.36,1),opacity .2s;white-space:nowrap}
body .adaptive-header.literary-header.is-compact .workshop-brand{gap:0}
body .adaptive-header.literary-header.is-compact .workshop-brand>span{display:block;max-width:0;opacity:0}
body .adaptive-header.literary-header.is-compact.is-search-open{width:min(1280px,calc(100% - 32px))}
.header-search-control{display:flex;align-items:center;gap:0;min-width:0}
.header-search-form{display:flex;align-items:center;gap:4px;width:0;max-width:0;opacity:0;visibility:hidden;overflow:hidden;margin:0;padding:0;background:#07060c69;border:1px solid transparent;border-radius:11px;transform:translateX(8px);transition:width .3s cubic-bezier(.22,1,.36,1),max-width .3s cubic-bezier(.22,1,.36,1),opacity .2s,transform .3s,margin .3s,visibility 0s .3s}
.is-search-open .header-search-form{width:clamp(200px,24vw,330px);max-width:330px;margin-right:8px;opacity:1;visibility:visible;transform:none;border-color:#ccb4ed1c;transition:width .3s cubic-bezier(.22,1,.36,1),max-width .3s cubic-bezier(.22,1,.36,1),opacity .2s .05s,transform .3s,margin .3s,visibility 0s}
.header-search-form input{display:block;width:100%;min-width:0;max-width:100%;height:38px;padding:8px 0 8px 13px;border:0;background:none;border-radius:0;color:#eee5f7;font:inherit;font-size:16px;line-height:1.4;outline:none;box-shadow:none}
.header-search-form input::placeholder{color:#877991}.header-search-form input::-webkit-search-cancel-button{display:none}
.header-search-form:focus-within{border-color:#b595e549}
.header-search-close{display:grid;place-items:center;flex:none;width:32px;height:36px;padding:0;border:0;border-radius:8px;background:none;color:#82728f;cursor:pointer}
.header-search-close svg{width:15px;height:15px}.header-search-close:hover{color:#e7d6f5}
.header-search-panel{width:480px;padding:10px;max-height:min(60dvh,540px);scrollbar-width:thin}
.header-search-status{margin:8px 12px 10px;font-size:16px;color:#9988a6}
.header-search-result strong{font-size:16px}.header-search-result small{font-size:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.header-create-trigger{color:#bfa1dd}.header-create-trigger:hover{color:#e8d9fb}
@media(max-width:1000px){
 body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending){justify-content:space-between;min-height:48px;padding:12px 16px;border-radius:10px;font-size:17px}
 body .adaptive-header.literary-header.is-search-open .workshop-brand{gap:0}
 body .adaptive-header.literary-header.is-search-open .workshop-brand>span{max-width:0;opacity:0}
 body .adaptive-header.literary-header.is-search-open .header-actions{flex:1;min-width:0;gap:4px}
 body .adaptive-header.literary-header.is-search-open .header-search-control{flex:1;min-width:0}
 body .adaptive-header.literary-header.is-search-open .header-search-form{flex:1;width:auto;max-width:none;min-width:0;margin-right:4px}
 body .adaptive-header.literary-header.is-search-open .header-mobile-toggle{display:none}
 body .adaptive-header.literary-header.is-compact.is-search-open{width:calc(100% - 24px)}
 .header-search-form input{font-size:16px;padding-left:10px}
}
@media(prefers-reduced-motion:reduce){.header-search-form,body .adaptive-header.literary-header .workshop-brand,body .adaptive-header.literary-header .workshop-brand>span{transition:none!important}}
body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending){position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;font-size:16px;line-height:1.2;color:#b0a8be;text-decoration:none;white-space:nowrap;cursor:pointer;transition:color .2s}
body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending):hover{background:none;color:#efe8fb}
body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]{background:none;box-shadow:none;color:#c3a5f3}
body .adaptive-header :is(a,button):focus-visible,.header-popover :is(a,button):focus-visible{outline:2px solid #bd99ee;outline-offset:4px}
.header-search-form input:focus-visible{outline:none}
@media(max-width:1000px){body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending){justify-content:space-between;min-height:48px;padding:12px 16px;border-radius:10px;font-size:17px}body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]{background:#b595e50a}}
@media(max-width:350px){body .adaptive-header.literary-header .workshop-brand{gap:0}body .adaptive-header.literary-header .workshop-brand>span{max-width:0;opacity:0}}
@media(prefers-reduced-motion:reduce){body .header.literary-header.adaptive-header,body .adaptive-header *, .header-popover,.header-popover *{animation:none!important;transition:none!important}}

body .adaptive-header.literary-header .header-nav-pending{cursor:default;color:#a79bb8}
@media(min-width:1001px) and (max-width:1150px){body .adaptive-header.literary-header.is-search-open .header-inner.wrap{gap:18px;padding-inline:18px}body .adaptive-header.literary-header.is-search-open .header-navigation{gap:18px}.is-search-open .header-search-form{width:clamp(180px,20vw,230px);max-width:230px}}
