:root {
  --text: #727272;
  --heading: #222222;
  --link: #267cb9;
  --line: #e5e5e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 50px;
  color: var(--text);
  background: #ffffff;
  font: 14px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.wrapper {
  width: 960px;
  margin: 0 auto;
}

header.profile {
  float: left;
  width: 240px;
  position: fixed;
}

main {
  float: right;
  width: 650px;
  padding-bottom: 50px;
}

.portrait {
  width: 192px;
  height: 192px;
  object-fit: cover;
  margin-bottom: 22px;
}

h1,
h2,
h3,
strong {
  color: var(--heading);
}

h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.06;
}

h2 {
  margin: 28px 0 14px;
  font-size: 28px;
  line-height: 1.1;
}

h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #069;
  text-decoration: underline;
}

.links {
  line-height: 1.9;
}

.intro p {
  text-align: justify;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.section-title-row h2 {
  margin-bottom: 10px;
}

.section-title-row span {
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

td {
  padding: 7px 0 10px;
  vertical-align: top;
}

.pubs td,
.experience td {
  border-bottom: none;
}

.pubs strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

ul {
  margin: 0 0 22px 18px;
  padding: 0;
}

li {
  margin-bottom: 2px;
}

@media print, screen and (max-width: 960px) {
  body {
    padding: 30px;
  }

  .wrapper {
    width: auto;
    margin: 0;
  }

  header.profile,
  main {
    float: none;
    position: static;
    width: auto;
  }

  header.profile {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
    margin-bottom: 26px;
  }

  .portrait {
    grid-row: span 3;
    width: 128px;
    height: 128px;
    margin-bottom: 0;
  }

  h1 {
    font-size: 28px;
  }
}

@media print, screen and (max-width: 560px) {
  body {
    padding: 20px;
  }

  header.profile {
    display: block;
  }

  .portrait {
    width: 160px;
    height: 160px;
    margin-bottom: 18px;
  }

  .section-title-row {
    display: block;
  }

  .section-title-row span {
    display: block;
    margin-bottom: 8px;
    white-space: normal;
  }

  h2 {
    font-size: 25px;
  }
}
