/* סיפורי נשים - האתר החדש */
:root {
  --paper: #fbf7f0;
  --stone: #f1e8da;
  --ink: #1f1b17;
  --ink-soft: #4f463e;
  --line: #ddd0bd;
  --green: #2c4636;
  --green-dark: #1e3226;
  --night: #16130f;
  --night-text: #f4ece0;
  --focus: #b5541c;
  --radius: 14px;
  --max: 1120px;
  --fs: 1.1875rem; /* 19px */
  --serif: "Frank Ruhl Libre", "David", serif;
  --sans: "Assistant", "Arial Hebrew", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs);
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--stone { background: var(--stone); }
.eyebrow { font-size: .95rem; letter-spacing: .02em; color: var(--ink-soft); font-weight: 600; margin-bottom: .5em; }
.lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 40ch; }
.narrow { max-width: 680px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font: 700 1.1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--light { background: var(--night-text); color: var(--night); }
.btn--light:hover { background: #fff; color: var(--night); }

/* כותרת עליונה */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 8px; }
.nav a:hover { background: var(--stone); color: var(--ink); }
.nav .btn { min-height: 44px; padding: 8px 20px; font-size: 1rem; margin-inline-start: 8px; color: #fff; }
.nav .btn:hover { background: var(--green-dark); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px;
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav .btn { margin: 16px 0 0; border-bottom: 0; border-radius: 999px; }
}

/* פתיחה */
.hero { position: relative; background: var(--night); color: var(--night-text); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(22,19,15,0) 30%, rgba(22,19,15,.55) 55%, rgba(22,19,15,.9) 80%);
}
.hero .wrap { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; justify-content: flex-end; }
.hero__text { max-width: 470px; padding-block: 64px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: .35em; }
.hero__sub { font-size: 1.3rem; color: #e6dccd; margin-bottom: 1.6em; }
.hero__by { font-family: var(--serif); font-size: 1.2rem; color: #d9cdbb; margin-bottom: 1.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn--ghost { color: var(--night-text); }

@media (max-width: 760px) {
  .hero__media { position: relative; height: 56vw; min-height: 240px; }
  .hero__media img { object-position: 78% center; }
  .hero__media::after { background: linear-gradient(to top, var(--night) 0%, rgba(22,19,15,0) 45%); }
  .hero .wrap { min-height: 0; display: block; }
  .hero__text { max-width: none; padding-block: 8px 48px; }
}

/* על הספר */
.book { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.book__cover { justify-self: center; }
.book__cover img { width: 100%; max-width: 340px; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(31,27,23,.45), 0 8px 18px rgba(31,27,23,.15); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 1.5em 0 0; list-style: none; color: var(--ink-soft); font-size: 1rem; }
.facts li::before { content: "·"; margin-inline-end: 8px; color: var(--green); font-weight: 700; }
@media (max-width: 760px) {
  .book { grid-template-columns: 1fr; }
  .book__cover { order: -1; }
  .book__cover img { max-width: 240px; }
}

/* הסיפורים */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding: 0; margin: 2em 0 0; list-style: none; counter-reset: story; }
.story {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; counter-increment: story;
}
.story::before {
  content: counter(story); display: block; font-family: var(--serif); font-size: 1rem; color: var(--green);
  font-weight: 700; margin-bottom: 6px;
}
.story h3 { margin-bottom: .35em; }
.story p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; }

/* ביקורות */
.quote-big {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.4;
  max-width: 26ch; margin: 0 0 1.4em; position: relative;
}
.quote-big footer { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); margin-top: .6em; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.review { background: var(--stone); border-radius: var(--radius); padding: 26px 26px 22px; margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
.review blockquote { margin: 0 0 1em; font-size: 1.08rem; line-height: 1.7; }
.review figcaption { font-weight: 700; font-size: 1rem; color: var(--ink-soft); }
.more-reviews { margin-top: 28px; }
.review--full blockquote p { margin: 0 0 .6em; }
.review--full blockquote p:last-child { margin-bottom: 0; }
.review--full figcaption { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
#reviews-more { display: block; columns: 2 340px; column-gap: 20px; }
#reviews-more > li { break-inside: avoid; margin-bottom: 20px; }
.review--full time { font-weight: 400; font-size: .92rem; }
.more-reviews summary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; border-radius: 999px;
  border: 2px solid var(--green); color: var(--green); font-weight: 700; cursor: pointer; list-style: none;
}
.more-reviews summary::-webkit-details-marker { display: none; }
.more-reviews[open] summary { margin-bottom: 24px; }
.review--new { background: var(--paper); border: 1px solid var(--line); }
.review__story { display: block; font-weight: 500; font-size: .92rem; margin-top: 2px; }

/* כתיבת ביקורת */
.write-review { margin-top: 56px; max-width: 640px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--stone); }
.write-review h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: .3em; }
.write-review__note { color: var(--ink-soft); margin: 0 0 1.4em; font-size: 1rem; }
.review-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(44,70,54,.25); }
.field [aria-invalid="true"] { border-color: #a3341c; }
.field__hint { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.field__err { margin: 0; font-size: .98rem; font-weight: 700; color: #a3341c; }
.review-form .btn { justify-self: start; }
.review-form__status { margin: 0; font-weight: 700; min-height: 1.5em; }
.review-form__status.is-ok { color: var(--green); }
.review-form__status.is-err { color: #a3341c; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.a11y-contrast .field input, html.a11y-contrast .field select, html.a11y-contrast .field textarea { border-color: currentColor; }

/* על מאיר */
.author { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.author__motto { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.45; color: var(--green); margin: 0; }
.author__motto footer { font-family: var(--sans); color: var(--ink-soft); font-size: 1rem; margin-top: .6em; }
@media (max-width: 760px) { .author { grid-template-columns: 1fr; } }

/* קנייה */
.buy { background: var(--night); color: var(--night-text); }
.buy a { color: inherit; }
.buy__grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.buy__grid img { border-radius: 6px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.7); }
.buy p { color: #ddd2c3; }
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 0; margin: 1.5em 0 0; list-style: none; }
.stores a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 14px 20px; border-radius: 12px;
  background: rgba(244,236,224,.08); border: 1px solid rgba(244,236,224,.28);
  text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.stores a:hover { background: var(--night-text); color: var(--night); }
.stores a span { font-weight: 400; font-size: .95rem; opacity: .85; }
@media (max-width: 760px) {
  .buy__grid { grid-template-columns: 1fr; }
  .buy__grid img { max-width: 180px; }
}

/* תחתית */
.site-footer { background: var(--night); color: #cfc3b2; border-top: 1px solid rgba(244,236,224,.15); padding-block: 32px; font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer a { color: #f4ece0; }

/* תפריט נגישות */
.a11y-toggle {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  display: inline-flex; align-items: center; justify-content: center;
}
.a11y-panel {
  position: fixed; inset-inline-start: 16px; bottom: 84px; z-index: 60;
  width: min(300px, calc(100vw - 32px)); background: #fff; color: #111;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.25rem; margin-bottom: .6em; }
.a11y-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button {
  min-height: 48px; padding: 8px 10px; border-radius: 10px; border: 1px solid #bbb; background: #f6f6f6;
  font: 600 1rem var(--sans); color: #111; cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.a11y-panel .full { grid-column: 1 / -1; }
.a11y-panel p { font-size: .95rem; margin: 12px 0 0; }

/* מצבי נגישות */
html.a11y-contrast { --paper: #fff; --stone: #fff; --ink: #000; --ink-soft: #000; --line: #000; --green: #003d1f; --night: #000; --night-text: #fff; }
html.a11y-contrast .hero__media { display: none; }
html.a11y-contrast .hero__sub, html.a11y-contrast .hero__by, html.a11y-contrast .buy p { color: #fff; }
html.a11y-contrast .review, html.a11y-contrast .story { border: 2px solid #000; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #fff6a8; color: #000 !important; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font .quote-big, html.a11y-font .author__motto { font-family: Arial, sans-serif; letter-spacing: .01em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* דף טקסט (הצהרת נגישות) */
.page { padding-block: 56px 80px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page ul { padding-inline-start: 1.2em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.author__line { font-family: var(--serif); font-size: 1.25rem; color: var(--green); margin-top: 1.2em; }

/* סימני ציטוט דקורטיביים - בלי מרכאות בתוך הטקסט (מונע בלבול כיווניות) */
.review blockquote::before, .quote-big::before, .author__motto::before {
  content: "”"; display: block; font-family: var(--serif); font-size: 3.2rem; line-height: .6;
  color: var(--green); margin-bottom: 10px;
}
.quote-big::before, .author__motto::before { font-size: 4.5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
