/* ================= Personal academic website ================= */
:root {
  --bg: #e8f1fb;          /* page background (light blue) */
  --card: #ffffff;        /* sidebar card */
  --text: #2b2b2b;
  --muted: #8a8a8a;
  --link: #7b1113;        /* maroon accent — change to taste */
  --link-hover: #a83232;
  --border: #e3e0da;
  --rule: #e0ddd6;
}

* { box-sizing: border-box; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ---------- Two-column layout ---------- */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* ---------- Left sidebar ---------- */
.sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 1px 14px rgba(0,0,0,0.06);
  padding: 36px 28px 28px;
  text-align: center;
  position: sticky;
  top: 40px;
}

.sidebar img.avatar {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.sidebar h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: bold;
}

.sidebar .email {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}
.sidebar .email a { color: var(--muted); }

.sidebar .affil {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 4px;
}
.sidebar .affil .office { color: var(--muted); }

/* circular icon links */
.icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 6px;
}
.icons a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s, color 0.15s;
}
.icons a:hover { background: var(--link); color: #fff; border-color: var(--link); }
.icons svg { width: 18px; height: 18px; fill: currentColor; }

/* sidebar nav */
.sidebar nav {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.sidebar nav a {
  display: block;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 5px 0;
}

/* ---------- Right main content ---------- */
.main {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.main .bio p { font-size: 1.12rem; margin: 0 0 22px; }

.main h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 40px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

/* label-grid (Current Projects / Education) */
.grid-row {
  display: flex;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.grid-row .label {
  width: 32%;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.grid-row .desc { flex: 1; }

/* publications / talks lists */
.pub-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.pub-item .title { font-weight: bold; }
.pub-item .venue { color: var(--muted); font-style: italic; }
ul.clean { padding-left: 20px; }
ul.clean li { margin-bottom: 12px; }

footer {
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .layout { flex-direction: column; gap: 32px; padding: 24px 18px 60px; }
  .sidebar { width: 100%; position: static; }
  .sidebar img.avatar { width: 180px; height: 180px; }
}
