/* חיבורים בתעסוקה · קווים. Full-bleed photography and a quiet hairline grid that
   splits every section into cells; headlines pair a thin and a bold weight of
   OZ Temple. Bone ground, charcoal dark block, brand indigo as the one accent. */
@font-face { font-family: "OZ Temple"; src: url("../fonts/OZTempleVF.woff2") format("woff2-variations"), url("../fonts/OZTempleVF.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --bone: #f1ede7;
  --stone: #e3e0da;
  --paper: #f8f5f0;
  --ink: #1f1b17;
  --muted: #655c53;
  --line: #cdc4b8;
  --earth: #272523;
  --earth-ink: #ece9e4;
  --accent: #3a0ca3;
  --accent-2: #7209b7;
  --pink: #f72585;
  /* names shared with the accessibility menu and the cookie notice */
  --white: #ffffff; --dark: var(--earth); --blue: var(--accent); --indigo: var(--accent-2); --cream-2: var(--paper);

  --font: "OZ Temple", "Heebo", "Assistant", system-ui, sans-serif;
  --fw-thin: 150; --fw-reg: 380; --fw-med: 500; --fw-bold: 750;
  --fs-title: clamp(2.3rem, 1.1rem + 4.4vw, 6.4rem);
  --fs-section: clamp(1.9rem, 1.1rem + 2.6vw, 4.2rem);
  --fs-subtitle: clamp(1.3rem, 1.05rem + 0.9vw, 2.2rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.5rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.25rem);
  --fs-small: clamp(0.9rem, 0.86rem + 0.15vw, 1.1rem);
  --fs-xs: clamp(0.78rem, 0.75rem + 0.1vw, 0.95rem);
  --gut: clamp(1rem, 5vw, 7rem);
  --sp-section: clamp(3.5rem, 2rem + 6vw, 9rem);
  --sp-block: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  --hdr-h: max(60px, 4.6rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bone); color: var(--ink); font-family: var(--font); font-weight: var(--fw-reg); font-size: var(--fs-body); line-height: 1.65; direction: rtl; text-align: start; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: var(--fw-reg); line-height: 1.08; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.wrap { margin-inline: auto; padding-inline: var(--gut); max-width: 2400px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -80px; background: var(--ink); color: var(--bone); padding: 10px 16px; z-index: 300; }
.skip-link:focus { top: 8px; }
.eyebrow { display: block; font-size: var(--fs-small); color: var(--muted); font-weight: var(--fw-med); line-height: 1.4; }
.lat { font-size: var(--fs-xs); letter-spacing: 0.14em; font-weight: var(--fw-med); }
.arrow { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: var(--fw-med); font-size: var(--fs-small); line-height: 1.3; background: none; border: 0; padding: 0; }
.arrow svg { flex: none; transition: transform 0.25s var(--ease); }
a:hover > .arrow svg, .arrow:hover svg, .cat:hover .arrow svg, .cell:hover .arrow svg { transform: translateX(-6px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.9em; min-height: max(46px, 3.1em); padding: 0 1.7em; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bone); font-weight: var(--fw-med); font-size: var(--fs-small); line-height: 1.2; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.16s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); }
.btn.light { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.btn.light:hover { background: transparent; color: var(--bone); }
.btn.accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.flip { display: inline-flex; transform: scaleX(-1); }

/* Section titles: a thin line and a bold line */
.sec-title { font-size: var(--fs-section); font-weight: var(--fw-thin); line-height: 1.05; }
.sec-title span, .sec-title b { display: block; }
.sec-title b { font-weight: var(--fw-bold); }
.sec-title--small { font-size: var(--fs-subtitle); font-weight: var(--fw-med); padding-block: var(--sp-block) 1rem; border-top: 1px solid var(--line); }

/* Header: a row of cells divided by hairlines */
.hdr { --hl: var(--line); position: fixed; inset-inline: 0; top: 0; z-index: 100; background: var(--bone); border-bottom: 1px solid var(--hl); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.admin-bar .hdr { top: 32px; }
.hdr.on-photo:not(.is-solid):not(.open) { --hl: rgba(255, 255, 255, 0.28); background: transparent; color: #fff; }
.hdr .wrap { display: flex; align-items: stretch; justify-content: space-between; min-height: var(--hdr-h); }
.logo { display: flex; align-items: center; padding-block: clamp(12px, 1.1vw, 22px); padding-inline-end: max(18px, 2.4vw); border-inline-end: 1px solid var(--hl); }
.logo img { width: clamp(150px, 11vw + 60px, 300px); }
.logo .lw { display: none; }
.hdr.on-photo:not(.is-solid):not(.open) .logo .lw { display: block; }
.hdr.on-photo:not(.is-solid):not(.open) .logo .ld { display: none; }
.hdr nav { display: flex; }
.hdr__list { list-style: none; display: flex; border-inline-end: 1px solid var(--hl); }
.hdr__list a { display: flex; align-items: center; height: 100%; min-height: var(--hdr-h); padding-inline: max(14px, 1.7vw); border-inline-start: 1px solid var(--hl); font-size: var(--fs-small); transition: background-color 0.2s, color 0.2s; }
.hdr__list a:hover, .hdr__list .current-menu-item > a { background: var(--ink); color: var(--bone); }
.hdr.on-photo:not(.is-solid) .hdr__list a:hover { background: var(--bone); color: var(--ink); }
.burger { display: none; align-self: center; width: 44px; height: 44px; border: 0; background: transparent; padding: 12px 9px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 1.5px; background: currentColor; transition: transform 0.25s, opacity 0.2s; }
.hdr.open .burger span:nth-child(1) { transform: translateY(9.25px) rotate(45deg); }
.hdr.open .burger span:nth-child(2) { opacity: 0; }
.hdr.open .burger span:nth-child(3) { transform: translateY(-9.25px) rotate(-45deg); }
@media (max-width: 1180px) {
  .burger { display: flex; }
  .logo { border-inline-end: 0; }
  .hdr nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--bone); color: var(--ink); border-bottom: 1px solid var(--line); max-height: calc(100svh - var(--hdr-h)); overflow-y: auto; }
  .hdr.open nav { display: block; }
  .hdr__list { flex-direction: column; border: 0; width: 100%; }
  .hdr__list a { min-height: 56px; padding-inline: var(--gut); border-inline-start: 0; border-top: 1px solid var(--line); font-size: var(--fs-lead); }
}
.site-main--plain { padding-top: var(--hdr-h); }

/* Hero */
.hero { position: relative; display: flex; color: #fff; overflow: hidden; background: var(--earth); }
.hero > img, .hero .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(18, 18, 17, 0.62) 0%, rgba(18, 18, 17, 0.36) 40%, rgba(18, 18, 17, 0.08) 75%), linear-gradient(180deg, rgba(18, 18, 17, 0.5) 0%, rgba(18, 18, 17, 0) 26%, rgba(18, 18, 17, 0) 62%, rgba(18, 18, 17, 0.5) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-block: calc(var(--hdr-h) + 3rem) max(34px, 4vw); }
.hero h1 { font-size: var(--fs-title); font-weight: var(--fw-thin); line-height: 1; }
.hero h1 span, .hero h1 b { display: block; }
.hero h1 b { font-weight: var(--fw-bold); }
.home-hero { height: calc(100svh - var(--cats-h, 190px)); min-height: 460px; }
.home-hero .slides { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; }
.hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.a11y-still .hero__video { display: none; }
.home-hero .slides img { opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 8s ease-out; }
.home-hero .slides img.on { opacity: 1; transform: scale(1); }
.hrule { display: block; width: 72px; height: 1px; background: rgba(255, 255, 255, 0.7); margin-top: max(18px, 2vw); }
.below { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: max(16px, 1.8vw); }
.below p { font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; color: #ebe8e3; }
.page-hero { min-height: min(72svh, 760px); }
.page-hero--short { min-height: min(46svh, 480px); }
.hero-sub { font-size: var(--fs-lead); margin-bottom: 12px; opacity: 0.92; }
.hero-lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 50ch; margin-top: max(14px, 1.4vw); color: #ebe8e3; }
.hero h1, .hero .below, .hero .hero-lead, .hero .hero-sub, .hero .hrule { animation: heroIn 0.9s var(--ease) both; }
.hero .hrule { animation-delay: 0.12s; } .hero .below, .hero .hero-lead { animation-delay: 0.2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Cells row */
.cats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
.cats--top { border-top: 1px solid var(--line); margin-bottom: var(--sp-section); }
.cat { --cp: max(18px, 2.2vw); display: flex; flex-direction: column; gap: 6px; padding: max(30px, 2.6vw) var(--cp) max(22px, 2vw); border-inline-start: 1px solid var(--line); transition: background-color 0.25s; }
.cat:first-child { border-inline-start: 0; padding-inline-start: 0; }
a.cat:hover { background: var(--stone); }
.cat h2 { font-size: var(--fs-subtitle); font-weight: var(--fw-med); line-height: 1.15; }
.cat p { color: var(--muted); font-size: var(--fs-small); line-height: 1.55; max-width: 34ch; }
.cat .arrow { margin-top: auto; padding-top: 0.6rem; }
.cats--text .cat { gap: 12px; padding-bottom: max(34px, 3vw); }
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .cat { padding: 26px 16px 18px; border-top: 1px solid var(--line); }
  .cat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .cat:nth-child(-n+2) { border-top: 0; }
  .home-hero { height: auto; min-height: 78svh; }
}
@media (max-width: 520px) { .cats--text, .cats--top { grid-template-columns: 1fr; } .cats--text .cat, .cats--top .cat { border-inline-start: 0; padding-inline: 0; border-top: 1px solid var(--line); } .cats--text .cat:first-child, .cats--top .cat:first-child { border-top: 0; } }

/* The three questions as a turning card */
.album { background: var(--stone); padding-block: var(--sp-section); }
.album .sec-title { text-align: center; margin-bottom: var(--sp-block); }
.album__frame { display: grid; grid-template-columns: 1.15fr 1fr; max-width: 1500px; margin-inline: auto; border: 8px solid var(--earth); border-radius: 6px; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(31, 27, 23, 0.55); overflow: hidden; }
.album__photo { position: relative; min-height: clamp(280px, 34vw, 560px); background: var(--earth); }
.album__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 0.7s ease, transform 1.4s var(--ease); }
.album__photo img[data-on] { opacity: 1; transform: none; }
.album__paper { display: flex; flex-direction: column; padding: clamp(1.2rem, 2.6vw, 3rem); }
.album__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.album__top img { width: clamp(110px, 9vw, 170px); }
.album__page { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; padding-block: 1.6rem; animation: pageIn 0.6s var(--ease) both; }
.album__page[hidden] { display: none; }
@keyframes pageIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.album__num { font-size: var(--fs-section); font-weight: var(--fw-thin); line-height: 1; color: var(--accent-2); }
.album__page h3 { font-size: var(--fs-section); font-weight: var(--fw-bold); }
.album__page p { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 30ch; }
.album__nav { display: flex; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.album__nav .btn.ghost { padding: 0 1.1em; }
.album__under { max-width: 1500px; margin: var(--sp-block) auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 2rem; }
.album__under p { max-width: 60ch; }
@media (max-width: 820px) { .album__frame { grid-template-columns: 1fr; border-width: 6px; } .album__photo { min-height: 56vw; } }

/* The questions as a book with turning leaves (wide screens) */
.album__frame--book { display: none; }
.book { max-width: 1500px; margin-inline: auto; padding: 10px; background: var(--earth); border-radius: 6px; box-shadow: 0 40px 70px -30px rgba(31, 27, 23, 0.5), 0 2px 0 #191817; direction: ltr; }
.book__page { background: var(--paper); overflow: hidden; direction: rtl; }
.book__page--photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transform: none; position: static; }
.book__page--text { display: flex; flex-direction: column; padding: clamp(1.2rem, 2.6vw, 3rem); }
.book__page--text .album__page { animation: none; }
.book__page--text .album__top { flex: none; }
.book__nav { max-width: 1500px; margin: var(--sp-block) auto 0; justify-content: center; border-top: 0; padding-top: 0; }

/* Dark block */
.dark { background: var(--earth); color: var(--earth-ink); padding-block: var(--sp-section); }
.dark .eyebrow { color: #a9a39b; }
.dark__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-block) clamp(2rem, 7vw, 9rem); align-items: start; }
.dark__prose { margin-top: var(--sp-block); max-width: 54ch; }
.dark__prose p { margin-bottom: 1em; }
.dark__prose p:first-child { font-size: var(--fs-lead); line-height: 1.5; }
.dark__prose p:not(:first-child) { color: #bdb7af; }
.dark__fig { margin-top: var(--sp-block); display: flex; align-items: flex-end; gap: 1rem; }
.dark__fig img { width: clamp(140px, 15vw, 260px); aspect-ratio: 4 / 5; object-fit: cover; }
.dark__fig figcaption { font-size: var(--fs-small); color: #a9a39b; max-width: 16ch; }
.acc { border-bottom: 1px solid rgba(236, 233, 228, 0.22); }
.acc > .eyebrow { padding-bottom: 0.9rem; }
.acc__item { border-top: 1px solid rgba(236, 233, 228, 0.22); }
.acc__item h3 { font-size: var(--fs-subtitle); }
.acc__item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: max(16px, 1.3vw) 0; background: none; border: 0; text-align: start; font-weight: var(--fw-reg); }
.acc__item.is-open button { font-weight: var(--fw-med); }
.acc__item i { position: relative; flex: none; width: 18px; height: 18px; }
.acc__item i::before, .acc__item i::after { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: currentColor; transition: transform 0.3s var(--ease); }
.acc__item i::after { transform: rotate(90deg); }
.acc__item.is-open i::after { transform: rotate(0); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body p { overflow: hidden; color: #cfc9c1; max-width: 46ch; }
.acc__item.is-open .acc__body p { padding-bottom: max(18px, 1.5vw); }
.dark--q .sec-title { margin-bottom: var(--sp-block); }
.qrow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(236, 233, 228, 0.22); }
.qrow > div { padding: max(24px, 2.2vw) max(18px, 2.2vw); border-inline-start: 1px solid rgba(236, 233, 228, 0.22); display: grid; gap: 0.6rem; align-content: start; }
.qrow > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.qrow h3 { font-size: var(--fs-subtitle); font-weight: var(--fw-bold); }
.qrow p { color: #cfc9c1; }
.qrow .lat { color: #a9a39b; }
@media (max-width: 860px) { .dark__grid { grid-template-columns: 1fr; } .qrow { grid-template-columns: 1fr; } .qrow > div { border-inline-start: 0; padding-inline: 0; border-top: 1px solid rgba(236, 233, 228, 0.22); } .qrow > div:first-child { border-top: 0; } }

/* Posts */
.news { padding-block: var(--sp-section); }
.news__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: var(--sp-block); }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cell { display: flex; flex-direction: column; gap: 8px; padding: max(18px, 1.8vw); border-inline-start: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 0.25s; }
.cell:nth-child(3n + 1) { border-inline-start: 0; padding-inline-start: 0; }
.cell:hover { background: var(--stone); }
.cell__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); margin-bottom: 8px; }
.cell__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.cell:hover .cell__img img { transform: scale(1.05); }
.cell time { font-size: var(--fs-xs); color: var(--muted); }
.cell h3 { font-size: var(--fs-subtitle); font-weight: var(--fw-med); line-height: 1.2; }
.cell p { color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }
.cell .arrow { margin-top: auto; }
@media (max-width: 900px) { .cells { grid-template-columns: 1fr; } .cell { border-inline-start: 0; padding-inline: 0; } }

/* Closing photo that fades into the ground */
.outro { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.outro__img { position: absolute; inset-block: 0; inset-inline-end: 0; width: 66%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 96%); mask-image: linear-gradient(to right, #000 45%, transparent 96%); }
.outro .wrap { position: relative; padding-block: var(--sp-section); }
.outro__txt { max-width: min(40rem, 46%); display: grid; gap: 1rem; }
.outro h2 { font-size: var(--fs-section); font-weight: var(--fw-thin); line-height: 1.05; }
.outro h2 span, .outro h2 b { display: block; }
.outro h2 b { font-weight: var(--fw-bold); }
.outro p { font-size: var(--fs-lead); line-height: 1.5; }
.outro__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem; margin-top: 0.6rem; }
@media (max-width: 860px) { .outro__img { position: relative; width: 100%; height: 56vw; -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); } .outro { display: flex; flex-direction: column-reverse; } .outro__txt { max-width: none; } .outro .wrap { padding-bottom: 1rem; } }

/* Footer */
.ftr { border-top: 1px solid var(--line); font-size: var(--fs-small); }
.ftr .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem 2rem; padding-block: 1.4rem; }
.ftr__c { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.ftr__logo img { width: clamp(150px, 12vw, 230px); }
.ftr__l { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; justify-content: flex-end; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ftr__copy { text-align: center; color: var(--muted); font-size: var(--fs-xs); padding: 0 var(--gut) 5.5rem; }
@media (max-width: 860px) { .ftr .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ftr__c, .ftr__l { justify-content: center; } .ftr__logo { order: -1; } }

/* Inner pages */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 30vw); gap: var(--sp-block) clamp(2rem, 6vw, 8rem); align-items: start; padding-block: var(--sp-section); }
.split--photo { grid-template-columns: clamp(200px, 24vw, 420px) minmax(0, 1fr); }
.split--contact { grid-template-columns: minmax(0, 1fr) minmax(320px, 40vw); }
.split__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__side { position: sticky; top: calc(var(--hdr-h) + 24px); }
.side-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.4rem, 2.4vw, 2.6rem); display: grid; gap: 0.9rem; justify-items: start; }
.side-card h2 { font-size: var(--fs-subtitle); font-weight: var(--fw-bold); }
.side-card p { color: var(--muted); }
.side-card--form { justify-items: stretch; }
.details { list-style: none; margin-top: var(--sp-block); border-top: 1px solid var(--line); }
.details li { display: grid; grid-template-columns: 8rem 1fr; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-lead); }
@media (max-width: 900px) { .split, .split--photo, .split--contact { grid-template-columns: 1fr; } .split__side { position: static; } .split__fig { max-width: 260px; } }
.plain { padding-block: var(--sp-section); max-width: calc(900px + 2 * var(--gut)); }
.plain--wide { max-width: 2400px; }
.plain--center { text-align: center; }
.plain__head { padding-bottom: var(--sp-block); margin-bottom: var(--sp-block); border-bottom: 1px solid var(--line); display: grid; gap: 0.8rem; }
.plain__head h1 { font-size: var(--fs-section); font-weight: var(--fw-bold); }
.plain__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; }
.plain--center .plain__lead { margin-inline: auto; }
.plain__fig { margin-bottom: var(--sp-block); }
.plain__fig img { width: 100%; }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; margin-top: var(--sp-section); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.post-nav a { font-weight: var(--fw-med); font-size: var(--fs-lead); max-width: 46%; line-height: 1.3; }
.post-nav a:last-child { text-align: end; margin-inline-start: auto; }
.empty { color: var(--muted); }
.navigation .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: var(--sp-block); }
.nav-links .page-numbers { min-width: 44px; height: 44px; padding: 0 0.9rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; }
.nav-links .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Editor content */
.prose { font-size: var(--fs-lead); line-height: 1.7; }
.prose > * { max-width: 66ch; }
.prose > .alignwide, .prose > .alignfull, .prose > .wp-block-image, .prose > .wp-block-gallery, .prose > .wp-block-columns { max-width: none; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: var(--fs-subtitle); font-weight: var(--fw-bold); margin: 1.9em 0 0.6em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.15em; font-weight: var(--fw-bold); margin: 1.5em 0 0.4em; }
.prose > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-inline-start: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose ul li::marker { color: var(--accent-2); }
.prose strong { font-weight: var(--fw-bold); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.prose blockquote { margin: 1.5em 0; padding-inline-start: 1.2em; border-inline-start: 2px solid var(--accent-2); font-size: 1.15em; }
.prose .wp-block-button__link { display: inline-flex; border-radius: 999px; background: var(--ink); color: var(--bone); padding: 0.8em 1.8em; text-decoration: none; }

/* Form */
.form { display: grid; gap: 1.1rem; }
.field { position: relative; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 0.7rem 0.2rem; appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field label { position: absolute; top: 0.7rem; inset-inline-start: 0.2rem; pointer-events: none; color: var(--muted); transition: opacity 0.2s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { opacity: 0; }
.field--select select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231f1b17' stroke-width='1.5'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 20px; background-position: left 0.2rem center; }
.field--area textarea { min-height: 6rem; resize: vertical; }
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.form__consent { font-size: var(--fs-xs); color: var(--muted); }
.form__consent p { margin: 0; }
.form__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.form .pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.8em; border-radius: 999px; border: 1px solid var(--ink); font-weight: var(--fw-med); font-size: var(--fs-small); transition: background-color 0.2s, color 0.2s; }
.form .pill--white { background: var(--ink); color: var(--bone); }
.form .pill--white:hover { background: transparent; color: var(--ink); }
.form .pill--outline:hover { background: var(--ink); color: var(--bone); }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form__notice { margin: 0; padding: 0.8em 1em; border: 1px solid var(--ink); }
.form__notice--error { border-color: #9b2c1f; color: #9b2c1f; }

/* Scroll reveal */
.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-rise].in { opacity: 1; transform: none; }

/* Accessibility menu and cookie notice */
.a11y { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 120; }
.a11y__toggle { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(31, 27, 23, 0.35); }
.a11y__toggle:hover, .a11y__toggle[aria-expanded="true"] { background: var(--accent-2); }
.a11y__panel { position: absolute; bottom: 68px; inset-inline-end: 0; width: min(320px, calc(100vw - 40px)); background: #fff; color: var(--ink); border-radius: 12px; padding: 1rem; box-shadow: 0 18px 50px rgba(31, 27, 23, 0.35); font-size: 1rem; line-height: 1.3; }
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 1.2rem; }
.a11y__head strong { font-weight: var(--fw-bold); }
.a11y__head button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; border-radius: 50%; }
.a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.a11y__grid button, .a11y__reset { min-height: 48px; padding: 0.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.a11y__grid button:hover, .a11y__reset:hover { border-color: var(--ink); }
.a11y__grid button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.a11y__reset { width: 100%; margin-top: 0.5rem; background: #fff; font-weight: var(--fw-bold); }
.a11y__link { display: block; margin-top: 0.75rem; text-align: center; text-decoration: underline; text-underline-offset: 0.18em; color: var(--accent); }
.a11y-links a { text-decoration: underline !important; text-underline-offset: 0.18em; }
.a11y-font body, .a11y-font body * { font-family: Arial, "Arial Hebrew", sans-serif !important; letter-spacing: 0 !important; }
.a11y-still *, .a11y-still *::before, .a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.cookie { position: fixed; z-index: 110; bottom: 16px; inset-inline-start: 16px; max-width: min(540px, calc(100vw - 110px)); background: var(--earth); color: var(--earth-ink); border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 12px 40px rgba(31, 27, 23, 0.4); font-size: var(--fs-small); line-height: 1.45; }
.cookie[hidden] { display: none; }
.cookie a { text-decoration: underline; text-underline-offset: 0.18em; white-space: nowrap; }
.cookie .btn { flex: none; min-height: 42px; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; text-align: center; } }

/* Hover fill of the edge cells runs all the way to the page edge, whatever the screen width */
a.cat, .cell { position: relative; }
a.cat:first-child:hover::before, a.cat:last-child:hover::after,
.cell:nth-child(3n + 1):hover::before, .cell:nth-child(3n):hover::after { content: ""; position: absolute; inset-block: 0; width: 50vw; background: var(--stone); pointer-events: none; }
a.cat:first-child:hover::before, .cell:nth-child(3n + 1):hover::before { left: 100%; }
a.cat:last-child:hover::after, .cell:nth-child(3n):hover::after { right: 100%; }
@media (max-width: 900px) {
  .cats a.cat:nth-child(odd):hover::before, .cell:hover::before { content: ""; position: absolute; inset-block: 0; width: 50vw; left: 100%; background: var(--stone); pointer-events: none; }
  .cats a.cat:nth-child(even):hover::after, .cell:hover::after { content: ""; position: absolute; inset-block: 0; width: 50vw; right: 100%; background: var(--stone); pointer-events: none; }
}
