@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f5;
  --border: #e4e4e7;
  --text: #18181b;
  --text-muted: #71717a;
  --text-body: #3f3f46;
  --accent: #1a56db;
  --nav-text: #52525b;
  --nav-active: #18181b;
  --award: #b45309;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--nav-active);
  text-decoration: none;
  margin-right: auto;
  padding: 0.9rem 0;
  letter-spacing: -0.01em;
}

nav a {
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.9rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover {
  color: var(--nav-active);
}

nav a.active {
  color: var(--nav-active);
  font-weight: 500;
  border-bottom-color: var(--accent);
}

/* PAGE WRAPPER */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ABOUT PAGE LAYOUT */
.about-grid {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.sidebar img {
  width: 185px;
  height: 185px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-list li {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.contact-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.contact-list a:hover {
  color: var(--accent);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.social-link i {
  font-size: 0.9rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.contact-label {
  font-weight: 500;
  color: var(--text);
  min-width: 3.5rem;
  flex-shrink: 0;
}

/* ABOUT CONTENT */
.about-content h1 {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.about-content .title {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.about-content .title a {
  color: var(--text-muted);
  text-decoration: none;
}

.about-content .title a:hover {
  color: var(--accent);
}

.earlier-interests {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1.1rem;
  padding-left: 1.1rem;
}

.about-divider {
  border-top: 1px solid var(--border);
  margin: 1.25rem 0 1rem;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-body);
  font-size: 0.95rem;
}

.about-content strong {
  color: var(--text);
  font-weight: 600;
}

.about-content a {
  color: var(--text-body);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.about-content a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.research-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0 0;
  padding: 0;
}

.research-list li {
  font-size: 0.925rem;
  color: var(--text-body);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.research-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 300;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.75rem;
}

.tag {
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.775rem;
  font-weight: 500;
  border: 1px solid var(--border);
  letter-spacing: 0.01em;
}

/* SECTION HEADINGS */
.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

/* BIO BLURB */
.bio-blurb {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2.5rem;
}

.bio-blurb-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.bio-blurb p:last-child {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0;
}

/* BIO */
.bio-section {
  margin-bottom: 2.5rem;
}

.bio-section h2 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.bio-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.bio-year {
  color: var(--text-muted);
  font-size: 0.825rem;
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.bio-item strong {
  display: block;
  font-weight: 500;
  color: var(--text);
}

.bio-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* PUBLICATIONS */
.pub-year-group {
  margin-bottom: 2.5rem;
}

.pub-year {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pub-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.45;
  font-size: 0.925rem;
}

.pub-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.pub-title a:hover {
  color: var(--accent);
}

.pub-authors {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.pub-authors .me {
  font-weight: 600;
  color: var(--text-body);
}

.pub-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pub-venue {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--text-muted);
}

.pub-award {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--award);
  background: #fefce8;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  border: 1px solid #fef08a;
}

.pub-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.85;
}

.pub-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* LAB MEMBER LIST */
.member-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.member-list li {
  font-size: 0.9rem;
  color: var(--text-body);
}

.member-list a {
  color: var(--text-body);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.member-list a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* TEACHING */
.teaching-item {
  padding: 1.1rem 1.25rem;
  background: var(--bg-subtle);
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
}

.teaching-item h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.teaching-item .teaching-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.teaching-item a:hover {
  text-decoration: underline;
}

/* JOIN PAGE */
.join-section {
  margin-bottom: 2.25rem;
}

.join-section h2 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.join-section p {
  font-size: 0.95rem;
  color: var(--text-body);
}

.join-section a {
  color: var(--text-body);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.join-section a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* NEWS */
.news-section {
  margin-bottom: 1.5rem;
}

.news-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.news-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.news-list li {
  font-size: 0.9rem;
  color: var(--text-body);
}

.news-date {
  color: var(--text-muted);
  font-size: 0.825rem;
  font-variant-numeric: tabular-nums;
  margin-right: 0.5rem;
}

.news-list a {
  color: var(--text-body);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.news-list a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* PROSPECTIVE STUDENTS CALLOUT */
.students-callout {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  margin-top: 1.5rem;
}

.students-callout-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.students-callout p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 0.6rem !important;
}

.students-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.students-list li {
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
}

.students-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

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

.students-list a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar img {
    width: 130px;
    height: 130px;
  }

  .bio-item {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  nav a {
    padding: 0.9rem 0.45rem;
    font-size: 0.82rem;
  }
}
