/* גופן המותג. אם הקבצים לא קיימים הדפדפן פשוט נופל חזרה לגופן מערכת. */
@font-face {
  font-family: 'Almoni';
  src: url('/fonts/almoni-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Almoni';
  src: url('/fonts/almoni-light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

:root {
  --ink: #2a2622;
  --ink-soft: #6b625a;
  --paper: #faf6f0;
  --card: #ffffff;
  /* הירוק של הספר עצמו: הגוון שבו מודפסת הכותרת בעמוד השער, #4D5F3D.
     כהה מספיק לטקסט לבן על גביו (יחס ניגודיות 7:1). */
  --accent: #4d5f3d;
  --accent-dark: #3c4b2f;
  --line: #e8ded1;
  /* אותו ירוק, כדי שלא יהיו באתר שני ירוקים שונים */
  --ok: #4d5f3d;
  --err: #c62828;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(60, 40, 20, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Almoni', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3 { font-weight: 400; line-height: 1.2; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 72px; }
/* איור הכריכה הוא לרוחב, ולכן העמודה שלו רחבה מעמודת הטקסט —
   אחרת הוא יוצא קטן ומתבזבז. */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.cover {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: block;
  background: #fff;
}
.tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.hero .subtitle { color: var(--ink-soft); font-size: 1.15rem; margin-top: -.2em; }
.hero .tagline { font-size: 1.25rem; margin-top: 1.2em; max-width: 30ch; }
.byline { color: var(--ink-soft); font-size: .95rem; }

.price-row { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 6px; }
.price { font-size: 2.6rem; font-weight: 400; }
.price small { font-size: 1.1rem; color: var(--ink-soft); }
.includes { color: var(--ok); font-size: .95rem; margin-bottom: 26px; }
.includes::before { content: '✓ '; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 40px;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn-wide { width: 100%; padding: 18px; }

.wrap.narrow { max-width: 760px; }

/* ── שני הסיפורים ───────────────────────────────────────────────────────── */
.stories-section { background: #f6efe5; }
/* שורת טקסט אחת לכל סיפור, ולכן כרטיס אנכי: האיור למעלה והכיתוב מתחתיו.
   פריסה של איור־לצד־טקסט הייתה משאירה חצי כרטיס ריק. */
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.story {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.story img { width: 100%; display: block; }
.story-text { padding: 24px 28px 28px; }
.story h3 { font-size: 1.45rem; margin-bottom: .35em; }
.story-text p { color: var(--ink-soft); margin-bottom: 0; }
/* המסר של הסיפור, מופרד בקו דק כדי שייקרא כשורה נפרדת ולא כהמשך התקציר */
.story-text .moral {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--accent); font-size: .95rem;
}


/* ── על הסופרת ──────────────────────────────────────────────────────────── */
.author-section { background: var(--card); }
.author-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
/* עיגול קטן: המקור נחתך מגב הכריכה ולכן ברזולוציה נמוכה, ובגודל הזה זה לא ניכר */
.portrait {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  display: block; flex: none; box-shadow: 0 2px 10px rgba(60,40,20,.18);
}
.author-name { font-size: 1.1rem; color: var(--accent); margin: 0; }
/* קרדיט האיורים. מכוון להיות קטן ושקט — הוא מידע, לא חלק מהביו. */
.author-footnote { font-size: .78rem; color: #a89c8e; margin-top: 18px; }

/* ── פרטי הספר (בתחתית העמוד) ───────────────────────────────────────────── */
.details-section .specs { margin-top: 4px; }
.specs { background: var(--card); border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow); }
.specs dl { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: none; }
.specs dt { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.specs dd { margin: 0; }

/* ── Gallery ────────────────────────────────────────────────────────────── */
/* איורים לרוחב, ולכן שתי עמודות ולא שלוש — אחרת הם קטנים מדי ונשאר יתום בשורה */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.gallery img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); display: block; }

/* ── Quotes ─────────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
blockquote {
  margin: 0; background: var(--card); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow); font-size: 1.05rem;
}
blockquote cite { display: block; margin-top: 12px; color: var(--ink-soft); font-size: .9rem; font-style: normal; }

/* ── Order form ─────────────────────────────────────────────────────────── */
#order { background: #f3ece2; }
.order-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; max-width: 620px; margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .92rem; color: var(--ink-soft); margin-bottom: 5px; }
.field .hint { color: #a89c8e; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field textarea { resize: vertical; min-height: 70px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; font-size: 1.15rem;
}
.total strong { font-size: 1.6rem; font-weight: 400; }
.secure { text-align: center; color: var(--ink-soft); font-size: .85rem; margin-top: 16px; }
.error { background: #fdecea; color: var(--err); border-radius: 9px; padding: 12px 16px; margin-bottom: 22px; font-size: .95rem; }
.test-banner { background: #fff3cd; color: #8a6800; text-align: center; padding: 10px; font-size: .9rem; }

/* פירוט המחיר, בטופס ההזמנה בלבד. בראש העמוד מוצג רק 99 ₪ כולל משלוח. */
.breakdown { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; }
.breakdown div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-soft); font-size: .95rem; }
.breakdown small { color: #a89c8e; }
.breakdown + .total { border-top: none; margin-top: 6px; padding-top: 10px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

footer { padding: 44px 0 60px; text-align: center; color: var(--ink-soft); font-size: .9rem; }

/* ── Status pages ───────────────────────────────────────────────────────── */
.status { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.status .order-card { text-align: center; }
.status h1 { font-size: 1.9rem; }

@media (max-width: 780px) {
  body { font-size: 17px; }
  section { padding: 52px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .stories { grid-template-columns: 1fr; gap: 22px; }
  .portrait { width: 54px; height: 54px; }
  /* 340px מינימום גדול מרוחב העמודה בנייד, ולכן טור אחד במפורש */
  .gallery, .quotes { grid-template-columns: 1fr; }
  .story-text { padding: 20px 22px 24px; }
  .hero-grid { display: flex; flex-direction: column-reverse; }
  .cover { max-width: 440px; margin: 0 auto; }
  .row { grid-template-columns: 1fr; }
  .order-card { padding: 26px 20px; }
}
