/* editions.html: paper books hero with the hardcover lifted, cards, comparison table, family band */
.books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,3vw,40px);align-items:end;padding:30px 4% 40px;perspective:1200px}
.bk{position:relative;transform-style:preserve-3d}
.bk img{width:100%;height:auto;border-radius:3px 10px 10px 3px}
.pb{rotate:-4deg;transform:rotateY(14deg);box-shadow:5px 0 0 #F4EAD8,7px 4px 0 #D9C3A2,18px 26px 30px -14px rgba(16,30,56,.6);border-radius:3px 10px 10px 3px}
.hc{translate:0 -36px;rotate:3deg;transform:rotateY(-12deg);border-radius:4px 12px 12px 4px;padding:8px 8px 8px 16px;background:var(--plum);
  box-shadow:4px 0 0 #F4EAD8,8px 0 0 #E9DCC4,12px 0 0 #D9C3A2,16px 6px 0 var(--plum-d),28px 44px 46px -18px rgba(16,30,56,.7);animation:float 5s ease-in-out infinite alternate}
@keyframes float{to{translate:0 -48px}}
.lbl{position:absolute;bottom:-18px;left:50%;translate:-50% 0;rotate:-4deg;white-space:nowrap;padding:.5em .9em;border-radius:12px;background:var(--cream);color:var(--plum);
  font:400 1.1rem/1 "Lilita One",sans-serif;box-shadow:var(--cut)}
.lbl::before{content:"";position:absolute;top:-6px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--terra)}
.lbl b{font-weight:400;color:var(--terra)}
.hc .lbl{rotate:4deg;bottom:-26px}

#editions{--bg:var(--plum)}
.cmpwrap{overflow-x:auto;border-radius:24px;box-shadow:0 6px 0 rgba(16,30,56,.14),0 26px 40px -18px rgba(16,30,56,.55)}
.cmp{width:100%;min-width:620px;border-collapse:collapse;background:var(--tex),var(--cream)}
.cmp th,.cmp td{padding:18px 20px;text-align:center;border-bottom:2px dashed #E4D3B8}
.cmp tbody tr:last-child th,.cmp tbody tr:last-child td{border-bottom:0}
.cmp thead th{font:400 1.6rem/1 "Lilita One",sans-serif;color:var(--cream);background:var(--plum);padding:22px 20px}
.cmp thead th.hl{background:var(--terra);color:var(--plum)}
.cmp thead td{background:var(--plum)}
.cmp tbody th{text-align:left;font-weight:700;color:var(--plum)}
.cmp td{color:var(--ink);font-weight:500}
.cmp tbody tr:first-child td{font:400 2rem/1 "Lilita One",sans-serif;color:var(--terra-d)}
.cmp td:nth-child(3){background:rgba(247,213,107,.35)}

.fam{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,5vw,72px);align-items:center}
.fam figure{margin:0;max-width:420px;width:100%;justify-self:center}
.who{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.who .chip{background:var(--cream);color:var(--plum);box-shadow:var(--cut)}
#questions .acc{box-shadow:0 5px 0 var(--plum-d),0 16px 24px -16px rgba(0,0,0,.45)}

@media (max-width:899px){
  .fam{grid-template-columns:1fr;text-align:center}
  .fam .lead{margin-inline:auto}.who{justify-content:center}
  .books{max-width:520px;margin-inline:auto}
}
@media (max-height:520px) and (orientation:landscape){
  .fam{grid-template-columns:minmax(0,.6fr) minmax(0,1.4fr);text-align:left}.who{justify-content:flex-start}
  .books{padding-top:44px}
}
.cmpwrap{position:relative}
.who{display:grid;grid-template-columns:repeat(4,auto);justify-content:start}
@media (max-width:899px){ .who{justify-content:center} }
@media (max-width:599px){
  .who{grid-template-columns:repeat(2,auto)}
  .cmp{min-width:0;font-size:.88rem}
  .cmp th,.cmp td{padding:12px 6px}
  .cmp thead th{font-size:1.05rem;padding:16px 6px}
  .cmp tbody tr:first-child td{font-size:1.4rem}
}
@media (max-height:520px) and (orientation:landscape){ .who{justify-content:start} }
.books{padding:40px 0 50px}
.fam h2{font-size:clamp(2.4rem,4.6vw,4.4rem)}
/* phone: keep both books and their price tags inside the screen edges */
@media (max-width:599px){ .books{padding-inline:22px;gap:18px} .lbl{font-size:.92rem} }
