:root {
  --bg: #ffffff;
  --text: #1b1f23;
  --muted: #6a737d;
  --border: #e1e4e8;
  --accent: #2f6feb;
  --accent-contrast: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --text: #e6edf3;
    --muted: #9aa4af;
    --border: #262b32;
    --accent: #6aa0ff;
    --accent-contrast: #0b0d10;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 24px 0 8px;
  margin-bottom: 24px;
}

.site-title {
  margin: 0;
  font-size: 28px;
}

.site-tagline {
  margin: 4px 0 12px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 15px;
  margin-top: 16px;
}

.site-nav a {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a:hover,
a:hover {
  text-decoration: underline;
}

.section {
  padding: 12px 0 20px;
}

h2 {
  margin: 0 0 8px;
  font-size: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

/* Enlarge selected section headers without adding extra spacing */
#about h2,
#updates h2,
#publications h2 {
  font-size: 26px;
  line-height: 1.3;
}

p { margin: 10px 0; }

a { color: var(--accent); }

ul { padding-left: 20px; }
ol { padding-left: 22px; }

.updates {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.updates li {
  display: flex;
  gap: 12px;
}

.update-date {
  color: var(--muted);
  min-width: 110px;
}

.pubs {
  display: grid;
  gap: 14px;
}

.pub-title { font-weight: 600; }
.pub-authors, .pub-venue { color: var(--muted); }
.pub-links a { margin-right: 10px; }

.hint {
  color: var(--muted);
  font-size: 14px;
}

.contact {
  list-style: none;
  padding-left: 0;
}

.contact li { margin: 6px 0; }
.email { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 36px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Better spacing for touch */
@media (max-width: 520px) {
  .update-date { min-width: 92px; }
  
  .profile-pic {
    width: 140px;
    height: 140px;
  }
  
  .header-content {
    gap: 16px;
  }
}

/* Print: simplify */
@media print {
  .site-nav, .site-footer { display: none; }
}

.header-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-links {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
}

.profile-pic {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0; /* Prevents the image from shrinking on smaller screens */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  border: 2px solid var(--accent-color, black); /* Optional: add a subtle border */
}


