/* A restrained editorial style for research and engineering work. */
:root {
  color-scheme: light;
  --ink: #252a2e;
  --muted: #646b70;
  --line: #e3e5e6;
  --accent: #486b91;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 800px; width: 100%; margin: 0 auto; padding: 0 3rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--ink); }
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
p { margin-bottom: 0.9rem; text-align: left; overflow-wrap: break-word; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
code { font-family: monospace; background: #f3f4f4; padding: 2px 5px; font-size: 0.9em; }
ul { padding-left: 1.15rem; }
li { margin-bottom: 0.65rem; overflow-wrap: break-word; }
li::marker { color: #8a9195; }
b, strong { font-weight: 600; }

nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.025em; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.nav-links a:hover { color: var(--ink); }
main { flex: 1; padding: 2.5rem 0 3rem; }
.profile { display: flow-root; margin-bottom: 1.5rem; }
.profile-left { float: left; display: flex; flex-direction: column; align-items: center; margin-right: 2rem; margin-bottom: 1rem; }
.profile-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: top; }
.profile-icons { display: flex; gap: 0.85rem; margin-top: 0.85rem; }
.profile-icons a { color: var(--muted); font-size: 1.05rem; }
.profile-icons a:hover { color: var(--ink); text-decoration: none; }
.profile-bio a { text-decoration: underline; text-decoration-color: #c3cfdd; }
.profile-bio a:hover { text-decoration-color: var(--accent); }
.callout {
  background: #f6f7f7;
  border-left: 2px solid #8a9ba4;
  padding: 0.85rem 1rem;
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
  color: #4d565b;
}
.callout a { font-weight: 500; }
.section { margin-bottom: 2.75rem; }
.pub-list { display: flex; flex-direction: column; gap: 1.2rem; }
.pub-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.pub-thumb { width: 130px; height: 70px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-meta { flex: 1; min-width: 0; }
.pub-title { font-weight: 600; font-size: 0.95rem; line-height: 1.45; letter-spacing: -0.012em; margin-bottom: 0.25rem; }
.pub-authors { font-size: 0.83rem; color: var(--muted); margin-bottom: 0.1rem; line-height: 1.55; }
.pub-venue { font-size: 0.8rem; color: var(--muted); }
.pub-links { margin-top: 0.25rem; line-height: 1.5; }
.pub-links a { font-size: 0.8rem; font-weight: 500; margin-right: 0.5rem; }
.students-label { font-weight: 600; margin-top: 1.4rem; margin-bottom: 0.6rem; font-size: 0.95rem; }
.student-topic { color: var(--muted); font-size: 0.88rem; }
.book-item { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2.5rem; }
.book-cover { width: 140px; flex-shrink: 0; overflow: hidden; }
.book-cover img { width: 100%; height: auto; display: block; }
.book-meta { flex: 1; }
.book-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.2rem; }
.book-author { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.book-review { font-size: 0.95rem; }
.book-rating { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding: 1.25rem 0; text-align: center; font-size: 0.75rem; margin-top: auto; }
footer a { color: var(--muted); }
footer span { color: var(--muted); }
@media (max-width: 640px) {
  .container { padding: 0 1.5rem; }
  nav .container { flex-wrap: wrap; gap: 0.5rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; }
  main { padding-top: 2rem; }
  .profile-left { float: none; margin-right: 0; margin-bottom: 1.5rem; }
  .profile-photo { width: 140px; height: 140px; }
  .profile-icons { justify-content: center; }
  .pub-item { flex-direction: column; }
  .pub-thumb { width: 100%; height: 160px; }
  .book-item { flex-direction: column; align-items: center; }
  .book-cover { width: 180px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
