/* Minimal, clean style - Light Theme */
:root {
  --bg: #ffffff;
  --fg: #1f2937;       /* Dark gray for text */
  --muted: #6b7280;    /* Muted gray */
  --link: #2563eb;     /* Standard blue */
  --border: #e5e7eb;   /* Light gray for borders */
  --card-bg: #f3f4f6;  /* Light gray for image backgrounds */
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 1rem; }

header {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, .85); /* White semi-transparent */
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
}
h1 { font-size: 1.3rem; margin: .2rem 0; font-weight: 600; }

nav a {
  color: var(--muted); text-decoration: none; margin-left: 1rem;
}
nav a:hover { color: var(--fg); }

main { padding: 2rem 1rem; }
h2 {
  font-size: 1.15rem; margin: 2rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border); 
  padding-bottom: .25rem;
}

ul { padding-left: 1.2rem; }
li { margin: .5rem 0; }

a { color: var(--link); }
a:hover { color: #1d4ed8; }

/* === Biography layout === */
#bio .bio-content {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 0.1rem;
}

#bio .bio-avatar {
  margin-top: 0.5rem;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.1); /* Subtle shadow border */
}

/* === Publications Grid Layout === */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-list li {
  display: grid;
  grid-template-columns: 180px 1fr; 
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9; 
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.pub-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.pub-img-wrapper img:hover {
  opacity: 0.8;
}

.pub-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  #bio .bio-content {
    flex-direction: column;
    align-items: flex-start;
  }
  #bio .bio-avatar {
    width: 120px;
    height: 120px;
  }
  
  .pub-list li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pub-img-wrapper {
    max-width: 100%;
    aspect-ratio: 21 / 9;
  }
}

footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  color: var(--muted);
  font-size: .95rem;
}