  /* Layout: single measure, left-ruled — a mono year-rail anchors each block; one type family in three voices. */
  :root {
    --bg:      #f6f7f8;
    --surface: #ffffff;
    --ink:     #14181d;
    --muted:   #5a646e;
    --rule:    #dce0e4;
    --accent:  #0e6b6b;

    --display: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --body:    "IBM Plex Serif", Georgia, "Times New Roman", serif;
    --data:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg:      #0e1216;
      --surface: #161b21;
      --ink:     #e6eaed;
      --muted:   #94a0aa;
      --rule:    #252c34;
      --accent:  #4fc3bd;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg:      #0e1216;
    --surface: #161b21;
    --ink:     #e6eaed;
    --muted:   #94a0aa;
    --rule:    #252c34;
    --accent:  #4fc3bd;
    color-scheme: dark;
  }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  .wrap {
    max-width: 44rem;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: clamp(2.75rem, 8vw, 5rem) 4rem;
  }

  /* ---------- masthead ---------- */
  .masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem 1.75rem;
  }
  .portrait {
    width: 108px;
    height: 108px;
    max-width: 100%;
    object-fit: cover;
    border: 1px solid var(--rule);
    flex: none;
    filter: saturate(0.94);
  }
  .masthead-text { flex: 1 1 18rem; min-width: 0; }

  .name {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.3rem, 8vw, 3.5rem);
    line-height: 1.03;
    letter-spacing: -0.028em;
    text-wrap: balance;
    margin: 0;
  }
  .name-he {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    text-align: left;
    margin: 0.4rem 0 0;
  }
  .standfirst {
    margin: 0.9rem 0 0;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.5;
    color: var(--muted);
    max-width: 32rem;
  }
  .standfirst strong { color: var(--ink); font-weight: 600; }

  .rule-accent {
    width: 3.5rem;
    height: 3px;
    background: var(--accent);
    margin: 2.25rem 0 0;
  }

  /* ---------- sections ---------- */
  section { margin-block-start: clamp(2.75rem, 7vw, 3.75rem); }

  .eyebrow {
    font-family: var(--data);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1.1rem;
  }

  p { margin: 0 0 1.15rem; max-width: 36rem; }
  p:last-child { margin-bottom: 0; }
  .lede { font-size: 1.07rem; }

  /* ---------- focus grid ---------- */
  .focus {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.75rem 2.5rem;
  }
  .focus div { min-width: 0; }
  .focus h3 {
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
  }
  .focus p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.58;
    color: var(--muted);
  }

  /* ---------- timeline ---------- */
  .entry {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0 1.5rem;
    padding-block: 1.4rem;
    border-top: 1px solid var(--rule);
  }
  .entry:last-of-type { border-bottom: 1px solid var(--rule); }
  .entry > * { min-width: 0; }
  .years {
    font-family: var(--data);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    padding-top: 0.24rem;
    white-space: nowrap;
  }
  .role {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.02rem;
    margin: 0 0 0.25rem;
  }
  .org { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

  @media (max-width: 34rem) {
    .entry { grid-template-columns: 1fr; gap: 0.3rem; }
    .years { padding-top: 0; }
  }

  /* ---------- press ---------- */
  .press { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
  .press li { min-width: 0; }
  .press a {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: border-color 0.15s, color 0.15s;
  }
  .press a:hover, .press a:focus-visible { color: var(--accent); border-color: var(--accent); }
  .source {
    display: block;
    font-family: var(--data);
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.35rem;
    font-variant-numeric: tabular-nums;
  }
  [lang="he"] { direction: rtl; unicode-bidi: isolate; }
  footer [lang="he"] { unicode-bidi: isolate; }

  /* ---------- contact ---------- */
  .contact {
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 1.6rem;
    display: grid;
    gap: 1rem;
  }
  .contact-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; }
  .contact-label {
    font-family: var(--data);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 5rem;
  }
  .contact-value { font-family: var(--display); font-size: 1rem; min-width: 0; word-break: break-word; }
  .contact-value a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
  .contact-value a:hover, .contact-value a:focus-visible { color: var(--accent); }

  .copy {
    font-family: var(--data);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: none;
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
  }
  .copy:hover, .copy:focus-visible { border-color: var(--accent); color: var(--accent); }

  footer {
    margin-block-start: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-family: var(--data);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
  }

  a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

  /* ---------- writing: list on the home page and in the archive ---------- */
  .posts { list-style: none; margin: 0; padding: 0; }
  .posts li { border-top: 1px solid var(--rule); padding-block: 1.35rem; min-width: 0; }
  .posts li:last-child { border-bottom: 1px solid var(--rule); }
  .post-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s, color 0.15s;
  }
  .post-title:hover, .post-title:focus-visible { color: var(--accent); border-color: var(--accent); }
  .posts .excerpt {
    margin: 0.45rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
    max-width: 34rem;
  }
  .posts .source { margin-top: 0.5rem; }
  .more {
    margin: 1.5rem 0 0;
    font-family: var(--data);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .more a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
  .more a:hover, .more a:focus-visible { color: var(--accent); border-color: var(--accent); }

  /* ---------- a single post ---------- */
  .backlink {
    display: inline-block;
    font-family: var(--data);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 2.5rem;
  }
  .backlink:hover, .backlink:focus-visible { color: var(--accent); }

  article header { margin: 0 0 2.25rem; }
  .headline {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.85rem, 5.5vw, 2.6rem);
    line-height: 1.13;
    letter-spacing: -0.022em;
    text-wrap: balance;
    margin: 0 0 0.65rem;
  }
  .dateline {
    font-family: var(--data);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .post-body > p { font-size: 1.05rem; margin: 0 0 1.3rem; }

  figure { margin: 2rem 0; }
  figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
  figure.tall img { max-width: 26rem; }
  figcaption {
    font-family: var(--data);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 0.6rem;
    max-width: 26rem;
  }

  .post-foot {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-family: var(--display);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
  }
  .post-foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
  .post-foot a:hover, .post-foot a:focus-visible { color: var(--accent); }


  /* archive page: the footer rule is enough, no need to close the list too */
  .posts.flush li:last-child { border-bottom: none; }
