/* Itai Ron — portfolio draft, round 2
   One family (Helvetica Neue) for everything; Hebrew in a matching sans.
   Tokens: paper / ink / muted / line + one accent (switchable in the variants panel). */

@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url(../assets/type/heebo-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url(../assets/type/heebo-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 400; font-display: swap; src: url(../assets/type/ibm-plex-sans-hebrew-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 700; font-display: swap; src: url(../assets/type/ibm-plex-sans-hebrew-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

/* STIX Two Text: the reading face of the second draft. The installed macOS font is used first, the bundled copy is a fallback. */
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: local("STIX Two Text"), local("STIXTwoText"), local("STIXTwoText-Regular"), url(../assets/type/stix-two-text-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: local("STIX Two Text"), local("STIXTwoText"), local("STIXTwoText-Regular"), url(../assets/type/stix-two-text-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-weight: 400; font-display: swap;
  src: local("STIX Two Text Italic"), local("STIXTwoText-Italic"), url(../assets/type/stix-two-text-latin-400-italic.woff2) format("woff2"); }

:root {
  --paper: #ffffff;
  --ink: #000000;
  --muted: #77766f;
  --line: #e3e2de;
  --accent: #dcfa14;
  --on-accent: #000000;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --reading: "STIX Two Text", "Times New Roman", serif;
  --hebrew: "Heebo", "Helvetica Neue", Arial, sans-serif;
  --he-fs: 14px;
  --he-lh: 1.5;

  --menu-fs: 11px;                      /* menu, captions, small labels */
  --text-fs: 15px;                      /* project texts */
  --pad: 22px;
  --nav-w: calc(var(--pad) + var(--menu-fs) * 17.5 + 18px);   /* where content starts */
  --vpad: max(44px, 7vh);
  --cap-h: 30px;
  --frame-h: calc(100svh - var(--vpad) * 2 - var(--cap-h));
  --gap: 20px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}

html[data-msize="12"] { --menu-fs: 12px; }
html[data-msize="13"] { --menu-fs: 13px; }
html[data-msize="14"] { --menu-fs: 14px; }
html[data-accent="lime"]    { --accent: #dcfa14; --on-accent: #000; }
html[data-accent="emerald"] { --accent: #00a86b; --on-accent: #000; }
html[data-accent="pine"]    { --accent: #1e4d2b; --on-accent: #fff; }
html[data-accent="none"]    { --accent: #000;    --on-accent: #fff; }
html[data-hebrew="plex"]    { --hebrew: "IBM Plex Sans Hebrew", "Helvetica Neue", Arial, sans-serif; }
html[data-hebrew="times"]   { --hebrew: "Times New Roman", "STIX Two Text", serif; --he-fs: 16px; --he-lh: 1.28; }
html[data-tfont="sans"]     { --reading: var(--sans); }
html[data-sub="side"]       { --nav-w: calc(var(--pad) + var(--menu-fs) * 30 + 18px); }
html[data-menu="dot"]       { --nav-w: calc(var(--pad) + 12px); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-fs)/1.4 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
p, h1, h2, figure, blockquote { margin: 0; }
h1, h2 { font: inherit; font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: -40px; z-index: 100; background: var(--ink); color: var(--paper); padding: 6px 8px; }
.skip:focus { top: var(--pad); }
main:focus { outline: none; }
.small { font-size: var(--menu-fs); line-height: 1.36; font-weight: 700; letter-spacing: .01em; }
.muted { color: var(--muted); }

/* ───────────────────────── Navigation (one place, left) */

.site-nav {
  position: fixed; top: var(--pad); left: var(--pad); z-index: 40;
  width: calc(var(--menu-fs) * 17.3);
  font-size: var(--menu-fs); line-height: 1.36; font-weight: 700; letter-spacing: .01em;
  transition: opacity .6s .4s;
}
.brand { display: inline-block; margin-left: calc(var(--menu-fs) * 1.1); font-size: calc(var(--menu-fs) * 1.2); text-transform: uppercase; letter-spacing: .03em; }
.menu { margin-top: 2.7em; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu .sec { margin: 0 0 .18em; }
.menu .sec.is-gap { margin-top: 1.5em; }
.menu .sec-btn, .menu .sec-link { display: inline-block; padding-left: 1.1em; }
.menu .sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.menu .sub > ul { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .32s; }
.menu .sec.is-open .sub { grid-template-rows: 1fr; }
.menu .sec.is-open .sub > ul { visibility: visible; transition-delay: 0s; }
.menu .sub li:first-child { margin-top: .27em; }
.menu .sub li:last-child { margin-bottom: .7em; }
.menu .sub a { display: inline-block; padding-left: 2em; font-weight: 400; }
.menu .sub a[aria-current="page"] { font-weight: 700; }
.menu .sub a.is-empty { color: var(--muted); }

.lbl { padding: 0 3px; margin: 0 -3px; transition: background-color .15s, color .15s; }
html[data-contrast="plate"] .site-nav a:hover .lbl,
html[data-contrast="plate"] .site-nav button:hover .lbl,
html[data-contrast="plate"] .site-nav a:focus-visible .lbl { background: var(--accent); color: var(--on-accent); }
html[data-contrast="plate"].preview-on .menu .lbl,
html[data-contrast="always"] .site-nav .lbl { background: rgba(255,255,255,.94); color: var(--ink); }
html[data-contrast="plate"].preview-on .menu a:hover .lbl,
html[data-contrast="always"] .site-nav a:hover .lbl,
html[data-contrast="always"] .site-nav button:hover .lbl,
html[data-contrast="always"] .site-nav a:focus-visible .lbl { background: var(--accent); color: var(--on-accent); }
html[data-contrast="shadow"].is-home .site-nav,
html[data-contrast="shadow"].preview-on .site-nav,
html[data-contrast="shadow"].on-photo .site-nav,
html[data-contrast="shadow"].is-home .h-title { color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.7); }
html[data-contrast="shadow"] .site-nav a:hover .lbl,
html[data-contrast="shadow"] .site-nav button:hover .lbl,
html[data-contrast="shadow"] .site-nav a:focus-visible .lbl { background: var(--accent); color: var(--on-accent); text-shadow: none; }
html[data-contrast="invert"] .site-nav, html[data-contrast="invert"] .h-title { mix-blend-mode: difference; color: #fff; }
html[data-contrast="invert"] .site-nav a:hover .lbl, html[data-contrast="invert"] .site-nav button:hover .lbl { text-decoration: underline; text-underline-offset: 2px; }

/* the dot that travels to where you are: accent colour, no ring by default */
.nav-dot {
  position: absolute; left: 0; top: 0;
  width: max(5px, calc(var(--menu-fs) * .5)); height: max(5px, calc(var(--menu-fs) * .5)); border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 .5px #fff;
  transform: translate(var(--dx, 0px), var(--dy, -40px));
  transition: transform .45s var(--ease), opacity .2s;
  opacity: 0;
}
.nav-dot.is-on { opacity: 1; }
html[data-contrast="invert"] .nav-dot { background: #fff; box-shadow: none; }

/* submenu to the side (Slowness) */
html[data-sub="side"] .menu > ul { position: relative; }
html[data-sub="side"] .menu .sec { position: static; }
html[data-sub="side"] .menu .sub { position: absolute; left: calc(var(--menu-fs) * 11.6); top: 0; display: block; visibility: hidden; opacity: 0; transition: opacity .2s; }
html[data-sub="side"] .menu .sec.is-open .sub { visibility: visible; opacity: 1; }
html[data-sub="side"] .menu .sub li:first-child { margin-top: 0; }
html[data-sub="side"] .menu .sub a { padding-left: 1.1em; white-space: nowrap; }

/* collapsed into a dot */
.nav-toggle { display: none; width: 1.1em; height: 1.36em; vertical-align: top; }
.nav-toggle-dot { display: block; width: .6em; height: .6em; margin-top: .6em; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 .5px #fff; transition: transform .3s var(--ease); }
html[data-menu="dot"] .nav-toggle { display: inline-block; }
html[data-menu="dot"] .brand { margin-left: 0; }
html[data-menu="dot"] .site-nav:not(.is-open) .menu,
html[data-menu="dot"] .site-nav:not(.is-open) .nav-dot { visibility: hidden; opacity: 0; }
html[data-menu="dot"] .menu { transition: opacity .2s; }
html[data-menu="dot"] .site-nav.is-open::before {
  content: ""; position: absolute; z-index: -1;
  inset: calc(var(--pad) * -1) auto auto calc(var(--pad) * -1);
  width: calc(100% + var(--pad) * 2); height: calc(100% + var(--pad) * 2);
  background: var(--paper);
}
html[data-menu="dot"][data-sub="side"] .site-nav.is-open::before { width: calc(var(--menu-fs) * 32 + var(--pad) * 2); }
html[data-menu="dot"] .site-nav.is-open .nav-toggle-dot { transform: scale(1.4); }

/* hover previews */
.preview-bg { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .25s; background: var(--paper); }
.preview-bg img { width: 100%; height: 100%; object-fit: cover; }
.preview-bg.is-on { opacity: 1; }
.preview-side { position: fixed; z-index: 45; pointer-events: none; opacity: 0; transition: opacity .18s; width: 300px; }
.preview-side img { width: 100%; height: auto; }
.preview-side.is-on { opacity: 1; }
html[data-preview="side"] .preview-bg, html[data-preview="bg"] .preview-side { display: none; }

/* ───────────────────────── Intro: the name rises into the brand position */

.h-title {
  position: fixed; z-index: 41; margin: 0;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: calc(var(--menu-fs) * 1.2); line-height: 1.36; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap; visibility: hidden;
}
.h-role { color: var(--muted); transition: opacity .5s; }
html.intro-start .h-title, html.intro-run .h-title { visibility: visible; }
html.intro-run .h-title {
  left: var(--brand-x); top: var(--brand-y); transform: translate(0, 0);
  transition: left 1.1s var(--ease), top 1.1s var(--ease), transform 1.1s var(--ease);
}
html.intro-run .h-role { opacity: 0; }
html.intro-start .site-nav { opacity: 0; transition: none; }
html.intro-run .site-nav .brand { visibility: hidden; }

.curtain { position: fixed; inset: 0; z-index: 35; background: var(--paper); pointer-events: none; visibility: hidden; clip-path: inset(0 0 0 0); }
html.intro-start .curtain { visibility: visible; }
html.intro-run .curtain { visibility: visible; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }

/* ───────────────────────── Home: photographs fill the screen, the menu sits on top */

.home figure { margin: 0; position: relative; }
.home img { width: 100%; height: 100%; object-fit: cover; }
.h-cap, .h-count { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.55); font-size: var(--menu-fs); line-height: 1.36; font-weight: 700; letter-spacing: .01em; }
.h-cap { position: absolute; right: var(--pad); bottom: var(--pad); }
.h-cap a:hover { text-decoration: underline; text-underline-offset: 2px; }

.h-panel { position: sticky; top: 0; height: 100svh; background: var(--paper); }

.h-fade { position: relative; height: 100svh; cursor: pointer; }
.h-fade figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.h-fade figure.is-on { opacity: 1; }
.h-fade figure:not(.is-on) { pointer-events: none; }
.h-fade .h-cap { right: calc(var(--pad) + 4em); }
.h-count { position: fixed; right: var(--pad); bottom: var(--pad); font-variant-numeric: tabular-nums; }

.h-strip { display: flex; gap: 4px; height: 100svh; overflow-x: auto; scrollbar-width: none; }
.h-strip::-webkit-scrollbar { display: none; }
.h-strip figure { flex: none; height: 100%; }
.home .h-strip img { width: auto; height: 100%; object-fit: initial; }

/* ───────────────────────── Series: text and frames in one row */

.strip { height: 100svh; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; outline-offset: -2px; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; }
.strip.is-dragging img { pointer-events: none; }
.strip-track { display: flex; align-items: center; gap: var(--gap); height: 100%; padding: var(--vpad) var(--pad) var(--vpad) var(--nav-w); width: max-content; }
.frame { margin: 0; flex: none; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.frame img { width: auto; height: min(var(--frame-h), calc((100vw - var(--nav-w) - var(--pad) * 2) * var(--r, .667))); background: #f0f0ee; }
.frame figcaption, .c-frame figcaption { width: 0; min-width: 100%; min-height: var(--cap-h); padding-top: 7px; display: flex; gap: 0 .9em; font-size: var(--menu-fs); line-height: 1.36; letter-spacing: .01em; }
.f-n { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.f-of { color: var(--muted); }
.f-cap { max-width: 46em; }
.f-cap a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.f-cap a:hover { text-decoration-color: currentColor; }

/* the text column: first in the row, leaves with the photographs */
.s-intro {
  flex: none; align-self: center;
  width: clamp(235px, 22vw, 335px);
  max-height: var(--frame-h); overflow-y: auto; scrollbar-width: thin;
  margin-right: clamp(10px, 3vw, 44px);
  cursor: auto; user-select: text; -webkit-user-select: text;
}
.s-name { margin-bottom: .35em; }
.t-lang { display: flex; gap: 4px; margin-bottom: 1.1em; font-size: var(--menu-fs); line-height: 1.36; font-weight: 700; letter-spacing: .01em; }
.t-lang button { min-width: 2.6em; padding: .12em .5em; text-align: center; border: 1px solid #c9c8c2; color: var(--ink); transition: background-color .15s, border-color .15s, color .15s; }
.t-lang button:hover { border-color: var(--ink); }
.t-lang button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.t-lang .he { font-family: var(--hebrew); letter-spacing: 0; }
.t-body { font: 400 16px/1.28 var(--reading); letter-spacing: -.014em; }
.t-body p { text-indent: 1.15em; }
.t-body p + p { margin-top: .8em; }
.t-body[lang="he"] { direction: rtl; font-family: var(--hebrew); font-size: var(--he-fs); line-height: var(--he-lh); letter-spacing: 0; }
.t-missing { margin-bottom: .8em; }
.t-acts { display: grid; justify-items: start; gap: .3em; margin-top: 1.2em; }
.t-acts a, .t-acts button { text-decoration: underline; text-decoration-color: #b9b8b2; text-underline-offset: 3px; }
.t-acts a:hover, .t-acts button:hover { text-decoration-color: currentColor; }
.t-acts .he { font-family: var(--hebrew); }
.s-end { flex: none; width: 230px; align-self: center; }
.draft-note {
  font: 400 12px/16px var(--sans); color: var(--muted);
  border: 1px dashed #bdbcb6; padding: 8px 10px; max-width: 34em; letter-spacing: 0;
}

/* overview grid (secondary mode) */
.s-overview { padding: calc(var(--pad) + 2px) var(--pad) 60px var(--nav-w); }
.s-overview .t-acts { margin: 0 0 22px; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 26px var(--gap); align-items: end; }
.s-grid img { width: 100%; height: auto; }
.s-grid span { display: block; margin-top: 6px; font-size: var(--menu-fs); font-weight: 700; }
.s-grid button:hover span { color: var(--muted); }

/* ───────────────────────── Reading pages */

.page { padding: calc(var(--pad) + 2px) var(--pad) 90px var(--nav-w); max-width: calc(var(--nav-w) + 900px); }
.page-title { margin-bottom: 1.2em; }
.page .draft-note { margin-bottom: 40px; }

/* essay: movement, pause, movement */
.essay { --text-fs: 16px; font-size: var(--text-fs); line-height: 1.5; padding-bottom: 120px; }
.e-head { padding: calc(var(--pad) + 2px) var(--pad) 0 var(--nav-w); max-width: calc(var(--nav-w) + 560px); }
.e-meta { margin-top: .2em; color: var(--muted); }
.e-meta a { color: var(--ink); text-decoration: underline; text-decoration-color: #b9b8b2; text-underline-offset: 3px; }
.e-lead { margin-top: 2.2em; max-width: 31em; }
.e-flow, .e-pause { padding-left: var(--nav-w); padding-right: var(--pad); }
.e-lead, .e-flow p, .e-pause p { font: 400 16px/1.28 var(--reading); letter-spacing: -.014em; text-indent: 1.15em; }
.e-flow p, .e-pause p { max-width: 31em; }
.e-flow p + p, .e-pause p + p { margin-top: .8em; }
.e-flow { padding-top: 40px; padding-bottom: 40px; }
.e-flow { padding-left: 0; padding-right: var(--pad); }
.e-flow p { margin-left: max(var(--nav-w), calc(50vw - 15.5em)); }
.e-pause { display: grid; grid-template-columns: minmax(0, 496px) minmax(0, 1fr); gap: 0 6vw; padding-top: 90px; padding-bottom: 40px; }
.e-pause .p-text { position: sticky; top: 22vh; align-self: start; }
.e-pause .p-photos { display: grid; gap: 34vh; padding: 14vh 0 22vh; }
.e-pause img { width: 100%; height: auto; }
.e-pause figcaption, .e-bleed figcaption { padding-top: 7px; font-size: var(--menu-fs); line-height: 1.36; }
.e-bleed { position: sticky; top: 0; height: 100svh; z-index: 0; }
.e-bleed img { width: 100%; height: 100svh; object-fit: cover; }
.e-bleed figcaption { position: absolute; left: var(--nav-w); bottom: var(--pad); color: #fff; }
.e-bleed .f-of { color: rgba(255,255,255,.7); }
.e-over { position: relative; z-index: 1; background: var(--paper); }

/* essay opening: the first paragraph over a full-screen photograph */
.e-hero { position: relative; height: 100svh; color: #fff; }
.e-hero figure { position: absolute; inset: 0; margin: 0; }
.e-hero img { width: 100%; height: 100%; object-fit: cover; }
.e-hero figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(0,0,0,.44), rgba(0,0,0,.14) 70%, rgba(0,0,0,0) 100%); }
.e-hero figcaption { position: absolute; z-index: 1; left: var(--nav-w); bottom: var(--pad); padding: 0; font-size: var(--menu-fs); line-height: 1.36; }
.e-hero .f-of { color: rgba(255,255,255,.7); }
.e-hero-text {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(496px, calc(100vw - var(--pad) * 2));
  text-shadow: 0 1px 14px rgba(0,0,0,.35);
  animation: e-appear 1.2s .5s both ease;
}
@keyframes e-appear { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
.e-hero .e-meta { color: rgba(255,255,255,.82); }
.e-hero .e-meta a { color: #fff; text-decoration-color: rgba(255,255,255,.6); }
.e-hero .e-lead { margin-top: 1.6em; max-width: none; }
.e-hero .t-acts button { text-decoration-color: rgba(255,255,255,.6); }
.e-hero .t-acts button:hover { text-decoration-color: #fff; }
.essay .s-overview { padding-top: 64px; }

/* Projects section: photographs go down, the text stays on the right */
.series--column { --side-w: clamp(260px, 24vw, 360px); }
.c-grid { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 64px); padding: 0 var(--pad) 0 var(--nav-w); }
.c-photos { container-type: inline-size; display: grid; justify-items: start; gap: 16vh; padding: var(--vpad) 0 40vh; }
.c-frame { margin: 0; display: flex; flex-direction: column; }
.c-frame img { width: auto; height: min(calc(100svh - var(--vpad) * 2 - var(--cap-h)), calc(100cqw * var(--r, .667))); background: #f0f0ee; }
.c-dup { display: none; }
.c-end { justify-self: start; }
.c-side { order: -1; padding-top: var(--vpad); }
.c-side.fits { position: sticky; top: 0; align-self: start; }
.c-side .s-intro { width: auto; max-height: none; overflow: visible; margin: 0; align-self: auto; }
.c-pin { position: sticky; top: var(--vpad); margin-top: 2.6em; }
.c-side.fits .c-pin { position: static; }
.c-pin-n { display: block; margin-bottom: .25em; font-size: var(--menu-fs); line-height: 1.36; }
.c-pin-cap { font-weight: 700; }
.series--column .s-overview { padding-top: var(--vpad); }

/* publications */
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.pub a { display: grid; grid-template-columns: clamp(200px, 20vw, 280px) 1fr; gap: 24px; align-items: start; }
.pub a:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.pub-pages { display: flex; gap: 8px; overflow: hidden; }
.pub-pages img { height: 240px; width: auto; flex: none; }

.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 40px; }
.about-cols ul { list-style: none; margin: 0; padding: 0; }
.about-cols li + li { margin-top: .8em; }
.about-cols li a { text-decoration: underline; text-decoration-color: #b9b8b2; text-underline-offset: 3px; }

.contact-list { display: grid; grid-template-columns: 7em 1fr; gap: .45em 1em; margin: 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }

/* ───────────────────────── Variants panel (draft tool, not part of the design) */
.variants { -webkit-font-smoothing: antialiased; }

.variants {
  position: fixed; right: 14px; top: 14px; z-index: 90;
  width: 300px; max-height: calc(100svh - 28px); overflow: auto;
  background: #f3f3f1; color: #1d1d1b; border: 1px solid #d6d5d0;
  font: 400 12px/16px -apple-system, system-ui, sans-serif; letter-spacing: 0;
}
.variants.is-closed { width: auto; overflow: visible; }
.v-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 10px; font-weight: 600; position: sticky; top: 0; background: #f3f3f1; }
.v-head button { font-weight: 600; }
.variants.is-closed .v-body { display: none; }
.v-body { padding: 0 10px 10px; }
.v-group { margin: 0 0 10px; padding: 0; border: 0; }
.v-group legend { padding: 0; margin-bottom: 4px; color: #6d6c66; }
.v-opts { display: flex; flex-wrap: wrap; gap: 4px; }
.v-opts label { position: relative; }
.v-opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.v-opts span { display: inline-block; padding: 3px 7px; border: 1px solid #cfcec8; background: #fff; }
.v-opts input:checked + span { background: #1d1d1b; color: #fff; border-color: #1d1d1b; }
.v-opts input:focus-visible + span { outline: 2px solid #1d1d1b; outline-offset: 1px; }
.v-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }
.v-actions { display: flex; gap: 10px; padding-top: 4px; border-top: 1px solid #dddcd7; margin-top: 4px; }
.v-actions button { text-decoration: underline; text-underline-offset: 2px; padding-top: 6px; }

/* ───────────────────────── Phone */

@media (max-width: 760px) {
  :root, html[data-sub="side"], html[data-menu="dot"] { --pad: 16px; --nav-w: 16px; --vpad: 64px; --cap-h: 40px; --frame-h: min(58svh, calc(100svh - 150px)); }
  .nav-toggle { display: inline-block; }
  .brand { margin-left: 0; }
  .site-nav { width: calc(100vw - 32px); }
  .site-nav::after { content: ""; position: fixed; z-index: -2; left: 0; top: 0; right: 0; height: 46px; background: var(--paper); }
  html.is-home .site-nav::after, html.on-photo .site-nav::after { display: none; }
  .site-nav:not(.is-open) .menu, .site-nav:not(.is-open) .nav-dot { visibility: hidden; opacity: 0; }
  .site-nav.is-open::before { content: ""; position: fixed; z-index: -1; inset: 0; background: var(--paper); }
  .menu { font-size: 15px; line-height: 22px; }
  html[data-sub="side"] .menu .sub { position: static; display: grid; visibility: visible; opacity: 1; }
  html[data-sub="side"] .menu .sub a { padding-left: 2em; }
  .preview-bg, .preview-side { display: none !important; }
  .s-intro { width: min(74vw, 300px); }
  .frame img { height: min(var(--frame-h), calc((100vw - 32px) * var(--r, .667))); }
  .page, .e-head, .e-flow, .e-pause, .s-overview { padding-left: var(--pad); padding-right: var(--pad); }
  .page, .e-head, .s-overview { padding-top: 64px; }
  .e-flow p { margin-left: 0; }
  .e-pause { display: block; padding-top: 40px; }
  .e-pause .p-text { position: static; }
  .e-pause .p-photos { gap: 28px; padding: 28px 0; }
  .e-bleed { position: relative; height: auto; }
  .e-bleed img { height: auto; object-fit: contain; }
  .e-bleed figcaption { position: static; color: var(--ink); padding-left: var(--pad); }
  .pub a { grid-template-columns: 1fr; }
  .c-grid { grid-template-columns: 1fr; padding: 64px var(--pad) 0; }
  .c-side { order: -1; padding-top: 0; }
  .c-side.fits { position: static; }
  .c-pin { display: none; }
  .c-dup { display: inline; }
  .c-photos { padding-top: 32px; gap: 40px; }
  .e-hero-text { font-size: 14px; }
  .pub-pages img { height: 170px; }
  .about-cols { grid-template-columns: 1fr; }
  .variants { right: 8px; top: auto; bottom: 8px; width: calc(100vw - 16px); max-height: 60svh; }
  .variants.is-closed { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* hierarchy: titles one step up, the byline in the reading face at text size */
.s-name, .essay h1, .page-title { font-size: 20px; line-height: 1.2; letter-spacing: -.005em; }
.e-meta { font: 400 16px/1.28 var(--reading); letter-spacing: -.014em; margin-top: .45em; }
@media (max-width: 760px) { .s-name, .essay h1, .page-title { font-size: 18px; } }

/* the full text follows Haaretz Magazine: the same 73 paragraphs, marked only by the indent, no gaps between them */
.essay .e-flow p + p, .essay .e-pause p + p { margin-top: 0; }

/* Overview link that stays in view */
html:not([data-ov="text"]) .t-acts > [data-act="overview"] { display: none; }
.menu .ov-item .ov-btn { display: inline-block; padding-left: 2em; font-weight: 400; }
.menu .ov-item.in-sub .ov-btn { padding-left: 3em; }
html[data-sub="side"] .menu .ov-item.in-sub .ov-btn { padding-left: 2em; }
.menu .ov-item .ov-btn[aria-pressed="true"] .lbl { background: var(--accent); color: var(--on-accent); }
.ov-corner { position: fixed; z-index: 40; left: calc(var(--pad) + var(--menu-fs) * 1.1 - 3px); bottom: var(--pad); display: none; gap: 6px; align-items: baseline;
  font-size: var(--menu-fs); line-height: 1.36; font-weight: 700; letter-spacing: .01em; }
.ov-corner.is-on { display: flex; }
.ovc-n:not(:empty), .ov-corner .lbl { background: rgba(255,255,255,.94); padding: 0 3px; margin: 0; }
.ovc-n { font-variant-numeric: tabular-nums; }
.ov-corner .ov-btn:hover .lbl, .ov-corner .ov-btn[aria-pressed="true"] .lbl { background: var(--accent); color: var(--on-accent); }
@media (max-width: 760px) { .ov-corner { left: var(--pad); bottom: calc(var(--pad) + 40px); } }

/* with the corner counter the number under each photograph is not repeated */
html[data-ov="corner"] figcaption .f-n, html[data-ov="corner"] .c-pin-n { display: none; }
@media (max-width: 760px) { html[data-ov="menu"] figcaption .f-n, html[data-ov="menu"] .c-pin-n { display: none; } }
/* Overview reads as a link */
.ov-btn .lbl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ───────── Final site additions */
/* Inter stands in for Helvetica Neue on computers that do not have it (Windows, Android) */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../assets/type/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../assets/type/inter-latin-700-normal.woff2) format("woff2"); }
:root { --sans: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif; }

/* Hebrew in the full text */
.essay [lang="he"] p, .e-hero-text[lang="he"] .e-lead { font-family: var(--hebrew); font-size: 15px; line-height: 1.6; letter-spacing: 0; }
.e-hero-text[lang="he"] h1 { font-family: var(--hebrew); }
.e-hero-text .t-lang { margin: .6em 0 0; }
.e-hero .t-lang button { border-color: rgba(255,255,255,.7); color: #fff; text-shadow: none; }
.e-hero .t-lang button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; }
.e-flow p { margin-left: 0; margin-inline-start: max(var(--nav-w), calc(50vw - 15.5em)); }
.s-name [lang="he"] { font-family: var(--hebrew); }

/* About and Contact */
.about-lines p, .about-awards li { font: 400 16px/1.28 var(--reading); letter-spacing: -.014em; }
.about-h { margin: 2.2em 0 .7em; }
.about-awards { list-style: none; margin: 0; padding: 0; max-width: 34em; }
.about-awards li { display: grid; grid-template-columns: 3.4em 1fr; gap: 0 .6em; }
.about-awards li + li { margin-top: .5em; }
.about-awards .yr { font-variant-numeric: tabular-nums; }
.contact-list { grid-template-columns: 6.5em 1fr; }
.contact-list a { text-decoration: underline; text-decoration-color: #b9b8b2; text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: currentColor; }
@media (max-width: 760px) { .e-flow p { margin-inline-start: 0; } }
/* Hebrew: the title and the language boxes follow the text to the right */
.s-intro.is-he .s-name { text-align: right; }
.s-intro.is-he .t-lang { justify-content: flex-end; }
.e-hero-text .t-lang { width: max-content; }
