@font-face {
  font-family: "Vadimos Hebrew";
  src: url("assets/fonts/NotoSansHebrew-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
:root {
  color-scheme: light;
  color: #1b242b;
  background: #fff;
  font-family: "Vadimos Hebrew", "Noto Sans Hebrew", Arial, sans-serif;
  font-synthesis: none;
}
*, *::before { box-sizing: border-box; }
body { margin: 0; }
.frame {
  width: min(1184px, calc(100% - 64px));
  margin-inline: auto;
}
header, footer { color: #46515a; font-size: .875rem; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 31px 25px;
  border-bottom: 1px solid #dfe4e7;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 550px) minmax(0, 465px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(32px, 7vw, 170px);
  padding-block: 72px 66px;
}
h1 {
  margin: 0 0 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.bio {
  color: #333f47;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.55;
}
.bio p { margin: 0 0 14px; }
.business {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 1rem;
  text-decoration: none;
}
.business:is(:hover, :focus-visible) { color: #29586c; }
.business:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.business svg { width: 16px; height: 16px; flex: none; }
.gallery {
  position: relative;
  align-self: stretch;
  min-inline-size: 0;
  margin: 0;
}
.gallery-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}
.gallery-photo {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.gallery-photo--incoming { z-index: 1; }
.gallery-toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  inline-size: 100%;
  block-size: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.gallery-toggle:focus-visible { outline: 2px solid #1b242b; outline-offset: -4px; }
@media (max-width: 900px) {
  .gallery { aspect-ratio: 465 / 550; }
}
footer { padding-block: 21px 30px; border-top: 1px solid #dfe4e7; }
@media (max-width: 900px) {
  .frame { width: min(620px, calc(100% - 48px)); }
  header { padding-block: 21px 16px; }
  main { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 38px 48px; }
  h1 { margin-bottom: 26px; }
  .bio { font-size: 1.0625rem; line-height: 1.58; }
}

/* Language copies share the same structure; direction mirrors the grid. */
.language {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-block: -14px;
  padding-inline: 3px;
  color: inherit;
  text-underline-offset: 3px;
}
.language:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1 { font-size: var(--name-size); }
:root { --name-size: clamp(2.75rem, 5.6vw, 5.125rem); --title-ink-inset: .28; }
:root:lang(en) {
  --name-size: clamp(2.25rem, 4.5vw, 4.5rem);
  --title-ink-inset: .15;
  font-family: "Vadimos Hebrew", "Atkinson Hyperlegible Next", Arial, sans-serif;
}
/* Fit the English name to its actual column, not the viewport.
   Preserve a readable floor so unusually large text settings can still reflow. */
main > section:lang(en) { container-type: inline-size; }
h1:lang(en) {
  font-weight: 300;
  font-size: clamp(1.5rem, var(--name-size), 11.5cqi);
  text-wrap: wrap;
}
@media (min-width: 901px) {
  /* Match the first painted glyph row, rather than the heading line box. */
  .gallery { margin-block-start: calc(var(--name-size) * var(--title-ink-inset)); }
}
@media (max-width: 900px) {
  :root { --name-size: clamp(1.9rem, 12.8vw, 3.5rem); }
  :root:lang(en) { --name-size: clamp(1.5rem, 9vw, 3.3rem); }
}
