:root{
  --bg: #ffffff;
  --text: #0d0f12;
  --muted: #5a6270;
  --surface: #f5f7fb;
  --line: #e6e9ef;
  --accent: #2e5aac;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height:1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container{max-width: 940px; margin: 0 auto; padding: 0 20px;}
.small{font-size:.9rem}
.muted{color:var(--muted)}
.site-header{
  position: sticky; top:0; z-index: 10;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in oklab, var(--bg) 80%, white);
  border-bottom: 1px solid var(--line);
}
.nav-wrap{display:flex; align-items:center; justify-content:space-between; padding: 12px 0;}
.brand{
  font-weight:700;
  font-size:1rem;
  letter-spacing:.4px;
  color: var(--text);
  text-decoration:none;
}
.nav a{
  text-decoration:none; color: var(--text); margin-left: 18px; font-weight:500;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav a:hover{ border-color: var(--accent); color: var(--accent); }
.hero{
  padding: 56px 0 36px;
  display:grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 60px;
  align-items:flex-start;
}
.hero-profile{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 18px;
}
.hero-photo img{
  width: 240px;
  height: 240px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(13,15,18,.18);
}
.hero-title{
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  margin: 12px 0 4px;
}
.hero-role{
  color:var(--muted);
  font-size: 1.1rem;
  margin: 0;
}
.hero-affiliations{
  list-style:none;
  padding:0;
  margin: 10px 0 4px;
  color: var(--accent);
  font-weight:500;
  line-height:1.4;
}
.hero-location{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color: var(--muted);
  font-size:.95rem;
  margin: 4px 0 12px;
}
.hero-location img{
  width:16px;
  height:16px;
  display:block;
}
.hero-links{
  display:flex;
  justify-content:center;
  gap: 10px;
}
.hero-icon-link{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--accent);
  text-decoration:none;
  font-weight:600;
  font-size: 0.95rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-icon-link:hover{
  background: color-mix(in oklab, var(--accent) 20%, #fff);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.hero-about h2{
  font-size: 1.8rem;
  margin: 0 0 12px;
}
.hero-about p{
  margin: 0 0 14px;
  color: var(--muted);
}
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 6px;
}
.button.primary{
  background: var(--accent);
  color:#fff;
}
.button.ghost{
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.section{ padding: 36px 0; border-top:1px solid var(--line); }
.section h2{ font-size: 1.5rem; margin: 0 0 8px; }
.lede{ color: var(--muted); margin-top:0; }
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.card{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.card h3{ margin: 0 0 6px; font-size: 1.05rem; }
.card p{ margin: 0; }
.pub-accordion{ margin-top: 18px; display:flex; flex-direction:column; gap:12px; }
.publication{
  border:1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow:hidden;
}
.publication summary{
  cursor:pointer;
  padding: 18px 52px 18px 20px;
  list-style:none;
  position:relative;
}
.publication summary::-webkit-details-marker{ display:none; }
.publication summary::after{
  content:'›';
  position:absolute;
  right:20px;
  top:50%;
  transform: translateY(-50%) rotate(90deg);
  font-size:1.3rem;
  color: var(--accent);
  transition: transform .2s ease;
}
.publication[open] summary::after{
  transform: translateY(-50%) rotate(-90deg);
}
.pub-meta{
  margin: 0 0 6px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  font-size:.9rem;
  color: var(--muted);
}
.pub-authors{ font-weight:600; color: var(--text); }
.pub-authors .pub-me{
  text-decoration: underline;
}
.pub-title{
  margin:0;
  font-size:1.1rem;
}
.pub-type{
  margin:4px 0 0;
  color: var(--accent);
  font-weight:500;
}
.pub-body{
  padding: 0 20px 18px;
  border-top:1px solid var(--line);
  color: var(--muted);
}
.pub-body p{ margin: 12px 0 0; }
.button{
  display:inline-block; text-decoration:none; color:#fff; background: var(--accent);
  padding: 10px 14px; border-radius: 10px; border:1px solid color-mix(in oklab, var(--accent) 85%, black);
  font-weight:600;
}
.button:hover{ filter: brightness(0.95); }
.contact-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px;
}
.contact-grid h3{ margin:.2rem 0 .2rem; font-size:1rem; }
.contact-grid a{ color: var(--accent); text-decoration:none; }
.contact-grid a:hover{ text-decoration: underline; }
.site-footer{
  border-top:1px solid var(--line);
  margin-top: 32px; padding: 22px 0; color: var(--muted);
}
@media (max-width: 820px){
  .hero{
    grid-template-columns: 1fr;
    justify-items:center;
    text-align:center;
  }
  .hero-about{
    max-width: 540px;
    text-align:left;
  }
  .hero-cta{ justify-content:flex-start; }
  .cards{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .nav a{ margin-left: 12px; }
  .hero{ padding-top: 56px; }
}

@media (max-width: 520px){
  /* Give text some breathing room on narrow phone screens */
  .container{ padding-left: 28px; padding-right: 28px; }
}
