/* hebrew */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/heebo-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin-ext */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/heebo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/heebo-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;
}
:root {
  --paper: #f9f6ef; --card: #ffffff; --ink: #26221f; --muted: #6e675e; --rule: #d9d0bf; --tag: #fff3d6;
  --ochre: #b7861c; --sea: #2f6f9f; --leaf: #3f8a5c; --plum: #6b55a5; --rose: #b5546b; --slate: #5d6b78; --teal: #2a8a8a;
  --f-body: "Heebo", "Assistant", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 60px; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--sea); outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; }
.wrap { max-width: 1040px; margin: 0 auto; }


/* hand-drawn box */
.sk { position: relative; isolation: isolate; }
.sk > svg.skf { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); z-index: -1; pointer-events: none; overflow: visible; }

/* top */
header.top { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 22px 0 18px; }
.name { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.name .nm { font-size: 22px; font-weight: 700; line-height: 1.1; }
.name .sub { font-size: 13px; color: var(--muted); display: block; font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
nav a { text-decoration: none; padding: 5px 14px; font-size: 14px; font-weight: 500; }
nav a[aria-current="page"] { font-weight: 700; }

/* pages */
section.page { display: grid; gap: 26px; padding-top: 18px; }
.kicker { font-weight: 500; font-size: 15px; display: block; margin-bottom: 2px; }
.title { font-size: clamp(28px, 4.5vw, 40px); font-weight: 500; line-height: 1.15; }
.lead { font-size: 18px; max-width: 62ch; color: var(--ink); margin: 8px 0 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.box { padding: 20px 22px; min-width: 0; }
.box h3 { font-size: 19px; margin-bottom: 6px; }
.box p { margin: 0 0 8px; }
.box .meta { font-size: 13px; color: var(--muted); }
.box .go { display: inline-block; margin-top: 8px; font-weight: 500; }
.stroke { width: 38px; height: 4px; border-radius: 3px; margin-bottom: 12px; }
ul.clean { margin: 0; padding-inline-start: 20px; }
ul.clean li { margin: 3px 0; }
.todo { display: inline-block; background: var(--tag); border: 1px dashed var(--ochre); color: #7a5a10; font-size: 12px; padding: 1px 10px; border-radius: 10px; margin-inline-start: 6px; vertical-align: 2px; }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; align-items: center; }
.photo { aspect-ratio: 3/4; max-width: 100%; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: 13px; }
.portrait { margin: 0; display: grid; gap: 8px; justify-items: center; }
.pframe { padding: 8px; width: 100%; max-width: 260px; }
.pframe img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; object-position: top; border-radius: 6px; }
.pswitch { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 13px; }
.pswitch button { font: inherit; font-size: 13px; background: transparent; border: 0; cursor: pointer; color: var(--muted); padding: 2px 8px; }
.pswitch button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline 2px var(--ochre); text-underline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { padding: 4px 14px; font-size: 14px; }

/* lists */
.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.vid { padding: 12px 16px; display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.vid .play { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-size: 13px; }
.vid span.t { font-size: 14px; line-height: 1.35; min-width: 0; }
.timeline { display: grid; gap: 14px; }
.tl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
.tl .yr { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; padding-top: 2px; }
.names { columns: 3 180px; column-gap: 24px; font-size: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.names li { break-inside: avoid; padding: 2px 0; }
.pubtools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search { flex: 1; min-width: 200px; max-width: 380px; padding: 7px 16px; }
.search input { border: 0; background: transparent; width: 100%; outline: none; font: inherit; }
.pub { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pub .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.pub .links a { font-size: 13px; margin-inline-end: 12px; }
.quote { font-style: italic; color: var(--muted); max-width: 60ch; }
.fig { display: flex; justify-content: center; }
.fig svg { max-width: 100%; height: auto; }
.contact dt { font-size: 13px; color: var(--muted); }
.contact dd { margin: 0 0 12px; font-size: 17px; }
.copy { font: inherit; font-size: 13px; padding: 2px 12px; cursor: pointer; background: transparent; border: 1px solid var(--ink); border-radius: 12px; margin-inline-start: 8px; }
footer { margin-top: 50px; padding-top: 18px; border-top: 1px dashed var(--rule); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } .photo { max-width: 220px; } .tl { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: no-preference) { section.page { animation: in .35s ease-out both; } @keyframes in { from { transform: translateY(6px); } to { transform: none; } } }
.langs { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.langs button { font: inherit; font-size: 13px; background: transparent; border: 0; padding: 3px 10px; cursor: pointer; color: var(--muted); }
.langs button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.topline .preview { text-align: start; }
[dir="rtl"] .go-arrow { display: inline-block; transform: scaleX(-1); }
.pubchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pubchips button { font: inherit; font-size: 13px; padding: 3px 12px; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.pubchips button[aria-pressed="true"] { font-weight: 700; }
.pubnote { font-size: 13px; color: var(--muted); }
.preview { font-size: 13px; color: var(--muted); }
.preview b { color: var(--ink); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--card); padding: 6px 12px; border: 1px solid var(--ink); border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.pframe picture { display: block; }
.contact-box { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 420px) { .contact-box { grid-template-columns: 1fr; } }
.pointer img { display: block; width: 120px; height: auto; transform: scaleX(-1); }
[dir="rtl"] .pointer img { transform: none; }
.contact-box.no-pointer { grid-template-columns: 1fr; }
@media (max-width: 420px) { .pointer img { width: 96px; } }
/* academic home */
.affils { list-style: none; margin: 14px 0 0; padding: 0; font-size: 15px; color: var(--muted); }
.affils li { padding: 1px 0; }
.quietlinks { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.quietlinks a { color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px 40px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.plainlist { list-style: none; margin: 6px 0 0; padding: 0; }
.plainlist li { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.plainlist a { text-decoration: none; }
.plainlist a:hover { text-decoration: underline; }
#recent { margin: 4px 0 10px; }
#recent .pub:last-child { border-bottom: 0; }
.summary { max-width: 68ch; font-size: 17px; }
.summary p { margin: 12px 0 0; }
#p-home > :last-child { border-top: 1px dashed var(--rule); padding-top: 14px; }
.tl.side { color: var(--muted); font-size: 14px; border-inline-start: 2px dashed var(--rule); padding-inline-start: 10px; margin-inline-start: 6px; }
.tl.side .yr { font-size: 13px; }
.sidek { font-weight: 500; }
.sidek::after { content: ":"; }
.vcard { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 10px 14px; }
.vcard .thumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 6px; overflow: hidden; background: var(--tag); border: 1px dashed var(--rule); }
.vcard .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard .thumb .play { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); border: 1.5px solid var(--ink); font-size: 13px; }
.vcard .t { padding: 0 4px; }

/* supervised students: Hebrew names on the Hebrew page, English names otherwise */
.names-he{display:none}
html[lang="he"] .names-he{display:revert}
html[lang="he"] .names-en{display:none}

/* Tel Aviv University logo on Home */
.tau-logo{display:inline-block;margin-top:16px}
.tau-logo img{display:block;width:110px;height:auto}
