:root {
  --fg: #111111;
  --muted: #6b7280;
  --bg: #ffffff;
  --border: #e5e7eb;
  --max-width: 1100px;
  --left-col: 240px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover,
a:focus {
  text-decoration-color: var(--fg);
}

/* 2-column page layout */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: var(--left-col) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

/* Profile (left column) */

.profile {
  position: sticky;
  top: 2rem;
}

.name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.avatar {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 1rem;
}

.bio {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.contact {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact a:hover,
.contact a:focus {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.contact .sep {
  margin: 0 0.35rem;
  color: var(--border);
}

/* Content (right column) */

.content {
  min-width: 0;
}

.block {
  margin: 0 0 2.5rem;
}

.block:last-child {
  margin-bottom: 0;
}

.block h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.block p {
  margin: 0 0 0.75rem;
}

/* News */

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

.news li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.news-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 5.5rem;
}

/* Publications */

.pubs {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 1.25rem;
}

.pubs li {
  margin-bottom: 1.5rem;
  padding-left: 0.25rem;
}

.pubs li::marker {
  color: var(--fg);
}

.pub-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.1rem;
  line-height: 1.4;
}

.pub-title a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.pub-title a:hover,
.pub-title a:focus {
  border-bottom-color: var(--fg);
}

.pub-authors {
  margin: 0 0 0.1rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.pub-venue {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}

.pub-fig {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0.75rem auto 0.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Footer */

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive: only collapse on truly small screens */

@media (max-width: 600px) {
  .page {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem 2rem;
  }

  .profile {
    position: static;
  }

  .avatar {
    max-width: 180px;
  }
}
