/* Memorial site for Alexander Kogan. First draft. */

/* Self-hosted fonts. No third-party requests. */
/* cyrillic-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/SlGWmQSNjdsmc35JDF1K5GRweDY1ZyHKpWiGIg.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/SlGWmQSNjdsmc35JDF1K5GRweD81ZyHKpWiGIg.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/SlGWmQSNjdsmc35JDF1K5GRweDU1ZyHKpWiGIg.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/SlGWmQSNjdsmc35JDF1K5GRweDs1ZyHKpWg.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;
}

/* cyrillic-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SlGWmQSNjdsmc35JDF1K5GRweDY1ZyHKpWiGIg.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SlGWmQSNjdsmc35JDF1K5GRweD81ZyHKpWiGIg.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SlGWmQSNjdsmc35JDF1K5GRweDU1ZyHKpWiGIg.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SlGWmQSNjdsmc35JDF1K5GRweDs1ZyHKpWg.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;
}

/* cyrillic-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR4SDk_YAPIlWk.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GRxSDk_YAPIlWk.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR7SDk_YAPIlWk.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR1SDk_YAPI.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;
}

/* cyrillic-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR4SDk_YAPIlWk.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GRxSDk_YAPIlWk.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR7SDk_YAPIlWk.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR1SDk_YAPI.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;
}

/* cyrillic-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR4SDk_YAPIlWk.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GRxSDk_YAPIlWk.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR7SDk_YAPIlWk.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/SlGUmQSNjdsmc35JDF1K5GR1SDk_YAPI.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;
}

/* hebrew */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW7Ll4brkiY-xBg.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: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW77l4brkiY-xBg.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW7Dl4brkiY8.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;
}

/* hebrew */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW7Ll4brkiY-xBg.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: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW77l4brkiY-xBg.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW7Dl4brkiY8.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;
}

/* hebrew */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW7Ll4brkiY-xBg.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: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW77l4brkiY-xBg.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/j8_w6_fAw7jrcalD7oKYNX0QfAnPW7Dl4brkiY8.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 {
  --bg: #f4ede1;
  --bg-soft: #ebe2d2;
  --bg-deep: #e3d8be;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-muted: #78716c;
  --accent: #1e3a5f;
  --accent-warm: #a16207;
  --rule: #c8bda4;
  --rule-soft: #d6cdb8;

  --font-body: 'Frank Ruhl Libre', 'EB Garamond', Georgia, serif;
  --font-display: 'EB Garamond', 'Frank Ruhl Libre', Georgia, serif;
  --font-hebrew: 'Frank Ruhl Libre', 'David Libre', serif;

  --content-width: 640px;
  --wide-width: 980px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(161, 98, 7, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(30, 58, 95, 0.03) 0%, transparent 50%);
  min-height: 100vh;
}

[dir="rtl"] body {
  font-family: var(--font-hebrew);
  letter-spacing: 0;
}

/* paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.34  0 0 0 0 0.20  0 0 0 0.06 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

/* ---------- LANG SWITCHER ---------- */

.lang {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  z-index: 50;
  display: flex;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(244, 237, 225, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
}
.lang a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lang a:hover { color: var(--accent); }
.lang a.active { color: var(--ink); font-style: normal; font-weight: 700; }
.lang span { color: var(--rule); }

[dir="rtl"] .lang { right: auto; left: 1.6rem; }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 6vw;
  gap: 4rem;
  overflow: hidden;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2rem;
}
.hero__name em {
  font-style: normal;
  font-weight: 500;
  display: block;
}

.hero__alt-names {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 2rem 0;
  border-left: 2px solid var(--accent-warm);
  padding-left: 1.2rem;
}
.hero__alt-names span { display: block; }
.hero__alt-names .he {
  font-family: var(--font-hebrew);
  font-style: normal;
  direction: rtl;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 500;
}

[dir="rtl"] .hero__alt-names {
  border-left: none;
  border-right: 2px solid var(--accent-warm);
  padding-left: 0;
  padding-right: 1.2rem;
}
[dir="rtl"] .hero__alt-names .he { direction: rtl; text-align: right; }
[dir="rtl"] .hero__alt-names .lat { direction: ltr; text-align: left; }

.hero__dates {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 1.5rem;
}
.hero__dates::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero__lede {
  margin-top: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 30em;
  font-style: italic;
  font-family: var(--font-display);
}
.hero__author {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.hero__author::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ink-muted);
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-2px);
}
[dir="rtl"] .hero__author::before { margin-right: 0; margin-left: 0.7rem; }

.hero__photo {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__photo picture { display: block; }
.hero__photo img {
  display: block;
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(28, 25, 23, 0.08),
    0 18px 36px -10px rgba(28, 25, 23, 0.22);
  filter: sepia(0.06) contrast(1.02);
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: -2rem;
  background: radial-gradient(circle, rgba(161, 98, 7, 0.06), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--ink-muted);
  margin: 0.8rem auto 0;
  animation: pulse 2.4s ease-in-out infinite;
}
.scroll-cue--continue {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  text-align: center;
  margin: 1.5rem auto 4rem;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- LIFE / BIOGRAPHY ---------- */

.life {
  position: relative;
  padding: 8rem 0 6rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule-soft);
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-warm);
  text-align: center;
  margin-bottom: 4rem;
}
.section-title::before,
.section-title::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent-warm);
  vertical-align: middle;
  margin: 0 0.8rem;
}

.life__entries {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
  position: relative;
}

[dir="rtl"] .entry { grid-template-columns: 1fr 200px; }

.entry__year {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  position: sticky;
  top: 2rem;
  padding-top: 0.4rem;
}

[dir="rtl"] .entry__year {
  order: 2;
  text-align: left;
  font-style: normal;
}

.entry__body {
  max-width: 32em;
}
.entry__heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.entry__body p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.entry__body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.85;
  padding-right: 0.6rem;
  padding-top: 0.4rem;
  font-weight: 500;
  color: var(--accent);
}

[dir="rtl"] .entry__body p:first-of-type::first-letter {
  float: right;
  padding-right: 0;
  padding-left: 0.6rem;
}

/* photo within entry */
.entry__photo {
  margin: 2rem 0;
}
.entry__photo img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 12px 32px -8px rgba(28, 25, 23, 0.2);
}
.entry__photo figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.entry__photo--breakout {
  width: calc(100% + 8rem);
  margin-left: -4rem;
}
[dir="rtl"] .entry__photo--breakout { margin-left: 0; margin-right: -4rem; }

/* ---------- GALLERY (funeral) ---------- */

.entry__gallery { margin-top: -2rem; }

@media (min-width: 821px) {
  .entry__gallery {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .entry:has(.entry__gallery) .entry__year { position: static; grid-row: 1; }
  .entry:has(.entry__gallery) .entry__body { grid-row: 1; }
}

.gallery {
  position: relative;
  background: #1c1917;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 24px 56px -16px rgba(28, 25, 23, 0.3);
}

.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #1c1917;
  cursor: zoom-in;
}
.gallery__slide picture { display: contents; }
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(244, 237, 225, 0.92);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.gallery__nav:hover { background: var(--bg); transform: translateY(-50%) scale(1.06); }
.gallery__nav:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 2px; }
.gallery__nav:disabled { opacity: 0.25; cursor: default; }
.gallery__nav:disabled:hover { transform: translateY(-50%); background: rgba(244, 237, 225, 0.92); }
.gallery__nav--prev { inset-inline-start: 1rem; }
.gallery__nav--next { inset-inline-end: 1rem; }

.gallery__counter {
  position: absolute;
  bottom: 1rem;
  inset-inline-end: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--bg);
  background: rgba(28, 25, 23, 0.7);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  z-index: 2;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .entry__gallery { margin-top: 0; }
  .gallery__nav { width: 38px; height: 38px; font-size: 1.3rem; }
  .gallery__nav--prev { inset-inline-start: 0.5rem; }
  .gallery__nav--next { inset-inline-end: 0.5rem; }
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(15, 13, 12, 0.97);
  color: var(--bg);
  inset: 0;
}
.lightbox::backdrop { background: rgba(15, 13, 12, 0.92); }
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  background: rgba(244, 237, 225, 0.9);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  line-height: 1;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(4px);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--bg); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 3px; }
.lightbox__close {
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  padding-bottom: 4px;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav:disabled { opacity: 0.25; cursor: default; }
.lightbox__nav:disabled:hover { transform: translateY(-50%); background: rgba(244, 237, 225, 0.9); }
.lightbox__nav--prev { inset-inline-start: 1.5rem; }
.lightbox__nav--next { inset-inline-end: 1.5rem; }
.lightbox__counter {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bg);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .lightbox__img { max-width: 100vw; max-height: 80vh; }
  .lightbox__close { top: 0.8rem; inset-inline-end: 0.8rem; width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox__nav--prev { inset-inline-start: 0.4rem; }
  .lightbox__nav--next { inset-inline-end: 0.4rem; }
}

/* pull quote */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--accent);
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 3px solid var(--accent-warm);
  max-width: 28em;
}
[dir="rtl"] .pullquote {
  padding-left: 0;
  border-left: none;
  padding-right: 2rem;
  border-right: 3px solid var(--accent-warm);
}

/* ---------- VIDEO SECTION ---------- */

.video-block {
  background: var(--bg-deep);
  padding: 7rem 2rem;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.video-block__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}
.video-block h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
  font-style: italic;
}
.video-block p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.video-block video {
  width: 100%;
  max-width: 880px;
  border-radius: 4px;
  box-shadow: 0 24px 56px -16px rgba(28, 25, 23, 0.3);
  background: #000;
}

/* ---------- FAMILY ---------- */

.family {
  padding: 7rem 2rem;
  text-align: center;
}
.family__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}
.family__photo {
  margin: 0 auto 3rem;
  max-width: 880px;
}
.family__photo img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 24px 56px -16px rgba(28, 25, 23, 0.25);
}
.family__photo figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}
.family__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 3rem;
  max-width: 880px;
  margin: 3rem auto 0;
}
.family__list li { min-width: 110px; text-align: center; }
.family__list li {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
}
.family__list li small {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

/* ---------- FOOTER ---------- */

footer {
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
footer .signature {
  font-size: 1.4rem;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}
footer .lang-foot {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
footer .lang-foot a {
  color: var(--ink-muted);
  text-decoration: none;
  margin: 0 0.6rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
footer .lang-foot a:hover { color: var(--accent); border-bottom-color: var(--accent-warm); }

/* ---------- MOBILE ---------- */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 4rem;
    gap: 2.5rem;
    text-align: left;
  }
  .hero__photo { order: -1; }
  .hero__photo img { width: 220px; height: 220px; }

  .entry {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 4rem;
  }
  .entry__year {
    position: static;
    font-size: 2rem;
  }
  .entry__photo--breakout { width: 100%; margin-left: 0; }

  .lang {
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .hero .scroll-cue { display: none; }
}

/* ---------- LAST WORD ---------- */

.last-word {
  position: relative;
  z-index: 2;
  padding: 9rem 2rem 8rem;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.last-word__inner {
  max-width: 640px;
  margin: 0 auto;
}
.last-word__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 3rem;
}
.last-word__label::before,
.last-word__label::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent-warm);
  vertical-align: middle;
  margin: 0 0.8rem;
}
.last-word__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.last-word__body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .last-word { padding: 6rem 1.5rem 5rem; }
  .last-word__label { letter-spacing: 0.3em; }
}

/* ---------- LEGAL PAGES ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
}
.legal h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.legal__sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 2.4rem 0 0.6rem;
  color: var(--accent);
}
.legal p, .legal li {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.legal ul { padding-left: 1.4rem; }
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 1.4rem; }
.legal a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--accent-warm); }
.legal__back {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.legal__back:hover { color: var(--accent); border-bottom-color: var(--accent-warm); }

/* ---------- RTL OVERRIDES (Hebrew) ---------- */

[dir="rtl"] .hero__dates { letter-spacing: 0.05em; }
[dir="rtl"] .section-title { letter-spacing: 0.08em; }
[dir="rtl"] .scroll-cue { letter-spacing: 0.05em; }
[dir="rtl"] .hero__author { letter-spacing: 0; }
[dir="rtl"] .last-word__label { letter-spacing: 0.08em; }
[dir="rtl"] .family__list li small { letter-spacing: 0.05em; }
[dir="rtl"] footer .lang-foot { letter-spacing: 0.05em; }
[dir="rtl"] .lang { letter-spacing: 0.04em; text-transform: none; }
[dir="rtl"] .entry__year { font-style: normal; }

@media (max-width: 820px) {
  [dir="rtl"] .lang {
    right: auto;
    left: 1rem;
  }
  [dir="rtl"] .entry { grid-template-columns: 1fr; }
  [dir="rtl"] .entry__photo--breakout { margin-right: 0; margin-left: 0; }
  [dir="rtl"] .hero { text-align: right; }
}

/* ---------- ANIMATIONS ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
