:root {
  --fg: #1a1a1a;
  --bg: #ffffff;
  --accent: #2563eb; /* Tailwind blue-600 vibe */
  --muted: #6b7280;
  --maxw: 800px;
  --radius: 8px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; color: var(--fg); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.site-title { font-weight: 600; font-size: 1.1rem; }
.nav a { margin-left: 1rem; color: var(--fg); }
.nav a.active { color: var(--accent); font-weight: 600; }

.content { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.content.home { padding-top: 2.5rem; }

.intro { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }

/* hero block: image left, text right */
.hero{
  display:grid;
  grid-template-columns: 240px 1fr;   /* adjust image column width */
  gap:2.5rem;
  align-items:start;
}
.avatar{
  width:100%;
  max-width:240px;  /* Reduced from 320px */
  height:auto;
  border-radius:50%;
  object-fit:cover;
}

h1, h2, h3 { line-height: 1.25; margin: 1.5rem 0 0.75rem; }
h1 { font-size: 2.2rem; margin-top: 0; }
h2 { font-size: 1.4rem; margin-top: 2.2rem;}

/* lists look better when left aligned under wide layout */
section ul{padding-left:1.1rem;margin-top:.4rem;}
.news li,.talk-list li{margin-bottom:.35rem;}

.date { color: var(--muted); font-size: 0.9rem; margin-right: .4rem; }

.pub-list { padding-left: 1.2rem; }
.pub-list li { margin-bottom: 1rem; }

.btn { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--accent); border-radius: var(--radius); margin-right: .5rem; font-size: .9rem; }
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }

.site-footer { font-size: .85rem; color: var(--muted); border-top: 1px solid #e5e7eb; margin-top: 2rem; }

/* Small screens */
/* @media (max-width: 600px) {
  .nav { width: 100%; margin-top: .5rem; }
  .nav a { margin: 0 .8rem .5rem 0; display: inline-block; }
  .intro { flex-direction: column; align-items: flex-start; }
  .avatar { width: 120px; height: 120px; }
} */
/* mobile fallback */
@media(max-width:800px){
  .hero{
    grid-template-columns:1fr;
  }
  .avatar{
    max-width:180px;
    border-radius:50%;
  }
}