@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;600;700;900&display=swap');
/* Styles of the הספר של אנאבלה blocks (src/puck/anabella-book-config.tsx; /anabella_book renders them).
   Linked from inside each block so the editor canvas iframe gets it too. No next/font var
   (undefined in the canvas would invalidate the whole font stack).
   Part 1 = the rules of src/app/(frontend)/books/books.css this page uses (copied — books.css
   is shared with /books and /crambel); part 2 = the old anabella-book.css (.ab-*). */

/* ── part 1: from books.css (.bk) ── */
.bk {
  --navy: #15303e;
  --glow: #25495c;
  --teal: #0f5568;
  --cream: #f7f2ee;
  --sand: #ede4dc;
  --terra: #b76a50;
  --gold: #c9954f;
  --gutter: clamp(20px, 5vw, 72px);
  --pad-y: clamp(72px, 7vw, 120px);
  --fs-h2: clamp(28px, 3vw, 52px);
  --fs-h3: clamp(22px, 2.08vw, 36px);
  --fs-body: clamp(17px, 1.16vw, 20px);

  box-sizing: border-box;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Noto Sans Hebrew', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: clip;
}
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk h1, .bk h2, .bk h3, .bk p, .bk figure, .bk blockquote { margin: 0; }
.bk a { color: inherit; text-decoration: none; }
.bk :focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

.bk-line {
  display: inline-block; align-self: flex-start; padding-bottom: 18px;
  background: linear-gradient(var(--terra), var(--terra)) 100% 100% / 34% 3px no-repeat;
}
.bk-h1 { font-size: clamp(36px, 4.6vw, 84px); font-weight: 700; line-height: 1.1; }
.bk-h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; }
.bk-body { font-size: var(--fs-body); line-height: 1.65; }
.bk-small { font-size: 14px; line-height: 1.6; color: var(--teal); }

.bk-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.bk-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 64px; padding: 0 30px; border-radius: 30px; border: 1.5px solid var(--terra);
  background: var(--terra); color: var(--cream) !important; font-weight: 700; font-size: var(--fs-body);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.25s, color 0.25s;
}
.bk-btn span { white-space: nowrap; }
.bk-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(8, 20, 27, 0.25); }

.bk-book {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 48px clamp(40px, 7vw, 140px);
  padding: var(--pad-y) var(--gutter);
}
.bk-book--flip { flex-direction: row-reverse; }
.bk-book-text { flex: 1.6 1 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 46em; }
.bk-book-cover {
  flex: 1 1 260px; display: flex; justify-content: center; align-items: center;
  padding: clamp(36px, 4vw, 64px) 20px;
  background: radial-gradient(ellipse 70% 80% at 50% 45%, var(--glow) 0%, rgba(37, 73, 92, 0.4) 45%, rgba(21, 48, 62, 0) 80%), var(--navy);
}
.bk-book-cover img {
  display: block; width: clamp(170px, 16vw, 240px); height: auto;
  transform: rotate(-3deg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.bk-book--flip .bk-book-cover img { transform: rotate(3deg); }

.bk-panel {
  padding: var(--pad-y) var(--gutter);
  background: radial-gradient(ellipse 70% 60% at 25% 20%, var(--glow) 0%, rgba(37, 73, 92, 0.5) 40%, rgba(21, 48, 62, 0) 75%), var(--navy);
  color: var(--cream);
}
.bk-qmark { display: block; flex: 0 0 auto; }
.bk-endorse {
  display: flex; flex-direction: column; gap: 28px; max-width: 980px;
  padding-bottom: clamp(56px, 5vw, 88px); margin-bottom: clamp(56px, 5vw, 88px);
  border-bottom: 1px solid rgba(247, 242, 238, 0.25);
}
/* was a flex column with gap 18px; the paragraphs now come from a rich field */
.bk-endorse-text { display: block; font-size: clamp(19px, 1.45vw, 26px); font-weight: 300; line-height: 1.6; }
.bk-endorse-text p + p { margin-top: 18px; }
.bk-endorse-by { font-size: var(--fs-body); font-weight: 700; color: var(--gold); }

@media (max-width: 760px) {
  .bk-book, .bk-book--flip { flex-direction: column; align-items: stretch; }
  .bk-book-text { flex-basis: auto; }
  .bk-actions { width: 100%; }
  .bk-btn { width: 100%; }
  .bk-btn span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .bk-btn { transition: none; } }

/* ── part 2: לקפוץ למים (.ab) ── */
.ab-hero {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 48px clamp(40px, 6vw, 110px);
  padding: var(--pad-y) var(--gutter);
  background: radial-gradient(ellipse 60% 90% at 20% 35%, var(--glow) 0%, rgba(37, 73, 92, 0.5) 40%, rgba(21, 48, 62, 0) 75%), var(--navy);
  color: var(--cream);
}
.ab-hero-text { flex: 1.2 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ab-hero-sub { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; color: var(--cream); }
.ab-hero-body { font-size: clamp(18px, 1.3vw, 22px); line-height: 1.7; color: rgba(247, 242, 238, 0.88); max-width: 30em; }
.ab-hero-art { flex: 1 1 340px; display: flex; justify-content: center; }
.ab-hero-art img {
  display: block; width: 100%; max-width: 620px; height: auto; border-radius: 24px;
  box-shadow: -22px 22px 0 var(--terra);
}

.ab-questions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.ab-q { font-size: clamp(24px, 2.3vw, 40px); font-weight: 300; line-height: 1.25; }
.ab-q--strong { font-weight: 700; color: var(--terra); }
.ab-cover { align-self: stretch; border-radius: 24px; }
/* the two body paragraphs were flex items with the column's 22px gap */
.ab-about-body p + p { margin-top: 22px; }

.ab-barriers { padding: var(--pad-y) var(--gutter); background: var(--sand); display: flex; flex-direction: column; gap: clamp(36px, 4vw, 60px); }
.ab-barriers .bk-h2 { max-width: 22em; }
.ab-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px;
}
.ab-item {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(26px, 2.4vw, 36px); background: var(--cream); border-radius: 20px;
  box-shadow: 0 14px 34px rgba(21, 48, 62, 0.07);
  transition: transform 0.3s;
}
.ab-item:hover { transform: translateY(-3px); }
.ab-num { font-size: clamp(30px, 2.4vw, 42px); font-weight: 300; line-height: 1; color: var(--terra); }
.ab-item-text { font-size: var(--fs-body); line-height: 1.6; }
.ab-item-text strong { font-weight: 700; color: var(--navy); }

.ab-details {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px 60px;
  padding-top: clamp(32px, 3vw, 48px); border-top: 1px solid rgba(21, 48, 62, 0.15);
}
/* was a flex column with gap 12px; the paragraphs now come from a rich field */
.ab-colophon { display: block; font-size: var(--fs-body); line-height: 1.6; }
.ab-colophon p + p { margin-top: 12px; }
.ab-colophon strong { font-size: clamp(19px, 1.4vw, 24px); }
.ab-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.ab-endorse { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.ab-related { padding: var(--pad-y) var(--gutter) 0; display: flex; flex-direction: column; }
.ab-related-book { padding-inline: 0; }
.ab-related-book .bk-book-cover { border-radius: 24px; }
.ab-related-title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.ab-byline { display: block; }
.ab-byline p + p { margin-top: 4px; }

@media (max-width: 760px) {
  .ab-hero-art img { box-shadow: -12px 12px 0 var(--terra); max-width: calc(100% - 12px); }
  .ab-buy { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ab-item { transition: none; } }
@media (min-width: 1240px) { .ab-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
