:root{
  --bg: #ffffff;
  --panel: #fbfbfd;
  --text: #0f1720;
  --muted: #556270;
  --accent: #0b63d6;
  --card-shadow: 0 6px 18px rgba(15,23,32,0.06);
  --radius: 12px;
  --max-width: 1100px;
  --gap: 20px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}




/* Dark theme variables */
@media (prefers-color-scheme: dark) {
  :root{
    --bg: #0b0f13;
    --panel: #0f1720;
    --text: #e6eef8;
    --muted: #94a3b8;
    --accent: #5ea0ff;
    --card-shadow: 0 8px 26px rgba(2,6,23,0.6);
  }
}

* { box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--system);
  background: linear-gradient(180deg, var(--bg), var(--bg));
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  padding: 32px 16px;
}

/* Top-level layout: content + right sidebar */
.site{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap);
  align-items:start;
}

/* Responsive: stack on small screens */
@media (max-width: 880px){
  .site{
    grid-template-columns: 1fr;
  }
  .sidebar{
    order: -1; /* show before content on mobile */
  }
}

/* Content area */
.content{
  min-width:0;
}

/* Header */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.site-title h1{
  font-size: 1.6rem;
  margin:0;
  letter-spacing: -0.01em;
}
.subtitle{
  margin:4px 0 0;
  color:var(--muted);
  font-size: 0.95rem;
}

/* Top nav (small, compact) */
.top-nav{
  display:flex;
  gap:10px;
  align-items:center;
}
.top-nav .nav-link{
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  color:var(--muted);
  font-size:0.95rem;
}
.top-nav .nav-link.is-current,
.top-nav .nav-link:hover{
  color:var(--accent);
  background:rgba(11,99,214,0.06);
}

/* Panels (cards) */
.panel{
  background: var(--panel);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .18s ease;
}
.panel h2{ margin-top:0; color:var(--text); font-size:1.05rem; }

/* Sidebar */
.sidebar{
  position: relative;
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* Card */
.card{
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
}

/* Profile card */

profile-card {
    display: flex;
    flex-direction: column;  /* stack items vertically */
    align-items: center;     /* center horizontally */
    text-align: center;      /* center text under image */
    padding: 1rem;
}

.profile-photo {
    width: 250px;   /* bigger photo */
    height: auto;   /* maintain aspect ratio */
    border-radius: 10px; /* optional rounded corners */
    margin-bottom: 0.5rem; /* space between photo and text */
}

.profile-meta .name {
    margin: 0.25rem 0 0.1rem 0;
    font-size: 1.2rem;
}

.profile-meta .role {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}
/*/*
/* Side nav */
.side-nav ul{
  list-style:none;
  padding:0;
  margin:0;
}
.side-nav a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:var(--muted);
  text-decoration:none;
  margin-bottom:6px;
}
.side-nav a.is-current,
.side-nav a:hover{
  color: var(--accent);
  background: rgba(11,99,214,0.06);
}

/* Lists */
.plain-list{ list-style: disc inside; margin: 8px 0 0; color:var(--text); }
.plain-list.small{ font-size:0.95rem; color:var(--muted); }

/* Publication list */
.publication-list{ display:flex; flex-direction:column; gap:12px; }
.pub{ padding:12px; border-radius:10px; background: transparent; }
.pub-meta{ margin:0; color:var(--text); font-size:0.95rem; }
.pub-meta strong{ color:var(--text); }

/* Small utilities */
.small{ font-size:0.9rem; color:var(--muted); }
.contact-line a{ color:var(--accent); text-decoration:none; }
.contact-line a:hover{ text-decoration:underline; }

/* Footer */
.site-footer{ margin-top:18px; color:var(--muted); font-size:0.9rem; }

/* Accessibility: focus visible */
a:focus, button:focus, input:focus{
  outline: 3px solid rgba(11,99,214,0.18);
  outline-offset: 2px;
  border-radius:8px;
}

/* Narrow screens: make top nav wrap */
@media (max-width:520px){
  .top-nav{ flex-wrap:wrap; gap:6px; }
  .profile-photo{ width:72px; height:72px; }
}
