/* ===== FONTS & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --warm-cream: #fdf8f0;
  --warm-light: #faf3e8;
  --warm-border: #e8dcc8;
  --warm-mid: #c8a87a;
  --warm-dark: #8b6840;
  --warm-deep: #5c4225;
  --accent: #c0622f;
  --accent-light: #f5ede6;
  --text-main: #2c1f0e;
  --text-body: #4a3728;
  --text-muted: #8a7060;
  --card-bg: #ffffff;
  --shadow: 0 2px 12px rgba(92,66,37,0.08);
  --radius: 12px;
  --nav-h: 64px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--warm-cream);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--warm-border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 100%;
}
.nav-brand {
  font-family: 'Lora', serif;
  font-weight: 600; font-size: 1.05rem;
  color: var(--warm-deep); text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex; list-style: none; gap: 0.2rem;
}
.nav-links a {
  display: block; padding: 0.4rem 0.75rem;
  color: var(--text-body); text-decoration: none;
  font-size: 0.9rem; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent-light);
  color: var(--accent);
}
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--text-body);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #fdf3e7 0%, #fbebd6 60%, #f5dfc8 100%);
  border-bottom: 1px solid var(--warm-border);
  padding: 3rem 1.5rem;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
}
.avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--warm-dark);
  color: #fff; font-family: 'Lora', serif;
  font-size: 1.5rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--warm-mid);
}
.hero-text h1 {
  font-family: 'Lora', serif;
  font-size: 2rem; font-weight: 600;
  color: var(--warm-deep); line-height: 1.2;
}
.title-line {
  font-size: 1.05rem; color: var(--accent);
  font-weight: 600; margin-top: 0.25rem;
}
.inst-line {
  color: var(--text-muted); font-size: 0.95rem;
}
.contact-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.75rem;
}
.contact-chips span {
  background: #fff;
  border: 1px solid var(--warm-border);
  border-radius: 20px; padding: 0.2rem 0.75rem;
  font-size: 0.82rem; color: var(--text-body);
}

/* ===== LAYOUT ===== */
.content-section { padding: 2rem 1.5rem 3rem; }
.container { max-width: 1100px; margin: 0 auto; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
.main-col, .side-col { display: flex; flex-direction: column; gap: 1.5rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #fdf3e7 0%, #fbebd6 100%);
  border-bottom: 1px solid var(--warm-border);
  padding: 2.5rem 1.5rem 2rem;
}
.page-hero h1 {
  max-width: 1100px; margin: 0 auto;
  font-family: 'Lora', serif;
  font-size: 1.9rem; color: var(--warm-deep);
}
.page-hero p {
  max-width: 1100px; margin: 0.4rem auto 0;
  color: var(--text-muted); font-size: 0.95rem;
}

/* ===== CARD ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h2 {
  font-family: 'Lora', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--warm-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-light);
}
.card p { margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }

/* ===== STATS ===== */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.stat-box {
  background: var(--warm-light);
  border: 1px solid var(--warm-border);
  border-radius: 8px; padding: 0.75rem;
  text-align: center;
}
.stat-num {
  display: block; font-size: 1.6rem;
  font-family: 'Lora', serif;
  color: var(--accent); font-weight: 600;
}
.stat-label {
  font-size: 0.78rem; color: var(--text-muted);
}

/* ===== TIMELINE (education) ===== */
.timeline { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.timeline li {
  display: flex; gap: 1rem;
}
.timeline .year {
  flex-shrink: 0; width: 42px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent); padding-top: 2px;
}
.timeline strong { color: var(--text-main); }
.timeline p { font-size: 0.9rem; margin: 0; color: var(--text-body); }

/* ===== TAGS ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #e8c4af;
  border-radius: 20px; padding: 0.25rem 0.85rem;
  font-size: 0.85rem; font-weight: 600;
}

/* ===== PLAIN LIST ===== */
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.plain-list li { font-size: 0.9rem; color: var(--text-body); }

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--warm-border); margin: 0.75rem 0; }

/* ===== MUTED ===== */
.muted { color: var(--text-muted); font-size: 0.88rem; }

/* ===== PUBLICATION ENTRIES ===== */
.pub-year-group { margin-bottom: 2rem; }
.pub-year-label {
  font-family: 'Lora', serif;
  font-size: 1.3rem; color: var(--warm-deep);
  font-weight: 600;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}
.pub-entry {
  background: var(--card-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.pub-entry:hover { border-color: var(--warm-mid); }
.pub-entry .authors { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.pub-entry .title { font-family: 'Lora', serif; font-style: italic; color: var(--text-main); font-size: 0.98rem; }
.pub-entry .journal { font-size: 0.87rem; color: var(--accent); margin-top: 0.2rem; }
.pub-entry .doi { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.pub-entry .doi a { color: var(--warm-dark); }

/* ===== CONFERENCE / TALK ENTRIES ===== */
.talk-entry {
  background: var(--card-bg);
  border: 1px solid var(--warm-border);
  border-left: 4px solid var(--warm-mid);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}
.talk-entry .talk-title { font-family: 'Lora', serif; font-style: italic; color: var(--text-main); font-size: 0.97rem; }
.talk-entry .talk-venue { font-size: 0.87rem; color: var(--text-body); margin-top: 0.2rem; }
.talk-entry .talk-date { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ===== PHD STUDENTS TABLE ===== */
.phd-grid { display: flex; flex-direction: column; gap: 1rem; }
.phd-card {
  background: var(--card-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px; padding: 1rem 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow);
}
.phd-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--warm-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9rem; flex-shrink: 0;
}
.phd-info strong { color: var(--text-main); }
.phd-info p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== COURSE LIST ===== */
.course-badge {
  display: inline-block;
  background: var(--warm-light);
  border: 1px solid var(--warm-border);
  border-radius: 6px; padding: 0.3rem 0.7rem;
  font-size: 0.85rem; margin: 0.2rem;
  color: var(--text-body);
}

/* ===== MEMBERSHIP ===== */
.memb-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.memb-list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.93rem;
}
.memb-list li::before { content: "✦"; color: var(--warm-mid); flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--warm-deep);
  color: rgba(255,255,255,0.85);
  text-align: center; padding: 1.75rem 1.5rem;
  font-size: 0.88rem;
}
.footer .muted { color: rgba(255,255,255,0.55); margin-top: 0.25rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--warm-border); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-inner { flex-direction: column; text-align: center; }
  .contact-chips { justify-content: center; }
}
