:root { --font-sans: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* win the specificity fight */
html, body { font-family: var(--font-sans) !important; }

/* remove em,strong from this rule */
h1, h2, h3, h4, p, li, a, small, nav, footer, header, main {
  font: inherit;
}

main.content {
  max-width: calc(240px + 2rem + 68ch); /* left column + gap + body width */
  margin: 0 auto;
  padding: 0 1rem;
}

body {
  font-family: "Lexend", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #111;
  margin: 0;
}

/* Global two-column sections */
main > section {
  display: grid;
  grid-template-columns: minmax(12ch, clamp(140px, 20vw, 240px)) 1fr;
  column-gap: 2rem;
  align-items: baseline;
  margin: 1.5rem 0;
  padding: 0;
  border-top: none;
}

/* Left label */
main > section > h2 {
  grid-column: 1;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  text-align: right;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Body column */
main > section > h2 ~ * {
  grid-column: 2;
  max-width: 68ch;
}

/* Tighten first paragraph */
main > section > h2 + * { margin-top: 0; }

/* Intro: opt out of the grid and center on the same measure */
main > section.intro {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* match right-column width */
  width: 68ch;
  margin-left: calc(240px + 2rem); /* same as left column + gap */
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}


/* Make images sane everywhere, then style the intro headshot */
img { max-width: 100%; height: auto; }

/* circular, sized headshot */
main > section.intro img {
  width: 160px;              /* pick a size you like */
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.75rem;
}

/* Mobile stack */
@media (max-width: 720px) {
  main > section { grid-template-columns: 1fr; }
  main > section > h2 { text-align: left; margin-bottom: .25rem; }
  main > section > h2 ~ * { grid-column: 1; }
  main > section.intro {
    width: auto;
    margin: 2rem auto;
  }
}

.pubs { list-style: none; padding-left: 0; margin: 0; }
.pubs li { margin: 0.35rem 0; }
