/* v23 editorial Codex polish: wider margins, illuminated frame, stronger reading hierarchy. */
html[data-theme="stone"] .reader{position:relative;isolation:isolate;border:1px solid #bd9864;outline:1px solid #d9ae6ca3;outline-offset:-10px;box-shadow:0 0 0 4px #111614c7,0 24px 56px #0a0f0d91,inset 0 0 54px #03080970}
html[data-theme="stone"] .reader-frame{position:absolute;inset:0;z-index:3;opacity:.8;pointer-events:none;filter:none;background:url("../assets/ui/veloria-reader-filigree-v1.svg") center/100% 100% no-repeat}
html[data-theme="stone"] .reader-scroll{position:relative;z-index:4;box-sizing:border-box;height:100%;padding:clamp(28px,2.4vw,42px) clamp(36px,3vw,54px) 64px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-gutter:stable;scrollbar-color:#b99763a3 #1a1d1a47}
html[data-theme="stone"] #entry-category{position:relative;box-sizing:border-box;display:flex;align-items:center;width:100%;min-height:49px;margin:0 0 26px;padding:13px 28px 13px 52px;border:1px solid #c6a36e;box-shadow:inset 0 1px #f0d59b8c,inset 0 -2px #2d231c8c,0 6px 16px #08090653;background:linear-gradient(103deg,#775431,#96703d 43%,#76583a);color:#f7e5c5;font:400 13px/1.25 Georgia,serif;letter-spacing:.21em}
html[data-theme="stone"] #entry-category::before{content:"✧";position:absolute;left:18px;top:50%;transform:translateY(-53%);color:#f1d7a6;font:26px/1 Georgia,serif}
html[data-theme="stone"] #entry-category::after{content:"";position:absolute;top:12px;bottom:12px;right:12px;width:1px;background:linear-gradient(transparent,#e2c08a91,transparent)}
html[data-theme="stone"] .reader h2{color:#fbf1e2;font:400 clamp(40px,2.7vw,50px)/1.16 Georgia,serif;letter-spacing:.017em;margin:4px 0 16px;text-wrap:balance;text-shadow:0 2px 12px #0008}
html[data-theme="stone"] .subtitle{color:#d9bb83;font:400 12px/1.6 Georgia,serif;letter-spacing:.17em;margin:0 0 16px}
html[data-theme="stone"] .title-rule{position:relative;display:block;height:20px;margin:15px 0 30px;background:linear-gradient(90deg,transparent,#c4a16b 12%,#d8b981 50%,#c4a16b 88%,transparent) center/100% 1px no-repeat}
html[data-theme="stone"] .title-rule::after{content:"◇";position:absolute;left:50%;top:50%;transform:translate(-50%,-51%);padding:0 12px;color:#dbb879;font:25px/1 Georgia,serif;background:#1b2020}
html[data-theme="stone"] .prose{max-width:none;margin:0;color:#e8e0d5;font:400 clamp(17px,1.12vw,19px)/1.75 Georgia,serif;letter-spacing:.003em;overflow-wrap:break-word;text-shadow:0 1px 1px #0008}
html[data-theme="stone"] .prose p{margin:0 0 1.45em}
html[data-theme="stone"] .reader blockquote{max-width:700px;margin:33px auto 24px;padding:25px 18px 3px;border-top:1px solid #bd9e6a8c;color:#dbc4a0;font:italic 18px/1.65 Georgia,serif;text-align:center;position:relative}
html[data-theme="stone"] .reader blockquote::before{content:"✧";position:absolute;left:50%;top:-13px;transform:translateX(-50%);padding:0 12px;color:#d9b67b;font:23px/1 Georgia,serif;background:#1b2020}
html[data-theme="stone"] #related{margin:28px 0 0;padding-top:22px;border-top:1px solid #c6a46a69;gap:11px}
html[data-theme="stone"] .related-button{color:#efd9ae;border:1px solid #d1ab7370;background:linear-gradient(#5b482b46,#1b1c1a4c);padding:9px 14px;font:400 14px/1.4 Georgia,serif;transition:border-color .2s,background .2s}
html[data-theme="stone"] .related-button:hover{border-color:#e0c28f;background:#90714558}
@media(max-width:1200px) and (min-width:701px){html[data-theme="stone"] .reader-scroll{padding:30px clamp(30px,3.4vw,44px) 54px}html[data-theme="stone"] .reader h2{font-size:clamp(35px,3.6vw,44px)}html[data-theme="stone"] .prose{font-size:17px;line-height:1.7}}
@media(max-width:700px){html[data-theme="stone"] .reader-scroll{padding:28px clamp(24px,5vw,36px) 50px;max-height:min(75vh,780px);min-height:0;overflow-y:auto}html[data-theme="stone"] #entry-category{min-height:44px;padding:11px 14px 11px 42px;margin-bottom:23px;font-size:11px}html[data-theme="stone"] #entry-category::before{left:12px;font-size:22px}html[data-theme="stone"] .reader h2{font-size:clamp(33px,8vw,40px)}html[data-theme="stone"] .subtitle{font-size:11px;letter-spacing:.12em}html[data-theme="stone"] .prose{font-size:17px;line-height:1.72}html[data-theme="stone"] .reader blockquote{font-size:16px}html[data-theme="stone"] .title-rule{margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){html[data-theme="stone"] .related-button{transition:none}}
