/* ===== tokens.css ===== */
/* All colors, fonts, sizes and gaps live here. Change a value here and the whole site follows.
   Palette A, from Meirav's mandala logo (docs/DESIGN.md §2), in direction A ("a small twist", Tamar 2026-10-14;
   Meirav approved it 2026-10-19): the paper is her mandala's blue-grey, the ink a cool near-black.
   Type scale, spacing scale and layout tokens: Tamar's design system, taken as they are (approved 2026-10-12).
   History: palettes B and "Forest" were tried on 2026-10-06/07; Meirav went back to A at the meeting (2026-10-08). */

:root {
  /* Paper and ink */
  --paper: #E1E9F0;        /* page background: the mandala's blue-grey, lightened (direction A) */
  --paper-deep: #CCD9E5;   /* bands */
  --ink: #1F2A33;          /* body text, never #000: 11.9:1 on paper */
  --ink-soft: #4A5763;     /* secondary text: 6.0:1 */
  --heading: #1F2A33;      /* headings: same as ink */

  /* From the mandala */
  --sage-deep: #46623D;    /* links (5.6:1 on paper) */
  --sage-wash: #E3EDD5;    /* very light sage fill */
  --mist: #C0D0E0;         /* logo blue-grey: thin dividers, fills */
  --mist-ink: #4E6276;     /* blue-grey when it must be seen (draft placeholders) */
  --pollen: #E0B000;       /* logo gold: tiny marks only, never text */
  --pollen-ink: #7A5C00;   /* gold when it must be seen or read (5.1:1; only 4.35 on --paper-deep, so never text on a band) */
  --remedy: #440506;       /* the Hahnemann quote, focus ring, link hover */
  --rule: #B8C7D4;         /* thin separator lines (decorative) */

  /* Meirav's green (2026-10-19): the line under her name, the two buttons, the footer.
     It replaces #B8D898 and the dark green (she found the dark green "a bit depressing"). */
  --green: #49796B;
  --green-deep: #3B6357;   /* button pressed and mouse hover (white on it 6.8:1); the line under her name while under 24px (5.51:1 on paper) */
  --on-primary: #FFFFFF;   /* text on the green: 4.96:1 */
  --footer-bg: var(--green);       /* the footer, and the body behind Safari's bottom bar (base.css) */

  /* Draft markers: temporary, removed before launch */
  --marker-pending: #FFF3C4;
  --marker-pending-text: #FFF9E3;
  --marker-placeholder: #E6EEF7;

  /* Fonts (self-hosted, see base.css) */
  --font-display: "Bellefair", "Frank Ruhl Libre", serif;
  --font-text: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-ui: "IBM Plex Sans Hebrew", system-ui, sans-serif;

  /* Spacing scale. Every gap on the site is one of these nine values.
     Fixed px on purpose: when a visitor doubles the text size, the gaps
     must not eat the width of a small phone. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Type scale. Seven steps, nothing in between. rem, so text zoom works.
     These plain values are the phone sizes, for every browser; the fluid ones are in @supports below. */
  --fs-small: 0.9375rem;      /* 15  sources, captions */
  --fs-ui: 1.0625rem;         /* 17  buttons, menu, footer, names */
  --fs-body: 1.125rem;        /* 18  everything people read */
  --fs-lead: 1.3125rem;       /* 21  opening paragraph, headings inside text */
  --fs-large: 1.625rem;       /* 26  the Hahnemann quote, menu links on the phone */
  --fs-title: 2rem;           /* 32  page titles, section titles */
  --fs-display: 2.5rem;       /* 40  her name on the home page, only there */

  /* Three line heights, by role */
  --lh-tight: 1.1;      /* Bellefair titles */
  --lh-snug: 1.4;       /* headings inside text, lead, UI text that wraps */
  --lh-body: 1.7;       /* running Hebrew text */

  /* Layout */
  --gutter: var(--space-5);        /* side margin of the page: 24 on phones */
  --section: var(--space-8);       /* distance between sections: 64 on phones */
  --measure: 33rem;                /* the one reading column: about 65 Hebrew characters per line */
  --max-width: 1120px;
  --header-height: 56px;
  --button-height: 52px;
  --target: 44px;                  /* smallest thing a finger has to hit */

  /* Shape */
  --radius: 6px;            /* small controls (menu button, labels) */
  --radius-pill: 30px;      /* WhatsApp and call buttons: large rounded, pill-like */
  --radius-photo: 4px;
}
/* Fluid sizes, mobile (375px) -> desktop (1280px). In @supports because a custom property accepts any text:
   two plain declarations would let the clamp() line win also in a browser that cannot use it. */
@supports (font-size: clamp(1rem, 1vw, 2rem)) {
  :root {
    --fs-body: clamp(1.125rem, 1.099rem + 0.11vw, 1.1875rem);      /* 18 -> 19 */
    --fs-lead: clamp(1.3125rem, 1.235rem + 0.33vw, 1.5rem);        /* 21 -> 24 */
    --fs-large: clamp(1.625rem, 1.47rem + 0.66vw, 2rem);           /* 26 -> 32 */
    --fs-title: clamp(2rem, 1.69rem + 1.33vw, 2.75rem);            /* 32 -> 44 */
    --fs-display: clamp(2.5rem, 1.88rem + 2.65vw, 4rem);           /* 40 -> 64 */
  }
}
@media (min-width: 768px) {
  :root {
    --gutter: var(--space-7);      /* 48 */
    --section: var(--space-9);     /* 96 */
  }
}

/* ===== base.css ===== */
/* Fonts: Google's own Hebrew + Latin splits, self-hosted. Licenses in /fonts/licenses/. */
@font-face { font-family: "Bellefair"; font-weight: 400; font-display: swap;
  src: url(/fonts/bellefair-400-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Bellefair"; font-weight: 400; font-display: swap;
  src: url(/fonts/bellefair-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 300 700; font-display: swap;
  src: url(/fonts/frank-ruhl-libre-300-700-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 300 700; font-display: swap;
  src: url(/fonts/frank-ruhl-libre-300-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-hebrew-400-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-hebrew-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-sans-hebrew-500-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-sans-hebrew-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;   /* our own :active feedback replaces iOS's grey flash */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  background: var(--footer-bg);   /* see main below */
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden; overflow-x: clip;   /* for the full-width banner and bands; the first value only reaches browsers without clip */
  /* The footer sits at the bottom of the screen on a short page (book, 404, contact).
     100svh is the screen with Safari's bars showing; an older browser takes the 100vh line. */
  display: flex; flex-direction: column; min-block-size: 100vh; min-block-size: 100svh;
}
main { flex: 1 0 auto; }

/* Safari on iOS 26 and newer paints the zone behind its floating bottom bar from the BODY's background,
   not from html or the footer. So the body takes the footer's colour and main carries the paper, full width
   (the shadow widens it, the clip keeps it from spilling up or down). Without this, a strip of paper shows
   under the footer. Tamar's fix, seen in the iOS 27 Simulator 2026-10-14; approved by Benyamin 2026-10-15. */
main {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  -webkit-clip-path: inset(0 -100vmax);
  clip-path: inset(0 -100vmax);
  padding-block-end: var(--section);   /* the gap above the footer, now inside main so it stays paper */
}

/* Spacing never comes from the element itself, only from the layout around it
   (gap, or an "a + b" rule in the component). That is what keeps the rhythm even. */
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 {
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  text-wrap: balance;
}
p { text-wrap: pretty; }

img { display: block; max-inline-size: 100%; block-size: auto; }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* iOS keeps :hover after a tap ("sticky hover"). So: hover only for a real mouse,
   tap feedback only through :active (shows while the finger is down), focus only through :focus-visible. */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--remedy); }
}
a:active { color: var(--remedy); }

:focus-visible {
  outline: 2px solid var(--remedy);
  outline-offset: 3px;
  border-radius: 2px;
}

address { font-style: normal; }

/* Phone numbers and prices: never wrap, never flip */
[dir="ltr"] { white-space: nowrap; unicode-bidi: isolate; }
/* An email address may break when the line is too short for it (200% text, very narrow pages).
   Phone numbers and prices stay on one line. */
a[href^="mailto:"] [dir="ltr"] { white-space: normal; overflow-wrap: break-word; word-break: break-word; }

.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.wrap {
  inline-size: 100%;
  max-inline-size: var(--max-width);
  margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter);   /* every browser */
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* The one reading column, centered on the page on every screen size.
   Text inside stays right-aligned (start) unless the page is the home page. */
.column {
  max-inline-size: var(--measure);
  margin-inline: auto;
}
/* Keep a short phrase together, so lines break between ideas and not inside them.
   inline-block, not nowrap: with very large text the phrase may still wrap inside instead of overflowing. */
.keep { display: inline-block; }

/* ---------- Titles: three levels only ---------- */
.display {                                    /* her name, home page only */
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: 400;
  color: var(--heading);
  text-wrap: balance;
}
.title {                                      /* h1 of inner pages, section titles on the home page */
  font-family: var(--font-display);
  font-size: var(--fs-title);
  line-height: var(--lh-tight);
  font-weight: 400;
  color: var(--heading);
  text-wrap: balance;
}
.heading {                                    /* headings inside long text: the text face, medium weight */
  font-family: var(--font-text);
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  font-weight: 500;
  color: var(--heading);
  text-wrap: balance;
}
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  font-weight: 300;
  text-wrap: balance;               /* a lead is one or two lines: no short last line */
}
.small {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== components.css ===== */
/* Components. Tamar's design system (approved 2026-10-12), mobile first (375px), RTL, logical properties only.
   Each component exists once and looks the same on every page. Every gap is a --space token, every size a --fs token.
   Browser support (docs/tech-stack.md): anything important (buttons, menu, story arrows, contact links)
   works without the newest CSS; newer features appear only as extras. */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; inset-inline-start: var(--space-2); z-index: 30;
  top: -100px; inset-block-start: -100px;
  display: inline-flex; align-items: center; min-block-size: var(--target);
  padding-inline: var(--space-4);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-ui); font-size: var(--fs-ui);
}
/* :focus, not :focus-visible: a skip link only ever gets focus from the keyboard, and every browser knows :focus */
.skip-link:focus { top: var(--space-2); inset-block-start: var(--space-2); color: var(--paper); }


/* ---------- Header ---------- */
/* Slim and sticky. Hides on scroll down, returns on scroll up (js/site.js).
   min-block-size, not block-size: with large text the name may wrap and the header grows instead of clipping.
   Visible state uses transform: none, so the fixed menu sheet inside it still covers the viewport. */
.site-header {
  position: sticky; top: 0; inset-block-start: 0; z-index: 15;
  background: var(--paper);
  border-block-end: 1px solid transparent;
  transition: transform .25s ease-out, border-color .25s ease-out;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { border-block-end-color: var(--rule); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-block-size: var(--header-height);
}
/* Anchors and keyboard focus never land under the sticky header or the bottom bar */
html { scroll-padding-block: calc(var(--header-height) + var(--space-4)) var(--space-4); }
@media (max-width: 899.98px) { html { scroll-padding-block-end: calc(72px + env(safe-area-inset-bottom)); } }

.site-name {
  display: inline-flex; align-items: center;
  min-block-size: var(--target);
  font-family: var(--font-display); font-size: var(--fs-lead); line-height: var(--lh-tight);
  color: var(--heading); text-decoration: none;
}
.site-name img { inline-size: 32px; block-size: 32px; flex: none; margin-inline-end: var(--space-3); }
.site-name:active { color: var(--sage-deep); }

/* Menu button: the word, not a hamburger icon */
.menu-toggle {
  min-block-size: var(--target); min-inline-size: 72px; padding-inline: var(--space-4);
  margin-inline-start: var(--space-4);          /* never touches her name */
  background: none; color: var(--ink);
  border: 1px solid var(--ink-soft); border-radius: var(--radius);
  font: 500 var(--fs-ui)/1 var(--font-ui);
  cursor: pointer;
  flex: none;   /* with large text the button keeps its width; her name wraps instead */
}
.menu-toggle:active { background: var(--paper-deep); }

.site-nav ul { list-style: none; padding: 0; }
.site-nav li a {
  font-family: var(--font-ui); font-size: var(--fs-ui);
  color: var(--ink); text-decoration: none;
}
/* The page you are on: heavier text and a line. Never color alone. */
.site-nav li a[aria-current="page"] {
  font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--pollen-ink);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.site-nav li a:active { color: var(--sage-deep); }

/* Phone: the menu is a full paper sheet. Her name and the close button stay on top of it,
   so "home" is always one tap away. Without JS the menu simply shows as a list. */
.site-nav .menu-actions { display: none; }
.js .site-nav { display: none; }
.js .nav-open .site-nav {
  display: block; position: fixed; z-index: 20;
  top: 0; right: 0; bottom: 0; left: 0;          /* every browser */
  inset: 0;
  background: var(--paper);
  padding: calc(var(--header-height) + var(--space-4)) var(--gutter) 0;
}
.js .nav-open .site-name,
.js .nav-open .menu-toggle { position: relative; z-index: 21; }
/* The links AND the two buttons scroll together inside the sheet, under the header row.
   The scroll box scrolls, not the sheet: her name and "סגירה" sit above the sheet with no background
   of their own, so a sheet that scrolled would slide the links behind them. */
.js .nav-open .menu-scroll {
  max-block-size: 100%; overflow-y: auto; overscroll-behavior: contain;
  margin: -6px; padding: 6px 6px var(--space-7);   /* 6px: room for the focus ring inside the scroll box */
  scroll-padding-block: 6px;
}
.js .nav-open .site-nav li { border-block-end: 1px solid var(--rule); }
.js .nav-open .site-nav li a {
  display: flex; align-items: center; min-block-size: var(--space-8);          /* 64 */
  font-family: var(--font-display); font-size: var(--fs-large); line-height: var(--lh-tight);
}
/* The two contact buttons inside the open menu, right under the links
   (not pinned to the bottom of the screen: Safari's address bar sits there). */
.js .nav-open .site-nav .menu-actions { display: grid; margin-block-start: var(--space-6); }
/* Short phones (iPhone SE and similar): six links at 64px push the call button under Safari's bar.
   48px rows are still a full finger target and bring both buttons onto the first screen of the menu. */
@media (max-height: 700px) {
  .js .nav-open .site-nav li a { min-block-size: var(--space-7); }             /* 48 */
  .js .nav-open .site-nav .menu-actions { margin-block-start: var(--space-5); }
}
.no-scroll { overflow: hidden; }

/* Desktop (from 900px): her name and six links, one row (the small WhatsApp button was removed, Meirav 2026-10-19).
   The space between the items is a margin, not flex gap: links must never run together. */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; }
  .site-name { flex: none; white-space: nowrap; }             /* with large text the links wrap, her name never breaks */
  .site-nav { margin-inline-start: auto; }                    /* the links sit together at the end of the row */
  .site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav li + li { margin-inline-start: var(--space-4); }  /* 16 while the row is tight */
  .site-nav li a {
    display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
    min-block-size: var(--target); min-inline-size: var(--target);      /* short links ("אודות", "הספר") are 44px wide too */
  }
}
/* From 1024px the row has room to breathe */
@media (min-width: 1024px) {
  .site-nav li + li { margin-inline-start: var(--space-5); }  /* 24 */
}
@media (hover: hover) and (pointer: fine) {
  .menu-toggle:hover { background: var(--paper-deep); }
  .site-name:hover { color: var(--sage-deep); }
  .site-nav li a:hover { color: var(--sage-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
  .site-nav li a[aria-current="page"]:hover { text-decoration-thickness: 2px; }
}


/* ---------- Buttons ---------- */
/* Two buttons on the whole site, WhatsApp and call, and they are identical (Meirav, 2026-10-08):
   filled green (--green, Meirav 2026-10-19), white text, pill corners. Stacked on phones, side by side from 768px. */
.actions { display: grid; gap: var(--space-3); }
@media (min-width: 768px) {
  .actions { grid-template-columns: 1fr 1fr; max-inline-size: 620px; }
}

.btn {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--space-2);
  min-block-size: var(--button-height); padding: var(--space-2) var(--space-5);
  border: 0; border-radius: var(--radius-pill);
  background: var(--green); color: var(--on-primary);
  font: 500 var(--fs-ui)/1.2 var(--font-ui); text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease-out, transform .1s ease-out;
}
/* Pressed: darker and a hair smaller, so the tap is felt on a phone */
.btn:active { background: var(--green-deep); color: var(--on-primary); transform: scale(.98); }
/* Mouse only: iOS keeps :hover after a tap */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--green-deep); color: var(--on-primary); }
}
/* Keyboard focus: the global ring (2px --remedy, 3px away), shown here so nobody removes it */
.btn:focus-visible { outline: 2px solid var(--remedy); outline-offset: 3px; }
/* Disabled: not used on the site today (both buttons are links). Defined so it exists once. */
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--paper-deep); color: var(--ink-soft);
  cursor: not-allowed; transform: none; pointer-events: none;
}


/* ---------- Links ---------- */
/* In running text: base.css (green, thin underline, --remedy on hover and while pressed). */

/* A link that stands alone ("לכל הסיפורים", the footer links, the maps link): same look everywhere,
   and tall enough for a finger. */
.link {
  display: inline-block;                       /* not flex: the underline must run unbroken under "טלפון: 052…" */
  padding-block: calc((var(--target) - var(--lh-snug) * 1em) / 2);   /* 44px tall for a finger */
  font: 500 var(--fs-ui)/var(--lh-snug) var(--font-ui);
  color: var(--sage-deep);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link:active { color: var(--remedy); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--remedy); text-decoration-thickness: 2px; }
}
.link[aria-disabled="true"] { color: var(--ink-soft); text-decoration: none; pointer-events: none; }
/* "Onward" arrow: points left in Hebrew. Decorative, hidden from screen readers in the HTML. */
.link .arrow { display: inline-block; margin-inline-start: var(--space-1); text-decoration: none; }


/* ---------- Sections ---------- */
.section { padding-block-start: var(--section); }
.section-title { margin-block-end: var(--space-6); }
.section > .link { margin-block-start: var(--space-6); }

/* Full-width band on --paper-deep (the Hahnemann quote) */
.band {
  margin-block-start: var(--section);
  margin-inline: calc(50% - 50vw);
  padding-block: var(--section);
  background: var(--paper-deep);
}


/* ---------- Quote card (a patient's words) ---------- */
/* One component for the home page and the stories page.
   No box, no shadow: the words and the name, always in the same two styles. */
.quote { display: grid; grid-template-rows: 1fr auto; gap: var(--space-3); }
.quote blockquote p { font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
.quote blockquote p::before, .quote blockquote p::after { content: "״"; color: var(--pollen-ink); }
.quote-name {                                  /* Not green: green means "link" on this site */
  font: 500 var(--fs-ui)/var(--lh-snug) var(--font-ui);
  color: var(--ink-soft);
}

/* Inside right-aligned text (stories page): a thin green line on the reading side */
.quote--side { padding-inline-start: var(--space-4); border-inline-start: 2px solid var(--green); }

/* A set of quotes: stacked with a thin line between them on phones,
   three equal columns with the names on one line from 900px (Meirav: three in a row, same size). */
.quotes { display: grid; max-inline-size: var(--measure); margin-inline: auto; }   /* stacked: never wider than the reading column */
.quotes .quote + .quote {
  margin-block-start: var(--space-6); padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); max-inline-size: none; }
  .quotes .quote { padding-inline: var(--space-6); }
  .quotes .quote + .quote {
    margin-block-start: 0; padding-block-start: 0; border-block-start: 0;
    border-inline-start: 1px solid var(--rule);
  }
}


/* ---------- Epigraph (the Hahnemann quote, at most one per page) ---------- */
.epigraph { max-inline-size: var(--measure); margin-inline: auto; text-align: center; }
.epigraph-mark { inline-size: 40px; block-size: 40px; margin-inline: auto; margin-block-end: var(--space-5); }
.epigraph p {
  font-family: var(--font-display); font-size: var(--fs-large); line-height: var(--lh-snug);
  color: var(--remedy); text-wrap: balance;
}
.epigraph footer {
  margin-block-start: var(--space-5); text-wrap: balance;
  font-family: var(--font-ui); font-size: var(--fs-small); line-height: var(--lh-snug);
  color: var(--ink-soft);
}
.epigraph + .prose { margin-block-start: var(--space-6); }   /* 32: the quote is its own block, then the text starts */


/* ---------- Home page: centered (Meirav, 2026-10-08) ---------- */
.home { text-align: center; }

/* Banner (home). Framed, not attached to the header (Meirav 2026-10-19): phones 16px below the header and 16px
   from each edge; from 768px it takes the content width, 32px below the header. Same crops as before, except short phones (10:3, the short-phone block below).
   The licensed file (2026-10-20) keeps the crops approved on the sample exactly: anchored to the bottom (design freeze). */
.banner { margin-block-start: var(--space-4); margin-inline: calc(var(--space-4) - var(--gutter)); }
.banner picture { display: block; }
.banner img {
  inline-size: 100%; aspect-ratio: 2 / 1;
  object-fit: cover; object-position: 50% 100%;
  border-radius: var(--radius-photo);
}
@media (min-width: 768px) {
  .banner { margin-block-start: var(--space-6); margin-inline: 0; }
  .banner img { aspect-ratio: 3 / 1; }
}
/* Wide screens: 3.6:1, so the buttons are on the first screen of a laptop. */
@media (min-width: 1024px) {
  .banner img { aspect-ratio: 18 / 5; }
}

/* Hero (home) */
/* The moon (from direction B, Tamar 2026-10-14): her mandala, rising on the photo's lower edge, centred.
   A flat ring of paper cut into the photo, no glow. Decorative (alt="", aria-hidden). It never moves.
   Same sizes as in B: 56px + 8px ring on phones, 48 + 6 on short phones (with the short-phone block below), 80 + 10 from 768px.
   The hero's top padding makes room for its lower half, so it never covers her name. */
.hero {
  position: relative;
  --moon-size: 56px;
  --moon-ring: 8px;
  padding-block-start: calc(var(--moon-size) / 2 + var(--moon-ring) + var(--space-3));
}
.hero-moon {
  position: absolute; left: 0; right: 0;     /* left + right + auto margins: centred in both directions */
  top: calc(var(--moon-size) / -2 - var(--moon-ring));
  margin: 0 auto;
  inline-size: var(--moon-size); block-size: var(--moon-size);
  box-sizing: content-box;
  border: var(--moon-ring) solid var(--paper);
  border-radius: 50%;
  background: var(--paper);
}
.hero-inner { max-inline-size: 56rem; margin-inline: auto; }
.hero-practice {                               /* what she does: the most important line after her name */
  margin-block-start: var(--space-1);
  font: 500 var(--fs-ui)/var(--lh-snug) var(--font-ui);
  color: var(--green-deep);                    /* 5.51:1: under 24px the line needs 4.5:1 (Benyamin, 2026-10-19); 24px from 1024px, below */
}
/* Three parts, one separator between each. The "|" sits inside the phrase before it, so a line may end with it
   but never start with it; lines break between phrases. On phones the middle phrase is wider than the line
   (371px in 327), so it may also break between "בריא" and "בגישת", as before. From 768px it fits: one block. */
/* RCHom after her name (home page only, Meirav 2026-10-19): Latin, smaller, at the end of the line (left in RTL) */
.display [lang="en"] { font-size: .45em; letter-spacing: .02em; }
.hero-facts {
  margin-block-start: var(--space-3);
  font-size: var(--fs-body); line-height: var(--lh-snug);
}
.hero-facts .fact { display: block; }          /* phone: one fact per line */
.hero .actions { margin-block-start: var(--space-5); margin-inline: auto; }
.hero-book { margin-block-start: var(--space-4); }     /* her book, under the two buttons: it never pushes them down */
.sep { color: var(--green); padding-inline: .35em; }   /* 4.05:1, a mark needs 3:1; --mist was 1.28:1 */
/* Short phones (iPhone SE and similar, Safari's floating bar from 565px): everything Meirav chose stays,
   it just sits closer. Call button ends at 548.9 (Tamar 2026-10-19, measured at 375×667 on the sample). */
@media (max-width: 767.98px) and (max-height: 700px) {
  .banner img { aspect-ratio: 10 / 3; }                       /* 3.33:1 */
  .hero {
    --moon-size: 48px; --moon-ring: 6px;
    padding-block-start: calc(var(--moon-size) / 2 + var(--moon-ring) + var(--space-2));   /* 8 under the moon */
  }
  .hero-facts { margin-block-start: var(--space-2); }         /* 8 */
  .hero .actions { margin-block-start: var(--space-4); }      /* 16 */
}

@media (min-width: 768px) {
  .hero {
    --moon-size: 80px; --moon-ring: 10px;
    padding-block-start: calc(var(--moon-size) / 2 + var(--moon-ring) + var(--space-5));
  }
  .hero-practice { margin-block-start: var(--space-2); font-size: var(--fs-lead); font-weight: 400; }
  .hero-practice .keep-wide { display: inline-block; }
  .hero-facts { margin-block-start: var(--space-4); }
  /* tablet: first fact on its own line, the other two side by side with a thin divider */
  .hero-facts .fact:not(:first-child) { display: inline; }
  .hero-facts .fact:nth-child(n+3) {
    margin-inline-start: var(--space-3); padding-inline-start: var(--space-3);
    border-inline-start: 1px solid var(--mist);
  }
  .hero .actions { margin-block-start: var(--space-6); }
}
@media (min-width: 1024px) {
  /* wide: all three facts on one line, like a letterhead */
  .hero-facts .fact { display: inline; }
  .hero-facts .fact + .fact {
    margin-inline-start: var(--space-3); padding-inline-start: var(--space-3);
    border-inline-start: 1px solid var(--mist);
  }
}
/* From 1024px the line is 24px, the top of --fs-lead: large text (regular weight), so Meirav's #49796B (4.05:1, 3:1 needed) */
@media (min-width: 1024px) {
  .hero-practice { font-size: 1.5rem; color: var(--green); }
}
/* Short laptops (1280×800 screens, window about 710 tall): the buttons stay on the first screen */
@media (min-width: 1024px) and (max-height: 720px) {
  .hero { padding-block-start: calc(var(--moon-size) / 2 + var(--moon-ring) + var(--space-4)); }   /* 16 under the moon */
  .hero .actions { margin-block-start: var(--space-5); }                                           /* 24 */
}


/* ---------- Inner pages: one reading column ---------- */
/* Title block at the top of the column */
.page-head { padding-block: var(--space-7) var(--space-6); }
.page-head .lead { margin-block-start: var(--space-4); }

/* Long text */
.prose > * + * { margin-block-start: var(--space-4); }
.prose p { text-wrap: pretty; }
/* A heading inside the text looks like .heading without needing the class */
.prose > h2 {
  margin-block-start: var(--space-7);
  font: 500 var(--fs-lead)/var(--lh-snug) var(--font-text);
  color: var(--heading); text-wrap: balance;
}
.prose > h2:first-child { margin-block-start: 0; }     /* a page that opens with a heading: the page head already gives the gap */
.prose > h2 + * { margin-block-start: var(--space-3); }
.prose ul, .prose ol { padding-inline-start: var(--space-5); }
.prose li + li { margin-block-start: var(--space-2); }
.prose dt { font: 500 var(--fs-ui)/var(--lh-snug) var(--font-ui); margin-block-start: var(--space-4); }
.prose dd { margin-block-start: var(--space-1); }
.prose strong { font-weight: 500; }
.prose .prices { list-style: none; padding: 0; }      /* two prices are not a bulleted list */
.prices [dir="ltr"] { font-weight: 500; }             /* the amount is what the eye looks for */

.portrait img { inline-size: 100%; border-radius: var(--radius-photo); }
.portrait + * { margin-block-start: var(--space-6); }


/* ---------- The book page (Tamar, round 3): a small book card at the top of the column ---------- */
/* The book page: its head is a small book card (title, subtitle, purchase link, cover) */
.book-head { display: grid; gap: var(--space-5); }
.book-head .lead { margin-block-start: var(--space-3); }
.book-buy { margin-block-start: var(--space-3); }
.book-cover { margin: 0; }
.book-cover img {
  inline-size: 100%; max-inline-size: 240px; block-size: auto;   /* phones: on the reading side, not a whole screen tall */
  border-radius: var(--radius-photo);                            /* soft corners, nothing behind it */
}
@media (min-width: 640px) {
  .book-head { grid-template-columns: 176px 1fr; align-items: end; gap: var(--space-6); }
  .book-cover { grid-column: 1; grid-row: 1; }                   /* RTL: column 1 is on the right */
  .book-head-text { grid-column: 2; }
}


/* ---------- A patient's story (stories page) ---------- */
.story { padding-block: var(--space-6); border-block-end: 1px solid var(--rule); }
.story > * + * { margin-block-start: var(--space-4); }
.story details > * + * { margin-block-start: var(--space-4); }
/* "להמשך הסיפור": our own arrow, never the browser's (decided 2026-10-12: never rely on browser-default UI).
   Drawn with two borders, so it needs no font and takes the label's color in every state. */
.story summary {
  list-style: none;
  padding-block: calc((var(--target) - var(--lh-snug) * 1em) / 2);   /* 44px tall, like .link */
  font: 500 var(--fs-ui)/var(--lh-snug) var(--font-ui);
  color: var(--sage-deep); cursor: pointer;
}
.story summary::-webkit-details-marker { display: none; }
.story summary::after {          /* closed: points the reading way (RTL, so left) */
  content: ""; display: inline-block;
  inline-size: .5em; block-size: .5em; margin-inline-start: .55em;
  border: 0 solid currentColor;
  border-block-end-width: 2px; border-inline-end-width: 2px;                           /* every browser */
  border-block-end-width: max(2px, .11em); border-inline-end-width: max(2px, .11em);   /* extra: the stroke grows with enlarged text */
  transform: translate(.18em, -.08em) rotate(45deg);   /* middle of the letters; .18em toward the label (this site is RTL only) so it turns in place */
  transition: transform .2s ease-out;   /* off under reduced motion (base.css) */
}
.story details[open] > summary::after { transform: translate(0, -.22em) rotate(-45deg); }   /* open: points down */
.story summary:active { color: var(--remedy); }
@media (hover: hover) and (pointer: fine) { .story summary:hover { color: var(--remedy); } }


/* ---------- Footer (one, centered, on every page; Meirav 2026-10-08) ---------- */
/* On Meirav's green (2026-10-19): every word and link white (4.96:1), nothing grey. */
.site-footer {
  padding-block: var(--space-7) var(--space-6);
  background: var(--footer-bg); color: var(--on-primary);
  font-family: var(--font-ui); font-size: var(--fs-ui); line-height: var(--lh-snug);
  text-align: center;
}
/* When the page ends with a band, the footer joins it: no gap. (An extra: without :has() a gap stays.) */
main:has(> .band:last-child), main:has(> * > .band:last-child) { padding-block-end: 0; }

.footer-name {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  font-family: var(--font-display); font-size: var(--fs-lead); line-height: var(--lh-tight);
  color: var(--on-primary);
}
.footer-name img { inline-size: 28px; block-size: 28px; flex: none; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  list-style: none; padding: 0; margin-block-start: var(--space-4);
}
.footer-links li { margin: 0 var(--space-4); }       /* a margin, not flex gap: the two links must never run together */
.footer-address {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 var(--space-4);
  margin-block-start: var(--space-2);
}
.site-footer .link { font-weight: 400; color: var(--on-primary); }
/* Pressed: the text stays white, a darker green lies behind it. Focus: a white ring (4.96:1 on the green). */
.site-footer .link:active { color: var(--on-primary); background: var(--green-deep); border-radius: var(--radius); }
@media (hover: hover) and (pointer: fine) { .site-footer .link:hover { color: var(--on-primary); } }
.site-footer :focus-visible { outline-color: var(--on-primary); }
.footer-small { margin-block-start: var(--space-2); }
/* No extra room for the bottom bar: the bar steps aside when the footer's contact links are on screen. */
.site-footer { padding-block-end: calc(var(--space-6) + env(safe-area-inset-bottom)); }


/* ---------- Bottom bar (phones) ---------- */
/* The same two buttons, always within reach of the thumb.
   Hidden while the page's own buttons (or the footer's contact links) are on screen: never two sets at once. */
.contact-bar {
  position: fixed; z-index: 10;
  right: 0; bottom: 0; left: 0;                 /* every browser */
  inset-inline: 0; inset-block-end: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: var(--paper); border-block-start: 1px solid var(--rule);
  transform: translateY(110%); visibility: hidden;          /* hidden = also out of the tab order */
  transition: transform .3s ease-out, visibility 0s linear .3s;
}
.contact-bar.is-visible { transform: none; visibility: visible; transition: transform .3s ease-out; }
.contact-bar .btn { min-block-size: var(--target); padding-inline: var(--space-3); }
/* Very narrow page (Safari Page Zoom 175% to 200% on a phone gives about 187 to 230px): less side padding,
   so neither button is cut. Approved 2026-10-12; keep this rule. */
@media (max-width: 239.98px) {
  .contact-bar { padding-inline: var(--space-2); }
  .contact-bar .btn { padding-inline: var(--space-1); }
}
/* Very narrow page (Safari Page Zoom 175% to 200% on a phone): a page under 240px can't spare 24px on each side,
   and her name and the menu button need the mandala's room. */
@media (max-width: 239.98px) {
  :root { --gutter: var(--space-3); }      /* 12 */
  .site-name img { display: none; }         /* decoration (alt=""); her name stays */
}
@media (min-width: 900px) { .contact-bar { display: none; } }


/* ---------- Draft markers (visible on purpose until Meirav approves; not part of the design) ---------- */
.pending { background: var(--marker-pending); border-inline-start: 4px solid var(--pollen); padding: var(--space-2) var(--space-3); font-family: var(--font-ui); font-size: var(--fs-small); line-height: var(--lh-snug); }
.pending-text { background: var(--marker-pending-text); }
.placeholder { background: var(--marker-placeholder); border: 2px dashed var(--mist-ink); padding: var(--space-3); font-family: var(--font-ui); font-size: var(--fs-small); line-height: var(--lh-snug); }
.draft { outline: 1.5px dashed var(--sage-deep); outline-offset: 2px; background: var(--sage-wash); }


/* ---------- Preview-only helpers (created by js/site.js; never on the live site) ---------- */
.preview-build { margin-block-start: var(--space-4); font: 400 var(--fs-small) var(--font-ui); color: inherit; white-space: normal; }
