:root {
  --accent: #1a73e8;
  --text: #222;
  --muted: #666;
  --line: #e5e7eb;
}

/* Base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

/* Layout */
.container {
  display: flex;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Sidebar */
.sidebar {
  width: 260px;
  padding-right: 30px;
}

.sidebar img {
  width: 180px;
  border-radius: 6px;
}

.name {
  font-family: 'Source Serif Pro', serif;
  font-size: 1.8rem;
  margin-top: 10px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.links a {
  display: block;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.links a:hover {
  text-decoration: underline;
}

/* Main */
.main {
  flex: 1;
  max-width: 720px;
}

/* Section */
.section {
  margin-bottom: 35px;
}

.section h2 {
  font-family: 'Source Serif Pro', serif;
  font-weight: 600;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* Text */
p {
  margin: 0 0 12px 0;
}

ul {
  padding-left: 18px;
}

li {
  margin-bottom: 8px;
}

/* Publications */
.pub {
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pub strong {
  font-weight: 600;
}

.pub a {
  color: var(--accent);
  text-decoration: none;
}

.pub a:hover {
  text-decoration: underline;
}

/* Images */
.research-img {
  margin-top: 10px;
}

.research-img img {
  max-width: 100%;
  border-radius: 4px;
}

/* Publication GIF thumbnails */
.pub-gif {
  width: 180px;
  flex: 0 0 180px;
}
.pub-gif img {
  width: 100%;
  border-radius: 4px;
}

/* Meta area inside publication */
.pub-meta {
  flex: 1;
}
.pub-doi {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Videos (responsive 16:9 wrapper) */
.research-video {
  margin-top: 10px;
}
.research-video .video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.research-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}

/* Top nav */
.topnav {
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 20px;
  font-size: 0.95rem;
}

.topnav a {
  margin-right: 20px;
  text-decoration: none;
  color: var(--accent);
}

.topnav a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 800px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 30px;
  }
}
