@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root{--paper:#f7f3eb;--panel:#fffdf8;--ink:#2f241d;--muted:#6d5244;--accent:#843c28;--line:#dfd2c2}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.7 'IBM Plex Sans Arabic',Tahoma,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}:focus-visible{outline:3px solid #a34e32;outline-offset:4px}
.wrap{width:min(1152px,calc(100% - 56px));margin-inline:auto}.top{display:flex;align-items:center;justify-content:space-between;height:77px;border-bottom:1px solid var(--line);color:var(--muted)}.logo{font-weight:700;font-size:1.65rem;color:var(--ink);display:flex;align-items:center;gap:.55rem}.logo i{width:30px;height:18px;border:2px solid var(--accent);border-radius:65% 30%;transform:rotate(-18deg);display:grid;place-items:center}.logo i:after{content:'';width:7px;height:7px;background:var(--accent);border-radius:50%}
.layout{display:grid;grid-template-columns:195px minmax(0,1fr);gap:32px;padding-block:36px}.index h2{margin:0 0 .45rem;font-size:1rem}.index nav{display:grid;gap:.35rem}.index a{padding:.5rem .65rem;border-radius:7px;color:var(--muted)}.index a:hover,.index a[aria-current]{background:#f0dfd2;color:#713421}.index a[aria-current]{font-weight:700}.progress{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font-size:.9rem;margin-bottom:.8rem}.progress progress{width:min(47%,220px);height:6px;accent-color:var(--accent)}
.slide{scroll-margin-top:20px;min-height:440px;padding:clamp(22px,5vw,56px);background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 34px #432b1510}.hero{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:clamp(20px,4vw,48px)}.hero img{width:100%;aspect-ratio:1.13;object-fit:cover;border-radius:12px;background:#e9d5bb}.slide h1,.slide h2{margin:0;line-height:1.15}.slide h1{font-size:clamp(2.7rem,6vw,5.4rem)}.slide h2{font-size:clamp(2.1rem,5vw,3.8rem)}.slide p{color:var(--muted);font-size:1.14rem;margin:.85rem 0 0}.hero button{margin-top:1.3rem}
button{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:.55rem .9rem;min-height:44px}.primary{color:#fff;background:var(--accent);border-color:var(--accent)}button:hover:not(:disabled){filter:brightness(.94)}.controls{display:flex;justify-content:space-between;gap:.5rem;margin-top:1rem}
.types,.care{margin-top:1.2rem;display:grid;gap:.65rem}.types details,.care li,.quiz button{border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:.7rem 1rem}.types summary{cursor:pointer;font-weight:600}.types details p{font-size:1rem;margin:.35rem 0 0}.options{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.options button[aria-pressed=true]{background:var(--accent);color:white;border-color:var(--accent)}.care{padding-inline-start:1.4rem}.care li::marker{font-weight:700;color:var(--accent)}.care strong,.care span{display:block}.care span{color:var(--muted)}.quiz button{text-align:start}.quiz .correct{background:#e3efdc;border-color:#6a8a5d}.quiz .incorrect{background:#f8e5de;border-color:#a96854}
.presentation:fullscreen{background:var(--paper);overflow:auto;padding:clamp(16px,5vw,56px)}.presentation:fullscreen>*{max-width:1100px;margin-inline:auto}
@media(max-width:800px){.wrap{width:calc(100% - 32px)}.layout{grid-template-columns:minmax(0,1fr);gap:20px;padding-block:20px}.index nav{display:flex;flex-wrap:wrap;gap:.25rem}.index a{font-size:.9rem;padding:.3rem .5rem}.hero{gap:18px}.slide{min-height:360px}}
@media(max-width:490px){.hero{grid-template-columns:1fr}.hero img{aspect-ratio:1.8}.hero h1 br{display:none}.controls button{padding-inline:.55rem}.top{height:62px}}

.presentation{min-width:0}
.frame-card{margin-top:1rem;border:1px solid var(--line);border-radius:14px;background:#f2e7d8;overflow:hidden;text-align:center}
.turntable{height:160px;display:grid;place-items:center;perspective:460px;cursor:grab;touch-action:none;user-select:none;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 36%,#fff9ef,#e7d4be)}
.turntable.dragging{cursor:grabbing}
.turntable:before{content:'';position:absolute;bottom:18px;width:54%;height:16px;border-radius:50%;background:#5b362a35;filter:blur(8px)}
.frame{--frame-color:#8c452e;--yaw:24deg;--pitch:-14deg;position:relative;width:174px;height:65px;transform:rotateX(var(--pitch)) rotateY(var(--yaw));transform-style:preserve-3d}
.frame-front{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;transform:translateZ(7px)}
.frame-front i{display:block;width:76px;height:65px;border:6px solid var(--frame-color);border-radius:50%;background:linear-gradient(138deg,#fff9 12%,#e0bba32b 42%,#fff6 45%,#8b5a4420 58%);box-shadow:inset 0 0 0 1px #5033236b,0 2px 0 #32201868}
.bridge{width:25px;height:11px;border-top:5px solid var(--frame-color);border-radius:50%;margin-inline:-2px}
.frame.square .frame-front i{border-radius:13px}
.frame.oval .frame-front i{height:48px}
.temple{position:absolute;top:22px;width:103px;height:10px;border-radius:5px 12px 7px 5px;background:var(--frame-color);box-shadow:inset 0 2px 1px #fff5}
.temple-left{left:4px;transform-origin:left center;transform:rotateY(94deg)}
.temple-right{right:4px;transform-origin:right center;transform:rotateY(-94deg)}
.frame-card #frame-note{margin:.5rem .7rem;font-size:1rem}
.studio-controls{padding:.2rem .8rem .8rem;display:grid;gap:.5rem}
.studio-controls label{font-size:.9rem;color:var(--muted)}
.swatches,.rotation-controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.45rem}
.swatches button[aria-pressed=true],#spin[aria-pressed=true]{color:white;background:var(--accent);border-color:var(--accent)}
.rotation-controls input{min-width:92px;max-width:190px;accent-color:var(--accent)}
.hero img{transition:transform .45s cubic-bezier(.2,.75,.25,1),box-shadow .45s}
@media(hover:hover){.hero img:hover{transform:translateY(-6px) rotate(-2deg) scale(1.025);box-shadow:0 14px 24px #532f2925}}
@media(prefers-reduced-motion:reduce){.hero img{transition:none}.hero img:hover{transform:none}}
