/* Academic website — clean, lightweight, GitHub Pages ready */

:root {
  --text: #30343b;
  --muted: #68707a;
  --line: #e5e7eb;
  --link: #2f6f9f;
  --link-hover: #184d73;
  --bg: #ffffff;
  --soft: #f7f9fb;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { color: var(--link-hover); text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  color: #2e3338;
  font-weight: 700;
  font-size: 1.15rem;
}

nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  color: #555c64;
  font-weight: 600;
  font-size: .95rem;
}
nav a.active, nav a:hover {
  color: #111827;
  text-decoration: none;
}

.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 55px 28px 70px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 65px;
}

.sidebar {
  text-align: left;
}

.portrait {
  width: 205px;
  height: 205px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 22px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8edf2;
  border: 1px solid #d7dde4;
}
.portrait.placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  color: #5f6b77;
}

.sidebar h2 {
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: #242a30;
}

.tagline {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.sidebar-links p {
  margin: 9px 0;
  font-size: .92rem;
  color: #59616a;
}

.content {
  min-width: 0;
}

.content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1.25;
  color: #22272c;
  margin: 0 0 24px;
}

.content h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #252b31;
}

.content p {
  max-width: 780px;
}

.callout {
  margin: 34px 0 38px;
  padding: 27px 30px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid #7b95ab;
  border-radius: 4px;
}

.callout h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 5px 0 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 800;
  color: #697b8b;
}

.button {
  display: inline-block;
  margin-top: 7px;
  padding: 8px 14px;
  border: 1px solid #b7c3cd;
  border-radius: 4px;
  background: white;
  font-weight: 600;
  font-size: .9rem;
}
.button:hover { text-decoration: none; background: #f3f6f8; }

.interest-list {
  padding-left: 22px;
}

.section-title {
  margin-top: 35px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.45rem;
}

.paper {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
}

.paper h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  margin: 0 0 5px;
}

.paper-meta, .muted {
  color: var(--muted);
}

.paper-links {
  display: flex;
  gap: 15px;
  margin: 10px 0 0;
  font-weight: 600;
  font-size: .92rem;
}

.abstract {
  display: none;
  margin-top: 15px;
  padding: 16px 19px;
  background: var(--soft);
  border-radius: 4px;
}
.abstract.show { display: block; }

.note {
  font-size: .92rem;
  color: var(--muted);
  font-style: italic;
}

.teaching-item {
  margin: 24px 0 28px;
}
.teaching-item h3 { margin-bottom: 3px; }
.teaching-item p { margin: 3px 0; }

footer {
  border-top: 1px solid var(--line);
  color: #7b828a;
  font-size: .85rem;
  text-align: center;
  padding: 24px;
}

@media (max-width: 760px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 15px;
    gap: 8px;
  }

  nav { gap: 16px; }

  .layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 38px;
  }

  .sidebar {
    text-align: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
  }

  .portrait {
    width: 160px;
    height: 160px;
    margin: 0 auto 17px;
  }

  .content h1 { font-size: 1.8rem; }
}
