/* Muslin morning: site-wide design layer (loaded after style.css). Theme palettes set inline vars on <html> and still win. */
:root{--bg:#FFFBF6;--card:#fff;--ink:#4A3A42;--mute:#6F5D66;--rose:#E7A79F;--rose-d:#8A5A64;--sage:#B8A3C9;--sage-l:#F7F0F6;--cream:#FBF3EA;--peach:#F6DCD8;--babyblue:#DDE9F2;--lav:#E9DDF0;--r:22px;--plum:#6E5560;--oat:#FBF3EA;--stitch:rgba(231,167,159,.55)}
body{font-family:Nunito,system-ui,-apple-system,sans-serif;background:var(--bg) radial-gradient(1200px 600px at 100% -10%,#F6DCD8aa,transparent 60%) no-repeat,radial-gradient(900px 500px at -10% 20%,#E9DDF088,transparent 60%) no-repeat;background-color:var(--bg);background-attachment:scroll;overflow-x:hidden}
html[dir=rtl] body,[dir=rtl] body{font-family:Tajawal,"Noto Sans Arabic",system-ui,sans-serif}
h1,h2,h3{font-family:Fraunces,Georgia,serif;font-variation-settings:"SOFT" 100,"WONK" 0;font-weight:400;color:var(--plum);letter-spacing:-.015em}
h3{font-weight:500}
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3{font-family:Tajawal,serif;font-weight:700;letter-spacing:0}
header{background:rgba(255,251,246,.85);border-bottom:1.5px dashed var(--stitch);backdrop-filter:blur(8px)}
.logo{font-family:Fraunces,Georgia,serif;font-variation-settings:"SOFT" 100,"WONK" 0;font-weight:500;font-size:1.4rem;color:var(--plum)}
html[dir=rtl] .logo{font-family:"El Messiri",serif;font-weight:700}
.logo .tag,.tag{font-family:Nunito,sans-serif;background:var(--cream);color:var(--rose-t);border:1px dashed var(--stitch)}
.topnav .nl{color:var(--ink)}.topnav .nl:hover{color:var(--rose-t)}
.lang{border:1.5px solid #E6D3CC;background:rgba(255,255,255,.7);color:var(--plum)}
.btn{font-weight:700;box-shadow:0 10px 22px -14px rgba(138,90,100,.75);transition:transform .25s,box-shadow .25s,filter .25s}
.btn:hover{transform:translateY(-1px);filter:brightness(1.05)}
.btn.alt{background:rgba(255,255,255,.8);color:var(--rose-t);border:1.5px solid #E6CFC8;box-shadow:none}
.hero{background:linear-gradient(160deg,#FDF1EE 0%,#FBF3EA 45%,#F3ECF7 100%);position:relative}
.hero>*{position:relative}
.card,details,.story{border:1px solid #F0E2D8;box-shadow:0 18px 40px -30px rgba(110,85,96,.5);border-radius:var(--r)}
.card{outline:1.5px dashed var(--stitch);outline-offset:-9px}
.soft{background:var(--sage-l)}
button,input,select,textarea{font-family:inherit}
input,select,textarea{border:1.5px solid #EAD9CF;background:#fff;color:var(--ink);font-family:inherit}
input:focus,select:focus,textarea:focus{outline:2px solid var(--rose);outline-offset:1px;border-color:var(--rose)}
.btn:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--plum);outline-offset:2px}
.note{background:#FBF0DC}
footer{background:var(--oat);border-top:1.5px dashed var(--stitch);color:var(--mute)}
footer a{color:var(--plum)}
.toast{background:var(--plum)}
section>.wrap{animation:msup .7s ease both}
@keyframes msup{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){section>.wrap{animation:none}.btn{transition:none}}

html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3{font-family:"El Messiri",Tajawal,sans-serif;font-weight:600;line-height:1.4}
