﻿:root {
  color-scheme: light;
  --text: #494e52;
  --heading: #3f464d;
  --muted: #6f777d;
  --link: #52adc8;
  --border: #e6e8ea;
  --soft: #f7f8f9;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.masthead {
  border-top: 4px solid #f2f3f3;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.masthead-inner {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.site-title {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--heading);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  padding: 6px 10px;
}

.page {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 50px;
  width: min(var(--max), calc(100% - 40px));
  margin: 42px auto 70px;
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  color: var(--muted);
  font-size: 0.92rem;
}

.avatar {
  display: block;
  width: 160px;
  height: 160px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--soft);
}

.sidebar h1 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 1.25rem;
  line-height: 1.2;
}

.bio {
  margin: 0 0 18px;
}

.profile-links {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-links li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.profile-links span {
  color: #9aa1a7;
  font-size: 0.78rem;
}

.profile-links a {
  overflow-wrap: anywhere;
}

.content {
  max-width: 760px;
}

.content section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 24px;
}

.content section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 1.7rem;
  line-height: 1.25;
}

h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 1.08rem;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding-left: 1.35rem;
}

.publication,
.entry {
  margin-bottom: 22px;
}

.publication-year {
  margin: 26px 0 12px;
  color: var(--heading);
  font-size: 1.12rem;
}

.citation {
  color: var(--text);
}

.citation strong {
  color: var(--heading);
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -4px;
}

.paper-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--soft);
  font-size: 0.88rem;
}

.paper-links a:hover {
  border-color: #cbd2d7;
  text-decoration: none;
}

.entry p {
  color: var(--muted);
}

.entry-meta {
  margin-bottom: 3px;
  color: #9aa1a7;
  font-size: 0.88rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .masthead-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 8px;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0 18px;
  }

  .avatar {
    width: 112px;
    height: 112px;
    grid-row: span 3;
  }

  .profile-links {
    grid-column: 2;
  }
}

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

  .masthead-inner,
  .page,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .sidebar {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0 14px;
  }

  .avatar {
    width: 88px;
    height: 88px;
  }

  h2 {
    font-size: 1.45rem;
  }
}




