body {
  font-family: "Seravek", "source-sans-pro", "Segoe UI", system-ui, sans-serif;
  color: #333;
  margin: 0 auto;
  width: 80%;
  max-width: 600px;
  /* max-width: 800px; */
  min-height: 100vh;
  display: grid;
  column-gap: 40px;
}

footer {
  margin-bottom: 1rem;
  text-align: center;
  font-size: smaller;
}

a {
  color: inherit;
  text-decoration-style: dotted;
}

img {
  display: block;
}

h1 {
  margin-top: 2.9rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

h2 {
  margin: 1.25rem 0;
  font-weight: normal;
}

#portrait {
  margin: 0.8em auto;
}

#portrait img {
  width: 200px;
  height: auto;
}

.affiliation {
  margin: 0.4em 0;
}

.socials {
  display: flex;
  column-gap: 0.6em;
}

.socials img {
  height: 1.9em;
}

.news {
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 0.67em;
}

.news dt {
  margin: 0 1em;
  text-align: right;
  font-weight: bold;
}

.news dd {
  margin-left: 0;
}

#publications header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.25rem 0;
}

#publications header > * {
  margin: 0;
}

.radios {
  cursor: default;
}

.radios input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radios input:checked + label {
  font-weight: bold;
}

.radios input:not(:checked) + label {
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-style: dotted;
}

.radios input:focus-visible + label {
  outline-style: auto;
  outline-color: -webkit-focus-ring-color;
}

#publications:has(> header #show-selected:checked) .more {
  display: none;
}

.bib {
  list-style-type: none;
  padding-left: 0;
}

.bib li {
  margin: 0.67em 0;
}

.title {
  font-weight: 500;
}

.venue {
  font-style: italic;
}

.authors, .venue {
  font-size: smaller;
}

/* @media not all and (min-width: 768px) { */
  body {
    grid-template-rows: auto auto 1fr auto;
  }

  .affiliation {
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
/* } */

/* @media (min-width: 768px) {
  body {
    grid-template: auto 1fr auto / auto 1fr;
  }

  #portrait {
    margin-top: 2.9rem;
    grid-row: 1 / -2;
  }

  footer {
    grid-column: 1 / -1;
  }
} */
