:root {
  --grey: rgb(90, 90, 90);
  --blue1: rgb(2, 33, 105);
  --blue2: rgb(0, 51, 160);
  --pink1: #f9564f;
  --line: #dddddd;
}

* {
  box-sizing: border-box;
}

html,
body,
p {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--grey);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  font-size: 16px;
  line-height: 1.45;
}

p {
  margin: 0.2em;
}

ol,
ul {
  list-style: none;
}

ul {
  list-style-position: inside;
  list-style-type: none;
  padding: 0;
}

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

a:hover,
a:focus {
  color: var(--blue2);
}

b {
  font-weight: 500;
}

strong {
  font-weight: 700;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 1000px;
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 9999;
  width: 1000px;
  height: 52px;
  line-height: 2em;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  padding: 10px 0;
}

.nav a {
  color: var(--grey);
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--pink1);
}

.section {
  padding: 20px 30px;
  scroll-margin-top: 70px;
}

.profile {
  display: block;
  padding: 90px 30px 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.profile::after,
.paper::after {
  display: block;
  clear: both;
  content: "";
}

.profile-photo-wrap {
  float: left;
  margin-right: 40px;
  text-align: center;
}

.profile-photo {
  width: 400px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  object-fit: cover;
  object-position: center center;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Source Sans Pro", sans-serif;
}

h1,
h2 {
  color: var(--blue1);
  font-weight: 500;
}

h1 {
  margin-bottom: 10px;
  font-size: 3em;
  line-height: 1em;
  text-align: center;
}

h2 {
  margin: 0 0 16px;
  font-size: 2em;
  line-height: 1.2;
}

h3 {
  margin: 0 0 4px;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.3;
}

h3 a {
  color: var(--blue1);
}

.subtitle {
  margin: 0 0 20px;
  color: var(--blue1);
  text-align: center;
}

.profile-copy p {
  margin-bottom: 20px;
}

.link-row,
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0.2em;
}

.link-row a:not(:last-child)::after,
.paper-links a:not(:last-child)::after {
  color: var(--grey);
  content: "/";
  margin: 0 8px;
}

.updates-list {
  margin: 0;
  padding: 0;
}

.updates-list li {
  margin: 0.2em;
}

.updates-list time {
  color: var(--grey);
  font-weight: 500;
}

.updates-list time::after {
  content: " ";
}

#publications {
  display: flex;
  flex-direction: column;
}

.paper {
  display: block;
  margin-bottom: 20px;
}

.paper-thumb {
  float: left;
  width: 20em;
  height: auto;
  margin-top: 7px;
  margin-bottom: 20px;
  padding-right: 30px;
}

.paper-thumb img {
  width: 100%;
}

.authors {
  margin: 0.2em;
  font-size: 15px;
  line-height: 1.5;
}

.venue {
  margin: 0.25em 0.2em 0.2em;
  color: var(--grey);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
}

#reading-group p {
  max-width: 720px;
}

.footer {
  padding: 20px 30px 36px;
  color: var(--grey);
  font-size: 14px;
}

.footer p {
  margin: 0.2em;
}

@media (max-width: 1048px) {
  .container,
  .site-header {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    height: auto;
    min-height: 52px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 10px 16px;
  }

  .section {
    padding: 24px 20px;
  }

  .profile {
    padding: 82px 20px 18px;
  }

  .profile-photo-wrap,
  .paper-thumb {
    float: none;
  }

  .profile-photo {
    width: min(100%, 360px);
  }

  .profile-photo-wrap {
    margin-right: 0;
    margin-bottom: 18px;
  }

  h1 {
    font-size: 2.5em;
    text-align: left;
  }

  .subtitle {
    text-align: left;
  }

  .paper-thumb {
    width: min(100%, 320px);
    height: auto;
    padding-right: 0;
  }
}
