/* An open storybook: image leaf, reading leaf and chapter bookmarks. */
.studio-romance{--romance-ink:var(--studio-color-heading);--romance-accent:var(--studio-color-accent);--romance-paper:color-mix(in srgb,var(--studio-color-surface) 91%,var(--studio-color-accent));position:relative;isolation:isolate;max-width:1600px;margin-inline:auto;padding:32px clamp(16px,4vw,60px);color:var(--studio-color-text);overflow:clip}
.romance-thread{position:absolute;z-index:-1;width:100%;height:85%;inset:10% 0 auto;color:var(--romance-accent);opacity:.2;stroke:currentColor;stroke-width:1;pointer-events:none}
.romance-layout{display:grid;grid-template-columns:minmax(180px,.72fr) minmax(0,2.5fr);gap:clamp(26px,4vw,65px);align-items:center}
.romance-intro{min-width:0;position:relative;padding-block:12px}
.romance-mark{display:block;width:76px;height:64px;margin-bottom:16px;color:var(--romance-accent)}
.romance-mark svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.romance-eyebrow{font-size:11px;line-height:1.8;color:var(--romance-accent);letter-spacing:.025em}
.studio-romance .romance-intro h2{margin:9px 0 12px;font-size:clamp(26px,2.4vw,35px);line-height:1.5;color:var(--romance-ink);max-width:270px;overflow-wrap:anywhere}
.romance-intro p{margin:0;font-size:13px;line-height:1.95;color:var(--studio-color-text-muted);max-width:275px}
.romance-signature{display:block;margin-top:24px;color:var(--romance-accent);font-size:10px;line-height:1.8}
.romance-volume{min-width:0;padding:8px 0 0;perspective:1200px}
.romance-book{position:relative;border:1px solid color-mix(in srgb,var(--romance-accent) 28%,var(--studio-color-border));border-radius:10px 26px 26px 10px;background:var(--romance-paper);isolation:isolate}
.romance-book::before,.romance-book::after{content:"";position:absolute;z-index:-1;inset:5px 4px -5px;border:1px solid color-mix(in srgb,var(--romance-accent) 23%,var(--studio-color-border));border-radius:inherit;background:var(--romance-paper);pointer-events:none}
.romance-book::after{inset:9px 8px -9px;z-index:-2}
.romance-spread{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,1.25fr);min-height:340px;position:relative;direction:ltr}
.romance-spread[hidden]{display:none!important}
.romance-cover{position:relative;min-width:0;padding:12px;padding-inline-end:0;align-self:stretch}
.romance-art{display:block;position:relative;width:100%;height:100%;min-height:315px;padding:0;overflow:hidden;border:0;border-radius:6px 2px 2px 6px;background:var(--studio-color-canvas);cursor:pointer;isolation:isolate}
.romance-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .6s cubic-bezier(.2,.7,.25,1)}
.romance-art::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 83%,#0004),linear-gradient(0deg,#0003,transparent 28%);box-shadow:inset 0 0 0 1px #ffffff1c}
.romance-art-empty{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at 45% 35%,color-mix(in srgb,var(--romance-accent) 22%,var(--studio-color-canvas)),var(--studio-color-canvas));color:var(--romance-accent)}
.romance-art-empty svg{width:42%;max-width:130px;stroke:currentColor;stroke-width:1}
.romance-art-open{position:absolute;z-index:3;bottom:14px;left:14px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff55;border-radius:50%;background:var(--studio-color-control);color:var(--romance-accent);transition:background .25s,transform .25s}
.romance-art-open svg{width:18px;height:18px;stroke:currentColor}
.romance-letter{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:30px clamp(24px,2.4vw,38px);direction:rtl;background:linear-gradient(90deg,#0002,transparent 5%),radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--romance-accent) 7%,transparent),transparent 68%);border-radius:0 26px 26px 0;text-align:start}
.studio-romance:dir(ltr) .romance-letter{direction:ltr}
.romance-chapter{display:flex;align-items:center;gap:10px;color:var(--romance-accent);font-size:10px;font-weight:700;line-height:1.8;margin-bottom:12px}
.romance-chapter i{height:1px;max-width:70px;flex:1;background:linear-gradient(90deg,transparent,var(--romance-accent));opacity:.45}
.romance-letter h3{font-size:clamp(23px,2.1vw,31px);line-height:1.45;margin:0 0 5px;color:var(--romance-ink);overflow-wrap:anywhere}
.romance-secondary{display:block;font-size:11px;line-height:1.6;color:var(--studio-color-text-muted)}
.romance-facts{display:flex;align-items:center;gap:9px;margin-top:13px;font-size:11px;color:var(--romance-accent);line-height:1.8}.romance-facts i{font-style:normal}
.romance-letter .romance-synopsis{font-size:13px;line-height:1.9;margin:12px 0 15px;color:var(--studio-color-text-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.romance-open{display:flex;align-items:center;gap:18px;align-self:flex-start;min-height:44px;margin-top:12px;padding:0 15px;border:1px solid color-mix(in srgb,var(--romance-accent) 40%,transparent);border-radius:7px;background:color-mix(in srgb,var(--romance-accent) 9%,transparent);color:var(--romance-ink);font:700 12px/1.5 var(--font-body,Arial,sans-serif);text-align:start;cursor:pointer;transition:background .25s,border-color .25s}
.romance-open span{font-size:18px;color:var(--romance-accent)}
.romance-page-corner{position:absolute;bottom:0;right:0;width:27px;height:27px;border-radius:0 0 24px;background:linear-gradient(135deg,transparent 49%,color-mix(in srgb,var(--romance-accent) 23%,var(--romance-paper)) 50%,var(--romance-paper) 90%);pointer-events:none}
.romance-index{display:grid;grid-template-columns:repeat(var(--romance-count,4),minmax(0,1fr));gap:9px;margin:24px 9px 0}
.romance-index button{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:52px;padding:8px 10px;text-align:start;background:transparent;color:var(--studio-color-text-muted);border:1px solid transparent;border-radius:5px;font:inherit;cursor:pointer;transition:background .25s,border-color .25s}
.romance-index button>span{align-self:stretch;display:flex;align-items:center;color:var(--romance-accent);font:600 14px/1 Arial,sans-serif;border-inline-end:1px solid color-mix(in srgb,var(--romance-accent) 30%,transparent);padding-inline-end:10px}
.romance-index strong{font-size:11px;line-height:1.7;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.romance-index button[aria-selected="true"]{background:color-mix(in srgb,var(--romance-accent) 9%,transparent);border-color:color-mix(in srgb,var(--romance-accent) 30%,transparent);color:var(--romance-ink)}
.romance-index button[aria-selected="true"]::before{content:"";position:absolute;top:-6px;inset-inline-start:15px;height:8px;width:14px;background:var(--romance-accent);clip-path:polygon(0 0,100% 0,100% 100%,50% 65%,0 100%)}
.romance-motion{display:block;margin:9px 9px 0;margin-inline-start:auto;min-height:44px;border:0;background:transparent;color:var(--studio-color-text-muted);font:inherit;font-size:11px;cursor:pointer}
.romance-empty{padding:40px 25px;border-block:1px solid var(--studio-color-border);color:var(--studio-color-text-muted);font-size:14px}.romance-empty strong{font-size:22px;color:var(--romance-ink)}.romance-empty p{line-height:1.8}
.studio-romance button:focus-visible{outline:2px solid var(--romance-accent);outline-offset:4px}.studio-romance .romance-art:focus-visible{outline-offset:-5px}
@media(hover:hover){.romance-art:hover>img{transform:scale(1.045)}.romance-art:hover .romance-art-open{background:var(--studio-color-card-hover);transform:translateY(-3px)}.romance-open:hover,.romance-index button:hover{background:color-mix(in srgb,var(--romance-accent) 15%,transparent);border-color:var(--romance-accent)}}
@media(prefers-reduced-motion:no-preference){.romance-spread.is-turning .romance-letter{animation:romance-page-turn .48s ease both;transform-origin:left center}.romance-spread.is-turning .romance-cover{animation:romance-cover-in .48s ease both}@keyframes romance-page-turn{from{opacity:.25;transform:perspective(1000px) rotateY(-7deg)}to{opacity:1;transform:none}}@keyframes romance-cover-in{from{opacity:.45}to{opacity:1}}}
@media(max-width:1000px){.romance-layout{grid-template-columns:minmax(0,1fr);gap:22px}.romance-intro{display:grid;grid-template-columns:60px minmax(0,1fr) minmax(0,1fr);column-gap:16px;align-items:center;padding:0}.romance-mark{grid-column:1;grid-row:1/4;width:60px;margin:0}.romance-eyebrow{grid-column:2}.studio-romance .romance-intro h2{grid-column:2;font-size:26px;margin:3px 0;max-width:none}.romance-intro p{grid-column:3;grid-row:1/4;font-size:12px;max-width:none}.romance-signature{display:none}.romance-spread{min-height:300px;grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr)}.romance-art{min-height:280px}.romance-letter{padding:24px}.romance-index{margin-top:23px}}
@media(max-width:600px){.studio-romance{padding-block:26px}.romance-intro{grid-template-columns:45px minmax(0,1fr);gap:0 12px}.romance-mark{width:45px;height:48px;grid-row:1/3}.studio-romance .romance-intro h2{font-size:24px}.romance-intro p{grid-column:1/-1;grid-row:3;margin-top:8px}.romance-layout{gap:16px}.romance-spread{grid-template-columns:105px minmax(0,1fr);min-height:0}.romance-cover{padding:9px 0 9px 9px}.romance-art{min-height:185px}.romance-letter{padding:18px 14px;min-height:250px}.romance-letter h3{font-size:20px;line-height:1.55}.romance-chapter{font-size:9px;margin-bottom:8px}.romance-secondary{font-size:10px}.romance-facts{font-size:10px;margin-top:9px}.romance-letter .romance-synopsis{-webkit-line-clamp:3;font-size:11px;line-height:1.8;margin:10px 0 0}.romance-open{font-size:11px;gap:9px;padding-inline:9px;margin-top:13px}.romance-art-open{width:31px;height:31px;left:8px;bottom:9px}.romance-art-open svg{width:16px;height:16px}.romance-index{grid-template-columns:repeat(2,minmax(0,1fr));margin-inline:0;gap:8px}.romance-index button{min-height:48px;padding:7px 8px}.romance-index strong{font-size:11px}.romance-book{border-radius:9px 19px 19px 9px}.romance-letter{border-radius:0 19px 19px 0}.romance-thread{opacity:.12}}
@media(prefers-reduced-motion:reduce){.studio-romance *,.studio-romance *::before,.studio-romance *::after{animation:none!important;transition:none!important}}
