/* A simple academic homepage. Edit these colors and spacing to customize it. */
:root {
  color-scheme: light;
  --heading-color: #bb0000;
  --link-color: #224b8d;
  --rule-color: #aaaaaa;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 1020px;
  margin: 18px auto;
  padding: 10px 20px 24px;
  background: #ffffff;
  color: #171717;
  font-family: Optima, Georgia, sans-serif;
  font-size: 15.36px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  margin-bottom: 20px;
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedede;
  background: #f5f5f5;
  color: #757575;
  text-align: center;
}

.portrait {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

h1 {
  margin: 0 0 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-color);
  color: #000000;
  font-size: 25px;
  line-height: 1.2;
}

h2 {
  margin: 24px 0 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule-color);
  color: var(--heading-color);
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 1em;
  line-height: inherit;
}

p {
  margin: 0 0 8px;
}

.biography p {
  margin-bottom: 12px;
}

a,
.link-placeholder {
  color: var(--link-color);
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
}

a:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 3px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}

ul {
  margin: 8px 0 14px;
  padding-left: 26px;
  list-style-type: square;
}

li {
  margin-bottom: 8px;
}

.entry {
  margin-bottom: 20px;
}

.entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
}

.entry-heading p {
  margin-bottom: 0;
}

.date {
  flex-shrink: 0;
  font-weight: bold;
  font-style: italic;
}

.role {
  margin: 3px 0 8px;
  font-style: italic;
}

.publication {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 18px 0 24px;
}

.publication-image {
  width: 100%;
  aspect-ratio: 7 / 3;
  object-fit: contain;
}

.publication h3 {
  margin-bottom: 14px;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
}

footer {
  margin-top: 40px;
  color: #757575;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 700px) {
  body {
    margin: 12px auto;
    padding: 12px 20px 24px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portrait {
    width: 190px;
    height: 190px;
    margin: 0 auto;
  }

  .entry-heading {
    flex-direction: column;
    gap: 2px;
  }

  .date {
    font-size: 0.92em;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .publication-image {
    max-width: 350px;
  }
}
