/* Clean, simple academic homepage stylesheet */

:root {
  --text: #1f2328;
  --muted: #57606a;
  --accent: #b23b2e;
  --border: #e5e7eb;
  --bg: #ffffff;
  --max-width: 760px;
}

* { box-sizing: border-box; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.site-header img.avatar {
  width: 110px;
  height: 140px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.site-header .identity h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 600;
}

.site-header .identity p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 15px;
}

.site-header .identity a {
  color: var(--accent);
  text-decoration: none;
}

.site-header .identity a:hover {
  text-decoration: underline;
}

nav.toc {
  margin: 0 0 36px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

nav.toc a {
  color: var(--text);
  text-decoration: none;
  margin-right: 18px;
}

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

.notice {
  background: #fdf2f1;
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin-bottom: 36px;
  font-size: 15px;
  color: #6b2b24;
}

section {
  margin-bottom: 40px;
  scroll-margin-top: 20px;
}

section h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

section h2 a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
}

section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

p { margin: 0 0 14px; }

ul { margin: 0; padding-left: 20px; }
ul li { margin-bottom: 6px; }

.pub-entry {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pub-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pub-entry p { margin: 0; }

.pub-venue {
  color: var(--muted);
  font-size: 14px;
}

.pub-authors {
  color: var(--muted);
  font-size: 14px;
}

footer.site-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer.site-footer a {
  color: var(--muted);
}

@media screen and (max-width: 560px) {
  header.site-header { flex-direction: column; align-items: flex-start; }
  .site-header img.avatar { width: 90px; height: 115px; }
}
