/* ───────────────────────────────────────────────
   Academic personal site — Jon Barron / Chloe Hsu style
   ─────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Lato, Verdana, Helvetica, sans-serif;
  font-size: 14px;
  background: #fff;
  color: #000;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #f09228;
}

/* ── Site nav (Blog link top-right) ────────────── */

.site-nav {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 100;
}

.site-nav a {
  font-family: Lato, Verdana, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1772d0;
  text-decoration: none;
}

.site-nav a:hover {
  color: #f09228;
}

/* ── Layout ────────────────────────────────────── */

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

/* ── Header ────────────────────────────────────── */

.header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 20px 0 32px;
}

.header-text {
  flex: 1 1 auto;
}

.header-photo {
  flex: 0 0 160px;
}

.header-photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

h1.name {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 14px;
  text-align: center;
}

.bio {
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-links {
  line-height: 2;
}

.contact-links a {
  font-weight: 700;
}

/* ── Section headings ──────────────────────────── */

h2.section-title {
  font-size: 22px;
  font-weight: 400;
  margin: 28px 0 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.section-intro {
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── News ──────────────────────────────────────── */

.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  display: flex;
  gap: 16px;
  padding: 5px 0;
  line-height: 1.5;
  border-bottom: 1px solid #f3f3f3;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  flex: 0 0 90px;
  color: #666;
  font-size: 13px;
  padding-top: 1px;
}

/* ── Publications ──────────────────────────────── */

.pub-list {
  list-style: none;
  padding: 0;
}

.pub {
  display: flex;
  gap: 20px;
  padding: 14px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.pub:hover {
  background: #fafafa;
}

.pub.highlight {
  background: #ffffd0;
}

.pub.highlight:hover {
  background: #ffffc8;
}

.pub-thumb {
  flex: 0 0 220px;
  align-self: flex-start;
  position: relative;
  width: 220px;
  height: auto;
  border-radius: 3px;
  background: #f0f0f0;
}

.pub-thumb img {
  width: 100%;
  height: auto;
  display: block;
}


.pub-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.pub-title a {
  color: #000;
}

.pub-title a:hover {
  color: #1772d0;
}

.pub-authors {
  line-height: 1.5;
}

.pub-authors .me {
  font-weight: 700;
}

.pub-venue {
  color: #333;
  line-height: 1.4;
}

.pub-venue em {
  font-style: italic;
}

.pub-links {
  margin-top: 4px;
  line-height: 1.8;
}

.pub-links a {
  font-size: 13px;
  font-weight: 700;
}

.pub-desc {
  margin-top: 6px;
  color: #444;
  line-height: 1.5;
  font-size: 13px;
}

/* ── Misc / Service ────────────────────────────── */

.misc-list {
  list-style: disc;
  padding-left: 20px;
  line-height: 1.8;
}

/* ── Footer ────────────────────────────────────── */

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #888;
  text-align: center;
}

footer a {
  color: #888;
}

footer a:hover {
  color: #f09228;
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 600px) {
  .container {
    padding: 16px 18px 48px;
  }

  h1.name {
    font-size: 26px;
    text-align: left;
  }

  h2.section-title {
    font-size: 18px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 16px 0 24px;
    gap: 16px;
  }

  .header-photo {
    flex: none;
  }

  .contact-links {
    line-height: 2.2;
  }

  /* Keep two-column layout on mobile: thumb left, content right */
  .pub {
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
  }

  .pub-thumb {
    flex: 0 0 130px;
    width: 130px;
    height: auto;
  }

  .news-list li {
    flex-direction: column;
    gap: 2px;
  }
}
