/*
 * Yair Nitzani – main stylesheet.
 *
 * Proportions, spacing and motion follow the Paris Society reference:
 * small type, generous whitespace, 1px lines, slow image zooms.
 * Everything tunable lives in the tokens below.
 */

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Cooperative";
	src: url("../fonts/cooperative-regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Cooperative";
	src: url("../fonts/cooperative-bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
	--black: #000;
	--white: #fff;
	--sand: #e8e6df;
	--text: #676767;
	--text-on-dark: #c8c8c8;
	--line: #c8c8c8;
	--accent: #7a99ac;
	--ink: #254a5d;

	--font-body: "Google Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-display: "Cooperative", var(--font-body);

	--pad-x: 80px;          /* page side padding */
	--pad-section: 120px;   /* vertical rhythm between sections */
	--gap: 40px;            /* grid gutters */
	--header-pad: 40px 60px;
	--header-h: 108px;      /* rendered height of the header row (pad + logo) */

	--tint: .3;             /* image darkening */
	--tint-hover: .55;
	--ease: ease;
	--ease-drawer: cubic-bezier(.83, 0, .17, 1);
	--ease-burger: cubic-bezier(.63, .29, .17, 1.345);
}

@media (max-width: 1199px) {
	:root { --pad-x: 60px; --pad-section: 80px; --header-h: 104px; }
}

@media (max-width: 767px) {
	:root { --pad-x: 24px; --pad-section: 64px; --gap: 24px; --header-pad: 18px 24px; --header-h: 58px; }
}

/* ---------- Reset ---------- */

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

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 28px;
	letter-spacing: .01em;
	overflow-x: clip; /* no sideways scrolling, without breaking position: sticky */
	-webkit-font-smoothing: antialiased;
}

body.yn-menu-open, body.yn-lock { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--white); }

/* Phone numbers are marked dir="ltr"; keep block-level ones aligned with the Hebrew around them. */
[dir="ltr"] { unicode-bidi: isolate; text-align: right; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.yn-skip { position: absolute; inset-inline-start: -9999px; z-index: 300; }
.yn-skip:focus { inset-inline-start: 16px; top: 16px; padding: 8px 16px; background: var(--white); color: var(--black); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- Type ---------- */

.yn-title, .yn-h1, .yn-h2, .yn-h3 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--black);
	letter-spacing: 0;
}

/* Section headings ("על יאיר", "הופעות קרובות"…). */
.yn-title { font-size: 45px; line-height: 56px; }
.yn-h1 { font-size: 34px; line-height: 46px; }
.yn-h2 { font-size: 28px; line-height: 40px; }
.yn-h3 { font-size: 22px; line-height: 34px; }

@media (max-width: 1199px) {
	.yn-title { font-size: 36px; line-height: 46px; }
}

@media (max-width: 767px) {
	.yn-title { font-size: 28px; line-height: 38px; }
	.yn-h1 { font-size: 26px; line-height: 36px; }
	.yn-h2 { font-size: 22px; line-height: 32px; }
	.yn-h3 { font-size: 18px; line-height: 28px; }
}

.yn-title + p, .yn-h1 + p, .yn-h2 + p, .yn-h3 + p { margin-top: 20px; }

.yn-eyebrow { display: block; font-size: 14px; line-height: 24px; color: inherit; }
.yn-muted { color: var(--text); opacity: .8; }
.yn-center { text-align: center; }
.yn-plain { list-style: none; }

.yn-content > * + * { margin-top: 1.2em; }
/* Headings inside editor content: body font, a touch heavier. */
.yn-content h2, .yn-content h3 { font-family: var(--font-body); font-weight: 500; color: var(--black); letter-spacing: 0; margin-top: 2em; }
.yn-content h2 { font-size: 20px; line-height: 30px; }
.yn-content h3 { font-size: 18px; line-height: 28px; }
.yn-content h2 + *, .yn-content h3 + * { margin-top: .5em; }
.yn-content a:not(.yn-btn):not(.yn-text-btn) { color: var(--ink); border-bottom: 1px solid currentColor; transition: border-color .25s var(--ease); }
.yn-content a:not(.yn-btn):not(.yn-text-btn):hover { border-color: transparent; }
.yn-content img { margin-block: 2em; }
.yn-content ul, .yn-content ol { padding-inline-start: 1.2em; }
.yn-content li + li { margin-top: .4em; }

/* ---------- Layout ---------- */

.yn-container { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--pad-x); }
.yn-narrow { max-width: calc(760px + var(--pad-x) * 2); }

.yn-section { padding-block: var(--pad-section); }
.yn-section--flush-top { padding-top: 0; }
.yn-banner + .yn-section--flush-top { padding-top: var(--pad-section); }
.yn-section--intro { padding-bottom: calc(var(--pad-section) * .6); }
.yn-section--intro .yn-content { text-align: center; }

/* A short opening sentence under the banner reads as a subtitle. */
.yn-intro-lead { text-align: center; }
.yn-intro-lead::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 32px; background: var(--accent); }
.yn-intro-lead p { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 40px; color: var(--black); }

/* Entrance order on inner pages: banner title → the accent line draws in → the sentence. */
.yn-js .yn-intro-lead::before { transform: scaleX(0); transition: transform .8s var(--ease) .5s; }
.yn-js .yn-intro-lead.is-shown::before { transform: scaleX(1); }
.yn-js .yn-intro-lead[data-yn-reveal] > * { transition-delay: 1s; }

/* Even line lengths for display text – no single orphaned word. */
.yn-title, .yn-h1, .yn-h2, .yn-intro-lead p, .yn-hero__lead, .yn-book__lead { text-wrap: balance; }
@media (max-width: 767px) {
	.yn-intro-lead::before { margin-bottom: 24px; }
	.yn-intro-lead p { font-size: 22px; line-height: 32px; }
}

.yn-section__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: var(--gap);
	margin-bottom: 48px;
}
.yn-section__head .yn-text-btn { margin-top: 0; }
.yn-shop__heading { flex: 1 1 auto; min-width: 0; }
.yn-shop__heading .yn-title { text-wrap: wrap; } /* one long line where it fits */
.yn-shop__subtitle { margin-top: 16px; font-size: 18px; line-height: 28px; text-wrap: balance; }
/* Mobile: same as the footer's "בואו נדבר" line (body text). */
@media (max-width: 767px) { .yn-shop__subtitle { font-size: 15px; line-height: 28px; text-wrap: wrap; } }
.yn-section__head:has(.yn-shop__subtitle) { align-items: flex-end; }
/* Static strip (column pages), mobile: heading full width, "לכל המוצרים" below the products. */
.yn-shop__more { display: none; }
@media (max-width: 767px) {
	.yn-shop--static .yn-section__head > .yn-text-btn { display: none; }
	.yn-shop--static .yn-shop__more { display: inline-flex; margin-top: 40px; }
}
.yn-section__heading { margin-bottom: 48px; }
@media (max-width: 767px) { .yn-section__heading { margin-bottom: 40px; } }

.yn-dark { background: var(--black); color: var(--text-on-dark); }
.yn-dark .yn-title, .yn-dark .yn-h1, .yn-dark .yn-h2, .yn-dark .yn-h3 { color: var(--white); }
.yn-sand { background: var(--sand); }

/* Full-bleed image filling its (positioned) parent. */
.yn-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Image darkening + slow zoom on hover. */
.yn-tint { position: absolute; inset: 0; overflow: hidden; background: var(--black); }
.yn-tint::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: var(--black); opacity: var(--tint);
	transition: opacity .65s var(--ease);
}
.yn-zoom .yn-cover-img { transition: transform .65s var(--ease); }

@media (hover: hover) {
	.yn-zoom:hover .yn-cover-img { transform: scale(1.1); }
	.yn-zoom:hover .yn-tint::after { opacity: var(--tint-hover); }
}

/* ---------- Buttons ---------- */

/* Outlined button; the fill rises from the bottom on hover. */
.yn-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	padding: 7px 30px; overflow: hidden; cursor: pointer;
	border: 1px solid var(--accent); border-radius: 5px; background: transparent;
	color: var(--black); font-family: var(--font-body); font-size: 13px; font-weight: 500;
	line-height: 22px; letter-spacing: .04em;
	transition: color .25s var(--ease), border-color .25s var(--ease);
	transform: translateZ(0);
}
.yn-btn::before {
	content: ""; position: absolute; inset: 0; background: var(--accent);
	transform: translateY(100%); transition: transform .25s var(--ease);
}
.yn-btn > span { position: relative; }
.yn-btn--light { color: var(--white); border-color: var(--white); }
.yn-btn--light::before { background: var(--white); }

@media (hover: hover) {
	.yn-btn:hover, a:hover > .yn-btn { color: var(--white); }
	.yn-btn:hover::before, a:hover > .yn-btn::before { transform: translateY(0); }
	.yn-btn--light:hover, a:hover > .yn-btn--light { color: var(--black); }
}

* + .yn-btn { margin-top: 40px; }
.yn-btn + .yn-btn { margin-inline-start: 12px; }

/* Quiet text link with an arrow that slides on hover. */
.yn-text-btn {
	position: relative; display: inline-flex; align-items: center; margin-top: 35px;
	color: var(--black); font-size: 13px; font-weight: 500; line-height: 22px; letter-spacing: .04em;
	transition: color .25s var(--ease);
}
.yn-text-btn .yn-icon--arrow { width: 16px; height: 10px; margin-inline-start: 12px; transition: margin .25s var(--ease); }
.yn-text-btn--light { color: var(--white); }
.yn-text-btn + .yn-text-btn { margin-inline-start: 32px; }

/* Underlined variant: the line retracts on hover. */
.yn-text-btn--line { padding-bottom: 3px; }
.yn-text-btn--line::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 1px; height: 1px;
	background: currentColor; transform-origin: right center;
	transition: transform .3s cubic-bezier(.75, 0, .2, 1);
}

@media (hover: hover) {
	.yn-text-btn:hover { color: var(--accent); }
	.yn-text-btn:hover .yn-icon--arrow { margin-inline-start: 18px; }
	a:hover .yn-text-btn--line { color: var(--white); }
	a:hover .yn-text-btn--line::after, .yn-text-btn--line:hover::after { transform: scaleX(0); transform-origin: left center; }
}

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

.yn-header { position: absolute; inset-inline: 0; top: 0; z-index: 20; color: var(--white); }

.yn-header__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	padding: var(--header-pad); min-height: 22px;
}

.yn-header__side { display: flex; align-items: center; gap: 28px; }
.yn-header__side--menu { justify-content: flex-end; gap: 30px; }

.yn-header__link { font-size: 13px; font-weight: 500; line-height: 22px; letter-spacing: .04em; transition: color .25s var(--ease); }
.yn-header__cta { display: inline-flex; align-items: center; }
.yn-header__cta .yn-icon--arrow { width: 14px; height: 9px; margin-inline-start: 10px; transition: margin .25s var(--ease); }

.yn-logo {
	font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1;
	white-space: nowrap; transition: font-size .35s var(--ease);
}

.yn-header .yn-socials { gap: 16px; }

@media (hover: hover) {
	.yn-header__link:hover { color: var(--accent); }
	.yn-header__cta:hover .yn-icon--arrow { margin-inline-start: 16px; }
}

/* Hamburger: three 1px lines that step in on hover and cross when open. */
.yn-burger {
	display: flex; padding: 10px; margin: -10px; border: 0; background: none; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.yn-burger:hover, .yn-burger:focus { background: none; }
.yn-burger__lines { position: relative; display: block; width: 20px; height: 12px; }
.yn-burger__lines > span {
	position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
	transition: all .25s var(--ease-burger);
}
.yn-burger__lines > span:nth-child(1) { top: 0; }
.yn-burger__lines > span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.yn-burger__lines > span:nth-child(3) { bottom: 0; }

@media (hover: hover) {
	.yn-burger:hover { color: var(--accent); }
	.yn-burger:hover .yn-burger__lines > span:nth-child(2) { right: 6px; }
	.yn-burger:hover .yn-burger__lines > span:nth-child(3) { right: 12px; }
}

@media (max-width: 991px) {
	.yn-header__side--contact > :not(.yn-socials) { display: none; }
	.yn-header__cta { display: none; }
	.yn-logo { font-size: 24px; }
}

@media (max-width: 767px) {
	.yn-header__side--contact { gap: 0; }
	.yn-header .yn-socials { gap: 14px; }
	.yn-logo { font-size: 22px; }
}

/* Slim black bar once the hero is scrolled past (classes set in main.js). */
.yn-header.is-fixed {
	position: fixed; background: var(--black); transform: translateY(-100%);
}
.yn-header.is-fixed .yn-header__inner { padding-block: 16px; }
.yn-header.is-fixed .yn-logo { font-size: 21px; }
.yn-header.is-ready { transition: transform .35s var(--ease); }
.yn-header.is-shown { transform: translateY(0); }

/* ---------- Drawer menu ---------- */

.yn-overlay {
	position: fixed; inset: 0; z-index: 90; background: rgba(122, 153, 172, .8);
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}

.yn-drawer {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
	display: flex; flex-direction: column; justify-content: space-between;
	width: 100%; max-width: 440px; padding: 60px; overflow-y: auto;
	background: var(--black); color: var(--white);
	transform: translateX(-100%); visibility: hidden;
	transition: transform .75s var(--ease-drawer), visibility 0s linear .75s;
}

.yn-drawer__close {
	position: relative; width: 20px; height: 20px; padding: 0; margin: -10px 0 0 -10px; box-sizing: content-box;
	border: 10px solid transparent; background: none; cursor: pointer; align-self: flex-start;
}
.yn-drawer__close:hover, .yn-drawer__close:focus { background: none; }
.yn-drawer__close::before, .yn-drawer__close::after {
	content: ""; position: absolute; top: 50%; left: 0; width: 20px; height: 1px; background: var(--white);
	transition: background .25s var(--ease);
}
.yn-drawer__close::before { transform: rotate(45deg); }
.yn-drawer__close::after { transform: rotate(-45deg); }
.yn-drawer__close:hover::before, .yn-drawer__close:hover::after { background: var(--accent); }

.yn-drawer__nav { padding-block: 60px; }
/* Yair's face above the menu – links home. */
.yn-drawer__home { display: inline-block; margin-bottom: 16px; transition: opacity .25s var(--ease); }
.yn-drawer__home img { width: auto; height: 52px; }
.yn-drawer__home:hover { opacity: .7; }
.yn-drawer__list { list-style: none; }
.yn-drawer__list a {
	display: inline-block; padding: 7px 0;
	font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 36px;
	transition: opacity .25s var(--ease);
}
.yn-drawer__list .current-menu-item > a { color: var(--accent); }

/* Hovering one item fades the others. */
@media (hover: hover) and (min-width: 1200px) {
	.yn-drawer__list:hover a { opacity: .25; }
	.yn-drawer__list a:hover { opacity: 1; }
}

.yn-drawer__foot { display: flex; flex-direction: column; gap: 4px; color: var(--text-on-dark); font-size: 14px; }
.yn-drawer__foot a:hover { color: var(--white); }
.yn-drawer__foot .yn-socials { margin-top: 20px; }

/* Items rise in one after another as the drawer opens. */
.yn-drawer__home, .yn-drawer__list li, .yn-drawer__foot { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }

.yn-menu-open .yn-overlay { opacity: 1; visibility: visible; }
.yn-menu-open .yn-drawer { transform: translateX(0); visibility: visible; transition: transform .75s var(--ease-drawer), visibility 0s; }
.yn-menu-open .yn-drawer__home, .yn-menu-open .yn-drawer__list li, .yn-menu-open .yn-drawer__foot { opacity: 1; transform: none; }
.yn-menu-open .yn-drawer__home { transition-delay: .3s; }
.yn-menu-open .yn-drawer__list li:nth-child(1) { transition-delay: .35s; }
.yn-menu-open .yn-drawer__list li:nth-child(2) { transition-delay: .4s; }
.yn-menu-open .yn-drawer__list li:nth-child(3) { transition-delay: .45s; }
.yn-menu-open .yn-drawer__list li:nth-child(4) { transition-delay: .5s; }
.yn-menu-open .yn-drawer__list li:nth-child(5) { transition-delay: .55s; }
.yn-menu-open .yn-drawer__list li:nth-child(6) { transition-delay: .6s; }
.yn-menu-open .yn-drawer__list li:nth-child(7) { transition-delay: .65s; }
.yn-menu-open .yn-drawer__foot { transition-delay: .7s; }

@media (max-width: 767px) {
	.yn-drawer { max-width: none; padding: 24px; }
}

/* ---------- Page loader (home only) ---------- */

.yn-loader {
	position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
	background: var(--black); color: var(--white); pointer-events: none;
	animation: yn-loader-out .5s var(--ease) .8s forwards;
}
.yn-loader { animation-delay: 2.2s; }
/* Illustration stacked over the name, like a logo lockup. */
.yn-loader__logo {
	display: flex; flex-direction: column; align-items: center; gap: 20px;
	font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; opacity: 0;
	animation: yn-loader-logo 2.1s var(--ease) .1s forwards;
}
.yn-loader__logo .yn-symbol { width: auto; height: 104px; }
@keyframes yn-loader-logo { 0% { opacity: 0; transform: translateY(8px); } 20%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes yn-loader-out { to { opacity: 0; visibility: hidden; } }

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

.yn-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--black); }

.yn-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.yn-hero__text {
	position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start;
	height: 100%; padding: 120px var(--pad-x) 80px; color: var(--white);
}
.yn-hero__inner { width: 100%; max-width: 900px; }
.yn-hero__lead { max-width: 620px; }
.yn-hero .yn-h1 { color: var(--white); font-size: 60px; line-height: 68px; }
@media (max-width: 1199px) { .yn-hero .yn-h1 { font-size: 46px; line-height: 54px; } }
@media (max-width: 767px) { .yn-hero .yn-h1 { font-size: 34px; line-height: 42px; } }
.yn-hero__lead { margin-top: 16px; }
.yn-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.yn-hero__actions .yn-btn { margin: 0; }

/* Staggered entrance once the loader is gone. */
.yn-js .yn-hero__inner > * { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.yn-js .yn-hero__inner > :nth-child(1) { transition-delay: .6s; }
.yn-js .yn-hero__inner > :nth-child(2) { transition-delay: .8s; }
.yn-js .yn-hero__inner > :nth-child(3) { transition-delay: 1s; }
.yn-js .is-loaded .yn-hero__inner > * { opacity: 1; transform: none; }

@media (max-width: 767px) {
	.yn-hero__text { padding: 120px var(--pad-x) 60px; }
	.yn-hero__actions .yn-btn { width: 100%; }
}

/* ---------- Shows grid ---------- */

.yn-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.yn-cards--2 { grid-template-columns: repeat(2, 1fr); }

.yn-card {
	position: relative; display: flex; align-items: center; justify-content: center;
	min-height: 25vw; overflow: hidden; background: var(--black); color: var(--white); text-align: center;
}
.yn-cards--2 .yn-card { min-height: 32vw; }
.yn-card__text { position: relative; z-index: 2; padding: 120px 40px; }
.yn-card .yn-h2 { color: var(--white); font-size: 38px; line-height: 48px; }
.yn-card .yn-eyebrow { margin-bottom: 8px; opacity: .85; }
.yn-card__more { position: absolute; z-index: 2; inset-inline: 0; bottom: 40px; }
.yn-card__more .yn-text-btn { margin: 0; }

@media (max-width: 1439px) and (min-width: 1200px) {
	.yn-card__text { padding-inline: 20px; }
	.yn-cards:not(.yn-cards--2) .yn-card .yn-h2 { font-size: 32px; line-height: 42px; }
}
@media (max-width: 1199px) {
	.yn-cards { grid-template-columns: repeat(2, 1fr); }
	.yn-card { min-height: 45vw; }
}
@media (max-width: 767px) {
	.yn-cards, .yn-cards--2 { grid-template-columns: 1fr; }
	.yn-card, .yn-cards--2 .yn-card { min-height: 95vw; }
	.yn-card .yn-h2 { font-size: 32px; line-height: 42px; }
	.yn-card__more { bottom: 30px; }
}

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

.yn-split { display: flex; }
.yn-split__text { width: 50%; min-height: 600px; display: flex; align-items: center; padding: var(--pad-section) var(--pad-x); }
.yn-split__inner { max-width: 560px; }
.yn-split__media { position: relative; width: 50%; overflow: hidden; }

@media (max-width: 991px) {
	.yn-split { flex-direction: column; }
	.yn-split__text { width: 100%; min-height: 0; }
	.yn-split__media { order: -1; width: 100%; height: 60vw; }
}
@media (max-width: 767px) {
	.yn-split__media { height: 83vw; }
}

/* ---------- Upcoming dates ---------- */

.yn-dates { display: flex; align-items: flex-start; }
.yn-dates__media { position: sticky; top: 0; width: 50%; height: 100vh; overflow: hidden; background: var(--black); }
.yn-dates__text { width: 50%; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--pad-section) var(--pad-x); }
.yn-dates__inner { width: 100%; max-width: 640px; }

.yn-listing { margin-top: 54px; }
.yn-listing__item { display: flex; flex-direction: column; padding: 20px 0; border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); color: var(--black); transition: color .25s var(--ease); }
.yn-listing__item + .yn-listing__item { border-top: 0; }
.yn-listing__title { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 34px; }
.yn-listing__title .yn-icon--arrow { width: 16px; height: 10px; margin-inline-start: 16px; transition: margin .25s var(--ease); }
.yn-listing__meta { margin-top: 3px; font-size: 14px; line-height: 24px; color: var(--text); }

@media (hover: hover) {
	.yn-listing__item:hover { color: var(--accent); }
	.yn-listing__item:hover .yn-icon--arrow { margin-inline-start: 22px; }
}

@media (max-width: 991px) {
	.yn-dates { flex-direction: column; }
	.yn-dates__media { position: relative; width: 100%; height: 50vw; }
	.yn-dates__text { width: 100%; min-height: 0; }
}
@media (max-width: 767px) {
	.yn-dates__media { height: 80vw; min-height: 400px; }
	.yn-listing { margin-top: 40px; }
}

/* ---------- Two tiles (books) ---------- */

.yn-tiles { --tile-gap: var(--gap); position: relative; overflow: hidden; }
.yn-tiles__track { display: flex; gap: var(--tile-gap); direction: ltr; } /* Slides run left-to-right so the carousel moves leftwards. */
.yn-tiles__track > .yn-tile { direction: rtl; }
.yn-tiles__track.is-animating { transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.yn-tiles { touch-action: pan-y; }
.yn-tiles__track { cursor: grab; user-select: none; -webkit-user-select: none; }
.yn-tiles.is-dragging .yn-tiles__track { cursor: grabbing; }
.yn-tiles.is-dragging .yn-zoom:hover .yn-cover-img { transform: none; } /* no zoom while dragging */
.yn-tiles__track img { -webkit-user-drag: none; pointer-events: none; }
.yn-tile { position: relative; flex: 0 0 calc((100% - var(--tile-gap)) / 2); overflow: hidden; background: var(--black); color: var(--white); }

/* Carousel arrows, bottom-left over the images. */
.yn-tiles__nav { position: absolute; z-index: 3; bottom: 48px; left: 48px; display: flex; gap: 8px; }
.yn-tiles:not(.is-carousel) .yn-tiles__nav { display: none; }
.yn-tiles:not(.is-carousel) .yn-tiles__track { cursor: auto; }
/* Static version (column pages): tiles side by side, stacked on mobile – no carousel. */
.yn-tiles--static .yn-tiles__track { flex-wrap: wrap; direction: rtl; row-gap: var(--tile-gap); }
/* Column pages: a thin line between the end of the column and the books. */
.single-post .yn-shop { padding-top: 0; }
.single-post .yn-shop .yn-section__head { padding-top: var(--pad-section); border-top: 1px solid var(--line); }
.yn-round-btn {
	display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--black); cursor: pointer;
	transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.yn-round-btn .yn-icon { width: 16px; height: 10px; }
.yn-round-btn--prev .yn-icon { transform: scaleX(-1); }
.yn-round-btn--light { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.yn-round-btn--light:hover, .yn-round-btn--light:focus-visible { border-color: var(--white); background: var(--white); color: var(--black); }
.yn-tile__text {
	position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
	min-height: 560px; height: 100%; padding: 240px 48px 48px;
}
.yn-tile .yn-h2 { color: var(--white); margin-top: 8px; font-size: 45px; line-height: 56px; }
@media (max-width: 1199px) { .yn-tile .yn-h2 { font-size: 36px; line-height: 46px; } }
@media (max-width: 767px) { .yn-tile .yn-h2 { font-size: 30px; line-height: 40px; } }
.yn-tile .yn-btn { margin-top: 40px; }

@media (max-width: 767px) {
	.yn-tile { flex-basis: 100%; }
	.yn-tile__text { min-height: 110vw; padding: 150px 24px 32px; }
	.yn-tiles__nav { bottom: 32px; left: 24px; }
}

/* ---------- Inner page banner ---------- */

.yn-banner { position: relative; height: 480px; overflow: hidden; background: var(--black); color: var(--white); }
.yn-banner .yn-tint { --tint: .4; }
/* Banners without a photo (archive, column pages…) use the accent colour. */
.yn-banner--plain { background: var(--accent); }
.yn-banner--plain .yn-tint { display: none; }
.yn-banner--plain a.yn-eyebrow:hover { color: var(--black); }
/* Wide, short crop: keep the upper part of the photo (faces) in frame. */
.yn-banner .yn-cover-img { object-position: 50% 25%; }
.yn-banner__text {
	position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
	height: 100%; padding: var(--header-h) var(--pad-x) 0; text-align: center; /* centred below the header */
}
.yn-banner .yn-h1 { color: var(--white); font-size: 70px; line-height: 78px; }
@media (max-width: 1199px) { .yn-banner .yn-h1 { font-size: 52px; line-height: 60px; } }
@media (max-width: 767px) { .yn-banner .yn-h1 { font-size: 40px; line-height: 48px; } }
.yn-banner .yn-eyebrow { margin-bottom: 10px; }

@media (max-width: 767px) {
	.yn-banner { height: 320px; }
}

/* ---------- Events list (events page, show pages) ---------- */

.yn-events { list-style: none; border-top: 1px solid var(--line); }
.yn-event { display: grid; grid-template-columns: 240px 1fr auto; gap: var(--gap); align-items: center; padding-block: 28px; border-bottom: 1px solid var(--line); }
.yn-event__date { font-size: 14px; color: var(--black); }
.yn-event__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 34px; color: var(--black); }
.yn-event__title a { transition: color .25s var(--ease); }
.yn-event__title a:hover { color: var(--accent); }
.yn-event__place, .yn-event__note { font-size: 14px; line-height: 24px; }
.yn-event__action .yn-btn { margin: 0; }
.yn-badge { font-size: 13px; color: var(--text); }
.yn-empty { text-align: center; }
.yn-empty a:not(.yn-btn) { color: var(--ink); border-bottom: 1px solid currentColor; }

@media (max-width: 767px) {
	.yn-event { grid-template-columns: 1fr; gap: 6px; }
	.yn-event__action { margin-top: 12px; }
}

/* ---------- Events filters ---------- */

.yn-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; padding-bottom: 32px; margin-bottom: 64px; border-bottom: 1px solid var(--line); }
.yn-filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yn-filters__label { margin-inline-end: 8px; font-size: 13px; color: var(--text); }
.yn-filters__count { margin-inline-start: auto; font-size: 13px; color: var(--text); }

.yn-chip {
	padding: 5px 16px; border: 1px solid var(--line); border-radius: 5px; background: transparent; cursor: pointer;
	color: var(--black); font-size: 13px; font-weight: 500; line-height: 22px; letter-spacing: .02em;
	transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.yn-chip:hover { border-color: var(--black); background: transparent; color: var(--black); }
.yn-chip[aria-pressed="true"], .yn-chip[aria-pressed="true"]:hover { border-color: var(--black); background: var(--black); color: var(--white); }

.yn-month + .yn-month { margin-top: 80px; }
.yn-month[hidden], .yn-event[hidden] { display: none; }
.yn-month__title { margin-bottom: 24px; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 42px; color: var(--black); }

.yn-link-btn { padding: 0; border: 0; background: none; color: var(--ink); border-bottom: 1px solid currentColor; cursor: pointer; font: inherit; }
.yn-link-btn:hover { background: none; border-color: transparent; color: var(--ink); }

@media (max-width: 767px) {
	.yn-filters { gap: 16px; margin-bottom: 48px; }
	.yn-filters__group { flex-wrap: nowrap; width: calc(100% + var(--pad-x)); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.yn-filters__group::-webkit-scrollbar { display: none; }
	.yn-chip { white-space: nowrap; }
	.yn-filters__count { margin-inline-start: 0; }
	.yn-month__title { font-size: 26px; line-height: 34px; }
}

/* ---------- Timeline (about page) ---------- */

.yn-timeline { padding-top: 0; overflow: hidden; }
.yn-timeline__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); margin-bottom: 48px; }
.yn-timeline__nav { display: flex; gap: 8px; }
.yn-timeline__arrow {
	display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--black); cursor: pointer;
	transition: border-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.yn-timeline__arrow:hover, .yn-timeline__arrow:focus { background: transparent; }
.yn-timeline__arrow:hover { border-color: var(--black); }
.yn-timeline__arrow:disabled { opacity: .3; cursor: default; border-color: var(--line); }
.yn-timeline__arrow .yn-icon { width: 16px; height: 10px; }
.yn-timeline__arrow--prev .yn-icon { transform: scaleX(-1); }

.yn-timeline__track {
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad-x);
	padding-inline: var(--pad-x); cursor: grab; scrollbar-width: none; outline-offset: -1px;
}
.yn-timeline__track::-webkit-scrollbar { display: none; }
.yn-timeline__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.yn-timeline__list { display: flex; width: max-content; list-style: none; }

/* One continuous 1px line runs along the tops of the items; each gets a dot. */
.yn-timeline__item { position: relative; flex: none; width: 360px; padding: 40px 0 0; padding-inline-end: 56px; border-top: 1px solid var(--black); scroll-snap-align: start; }
.yn-timeline__item:last-child { width: 304px; padding-inline-end: 0; }
.yn-timeline__item::before {
	content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%;
	background: var(--black); transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.yn-timeline__year { display: block; font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1; color: var(--black); transition: color .35s var(--ease); }
.yn-timeline__title { margin-top: 20px; font-size: 18px; font-weight: 500; line-height: 28px; color: var(--black); }
.yn-timeline__text { margin-top: 8px; font-size: 15px; line-height: 26px; }

@media (hover: hover) {
	.yn-timeline__item:hover::before { transform: scale(1.6); background: var(--accent); }
	.yn-timeline__item:hover .yn-timeline__year { color: var(--accent); }
}

.yn-timeline__progress { position: relative; height: 1px; margin-top: 48px; background: var(--line); }
.yn-timeline__progress span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; background: var(--black); transition: width .15s linear; }

@media (max-width: 767px) {
	.yn-timeline__head { margin-bottom: 40px; }
	.yn-timeline__nav { display: none; }
	.yn-timeline__item { width: 280px; padding-inline-end: 32px; }
	.yn-timeline__item:last-child { width: 248px; }
	.yn-timeline__year { font-size: 48px; }
	.yn-timeline__progress { margin-top: 40px; }
}

/* ---------- "מרים גבה" archive & column page ---------- */

.yn-chip[aria-current="true"], .yn-chip[aria-current="true"]:hover { border-color: var(--black); background: var(--black); color: var(--white); }
a.yn-chip { display: inline-block; }

.yn-search { position: relative; flex: 0 1 320px; }
.yn-search input {
	width: 100%; padding: 8px 0; padding-inline-end: 32px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
	background: transparent; color: var(--black); font: inherit; outline: 0; transition: border-color .25s var(--ease);
}
.yn-search input:focus { border-color: var(--black); }
.yn-search input::-webkit-search-cancel-button { display: none; }
.yn-search button { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; padding: 0; border: 0; background: none; color: var(--black); cursor: pointer; }
.yn-search button:hover { background: none; color: var(--accent); }
.yn-search svg { display: block; width: 100%; height: 100%; }
.yn-archive-bar .yn-filters__group { flex: 1 1 auto; }

.yn-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px var(--gap); }
.yn-column-card { display: flex; flex-direction: column; color: var(--text); }
.yn-column-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; background: var(--sand); }
.yn-column-card__media .yn-cover-img { transition: transform .65s var(--ease); }
.yn-column-card__title { margin-top: 4px; font-family: var(--font-display); font-size: 26px; line-height: 34px; color: var(--black); text-wrap: balance; transition: color .25s var(--ease); }
.yn-column-card__excerpt { margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
	.yn-column-card:hover .yn-cover-img { transform: scale(1.06); }
	.yn-column-card:hover .yn-column-card__title { color: var(--accent); }
}

.yn-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 80px; }
.yn-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 5px; color: var(--black); font-size: 13px; font-weight: 500; transition: border-color .25s var(--ease);
}
.yn-pagination a.page-numbers:hover { border-color: var(--black); }
.yn-pagination .current { border-color: var(--black); background: var(--black); color: var(--white); }
.yn-pagination .dots { border: 0; min-width: 0; }

@media (max-width: 1199px) { .yn-columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
	.yn-columns { grid-template-columns: 1fr; gap: 48px; }
	.yn-search { flex-basis: 100%; }
	.yn-pagination { margin-top: 48px; flex-wrap: wrap; }
}

/* Column page: a short black strip instead of an image banner. */
.yn-banner--compact { height: auto; min-height: 380px; display: flex; }
.yn-banner--compact .yn-banner__text { width: 100%; padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
.yn-banner--compact .yn-h1 { max-width: 980px; font-size: 56px; line-height: 64px; }
.yn-banner--compact a.yn-eyebrow { transition: color .25s var(--ease); }
.yn-banner--compact a.yn-eyebrow:hover { color: var(--accent); }
@media (max-width: 767px) {
	.yn-banner--compact { min-height: 0; }
	.yn-banner--compact .yn-banner__text { padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px; }
	.yn-banner--compact .yn-h1 { font-size: 34px; line-height: 42px; }
}

/* The old illustrations are small: they sit inside the text, not as a banner. */
.yn-post__content::after { content: ""; display: table; clear: both; }
.yn-post__content img { height: auto; margin: 0; }
.yn-post__content .wp-caption, .yn-post__content > p > img, .yn-post__content img.aligncenter, .yn-post__content img.alignnone { max-width: 100%; }
.yn-post__content .wp-caption { width: auto !important; margin: 8px 0 32px; } /* old fixed pixel widths */
.yn-post__content * { max-width: 100%; }
/* Old posts coloured words/links by hand (#00ccff, #3366ff…): use the site accent instead. */
.yn-post__content a, .yn-post__content [style*="color"] { color: var(--accent) !important; }
.yn-post__content [style*="color:#000"], .yn-post__content [style*="color: #000"], .yn-post__content [style*="color: rgb(0, 0, 0)"] { color: inherit !important; }
.yn-post__content a { border-bottom: 1px solid currentColor; transition: border-color .25s var(--ease); }
.yn-post__content a:hover { border-color: transparent; }
.yn-post__content .aligncenter, .yn-post__content .alignnone { display: block; max-width: min(560px, 100%); margin: 8px auto 40px; }
.yn-post__content .alignleft { float: left; max-width: 45%; margin: 6px 40px 24px 0; }
.yn-post__content .alignright { float: right; max-width: 45%; margin: 6px 0 24px 40px; }
.yn-post__content .wp-caption img { display: block; width: 100%; }
.yn-post__content .wp-caption-text { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--text); opacity: .8; }
@media (max-width: 767px) {
	.yn-post__content .alignleft, .yn-post__content .alignright { float: none; max-width: 100%; margin: 8px 0 32px; }
}

.yn-post__audio { margin-top: 48px; }
.yn-post__audio iframe { display: block; width: 100%; height: 166px; border: 0; }
.yn-post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.yn-post__actions .yn-btn, .yn-post__actions .yn-text-btn { margin: 0; }

.yn-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 64px; }
.yn-post__nav-item { display: flex; flex-direction: column; gap: 4px; }
.yn-post__nav-item--next { grid-column: 2; text-align: left; }
.yn-post__nav-title { font-family: var(--font-display); font-size: 22px; line-height: 30px; color: var(--black); transition: color .25s var(--ease); }
.yn-post__nav-item:hover .yn-post__nav-title { color: var(--accent); }
/* Mobile: still side by side (previous on the right, next on the left), just smaller. */
@media (max-width: 600px) {
	.yn-post__nav { gap: 24px; }
	.yn-post__nav-title { font-size: 18px; line-height: 26px; }
}

/* ---------- Books page ---------- */

.yn-books { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; }
/* Each book spans the same 7 rows, so titles, leads, facts and buttons line up across the two columns. */
.yn-book { display: grid; grid-row: span 7; grid-template-rows: subgrid; scroll-margin-top: 100px; }
/* Second row of products (and beyond): space above. */
.yn-book:nth-child(n+3) .yn-book__media { margin-top: var(--pad-section); }
.yn-book__body { display: contents; }
.yn-book__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.yn-book__body .yn-h2 { margin-top: 48px; }
.yn-book__body .yn-h2 { font-size: 56px; line-height: 64px; }
.yn-book__lead { margin-top: 24px; font-size: 20px; line-height: 32px; color: var(--black); }
.yn-book__facts { display: grid; gap: 8px; margin: 32px 0 0; padding: 24px 0; border-block: 1px solid var(--line); }
.yn-book__facts > div { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; }
.yn-book__facts dt { font-size: 13px; line-height: 22px; color: var(--text); }
.yn-book__facts dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--black); }

/* Desktop: summaries are clipped to the same height with a white fade, so the
   buy buttons line up; "קראו עוד" opens them. Mobile shows the full text. */
.yn-book__summary { margin-top: 32px; }
.yn-book__more { display: none; }
@media (min-width: 992px) {
	.yn-js .yn-book__summary .yn-content { position: relative; max-height: 224px; overflow: hidden; transition: max-height .6s var(--ease); }
	.yn-js .yn-book__summary .yn-content::after {
		content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 96px; pointer-events: none;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
		transition: opacity .4s var(--ease);
	}
	.yn-js .yn-book__summary.is-open .yn-content::after, .yn-js .yn-book__summary.is-short .yn-content::after { opacity: 0; }
	.yn-js .yn-book__more { display: inline-flex; margin-top: 16px; padding: 0 0 3px; border: 0; background: none; cursor: pointer; }
	.yn-js .yn-book__more:hover { background: none; }
	.yn-js .yn-book__summary.is-short .yn-book__more { visibility: hidden; }
}
.yn-book__body .yn-eyebrow { margin-top: 8px; }
.yn-reviews { margin-top: 32px; }
.yn-review { padding-inline-start: 20px; border-inline-start: 1px solid var(--accent); }
.yn-review + .yn-review { margin-top: 20px; }
.yn-review cite { display: block; margin-top: 4px; font-size: 13px; font-style: normal; }
.yn-book .yn-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.yn-book .yn-actions .yn-btn { margin: 0; }
.yn-book .yn-book__lead:empty, .yn-book .yn-book__facts:empty, .yn-book .yn-reviews:empty, .yn-book .yn-actions:empty { margin: 0; padding: 0; border: 0; }

@media (max-width: 991px) {
	.yn-books { grid-template-columns: 1fr; row-gap: var(--pad-section); }
	.yn-book { display: block; }
	.yn-book:nth-child(n+3) .yn-book__media { margin-top: 0; }
}
@media (max-width: 767px) {
	.yn-book__body .yn-h2 { margin-top: 32px; }
	.yn-book__body .yn-h2 { font-size: 36px; line-height: 44px; }
	.yn-book__lead { font-size: 18px; line-height: 28px; }
}

/* ---------- Show page ---------- */

.yn-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.yn-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.yn-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: start; }
.yn-two-col .yn-h3 { margin-bottom: 24px; }
.yn-booking__phone { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--black); }
.yn-booking__phone a { display: inline; transition: color .25s var(--ease); }
.yn-booking__phone a:hover { color: var(--accent); }
.yn-booking__spec { margin-top: 48px; }
.yn-checklist { list-style: none; margin-top: 12px; }
.yn-checklist li { padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--black); }
.yn-contacts { list-style: none; margin-top: 16px; }
.yn-contacts li + li { margin-top: 16px; }
.yn-contacts a:not(.yn-btn) { display: inline-block; margin-inline-start: 12px; color: var(--ink); }

@media (max-width: 991px) {
	.yn-videos, .yn-two-col { grid-template-columns: 1fr; gap: 60px; }
}

/* ---------- Contact ---------- */

.yn-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 120px; align-items: start; }
.yn-contact__block + .yn-contact__block { margin-top: 72px; }
.yn-contact__block .yn-h3 { margin-bottom: 16px; font-size: 36px; line-height: 46px; }
.yn-contact__block .yn-plain li + li { margin-top: 8px; }
.yn-contact__block a:not(.yn-btn):not(.yn-text-btn) { color: var(--black); transition: color .25s var(--ease); }
.yn-contact__block a:not(.yn-btn):not(.yn-text-btn):hover { color: var(--accent); }
.yn-contact__block .yn-muted { margin-inline-end: 8px; }
.yn-contact__block .yn-socials { margin-top: 24px; color: var(--ink); }
.yn-contact__block .yn-btn { margin: 0; }

@media (max-width: 991px) {
	.yn-contact { grid-template-columns: 1fr; gap: 80px; }
}

.yn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.yn-form--quick { grid-template-columns: 1fr; }
.yn-field { margin: 0 0 32px; display: flex; flex-direction: column; }
.yn-field--wide { grid-column: 1 / -1; }
.yn-field label { font-size: 13px; line-height: 20px; color: var(--text); }
.yn-field input, .yn-field select, .yn-field textarea {
	width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
	background: transparent; color: var(--black); font: inherit; outline: 0;
	transition: border-color .25s var(--ease);
}
.yn-field textarea { resize: vertical; min-height: 120px; }
/* Same height as the text inputs, with a thin chevron at the end. */
.yn-field select {
	-webkit-appearance: none; appearance: none; height: 49px; padding-inline-end: 24px; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat left center / 10px 6px;
}
.yn-field input:focus, .yn-field select:focus, .yn-field textarea:focus { border-color: var(--black); }
.yn-field .yn-btn { margin-top: 8px; }
.yn-hp { position: absolute; inset-inline-start: -9999px; }
.yn-notice { margin-bottom: 32px; padding: 14px 20px; border: 1px solid var(--accent); color: var(--black); }
.yn-notice--error { border-color: #b3261e; }

@media (max-width: 600px) {
	.yn-form { grid-template-columns: 1fr; }
}

/* ---------- Socials ---------- */

.yn-socials { display: flex; align-items: center; gap: 20px; list-style: none; }
.yn-socials li { display: flex; }
.yn-socials__link { display: flex; transition: opacity .25s var(--ease), color .25s var(--ease); }
.yn-socials .yn-icon { width: 15px; height: 15px; fill: currentColor; }
.yn-socials__link:hover { opacity: .7; }

/* ---------- Instagram strip ---------- */

.yn-insta { position: relative; }
.yn-insta__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% / 6);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.yn-insta__track::-webkit-scrollbar { display: none; }
.yn-insta__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; scroll-snap-align: start; }
.yn-insta__item .yn-tint { --tint: 0; }
.yn-insta__play { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 18px; height: 18px; fill: var(--white); filter: drop-shadow(0 0 4px rgba(0, 0, 0, .4)); }
.yn-insta__play svg { display: block; width: 100%; height: 100%; }

/* White badge in the middle of the strip, links to the profile. */
.yn-insta__badge {
	position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 40px;
	background: var(--white); color: var(--black); text-align: center; white-space: nowrap;
	font-size: 13px; font-weight: 500; line-height: 18px; letter-spacing: .18em; text-transform: uppercase;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
.yn-insta__badge .yn-icon { width: 20px; height: 20px; margin-bottom: 6px; fill: currentColor; }
.yn-insta__badge-sub { color: var(--text); font-weight: 400; transition: color .3s var(--ease); }
.yn-insta__badge:hover { background: var(--black); color: var(--white); }
.yn-insta__badge:hover .yn-insta__badge-sub { color: var(--text-on-dark); }

.yn-insta__arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .15); }
.yn-insta__arrow--prev { right: 24px; }
.yn-insta__arrow--next { left: 24px; }
.yn-insta__arrow:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 991px) {
	.yn-insta__track { grid-auto-columns: calc(100% / 4); }
}
@media (max-width: 767px) {
	.yn-insta__track { grid-auto-columns: calc(100% / 2.5); }
	.yn-insta__arrow { display: none; }
	.yn-insta__badge { padding: 18px 24px; font-size: 11px; }
}

/* ---------- 404 ---------- */

/* White page, so the (normally white) header turns black until it becomes the black bar. */
.error404 .yn-header:not(.is-fixed) { color: var(--black); }
.yn-404 { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: 160px 96px; }
.yn-404__code { font-family: var(--font-display); font-size: 180px; line-height: 1; color: var(--black); }
.yn-404 .yn-title { margin-top: 16px; }
.yn-404__text { margin-top: 16px; font-size: 18px; line-height: 28px; }
.yn-404 .yn-btn { margin-top: 40px; }
.yn-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 40px; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.yn-404__links a { color: var(--black); transition: color .25s var(--ease); }
.yn-404__links a:hover { color: var(--accent); }
@media (max-width: 767px) {
	.yn-404 { padding-block: 120px 64px; }
	.yn-404__code { font-size: 120px; }
}

/* ---------- בוידעם (masonry) ---------- */

.yn-attic { columns: 4; column-gap: 32px; } /* Fallback; main.js builds balanced columns. */
.yn-attic.is-masonry { display: flex; align-items: flex-start; gap: 32px; columns: auto; }
.yn-attic__col { flex: 1 1 0; min-width: 0; }
@media (max-width: 767px) { .yn-attic.is-masonry { gap: 0; } }
.yn-attic__item { display: inline-block; width: 100%; margin: 0 0 32px; break-inside: avoid; vertical-align: top; }
.yn-attic__image a { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.yn-attic__image img { width: 100%; height: auto; transition: transform .65s var(--ease); }
.yn-attic__item figcaption { margin-top: 10px; font-size: 13px; line-height: 20px; color: var(--text); }
.yn-attic__frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.yn-attic__facade {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden;
	background: var(--black); cursor: pointer;
}
.yn-attic__facade:hover, .yn-attic__facade:focus { background: var(--black); }
.yn-attic__facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease), opacity .3s var(--ease); }
.yn-attic__play {
	position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); transform: translate(-50%, -50%);
	transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.yn-attic__play svg { width: 26px; height: 26px; margin-inline-end: -3px; fill: var(--black); }
@media (hover: hover) {
	.yn-attic__facade:hover img { transform: scale(1.04); }
	.yn-attic__facade:hover .yn-attic__play { transform: translate(-50%, -50%) scale(1.08); background: var(--white); }
}
.yn-attic__facade.is-playing { cursor: auto; }
.yn-attic__facade.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Link cards: palette colour, random height and a slight tilt. */
.yn-attic__link {
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	padding: 32px; background: var(--bg); color: var(--fg); transform: rotate(var(--rot));
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.yn-attic__link--s { min-height: 200px; }
.yn-attic__link--m { min-height: 280px; }
.yn-attic__link--l { min-height: 360px; }
.yn-attic__link-title { font-family: var(--font-display); font-size: 28px; line-height: 36px; text-wrap: balance; }
.yn-attic__link-host { font-size: 13px; letter-spacing: .04em; opacity: .75; }

@media (hover: hover) {
	.yn-attic__image a:hover img { transform: scale(1.04); }
	.yn-attic__link:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45); }
}
@media (max-width: 1199px) { .yn-attic { columns: 3; } }
@media (max-width: 991px) { .yn-attic { columns: 2; } }
@media (max-width: 767px) {
	.yn-attic { columns: 1; }
	.yn-attic__item { margin-bottom: 24px; }
	.yn-attic__link-title { font-size: 26px; line-height: 34px; }
}

/* Lightbox */
.yn-lightbox {
	width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(0, 0, 0, .94); color: var(--white);
}
.yn-lightbox::backdrop { background: transparent; }
.yn-lightbox[open] { display: flex; align-items: center; justify-content: center; animation: yn-fade .3s var(--ease); }
@keyframes yn-fade { from { opacity: 0; } }
.yn-lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 200px); }
.yn-lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.yn-lightbox__figure figcaption { font-size: 14px; color: var(--text-on-dark); text-align: center; }
.yn-lightbox__figure figcaption:empty { display: none; }
.yn-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.yn-lightbox__nav--prev { right: 32px; }
.yn-lightbox__nav--next { left: 32px; }
.yn-lightbox__close {
	position: absolute; top: 24px; left: 24px; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
}
.yn-lightbox__close::before, .yn-lightbox__close::after {
	content: ""; position: absolute; top: 50%; left: 10px; width: 20px; height: 1px; background: var(--white);
}
.yn-lightbox__close::before { transform: rotate(45deg); }
.yn-lightbox__close::after { transform: rotate(-45deg); }
.yn-lightbox__close:hover, .yn-lightbox__close:focus { background: none; }
@media (max-width: 767px) {
	.yn-lightbox__figure { max-width: calc(100vw - 32px); }
	.yn-lightbox__nav { display: none; }
}

/* ---------- Image credits ---------- */

.yn-credit {
	position: absolute; z-index: 3; bottom: 10px; left: 12px; max-width: calc(100% - 24px);
	font-size: 11px; line-height: 14px; letter-spacing: .02em; color: rgba(255, 255, 255, .85);
	text-shadow: 0 0 6px rgba(0, 0, 0, .55); pointer-events: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Clear of the accessibility button on the first screen. */
.yn-hero .yn-credit { bottom: 16px; left: 76px; }
.yn-credited { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.yn-credited img { display: block; }
.yn-post__content .yn-credited.aligncenter, .yn-post__content .yn-credited.alignnone { display: table; margin: 8px auto 40px; }
.yn-post__content .yn-credited.alignleft { float: left; max-width: 45%; margin: 6px 40px 24px 0; }
.yn-post__content .yn-credited.alignright { float: right; max-width: 45%; margin: 6px 0 24px 40px; }
@media (max-width: 767px) {
	.yn-post__content .yn-credited.alignleft, .yn-post__content .yn-credited.alignright { float: none; max-width: 100%; margin: 8px 0 32px; }
}

/* ---------- Footer ---------- */

.yn-footer { border-top: 1px solid var(--line); background: var(--white); }
/* Same rhythm above the footer as between sections (and above the Instagram strip). */
.yn-footer__top { display: flex; justify-content: space-between; gap: 80px; padding: var(--pad-section) var(--pad-x); }
.yn-footer__contact { max-width: 560px; }
.yn-footer__contact .yn-title { margin-bottom: 20px; }
.yn-footer__contact .yn-socials { margin-top: 50px; color: var(--ink); }
.yn-footer__contact .yn-socials__link:hover { color: var(--accent); opacity: 1; }
.yn-footer__nav { display: flex; gap: 100px; }
.yn-footer__nav ul { list-style: none; }
.yn-footer__nav li + li { padding-top: 20px; }
.yn-footer__nav a { display: block; font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: .04em; color: var(--black); transition: color .25s var(--ease); }
.yn-footer__nav a:hover { color: var(--accent); }
.yn-footer__bottom {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
	padding: 40px var(--pad-x); border-top: 1px solid var(--line); font-size: 13px;
}
.yn-footer__legal { display: flex; gap: 12px; }
.yn-footer__credit { justify-self: end; }
.yn-footer__legal a, .yn-footer__credit { transition: color .25s var(--ease); }
.yn-footer__legal a:hover, .yn-footer__credit:hover { color: var(--accent); }

@media (max-width: 991px) {
	.yn-footer__top { flex-direction: column; }
	.yn-footer__nav { gap: 60px; }
}
@media (max-width: 767px) {
	.yn-footer__top { padding-block: var(--pad-section) 60px; gap: 60px; }
	.yn-footer__nav { flex-direction: column; gap: 20px; }
	.yn-footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
	.yn-footer__credit { justify-self: center; }
}

/* ---------- Scroll reveal ---------- */

.yn-js [data-yn-reveal] > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.yn-js [data-yn-reveal] > :nth-child(2) { transition-delay: .3s; }
.yn-js [data-yn-reveal] > :nth-child(3) { transition-delay: .6s; }
.yn-js [data-yn-reveal] > :nth-child(4) { transition-delay: .9s; }
.yn-js [data-yn-reveal] > :nth-child(n+5) { transition-delay: 1.2s; }
.yn-js [data-yn-reveal].is-shown > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.yn-loader { display: none; }
}
