/* Pinned book bar, dialogs (booking calendar, story reader) and the scroll reveal. */
/* mobile book bar */
.book-bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:40;display:none;transform:translateY(140%);transition:transform .35s ease}
.book-bar.show{transform:none}
.book-bar .btn{width:100%;box-shadow:0 18px 40px -12px rgba(0,0,0,.5);animation:bar-swap .3s ease}
.book-bar[data-mode="fit"] [data-bar-mode="clarity"],.book-bar[data-mode="clarity"] [data-bar-mode="fit"]{display:none}
@keyframes bar-swap{from{opacity:0}to{opacity:1}}

/* booking dialog (the calendar itself is Sylvia's light-themed booking page) */
dialog{border:1px solid var(--line);padding:0;border-radius:24px;width:min(760px,calc(100vw - 24px));height:min(860px,calc(100dvh - 24px));max-height:none;box-shadow:0 40px 100px -20px rgba(0,0,0,.5);background:var(--card);color:var(--text);overflow:hidden}
dialog::backdrop{background:var(--backdrop);backdrop-filter:blur(4px)}
dialog[open]{animation:pop .3s ease}
@keyframes pop{from{opacity:0;transform:translateY(16px) scale(.98)}}
.dlg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 14px 24px;border-bottom:1px solid var(--line)}
.dlg-head strong{font-family:var(--serif);font-weight:400;font-size:1.25rem;color:var(--heading)}
.dlg-head .actions{display:flex;align-items:center;gap:8px}
.dlg-head .newtab{font-size:.85rem;color:var(--muted)}
.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--card);cursor:pointer;display:grid;place-items:center;color:var(--heading)}
.icon-btn svg{width:18px;height:18px}
.dlg-body{position:relative;height:calc(100% - 69px);background:#fff}
.dlg-body iframe{width:100%;height:100%;border:0;position:relative;z-index:1}
.dlg-body [hidden]{display:none}
.dlg-loading{position:absolute;inset:0;display:grid;place-items:center;color:#5B6576;font-size:.95rem}
.dlg-loading::before{content:"";width:28px;height:28px;border-radius:50%;border:2px solid #EADFD7;border-top-color:var(--gold);animation:spin 1s linear infinite;margin:0 auto 12px;display:block}
@keyframes spin{to{transform:rotate(360deg)}}

/* full-story reader */
dialog.story-dlg{width:min(680px,calc(100% - 24px));max-width:none;height:auto;max-height:min(86vh,820px);max-height:min(86dvh,820px);margin:auto;flex-direction:column}
dialog.story-dlg[open]{display:flex}
.story-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 4px clamp(24px,5vw,52px)}
.story-kicker{font:600 .74rem/1 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--accent)}
.story-body{overflow-y:auto;overscroll-behavior:contain;padding:0 clamp(24px,5vw,52px) 30px;flex:1}
.story-body:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--accent)}
.story-mark{font-family:var(--serif);font-size:4.6rem;line-height:.7;height:34px;margin-top:10px;color:var(--pink)}
.story-title{font-size:clamp(1.55rem,3.4vw,2.05rem);line-height:1.2;margin:4px 0 20px}
.story-text p{font-size:1.06rem;line-height:1.8;margin:0 0 1.05em;max-width:62ch}
.story-text p:first-child::first-letter{font-family:var(--serif);float:left;font-size:3.3em;line-height:.9;padding:.06em .1em 0 0;color:var(--em)}
.story-sign{margin:26px 0 0;padding-top:18px;border-top:1px solid var(--line);font-family:var(--serif);font-style:italic;font-size:1.12rem;color:var(--accent)}
.story-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line)}
.story-count{font-size:.85rem;color:var(--muted)}
.story-nav{display:inline-flex;align-items:center;gap:8px;font:600 .9rem/1 var(--sans);color:var(--heading);background:none;border:1px solid var(--line);border-radius:999px;padding:.7em 1.1em;cursor:pointer}
.story-nav:hover{border-color:var(--accent)}
.story-nav svg{width:15px;height:15px}
.story-nav[data-story-step="-1"] svg{transform:scaleX(-1)}

/* reveal */
.js .reveal{opacity:0;transform:translateY(24px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
.js .reveal.in{opacity:1;transform:none}
