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

:root {
  --bg:          #f2f5f0;
  --surface:     #ffffff;
  --border:      #d4e0d0;
  --accent:      #4a7c59;
  --accent-dim:  #6a9e78;
  --text:        #1a2e20;
  --text-dim:    #3d5c45;
  --muted:       #6b8f72;
  --me:          #4a7c59;
  --gap:         2.75rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
}

/* ── Section headings ─────────────────────────────────────────── */

h2 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

/* ── Bio ──────────────────────────────────────────────────────── */

.bio {
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  margin-bottom: var(--gap);
}

.bio-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--surface);
  box-shadow: 0 0 0 5px rgba(74, 124, 89, 0.08);
}

.bio-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.bio-role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.bio-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  max-width: 600px;
}

.hebrew {
  font-size: 1em;
  color: var(--accent);
  font-style: normal;
}

.bio-personal-photos {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bio-personal-photos img {
  width: 180px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: block;
}


.bio-contact {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bio-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.bio-links a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(74, 124, 89, 0.06);
  text-decoration: none;
}

/* ── Updates ──────────────────────────────────────────────────── */

.updates {
  margin-bottom: var(--gap);
}

.update-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.update-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.update-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  min-width: 5rem;
  background: rgba(74, 124, 89, 0.08);
  border: 1px solid rgba(74, 124, 89, 0.18);
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
  flex-shrink: 0;
}

.update-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Publications ─────────────────────────────────────────────── */

.pubs {
  display: flex;
  flex-direction: column;
}

.pub {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.pub:last-child {
  border-bottom: none;
}
.pub:hover {
  background: rgba(74, 124, 89, 0.03);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.pub-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border);
}

.pub-text {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.45;
}

.pub-title a {
  color: var(--accent);
}
.pub-title a:hover {
  text-decoration: underline;
}

.pub-authors {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.me {
  color: var(--me);
  font-weight: 600;
}

.pub-venue {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

.pub-venue strong {
  color: var(--text-dim);
}

.pub-venue a {
  color: var(--muted);
}
.pub-venue a:hover {
  color: var(--accent);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 580px) {
  .bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bio-links {
    justify-content: center;
  }
  .bio-desc {
    max-width: 100%;
  }
  .update-list li {
    flex-direction: column;
    gap: 0.3rem;
  }
  .pub-img {
    width: 88px;
    height: 88px;
    object-fit: contain;
  }
}
