@font-face{font-family:Plex;src:url(fonts/plex.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Plex;src:url(fonts/plex-medium.woff) format("woff");font-weight:500 800;font-display:swap}
@font-face{font-family:Amiri;src:url(fonts/amiri-bold.woff) format("woff");font-weight:700;font-display:swap}
@font-face{font-family:Amiri;src:url(fonts/amiri.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Warsh;src:url(fonts/warsh.ttf) format("truetype");font-display:block}
:root{--paper:#fbfaf2;--ink:#193f33;--light:#fff3d5;--gold:#d6b987;--ui:Plex,"Geeza Pro",Tahoma,sans-serif;--serif:Amiri,"Noto Naskh Arabic",serif}
*{box-sizing:border-box}
html{background:#042f29}
body{margin:0;position:relative;isolation:isolate;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;color:var(--light);font:400 1rem/1.7 var(--ui);-webkit-font-smoothing:antialiased}
body.locked{overflow:hidden}
.night{position:absolute;z-index:-2;inset:0;pointer-events:none;background:#07382f url(art/night.webp) center center/100% 100% no-repeat}
.night:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#09292012 0,transparent 23%,transparent 82%,#001e1b30)}
h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:2px solid #d3b579;outline-offset:4px}
.skip{position:fixed;z-index:3;top:-100px;inset-inline-start:12px;background:#fff5df;color:#124b38;padding:9px}.skip:focus{top:8px}
.mast{width:min(1240px,calc(100% - clamp(36px,9vw,136px)));margin:0 auto;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}.brand img{width:40px;height:40px;filter:brightness(0) saturate(100%) invert(83%) sepia(24%) saturate(497%) hue-rotate(352deg) brightness(99%) contrast(85%)}.brand span{font:700 1.5rem var(--serif);color:#f3e7c6}
nav{display:flex;align-items:center;gap:15px;color:#d7e1d3;font-size:.92rem}nav a{padding:8px 0;white-space:nowrap}nav a:hover{color:#fff0bf}
main{flex:1;display:flex;flex-direction:column;justify-content:center;position:relative;min-width:0;margin:0}
.intro{text-align:center;padding:15px 16px 12px}
.flourish{display:flex;align-items:center;justify-content:center;gap:7px;color:#d3b47a;height:12px;margin-bottom:3px}.flourish i{width:29px;height:1px;background:linear-gradient(90deg,transparent,currentColor)}.flourish i:last-child{transform:rotate(180deg)}.flourish b{width:5px;height:5px;background:currentColor;transform:rotate(45deg)}
.intro h1{font:700 clamp(2.85rem,5.4vw,4.8rem)/1.3 var(--serif);color:#fff1ce;text-shadow:0 2px 22px #07342b}
.intro p{margin-top:4px;font-size:clamp(.99rem,1.3vw,1.1rem);color:#dbe3d3}
.bubble-field{position:relative;width:min(1170px,calc(100% - clamp(20px,6vw,84px)));margin:5px auto 12px;min-height:270px;outline:none}
.bubble{position:absolute;top:var(--y);left:var(--x);width:var(--d);height:var(--d);transform:translate(-50%,-50%);display:grid;place-items:stretch;outline:0;border-radius:50%;isolation:isolate;--light-rgb:170,209,173;--glass-rgb:66,127,104}
.bubble[data-tone="honey"]{--light-rgb:222,192,126;--glass-rgb:146,113,48}
.bubble[data-tone="moss"]{--light-rgb:189,201,151;--glass-rgb:91,118,65}
.bubble[data-tone="aqua"]{--light-rgb:132,204,196;--glass-rgb:43,116,114}
.bubble[data-tone="jade"]{--light-rgb:155,217,176;--glass-rgb:37,131,92}
.bubble-core{position:relative;display:grid;place-items:center;border-radius:50%;color:#fff6dc;border:1px solid rgba(var(--light-rgb),.52);background:radial-gradient(ellipse at 24% 14%,rgba(var(--light-rgb),.30),transparent 38%),radial-gradient(ellipse at 71% 81%,rgba(var(--light-rgb),.14),transparent 37%),radial-gradient(ellipse at 50% 42%,rgba(var(--glass-rgb),.24) 0,rgba(var(--glass-rgb),.34) 58%,rgba(var(--light-rgb),.23) 83%,rgba(var(--light-rgb),.46) 100%),rgba(4,51,43,.66);box-shadow:inset 0 1px 3px rgba(var(--light-rgb),.29),inset -3px -5px 11px rgba(1,36,35,.40),0 5px 18px #001d1c24;animation:float var(--speed) ease-in-out var(--delay) infinite alternate;transition:filter .19s,box-shadow .19s}
.bubble-core:before,.bubble-core:after{content:"";position:absolute;pointer-events:none;border-radius:50%}
.bubble-core:before{inset:5% 7% 8% 5%;border-top:1px solid rgba(var(--light-rgb),.60);border-left:1px solid transparent;border-right:1px solid transparent;transform:rotate(-34deg);opacity:.72}
.bubble-core:after{inset:12% 8% 6% 9%;border-bottom:1px solid rgba(var(--light-rgb),.56);border-left:1px solid transparent;border-right:1px solid transparent;transform:rotate(-26deg)}
.bubble-label{font:700 var(--fs)/1.25 var(--serif);position:relative;padding-bottom:.06em;text-shadow:0 1px 5px #0b332b}
.bubble:hover,.bubble:focus-visible{z-index:2;outline:none}.bubble:hover .bubble-core,.bubble:focus-visible .bubble-core{animation-play-state:paused;border-color:#f5dba7;box-shadow:0 0 0 3px #e2ce9a35,0 0 28px rgba(var(--light-rgb),.22),inset 0 1px 8px rgba(var(--light-rgb),.35);filter:brightness(1.18)}
@keyframes float{from{transform:translate(calc(var(--dx) * -1),calc(var(--dy) * -1))}to{transform:translate(var(--dx),var(--dy))}}
.foot{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:8px 14px 14px;font-size:.87rem;color:#d4dfc8;text-shadow:0 1px 5px #002a21}
dialog{position:fixed;inset:0;width:min(800px,calc(100% - 42px));padding:0;border:1px solid #e8e7d4;border-radius:22px;max-height:min(88vh,920px);max-height:min(88dvh,920px);background:var(--paper);color:var(--ink);overflow:hidden;box-shadow:0 30px 110px #001b19a8}
dialog::backdrop{background:#011f1be0;backdrop-filter:blur(4px)}
.sheet{display:flex;flex-direction:column;max-height:min(calc(88vh - 2px),918px);max-height:min(calc(88dvh - 2px),918px)}
.sheet-bar{display:flex;align-items:center;justify-content:space-between;padding:11px clamp(17px,4vw,32px);border-bottom:1px solid #e1e3d5;flex:none;background:#f6f6ec}.sheet-kicker{font-size:.91rem;color:#4d6957}.close{width:37px;height:37px;border:1px solid #d4dccb;background:#fffef7;color:#285d49;display:grid;place-items:center;border-radius:50%;padding:0}.close:hover{background:#e1ecda}.close svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;fill:none}
.sheet-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-color:#b8c3ad #f8f8ee;scrollbar-width:thin;padding:0 clamp(18px,4vw,37px) 22px}
.reader-head{padding:20px 0 16px}.reader-head h2{font:700 clamp(2.3rem,4vw,3.5rem)/1.45 var(--serif);color:#20543e}.reader-meter{color:#3b634c;font-weight:500;font-size:.89rem;margin-top:6px}
.topic-heading{font:700 1.35rem/1.6 var(--serif);color:#325c43;background:#eef1e5;padding:5px 12px;border-inline-start:2px solid #aa9159;border-radius:4px;margin:5px 0}.verse-section+.verse-section{margin-top:10px}.verse-section .verse:first-of-type{border-top:0}
.verse{padding:19px 0 20px;border-top:1px solid #dce1ce}.verse-meta{display:flex;align-items:center;gap:8px;font-weight:500;color:#537051;font-size:.94rem}.verse-meta svg{height:17px;width:17px;color:#9a793e}.verse-meta .divider{color:#87927b}
.qtext{font:400 clamp(1.9rem,3vw,2.3rem)/1.99 Warsh,Amiri,serif;font-synthesis:none;color:#193e30;text-align:start;margin:6px 0 2px;overflow-wrap:break-word}
.qtext mark{color:#13553e;background:linear-gradient(transparent 75%,#e2ebd3 75%,#e2ebd3 96%,transparent 96%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.secondary-link{color:#2b674c;text-decoration:underline;text-underline-offset:5px;padding:0;background:none;border:0;font:500 .94rem var(--ui)}
.verse-source{display:inline-block;margin-top:5px;color:#486d53;text-decoration:underline;text-underline-offset:4px;font-size:.88rem}
.about section{padding:13px 0 16px;border-top:1px solid #dce1ce}.about h3{font:700 1.65rem var(--serif)}.about p{line-height:1.9;color:#4a6652}.about a{display:inline-block;margin-top:8px}
.research section>p+p{margin-top:.65rem}.research details{border-bottom:1px solid #dce1ce;padding:.6rem 0}.research summary{cursor:pointer;font-weight:500;color:#285c47;padding:.25rem 0}.research summary span{color:#546953;font-size:.9rem;font-weight:400;margin-inline-start:.6rem}.research details p{padding-top:.5rem}.research h4{font-size:1rem;margin:.65rem 0 .25rem}.research ul{padding-inline-start:1.3rem}.research li{line-height:1.8;margin:.45rem 0}.research li a{margin-top:0}
@media(min-width:800px) and (max-height:760px){.mast{min-height:58px}.intro{padding:1px 12px 5px}.intro h1{font-size:3.5rem}.foot{min-height:36px}.bubble-field{margin-top:0;margin-bottom:0}}
@media(max-width:700px){.mast{width:calc(100% - 34px);min-height:56px;gap:12px}.brand{gap:6px}.brand img{width:32px;height:32px}.brand span{font-size:1.2rem}nav{gap:9px;font-size:.84rem}.intro{padding:13px 12px 9px}.intro h1{font-size:clamp(2.5rem,9vw,3.35rem)}.intro p{font-size:.96rem}.bubble-field{margin-top:4px;margin-bottom:6px}.foot{min-height:36px;padding-bottom:9px;font-size:.80rem}.night{background-image:url(art/night-phone.webp);background-size:100% 100%;background-position:center bottom}.sheet-scroll{padding-inline:17px}.reader-head{padding-block:14px}.reader-head h2{font-size:2.35rem}.verse{padding:14px 0}.qtext{font-size:1.9rem}}
@media(max-width:610px){dialog{inset:auto 0 0;width:100%;max-width:100%;margin:0;border-radius:19px 19px 0 0;max-height:91vh;max-height:91dvh}.sheet{max-height:calc(91vh - 2px);max-height:calc(91dvh - 2px)}.sheet-bar{padding:8px 17px}.sheet-scroll{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
