:root {
  --text: #1c1c1e;
  --muted: #5f6368;
  --accent: #2e8b57;
  --bg: #fdfdfb;
  --line: #e4e2dc;
  --sidebar-width: 240px;
  --content-max-width: 640px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.page {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  text-align: center;
  position: sticky;
  top: 64px;
}
.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 10px 24px rgba(0, 0, 0, 0.1);
}
.sidebar h1 {
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tagline {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0 0 24px 0;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.side-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 2px 0;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.side-nav a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 8px;
}

/* Content */
main {
  flex: 1;
  min-width: 0;
  max-width: var(--content-max-width);
}
section {
  padding: 0 0 40px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
h2 {
  font-size: 1.3rem;
  margin: 0 0 18px 0;
  font-weight: 600;
}
p {
  margin: 0 0 14px 0;
}
p a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
p a:hover {
  text-decoration-color: var(--accent);
}
.placeholder {
  color: #b45309;
  background: #fef3e2;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Publications */
ul.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.pub-list li {
  margin-bottom: 18px;
  padding-left: 0;
}
.pub-title {
  font-weight: 600;
}
.pub-title a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.pub-title a:hover {
  text-decoration-color: var(--accent);
}
.pub-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* News */
ul.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.news-list li {
  margin-bottom: 18px;
  padding-left: 0;
}
.news-date {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 2px;
}
.news-list a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.news-list a:hover {
  text-decoration-color: var(--accent);
}

/* Contact icons (in sidebar) */
.icon-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.icon-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--accent);
  border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.icon-links a:hover,
.icon-links a:focus-visible {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.icon-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

@media (max-width: 720px) {
  .page {
    flex-direction: column;
    gap: 32px;
    padding: 40px 24px;
  }
  .sidebar {
    width: 100%;
    position: static;
  }
  .side-nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .side-nav a:hover {
    padding-left: 0;
    border-left-color: transparent;
    border-bottom: 2px solid var(--accent);
  }
  main {
    max-width: 100%;
  }
}
