:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --ink: #171717;
  --muted: #62615d;
  --line: #ded8ce;
  --accent: #8a3f4c;
  --link: #135d57;
  --soft: #f1ece3;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}

.name-link {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

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

nav a:hover {
  color: var(--ink);
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 56px;
}

.profile {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.profile-identity {
  display: grid;
}

.portrait {
  display: grid;
  place-items: center;
  width: 210px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.position,
.meta-line {
  margin: 0;
  color: var(--muted);
}

.bio {
  max-width: 680px;
  margin: 18px 0 0;
}

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

.links a::after {
  content: "";
}

.section {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.paper-list,
.simple-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.paper-list {
  list-style: decimal;
}

.paper-meta,
.simple-meta {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.paper-meta a {
  color: var(--link);
  text-decoration: underline;
}

.paper-list li {
  margin: 15px 0 18px;
  margin-left: 1.5rem;
  padding-left: 0.25rem;
}

.paper-title {
  font-weight: 700;
}

.paper-authors,
.paper-meta {
  margin: 2px 0 0;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin-top: 3px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.simple-list li {
  margin: 10px 0;
}

.section-note {
  margin: 0 0 14px;
  color: var(--muted);
}

footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .site-header,
  .profile {
    display: block;
  }

  nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .portrait {
    width: min(210px, 72vw);
  }

  .profile-identity {
    margin-bottom: 24px;
  }

}
