/* ספר מעשה השבת: the book's page. Same type, colours and buttons as the game's page (style.css), in a quieter, grown-up key:
   navy and gold lead, nothing wobbles, and the pictures are the book itself (the set, its pages, Maran's letter). */
.bookpage{--ink-gold:#7f5f2b}
.bookpage .btn:hover{transform:scale(1.04)}
.bk-kicker{font-size:var(--sm);font-weight:800;letter-spacing:.08em;color:var(--ink-gold);margin-bottom:14px}
.field-navy .bk-kicker{color:var(--sand)}
.bookpage h2{font-size:clamp(36px,4.6vw,76px);line-height:1.02}
.bookpage section p+p{margin-top:1em}

/* ----- hero ----- */
.bk-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(24px,4vw,70px);align-items:center;padding-top:clamp(40px,5vw,80px);padding-bottom:clamp(40px,5vw,80px)}
.bk-hero h1{font-size:var(--d1);max-width:7em}
.bk-hero .lede{margin-top:clamp(18px,2vw,32px)}
.bk-by{margin-top:14px;font-weight:800;font-size:var(--st);color:var(--ink-gold)}
.bk-hero-act{display:flex;align-items:center;gap:26px;flex-wrap:wrap;margin-top:clamp(24px,2.6vw,40px)}
.bk-hero-art{position:relative;justify-self:center;width:min(100%,560px);padding:clamp(18px,3vw,44px) clamp(18px,3vw,44px) 0;background:var(--sand);border-radius:999px 999px 28px 28px}
.bk-hero-art img{width:100%;filter:drop-shadow(0 26px 22px rgba(39,50,79,.32));margin-bottom:-4%}
.bk-facts{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,2vw,34px);margin-top:clamp(20px,3vw,50px);padding-top:clamp(22px,2.6vw,40px);border-top:3px solid var(--navy)}
.bk-facts dt{font-weight:800;font-size:clamp(40px,5vw,84px);line-height:1;letter-spacing:-.03em}
.bk-facts dd{margin-top:8px;font-size:var(--tx);line-height:1.3}

/* ----- the four volumes: a shelf of spines; the chosen one steps forward and its contents open beside it ----- */
.bk-vols{display:grid;gap:clamp(34px,5vw,80px)}
.bk-vols-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--m);align-items:end}
.bk-shelf{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(26px,5vw,90px);align-items:end}
.bk-spines{display:flex;gap:6px;align-items:flex-end;padding-bottom:10px;border-bottom:10px solid var(--gold2)}
.bk-spine{--h:clamp(300px,31vw,430px);position:relative;width:clamp(66px,7.4vw,108px);height:var(--h);display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:calc(var(--h)*.11) 6px calc(var(--h)*.1);background:#15171c;color:#e6c98e;border-radius:6px 6px 2px 2px;text-align:center;line-height:1.1;
  box-shadow:inset 0 calc(var(--h)*.045) 0 #15171c,inset 0 calc(var(--h)*.045 + 3px) 0 #b08d57,inset 0 calc(var(--h)*.045 + 7px) 0 #15171c,inset 0 calc(var(--h)*.045 + 9px) 0 #9e2a2b,inset 0 calc(var(--h)*-.045) 0 #15171c,inset 0 calc(var(--h)*-.045 - 3px) 0 #b08d57,inset 0 calc(var(--h)*-.045 - 7px) 0 #15171c,inset 0 calc(var(--h)*-.045 - 9px) 0 #9e2a2b;
  transition:translate .45s var(--ease),background-color .3s}
.bk-sp-name{font-weight:800;font-size:clamp(17px,1.7vw,24px);padding:10px 4px;border-block:2px solid #b08d57;width:100%}
.bk-spine b{display:grid;place-items:center;width:clamp(40px,4vw,56px);aspect-ratio:1;border-radius:50%;border:2px solid #b08d57;font-size:clamp(22px,2.2vw,32px);font-weight:800;line-height:1}
.bk-sp-sub{font-size:clamp(12px,1vw,14.5px);font-weight:800;max-width:6.5em;opacity:.9}
.bk-spine:hover{translate:0 -8px}
.bk-spine.on{translate:0 -22px;background:#20232b}
.bk-spine.on b{background:#b08d57;color:#15171c}
.bk-spine:focus-visible{outline-color:var(--sand)}
.bk-panel{display:none}
.bk-panel.on{display:block}
html:not(.js) .bk-panel{display:block;margin-bottom:40px}
.bk-panel-n{font-size:var(--sm);font-weight:800;letter-spacing:.08em;color:var(--sand)}
.bk-panel h3{font-size:clamp(26px,2.9vw,46px);line-height:1.1;margin-top:10px;max-width:16em}
.bk-panel ul{columns:2;column-gap:clamp(20px,3vw,50px);margin-top:clamp(20px,2.4vw,36px);font-size:var(--st);line-height:1.25}
.bk-panel li{break-inside:avoid;padding:9px 0;border-bottom:1px solid rgba(243,223,191,.28)}
@media (prefers-reduced-motion:no-preference){.js .bk-panel.on{animation:bk-open .5s var(--ease) both}}
@keyframes bk-open{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* ----- inside the book ----- */
.bk-inside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,5vw,90px);align-items:center}
.bk-inside .lede{margin-top:clamp(16px,2vw,28px)}
.bk-method{margin-top:clamp(22px,2.6vw,40px);display:grid;gap:14px;counter-reset:m}
.bk-method li{counter-increment:m;position:relative;padding-inline-start:54px;min-height:38px;font-size:var(--tx);line-height:1.5}
.bk-method li::before{content:counter(m);position:absolute;inset-inline-start:0;top:0;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--navy);color:var(--paper);font-weight:800;font-size:18px}
.bk-where{margin-top:clamp(20px,2.4vw,34px);font-weight:800;font-size:var(--st);line-height:1.3;max-width:22em}
.bk-pages{position:relative;display:grid;grid-template-columns:repeat(12,1fr);align-items:start}
.bk-pg{background:#fff;border-radius:6px;overflow:hidden;box-shadow:0 22px 44px -22px rgba(39,50,79,.6)}
.bk-pg-a{grid-column:1/9;grid-row:1;rotate:-2deg}
.bk-pg-b{grid-column:5/13;grid-row:1;margin-top:22%;rotate:1.5deg;z-index:1;overflow:visible;background:none;box-shadow:none}
.bk-pg-b img{border-radius:6px;box-shadow:0 22px 44px -22px rgba(39,50,79,.6)}
.bk-pg figcaption,.bk-letter figcaption{margin-top:14px;font-size:var(--sm);line-height:1.3}

/* ----- Maran's letter ----- */
.bk-maran{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:clamp(30px,6vw,110px);align-items:center}
.bk-letter{justify-self:center;width:min(100%,470px);rotate:-1.2deg}
.bk-letter img{border-radius:6px;box-shadow:0 26px 50px -24px rgba(39,50,79,.6)}
.bk-maran-copy p,.bk-author-copy p{max-width:32em}
.bk-maran-copy h2,.bk-author-copy h2{margin-bottom:clamp(18px,2vw,30px)}
.bk-quote{margin-top:clamp(22px,2.6vw,38px);padding-inline-start:clamp(18px,2vw,28px);border-inline-start:5px solid var(--gold2)}
.bk-quote p{font-weight:800;font-size:clamp(24px,2.5vw,38px);line-height:1.22;max-width:19em}
.bk-quote footer{margin-top:12px;font-size:var(--sm);line-height:1.4;max-width:34em}

/* ----- the author ----- */
.bk-author{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.6fr);gap:clamp(30px,6vw,110px);align-items:center}
.bk-author .lede{max-width:24em}
.bk-author .bk-quote p{font-size:clamp(21px,2vw,30px)}
.bk-title-pg{justify-self:center;width:min(100%,400px);rotate:1.5deg}
.bk-title-pg img{border-radius:6px;box-shadow:0 26px 50px -24px rgba(39,50,79,.55)}

/* ----- from the book to the game ----- */
.bk-game{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(30px,6vw,100px);align-items:center}
.bk-game .lede{margin:clamp(16px,2vw,28px) 0 clamp(22px,2.6vw,36px);max-width:28em}
.bk-game-cards{position:relative;direction:ltr;height:clamp(300px,34vw,460px)}
.bk-game-cards img{position:absolute;top:0;left:50%;width:clamp(170px,19vw,260px);border-radius:12px;transform:translateX(-82%) rotate(-10deg);box-shadow:0 18px 36px -20px rgba(39,50,79,.6)}
.bk-game-cards img:last-child{transform:translateX(-14%) translateY(9%) rotate(9deg)}

/* ----- order ----- */
.bk-order{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:clamp(30px,6vw,110px);align-items:center}
.bk-order .lede{margin-top:clamp(14px,1.6vw,24px)}
.bk-terms{margin-top:clamp(24px,3vw,44px);border-top:3px solid var(--navy);font-size:var(--st);line-height:1.25}
.bk-terms li{display:flex;justify-content:space-between;gap:20px;align-items:baseline;padding:14px 0;border-bottom:1px solid rgba(39,50,79,.3)}
.bk-terms b{text-align:end}
.bk-buy{background:#fff;border-radius:28px;padding:clamp(24px,3.4vw,52px);display:grid;gap:16px;justify-items:start}
.bk-price{font-size:var(--st);line-height:1.1}
.bk-price b{font-size:clamp(52px,6vw,96px);letter-spacing:-.03em;line-height:1;margin-inline-end:10px}
.bookpage .stepper output{color:var(--navy)}
.bk-total{font-weight:800;font-size:var(--st);line-height:1.2;font-variant-numeric:tabular-nums}
.bk-buy .btn{width:100%}
.bk-buy .btn-paper{background:var(--blush)}

/* ----- footer ----- */
.bk-foot{position:relative;z-index:1;background:var(--navy);color:var(--paper);padding:clamp(40px,6vw,90px) var(--m) 0}
.bk-foot-top{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--m);flex-wrap:wrap}
.bk-foot-name{font-weight:800;font-size:clamp(46px,9vw,150px);line-height:.95;letter-spacing:-.03em}
.bk-foot-act{display:grid;gap:14px;justify-items:start}
.bk-foot-tel{font-weight:800;font-size:clamp(26px,2.6vw,38px);line-height:1.1;text-decoration:none}
.bk-foot-tel:hover{color:var(--sand)}
.bk-foot-end{margin-top:clamp(30px,4vw,60px);padding:18px 0;padding-inline-end:62px;border-top:1px solid rgba(252,244,239,.3);display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;font-size:var(--sm)}
.bk-foot a:focus-visible{outline-color:var(--sand)}
.bk-menu-set{width:min(100%,300px);margin-inline:auto;filter:drop-shadow(0 20px 18px rgba(0,0,0,.4))}

@media (max-width:900px){
  .bk-hero,.bk-inside,.bk-maran,.bk-author,.bk-game,.bk-order,.bk-vols-head{grid-template-columns:1fr}
  .bk-hero h1{font-size:clamp(46px,14vw,96px)}
  .bk-hero-art{width:min(86%,420px)}
  .bk-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bk-shelf{grid-template-columns:1fr;gap:34px}
  .bk-spines{justify-content:center;padding-top:22px}
  .bk-spine{--h:clamp(230px,62vw,330px);width:clamp(60px,19vw,90px)}
  .bk-panel ul{columns:1}
  .bk-pages{max-width:520px;margin-inline:auto;width:100%}
  .bk-letter{width:min(88%,400px)}
  .bk-title-pg{width:min(70%,320px)}
  .bk-game-cards{height:clamp(250px,70vw,360px);order:2}
  .bk-game-cards img{width:clamp(140px,38vw,200px)}
  .bk-buy{justify-items:stretch}
  .bk-buy .stepper{justify-content:center}
  .bk-price,.bk-total{text-align:center}
  .bk-foot-end{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  .bk-menu-set{width:min(100%,190px)}
}
@media (max-width:600px){
  .bk-facts dt{font-size:clamp(34px,10vw,52px)}
  .bk-terms li{flex-direction:column;gap:2px}
  .bk-terms b{text-align:start}
  .bookpage .menu-story{display:none}
  .bookpage .menu-content{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.bk-spine{transition:none}}

/* ----- the deal (24.11.2026) ----- */
.bk-order .deal{grid-column:1/-1;margin-top:0}
.bk-game-deal{font-size:var(--st);line-height:1.3;margin-bottom:clamp(18px,2vw,28px)}
.bk-game-act{display:flex;align-items:center;gap:26px;flex-wrap:wrap}

/* ----- the book's own logo (24.11.2026): "מעשה השבת" in the cover's red inside a gold frame ----- */
.bookpage .logo img{width:300px}
.bookpage .menu-top .logo img{width:clamp(190px,30svh,290px);background:#fff;padding:6px;border-radius:10px}
.bk-foot-mail{font-weight:800;font-size:var(--st);line-height:1.2;text-decoration:none}
.bk-foot-mail:hover{color:var(--sand)}
@media (max-width:900px){.bookpage .logo img{width:236px}}
@media (max-width:420px){.bookpage .logo img{width:200px}}
