@font-face { font-family:"Ruby Naskh"; src:url("../fonts/naskh-arabic-700.woff2") format("woff2"); font-weight:700; font-display:swap }
:root {
    --topbar-height:78px;
    scroll-padding-top:calc(var(--topbar-height) + .75rem);
    --ink:#35231c; --paper:#faf6ee; --cream:#f1e8d9; --line:#ded1bd; --muted:#715f51;
    --gold:#b49662; --arabic:"Dubai","Segoe UI",Tahoma,Arial,sans-serif;
    --display:"Ruby Naskh","Arabic Typesetting","Traditional Arabic","Times New Roman",serif;
    --serif:"Baskerville","Georgia",serif;
    color:var(--ink); background:var(--paper); font:400 17px/1.65 var(--arabic);
}
* { box-sizing:border-box }
body { margin:0 }
body, button, input, select, textarea { font-family:var(--arabic) }
img { max-width:100%; display:block }
button,input,textarea,select { font-size:1rem; color:inherit }
button { cursor:pointer }
a { color:inherit; text-decoration:none }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
    outline:3px solid #a26a25; outline-offset:4px
}
::selection { color:#fff; background:#714b35 }
.wrap { width:min(1220px,90%); margin-inline:auto }
.skip { position:fixed; top:-100px; right:1rem; background:var(--paper); color:var(--ink); padding:1rem; z-index:20 }
.skip:focus { top:0 }
h1,h2,h3,p,figure { margin:0 }
h1,h2 { font-family:var(--display); line-height:1.1; text-wrap:balance; font-weight:700 }
h1 { font-size:clamp(2.6rem,6vw,5.5rem) }
h2 { font-size:clamp(2.3rem,4.3vw,4rem) }
h3 { font-size:1.25rem; font-weight:600; line-height:1.4 }
.ruby-header { background:#fcf8f0; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10 }
.topbar { height:var(--topbar-height); display:flex; align-items:center; justify-content:space-between; gap:1.5rem }
.brand { display:inline-flex; align-items:center; justify-content:center; direction:ltr; gap:10px; white-space:nowrap; line-height:1 }
.brand b { font:normal 2.2rem var(--serif); letter-spacing:-.06em }
.brand span { font:600 1.55rem var(--display) }
.brand i { height:26px; width:1px; background:var(--gold) }
.menu,.top-actions,.actions,.ruby-footer nav { display:flex; align-items:center; gap:1.4rem }
.menu>a { font-size:.94rem; padding:.4rem 0; border-block-end:1px solid transparent }
.menu>a[aria-current],.menu>a:hover { border-color:var(--gold) }
.icon-link { background:transparent; border:0; border-radius:50%; width:44px; height:44px; display:grid; place-items:center; color:var(--ink) }
.icon-link:hover { background:var(--cream) }
.top-actions { gap:.15rem }
.menu-toggle,.mobile-nav { display:none }
.hero { isolation:isolate; background:#2d1d19; min-height:clamp(540px,76vh,760px); position:relative; overflow:hidden; color:var(--paper); display:grid; align-items:center }
.hero-photo,.hero-shade { position:absolute; inset:0; width:100%; height:100% }
.hero-photo { object-fit:cover; object-position:40% 54%; z-index:-3 }
.hero-shade { z-index:-2; background:linear-gradient(270deg,rgba(28,16,13,.9),rgba(42,23,18,.72) 33%,transparent 65%),linear-gradient(0deg,rgba(35,20,14,.2),transparent 35%) }
.hero-content { padding-block:4rem }
.hero-content>div { max-width: min(48%,560px) }
.hero h1 { font-size:clamp(3.5rem,6.2vw,6.6rem); line-height:1.09; color:#fff6e9; letter-spacing:-.018em }
.hero-content p { font-size:1.22rem; margin:1.2rem 0 1.7rem; color:#f0e1ce }
.actions { gap:.65rem; flex-wrap:wrap }
.button,button:not([class]),input[type=submit] { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:.55rem 1.35rem; border:1px solid var(--ink); border-radius:5px; color:#fff9ee; background:var(--ink); font:500 1rem/1.6 var(--arabic); text-align:center; cursor:pointer; transition:background .18s,transform .18s }
.button:disabled { opacity:.5; cursor:default }
.button:hover:not(:disabled) { transform:translateY(-1px) }
.button.secondary { background:transparent; color:var(--ink); border-color:#9c8a74 }
.button.ivory { color:var(--ink); background:#f5ead8; border-color:#f5ead8 }
.button.ghost { color:#fff4de; background:rgba(33,20,15,.32); border-color:#d9c9ad }
.cone-stage { position:absolute; left:34%; top:1%; width:clamp(135px,19vw,300px); aspect-ratio:340/430; pointer-events:none; filter:drop-shadow(7px 12px 10px rgba(23,10,8,.32)) }
.ruby-cone { display:block; width:100%; height:100%; touch-action:pan-y; cursor:grab; pointer-events:auto }
.ruby-cone:active { cursor:grabbing }
.turn-cone { position:absolute; left:62%; bottom:6%; width:44px; height:44px; display:grid; place-items:center; color:#f5ead9; border:1px solid #dbc7a8; background:#34231caa; border-radius:50%; pointer-events:auto }
.home-block { padding-block:clamp(2.75rem,5.6vw,5rem) }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-block-end:1.25rem }
.text-link { display:inline-block; border-bottom:1px solid var(--gold); color:var(--muted); font-weight:600; white-space:nowrap }
.folio { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:clamp(.65rem,1.5vw,1.4rem) }
.folio-tile { display:block; position:relative; aspect-ratio:4/4.5; overflow:hidden; background:#291e19 }
.folio-tile img { width:100%; height:100%; object-fit:cover; transition:transform .55s }
.folio-tile:hover img { transform:scale(1.035) }
.folio-tile>div { color:white; position:absolute; bottom:0; width:100%; padding:2.5rem 1rem .9rem; background:linear-gradient(0deg,#20140fe6,transparent) }
.folio-tile span { font-size:.85rem; color:#f6e8d7 }
.about-strip { background:var(--cream); border-block:1px solid var(--line) }
.about-inner,.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:2rem; padding-block:2.75rem }
.about-inner p { max-width:610px; color:var(--muted); line-height:1.9 }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); gap:1.4rem; align-items:start }
.grid>img { max-height:650px }
.stack { display:grid; align-content:start; gap:1rem }
.stack>.button,.stack>a.button,.stack>form { justify-self:start }
.stack form.stack { width:100% }
.card,.panel { min-width:0; background:#fffcf6; border:1px solid var(--line); padding:1.15rem; border-radius:8px }
.card img { border-radius:4px }
.card a:hover h3 { text-decoration:underline }
.card h3 { margin-block-start:.65rem }
.price { font-weight:650; color:#62422d }
.price del { color:var(--muted); font-weight:400; font-size:.85em }
[data-favorite][aria-pressed=true] { background:#eee0d0; border-color:#7e5343 }
.page-head { padding:clamp(1.8rem,5vw,4rem) 0 1rem; border-bottom:1px solid var(--line); margin-block-end:1.2rem }
.page-head h1 { font-size:clamp(2.7rem,5vw,4.5rem) }
.ruby-interior main { min-height:65vh; padding-block-end:4rem }
fieldset { border:1px solid var(--line); border-radius:6px; padding:1rem; min-width:0 }
legend { font-weight:650; padding:0 .4rem }
input:not([type=radio]):not([type=checkbox]):not([type=submit]),select,textarea { display:block; min-height:46px; width:100%; max-width:100%; padding:.6rem .8rem; border:1px solid #ad9883; border-radius:4px; background:#fffdf9 }
textarea { min-height:110px }
input[type=radio],input[type=checkbox] { accent-color:var(--ink) }
.alert { background:#f2e8d9; color:#4a3020; padding:.75rem 1rem; border-inline-start:3px solid var(--gold); margin-block:1rem }
.ruby-footer,.book-feature { background:#38231c; color:#f8ead6 }
.footer-inner { flex-wrap:wrap; padding-block:2rem }
.ruby-footer nav { flex-wrap:wrap; gap:1rem }
.ruby-footer small { color:#e4d4bc }
.book-inner { display:grid; align-items:center; grid-template-columns:1fr 1fr; padding:1.5rem 0 }
.book-inner h2 { margin:.4rem 0 1.4rem }
.section-label { color:#dcbd8a; font-size:1.15rem }
.book-stage { min-height:330px; padding:2rem; display:grid; place-items:center; perspective:900px; overflow:hidden; background:radial-gradient(ellipse at 50% 70%,#94765162,transparent 65%) }
.book-object { width:175px; height:230px; position:relative; transform-style:preserve-3d; transform:rotateY(-18deg) rotateZ(-5deg); cursor:pointer; background:#e8dbc4; padding:0; border:0; border-radius:1px 5px 5px 1px; box-shadow:2px 2px #9d886b,5px 5px #e8d9bf,7px 7px #b59b7a,15px 23px 30px #20130e45 }
.book-cover,.book-paper { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:space-between; padding:1.25rem .6rem; overflow:hidden }
.book-cover { transform-origin:93% 50%; transform:translateZ(5px); transition:transform .7s cubic-bezier(.23,.75,.28,1); background:linear-gradient(90deg,#49291f,#542e21 89%,#341c16 92%,#533327); border:1px solid #966f49; color:#efd3a4; backface-visibility:visible }
.book-cover:after { content:""; position:absolute; inset:8px; border:1px solid #b8915a8a; pointer-events:none }
.book-cover>img { position:absolute; inset:0; height:100%; width:100%; object-fit:cover }
.book-cover:has(img)>span,.book-cover:has(img)>strong { opacity:0 }
.book-cover strong { font:650 2rem/1.2 var(--display); text-align:center }
.book-imprint { font:normal .6rem var(--serif); letter-spacing:.2em }
.book-by { font-size:.8rem }
.book-paper { display:grid; grid-template:minmax(0,1fr) / minmax(0,1fr); padding:.5rem; background:#faeaca; border:1px solid #ccb99a }
.book-paper img { grid-area:1/1; height:100%; width:100%; object-fit:contain }
.book-object[aria-pressed=true] .book-cover { transform:translateZ(5px) rotateY(108deg) }
@media(hover:hover) { html:not([data-motion="0"]) .book-object:hover .book-cover { transform:translateZ(5px) rotateY(108deg) } }
@media(max-width:860px) {
    :root { --topbar-height:64px }
    .topbar { gap:.4rem }
    .menu-toggle,.mobile-nav { display:grid }
    .menu { display:none; position:absolute; top:100%; inset-inline:0; padding:1rem 5%; background:var(--paper); border-bottom:1px solid var(--line); box-shadow:0 12px 20px #28170e1c }
    .menu.open { display:grid; gap:.1rem; grid-template-columns:1fr 1fr; max-height:calc(100dvh - var(--topbar-height) - 1px); overflow-y:auto }
    .menu>a { padding:.6rem 0 }
    .about-inner { flex-wrap:wrap; gap:.8rem }
}
@media(max-width:650px) {
    :root { font-size:16px }
    .wrap { width:91% }
    .hero { min-height:670px; min-height:clamp(530px,78svh,730px); align-items:end }
    .hero-photo { object-position:40% 10%; height:83%; mask-image:linear-gradient(#000 80%,transparent) }
    .hero-shade { background:linear-gradient(0deg,#2a1914 10%,#2a1914f5 20%,#2a1914cf 35%,transparent 68%) }
    .hero-content { padding-block:2.3rem }
    .hero-content>div { max-width:100% }
    .hero h1 { font-size:clamp(2.9rem,10vw,4.2rem); max-width:450px }
    .hero-content p { margin:.7rem 0 1.1rem; font-size:1.05rem }
    .hero .button { padding:.5rem 1rem }
    .cone-stage { top:0; left:51%; width:clamp(135px,36vw,205px) }
    .turn-cone { bottom:4%; left:75% }
    .folio { grid-template-columns:1fr 1fr; gap:.65rem }
    .folio-tile:first-child { grid-column:1/-1; aspect-ratio:1.75 }
    .folio-tile:first-child img { object-position:center 65% }
    .about-inner { display:grid; padding-block:1.6rem }
    .about-inner .text-link { justify-self:start }
    .footer-inner { gap:1.4rem }
    .grid { gap:.85rem }
    .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
    .product-grid .card { padding:.5rem }
    .product-grid h3 { font-size:1rem }
    .product-grid .button { font-size:.88rem;padding:.4rem .55rem }
    .book-inner { grid-template-columns:1fr; padding:2rem 0; text-align:center }
    .book-stage { min-height:260px; padding:1.3rem }
    .book-object { width:155px; height:205px }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important } }
html[data-motion="0"] * { animation-duration:0s!important;transition-duration:0s!important }
