/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #222;
  background: #fff;
}

a { color: #1772d0; text-decoration: none; }
a:focus, a:hover { color: #f09228; }

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  margin: 28px 0 10px;
  font-weight: normal;
  font-size: 22px;
}

h3.year {
  margin: 20px 0 6px;
  font-weight: normal;
  font-size: 17px;
  color: #555;
}

.muted { color: #777; }
.award { color: #c00; font-weight: 700; }
.papertitle { font-weight: 700; }

/* ---------- nav ---------- */
.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 12px;
  border-bottom: 1px solid #eee;
}
.site-title { font-size: 18px; font-weight: 700; color: #222; }
.nav-links a { margin-left: 18px; color: #555; }
.nav-links a:first-child { margin-left: 0; }
.nav-links a.active { color: #1772d0; font-weight: 700; }
.nav-links a:hover { color: #f09228; }

/* ---------- home ---------- */
.intro {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0 8px;
}
.intro-photo { flex: 0 0 240px; }
.intro-photo img {
  width: 240px;
  height: auto;
  display: block;
}
.intro-head { flex: 1; }
.name {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.name-formal { font-weight: normal; color: #666; }
.tagline { margin: 6px 0 10px; color: #555; }
.contact { margin: 12px 0 0; }
.contact a { white-space: nowrap; }
.bio { padding-top: 8px; }

.compact-list { padding-left: 20px; }
.compact-list li { margin-bottom: 8px; }

/* ---------- research entries ---------- */
.entry {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
}
.entry-thumb { flex: 0 0 160px; }
.entry-thumb img { width: 160px; display: block; }
.entry-text { flex: 1; }
.entry-text p { margin: 8px 0 0; }

/* ---------- blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin-bottom: 10px; }
.post-list .muted { display: inline-block; min-width: 56px; }
.post-desc { color: #555; font-size: 14px; margin-left: 60px; }

.post-header h1 {
  margin: 28px 0 4px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}
.post-meta { margin: 0 0 24px; color: #777; }
.post-body { font-size: 16.5px; line-height: 1.7; }
.post-body img, .post-body video { max-width: 100%; height: auto; }
.post-body h2 { font-size: 22px; margin-top: 32px; }
.post-body h3 { font-size: 18px; margin-top: 26px; }
.post-body blockquote {
  margin: 16px 0;
  padding: 2px 16px;
  border-left: 3px solid #ddd;
  color: #555;
}
.post-body code {
  font-family: Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #f5f5f5;
  padding: 1px 4px;
  border-radius: 3px;
}
.post-body pre {
  background: #f7f7f7;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 4px;
  line-height: 1.45;
}
.post-body pre code { background: none; padding: 0; }
.post-body table { border-collapse: collapse; margin: 16px 0; }
.post-body th, .post-body td { border: 1px solid #ddd; padding: 6px 10px; }
.post-back { margin-top: 36px; }

/* ---------- footer ---------- */
footer {
  margin: 40px 0 24px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  text-align: right;
  font-size: 12px;
  color: #999;
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .intro { flex-direction: column; text-align: center; gap: 16px; }
  .intro-photo { flex: none; }
  .intro-photo img { width: 70vw; max-width: 280px; }
  .entry { flex-direction: column; align-items: flex-start; }
  .entry-thumb img { width: 100%; max-width: 320px; }
  .post-desc { margin-left: 0; }
  .name { font-size: 26px; }
  .name-formal { display: block; font-size: 20px; }
}

/* ---------- blog disclaimer ---------- */
.blog-note {
  margin: 12px 0 24px;
  padding: 10px 14px;
  background: #f7f7f7;
  border-left: 3px solid #ccc;
  font-size: 13.5px;
  color: #555;
}
.blog-note p { margin: 4px 0; }
