/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- tokens ---------- */
:root {
  --text: #1f1f1f;
  --text-soft: #4a4a4a;
  --muted: #8a8a8a;
  --bg: #f5f5f5;
  --link: #0a82cd;
  --link-hover: #0872b4;
}

/* ---------- base ---------- */
html, body { height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(10, 130, 205, 0.35);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

/* ---------- layout: split card ---------- */
.card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
  background: #fff;
}

.photo {
  position: relative;
  margin: 0;
  background: #eaeaea;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* caption is only shown on mobile (overlay on photo) */
.photo-caption { display: none; }

.content {
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
}

/* ---------- headline ---------- */
.headline h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  color: var(--text);
}
.headline p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ---------- bio ---------- */
.bio p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}
.bio p:last-child { margin-bottom: 0; }
.bio a { white-space: nowrap; }
.bio .hebrew {
  font-size: 18px;
  margin-top: 24px;
  color: var(--text-soft);
}

/* ---------- socials ---------- */
.socials {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 16px 0 0;
}
.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}
.socials svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.socials a[aria-label="LinkedIn"] { background: #0a66c2; }
.socials a[aria-label="Medium"]   { background: #000; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .photo {
    aspect-ratio: 4 / 3;
  }
  .photo img {
    object-position: center 20%;
  }
  .photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
  }
  .photo-caption {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    z-index: 1;
  }
  .photo-caption h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
  }
  .photo-caption p {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
  }
  .headline { display: none; }

  .content {
    padding: 36px 28px 48px;
    max-width: none;
    gap: 28px;
  }
  .bio p { font-size: 17px; }
  .socials { justify-content: center; margin-top: 8px; }
}
