/* Shiri Bachar – site styles. RTL.
   White, warm ink, and the logo's red used sparingly – like the book's cover. */

@font-face {
	font-family: "Google Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/google-sans-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: "Google Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/google-sans-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: "Rubik";
	font-style: normal;
	font-weight: 300 500;
	font-display: swap;
	src: url("../fonts/rubik-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: "Rubik";
	font-style: normal;
	font-weight: 300 500;
	font-display: swap;
	src: url("../fonts/rubik-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: "Playpen";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/playpen-hebrew.woff2") format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
	--white: #fff;
	--tint: #faf6f3;     /* warm paper, alternate sections */
	--blush: #fdeeec;    /* behind the book and the contact */
	--ink: #24201f;
	--ink-soft: #6b6461;
	--line: #ece6e2;
	--red: #ed1b24;      /* the logo's red: hearts and small marks */
	--red-ink: #d3121b;  /* buttons and red text, readable on white */
	--red-deep: #b30f16;

	--font-text: "Google Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-head: "Rubik", "Google Sans", system-ui, sans-serif;
	--font-hand: "Playpen", "Google Sans", cursive;

	--radius: 24px;
	--pill: 999px;
	--ease-out: cubic-bezier(.23, 1, .32, 1);
	--header-h: 76px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 300;
	line-height: 1.2;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h3 { font-weight: 400; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote, figure { margin: 0; }
strong { font-weight: 600; }
.icon { flex-shrink: 0; }

.container {
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: 24px;
}

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

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

.eyebrow {
	font-size: .95rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--red-ink);
	margin-bottom: 14px;
}

/* ---------- Buttons and links ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--pill);
	background: var(--red-ink);
	color: #fff;
	font: inherit;
	font-weight: 500;
	font-size: 1.02rem;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	user-select: none;
	transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform .25s var(--ease-out); }
.btn-small { min-height: 42px; padding: 8px 20px; font-size: .98rem; }
.btn-large { min-height: 56px; padding: 14px 32px; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-whatsapp { min-height: 56px; padding: 14px 30px; font-size: 1.1rem; }

.link-quiet {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink-soft);
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 6px;
	transition: color .2s ease, text-decoration-color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
	.btn:hover { background: var(--red-deep); }
	.btn:hover .icon { transform: translateX(-4px); }
	.btn-ghost:hover { background: var(--ink); color: #fff; }
	.link-quiet:hover { color: var(--ink); text-decoration-color: var(--red); }
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

/* Logged-in admins see WordPress's bar above the header. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

.header-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	height: calc(var(--header-h) - 1px);
}

.logo { display: block; flex-shrink: 0; }
.logo img { height: 56px; width: auto; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: var(--pill);
	color: var(--ink-soft);
	text-decoration: none;
	transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
	.main-nav a:hover { color: var(--red-ink); }
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-inline-end: -8px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.menu-toggle .menu-open,
.menu-toggle .menu-close { display: flex; }
.menu-toggle .menu-close,
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: flex; }

@media (max-width: 900px) {
	:root { --header-h: 68px; }
	.logo img { height: 50px; }
	.header-buy { margin-inline-start: auto; }
	.menu-toggle { display: inline-flex; }

	.main-nav {
		position: absolute;
		top: 100%;
		inset-inline: 12px;
		margin: 0;
		padding: 8px;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: 0 24px 48px -20px rgba(36, 32, 31, .25);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transform-origin: top center;
		transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s linear .22s;
	}
	.main-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s;
	}
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { padding: 14px 16px; font-size: 1.12rem; color: var(--ink); border-radius: 14px; }
	.main-nav a:active { background: var(--tint); }
}

/* ---------- Sections ---------- */

.section { padding-block: 96px; }

.section-head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Hero ---------- */

.hero { padding-block: 40px 88px; }

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.hero h1 {
	font-size: clamp(2.7rem, 6.4vw, 4.6rem);
	line-height: 1.08;
	letter-spacing: -.01em;
	margin-bottom: 24px;
}
.h1-line { display: block; }
.h1-accent { color: var(--red-ink); }
.h1-accent .icon {
	display: inline-block;
	width: .52em;
	height: .52em;
	margin-inline-start: .12em;
	vertical-align: .02em;
	color: var(--red);
}

.hero-lede {
	max-width: 30em;
	font-size: 1.18rem;
	color: var(--ink-soft);
	margin-bottom: 32px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.book-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin-top: 28px;
	font-size: .95rem;
	color: var(--ink-soft);
}
.book-facts span:not(:last-child)::after {
	content: "·";
	margin-inline: 10px;
	color: var(--red);
}
.book-facts span:first-child { color: var(--ink); font-weight: 600; }

.hero-book {
	position: relative;
	display: grid;
	place-items: center;
	padding: 40px 20px 48px;
}
.hero-book::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: min(100%, 470px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--blush);
}

/* The book: the cover, a spine shadow on the right (Hebrew books bind on
   the right), a block of pages peeking out on the left, and a soft shadow. */
.book-mock {
	position: relative;
	display: block;
	width: min(62%, 280px);
	transform: rotate(-4deg);
	transition: transform .5s var(--ease-out);
}
.book-mock img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 724 / 1000;
	object-fit: cover;
	border-radius: 10px 3px 3px 10px;
	box-shadow:
		0 1px 2px rgba(36, 32, 31, .12),
		0 18px 30px -12px rgba(36, 32, 31, .35),
		0 40px 70px -30px rgba(36, 32, 31, .35);
}
.book-mock::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	right: 0;
	width: 9%;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(to left, rgba(0, 0, 0, .16), rgba(255, 255, 255, .5) 28%, rgba(0, 0, 0, .07) 55%, transparent);
	pointer-events: none;
}
.book-pages {
	position: absolute;
	z-index: 0;
	top: 2.5%;
	bottom: 2.5%;
	left: -9px;
	width: 30px;
	border-radius: 6px 0 0 6px;
	background: repeating-linear-gradient(to right, #ebe5df 0 1px, #fffdfb 1px 3px);
	box-shadow: -6px 10px 20px -10px rgba(36, 32, 31, .3);
}
@media (hover: hover) and (pointer: fine) {
	.book-mock:hover { transform: rotate(-1.5deg) translateY(-6px); }
}

.hand-note {
	position: absolute;
	bottom: 18px;
	left: 4%;
	margin: 0;
	font-family: var(--font-hand);
	font-size: 1.35rem;
	color: var(--red-ink);
	transform: rotate(-7deg);
}

/* ---------- Inside the book ---------- */

.inside { background: var(--tint); }

.points {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.points li {
	padding: 28px 24px;
	background: #fff;
	border-radius: var(--radius);
}
.point-num {
	display: block;
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 1.1rem;
	color: var(--red-ink);
	margin-bottom: 18px;
}
.points h3 { font-size: 1.3rem; margin-bottom: 8px; }
.points p { color: var(--ink-soft); }

.nightstand {
	max-width: 560px;
	margin: 48px auto 0;
	text-align: center;
	font-family: var(--font-hand);
	font-size: 1.25rem;
	line-height: 1.6;
}

/* ---------- Back cover ---------- */

.back-cover { padding-block: 104px; }

.paper {
	position: relative;
	max-width: 640px;
	margin-inline: auto;
	padding: 56px 40px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 30px 60px -36px rgba(36, 32, 31, .3);
}
.poem p {
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 1.28rem;
	line-height: 2;
	margin-bottom: 1.1em;
}
.poem .poem-end {
	font-weight: 400;
	color: var(--red-ink);
	margin-bottom: 32px;
}

/* ---------- About ---------- */

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
	gap: 72px;
	align-items: center;
}
.about-photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 20%;
	border-radius: var(--radius);
}
.about-text h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.about-text > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }

.creds {
	display: grid;
	gap: 10px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.creds li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.creds .icon { color: var(--red); margin-top: 3px; }

/* ---------- Workshops and lectures ---------- */

.about,
.lectures { background: var(--tint); }

.split {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 72px;
	align-items: start;
}
.split-head h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.split-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.split-head .btn { margin-top: 12px; }

.head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 24px;
}
.split-head .head-actions .btn { margin-top: 0; }

.split-head p.badge-gefen {
	margin: 0;
	display: inline-block;
	padding: 6px 14px;
	border-radius: var(--pill);
	background: var(--tint);
	color: var(--ink);
	font-size: .95rem;
	font-weight: 500;
}

.rows li {
	display: flex;
	gap: 20px;
	align-items: baseline;
	padding-block: 22px;
	border-bottom: 1px solid var(--line);
}
.rows li:first-child { padding-top: 0; }
.rows li:last-child { padding-bottom: 0; border-bottom: 0; }
.row-num {
	flex-shrink: 0;
	width: 64px;
	font-size: .9rem;
	color: var(--red-ink);
}
.row-dot { flex-shrink: 0; color: var(--red); transform: translateY(2px); }
.row-body { display: grid; gap: 2px; }
.row-body strong { font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; line-height: 1.4; }
.row-body span { color: var(--ink-soft); }

/* ---------- Voices ---------- */

.voices-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.voices-list li {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.voices-list blockquote p {
	font-family: var(--font-hand);
	font-size: 1.3rem;
	line-height: 1.6;
}

/* ---------- Contact and footer ---------- */

.contact {
	padding-block: 96px;
	background: var(--blush);
}
.contact-inner { max-width: 640px; text-align: center; }
.contact-photo {
	width: 120px;
	height: 120px;
	margin: 0 auto 24px;
	object-fit: cover;
	object-position: 45% 20%;
	border-radius: 50%;
	border: 4px solid #fff;
}
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.contact-inner > p { color: var(--ink-soft); font-size: 1.12rem; margin-bottom: 28px; }

.contact-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 28px;
	margin-top: 20px;
}
.contact-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--ink);
	text-decoration: none;
}
.contact-list .icon { color: var(--red-ink); }
@media (hover: hover) and (pointer: fine) {
	.contact-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
}

.footer-bottom {
	padding-block: 22px calc(22px + env(safe-area-inset-bottom));
	font-size: .9rem;
	color: var(--ink-soft);
}
.footer-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}
.footer-row p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-links a { display: inline-block; padding-block: 6px; color: var(--ink-soft); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
	.footer-links a:hover { color: var(--ink); }
}

/* ---------- Other pages ---------- */

.page-plain h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 32px; }
.page-content { color: var(--ink-soft); font-size: 1.08rem; }
.page-content h2 { font-size: 1.5rem; color: var(--ink); margin: 40px 0 12px; }
.page-content ul { list-style: disc; padding-inline-start: 1.3em; margin: 0 0 1em; }
.page-content li { margin-bottom: 6px; }
.page-content li::marker { color: var(--red); }
.page-content strong { color: var(--ink); }
.page-content a { color: var(--red-ink); text-underline-offset: 3px; }
.page-plain .btn { margin-top: 12px; }
.narrow { max-width: 760px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
	}
	.js .reveal.is-visible { opacity: 1; transform: none; }

	.js .hero-text > *,
	.js .hero-book { animation: rise .7s var(--ease-out) both; }
	.js .hero-text > :nth-child(2) { animation-delay: .05s; }
	.js .hero-text > :nth-child(3) { animation-delay: .1s; }
	.js .hero-text > :nth-child(4) { animation-delay: .15s; }
	.js .hero-text > :nth-child(5) { animation-delay: .2s; }
	.js .hero-book { animation-delay: .1s; }
}
@keyframes rise {
	from { opacity: 0; transform: translateY(12px); }
}

/* ---------- Tablet ---------- */

@media (max-width: 960px) {
	.section { padding-block: 72px; }
	.points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.voices-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-grid, .split { grid-template-columns: 1fr; gap: 40px; }
	.about-photo { max-width: 420px; }
}

/* ---------- Phone ---------- */

@media (max-width: 720px) {
	body { font-size: 1rem; }
	.container { padding-inline: 20px; }
	.section { padding-block: 64px; }
	.section-head { margin-bottom: 36px; }

	.hero { padding-block: 8px 56px; }
	.hero-grid { grid-template-columns: 1fr; gap: 8px; }
	.hero-book { order: -1; padding: 24px 0 44px; }
	.hero-book::before { width: 300px; }
	.book-mock { width: 180px; }
	.hand-note { bottom: 10px; left: 6%; font-size: 1.15rem; }
	.hero-text { text-align: center; }
	.hero-lede { margin-inline: auto; font-size: 1.08rem; }
	.hero-actions { flex-direction: column; gap: 4px; }
	.hero-actions .btn { width: 100%; }
	.book-facts { justify-content: center; font-size: .9rem; }
	.book-facts span:nth-child(3)::after { content: none; }
	.book-facts span:last-child { flex-basis: 100%; }

	.points { grid-template-columns: 1fr; gap: 12px; }
	.points li { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 22px 20px; }
	.point-num { grid-row: span 2; margin: 2px 0 0; }
	.points h3 { font-size: 1.2rem; margin-bottom: 4px; }
	.nightstand { margin-top: 36px; font-size: 1.15rem; }

	.back-cover { padding-block: 64px; }
	.paper { padding: 40px 18px; }
	.poem p { font-size: 1.08rem; line-height: 1.95; }
	.paper .btn { width: 100%; }

	.about-photo { max-width: none; }
	.about-photo img { aspect-ratio: 1; }
	.split-head .btn { width: 100%; }
	.head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 24px;
}
.split-head .head-actions .btn { margin-top: 0; }

.split-head p.badge-gefen {
	margin: 0; padding: 4px 12px; font-size: .82rem; }
	.rows li { gap: 14px; padding-block: 18px; }
	.row-num { width: 56px; }

	/* Testimonials slide sideways on a phone. */
	.voices-list {
		display: flex;
		gap: 12px;
		margin-inline: -20px;
		padding-inline: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 20px;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}
	.voices-list::-webkit-scrollbar { display: none; }
	.voices-list li { flex: 0 0 82%; scroll-snap-align: start; padding: 24px; }
	.voices-list blockquote p { font-size: 1.18rem; }

	.contact { padding-block: 64px; }
	.contact .btn { width: 100%; }
	.contact-list { flex-direction: column; align-items: center; gap: 0; }
	.footer-row { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 380px) {
	.header-buy { padding-inline: 14px; font-size: .92rem; }
	.logo img { height: 46px; }
}
