/* Reset + base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: row;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fdfdfd;
}

/* Sidebar */
.sidebar {
  width: 280px;
  padding: 1.5rem;
  background: #fafafa;
  border-right: 1px solid #ddd;
  text-align: center;
}
.sidebar .avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.sidebar .name {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}
.sidebar .role {
  font-size: 1rem;
  color: #555;
}
.sidebar .blurb {
  font-size: 0.9rem;
  margin: 1rem 0;
}
.sidebar .contact a {
  display: inline-block;
  margin: 0.2rem 0.5rem;
  color: #007acc;
  text-decoration: none;
}
.sidebar .contact a:hover {
  text-decoration: underline;
}

/* Main content */
.content {
  flex: 1;
  padding: 2rem;
  max-width: 950px;
  margin: 0 auto;
}
.topnav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}
.topnav a {
  text-decoration: none;
  color: #007acc;
}
.topnav a:hover {
  text-decoration: underline;
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}
h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  border-bottom: 2px solid #007acc;
  display: inline-block;
  padding-bottom: 0.2rem;
}
.meta {
  margin-top: 1rem;
  list-style: disc;
  margin-left: 1.2rem;
}

/* Projects */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.card {
  background: #fff;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.card h3 {
  margin-bottom: 0.5rem;
}

/* Publications */
.pub {
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 4px solid #007acc;
}

/* Timeline */
.timeline {
  list-style: none;
  padding-left: 0;
}
.timeline li {
  margin-bottom: 0.8rem;
}

/* Footer */
.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}
