:root {
  color-scheme: light;
  --text: #222;
  --muted: #666;
  --rule: #e5e5e5;
  --link: #1a4f8b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 17px/1.6 "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.name { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.name:hover { text-decoration: none; }
nav a { margin-left: 24px; color: var(--text); }

/* Intro */
.intro {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 40px 0 8px;
}
.photo {
  width: 180px; height: 210px; flex-shrink: 0;
  object-fit: cover; object-position: center 25%;
}
.intro p { margin: 0 0 14px; }
.contact { color: var(--muted); line-height: 1.5; }

/* Sections */
section { padding: 24px 0; }
h2 {
  font-size: 1.4rem; font-weight: 700;
  margin: 8px 0 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 10px; }
.sub { color: var(--muted); margin: 0 0 6px; }

.papers { list-style: none; padding: 0; margin: 0; }
.papers li { margin: 0 0 16px; }
.papers span { display: block; }
.title { font-weight: 600; }
.with { color: var(--muted); }
.links { font-size: .95rem; }

.plain { padding-left: 20px; margin: 0; }
.plain li { margin: 4px 0; }

/* Footer */
footer {
  padding-top: 16px; padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .9rem;
}

/* Mobile */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .intro { flex-direction: column; gap: 18px; padding-top: 28px; }
  .photo { width: 140px; height: 165px; }
  nav a { margin-left: 16px; }
}
