:root {
  --background: #ffffff;
  --text: #24292f;
  --muted: #57606a;
  --border: #d8dee4;
  --link: #0969da;
  --soft: #f6f8fa;
  --content-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.page-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 58px;
  padding: 58px 0 72px;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 40px;
  text-align: center;
}

.avatar,
.profile-photo {
  width: 148px;
  height: 148px;
  border-radius: 8px;
  margin: 0 auto 20px;
}

.avatar {
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  letter-spacing: 1px;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 20px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #1f2328;
  line-height: 1.25;
}

h1 { margin: 0 0 8px; font-size: 27px; }
h2 { margin: 0 0 18px; font-size: 25px; border-bottom: 1px solid var(--border); padding-bottom: 7px; }
h3 { margin: 0 0 7px; font-size: 19px; }

.position,
.affiliation,
.email-text {
  white-space: nowrap;
}

.position {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}

.affiliation {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.email-text {
  margin: 3px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--link);
  line-height: 1;
}

.social-icons i {
  font-size: 1.2rem;
}

.social-icons a:hover {
  text-decoration: none;
  opacity: 0.72;
}

.social-icons a.disabled {
  color: #8c959f;
  pointer-events: none;
}

main { min-width: 0; }
section { margin-bottom: 42px; }
section p:first-of-type { margin-top: 0; }

.news-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#news .news-list li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 30px; /* increase space between columns */
  align-items: start;
  margin-bottom: 10px;
}

#news .news-date {
  display: block;
  white-space: nowrap;
  font-weight: 400;
  text-align: right; /* right-align the date */
}

.paper { margin-bottom: 34px; }
.paper p { margin: 8px 0; }
.paper-status, .coauthors { color: var(--muted); font-style: italic; }
.presented-at { font-size: 15px; color: var(--muted); }
.presented-at strong { color: var(--text); }

.paper-actions {
  margin-top: 12px;
}

.paper-button {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--link);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.paper-button:hover {
  background: var(--soft);
  text-decoration: none;
}

footer {
  margin-top: 54px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d1117;
    --text: #c9d1d9;
    --muted: #8b949e;
    --border: #30363d;
    --link: #58a6ff;
    --soft: #161b22;
  }
  h1, h2, h3 { color: #f0f6fc; }
}

@media (max-width: 820px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 38px;
    width: min(680px, calc(100% - 32px));
    padding-top: 34px;
  }

  .sidebar { position: static; }
}

@media (max-width: 380px) {
  .position,
  .affiliation,
  .email-text {
    white-space: normal;
  }

  .news-date {
    display: block;
    min-width: 0;
  }
}
