@charset "UTF-8";

:root {
  --ink: #1a1f2e;
  --muted: #5a6174;
  --rule: #e2e6ef;
  --link: #1a56b0;
  --link-hover: #0f3a7a;
  --bg: #f7f8fc;
  --card-bg: #ffffff;
  --accent: #003060;
  --accent2: #fdb515;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --sidebar-w: 240px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 var(--font-body); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* Hero */
.hero {
  position: relative; height: 260px;
  background: url("ucsb.jpg") no-repeat center 60%;
  background-size: cover;
  margin-left: var(--sidebar-w);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,30,70,0.25), rgba(0,30,70,0.55));
}
.hero-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: flex-end;
  padding: 0 32px 20px;
}
.hero-label {
  color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0;
  border-left: 3px solid var(--accent2); padding-left: 10px;
}

/* Layout */
.page-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); background: var(--accent); color: #fff; z-index: 100;
}
.sidebar-inner { padding: 28px 20px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.site-name { margin: 0 0 4px; line-height: 1.15; }
.site-name a { font-family: var(--font-display); font-size: 22px; color: #fff; text-decoration: none; }
.site-name a:hover { color: var(--accent2); text-decoration: none; }
.sidebar-role { margin: 0 0 24px; font-size: 11.5px; color: rgba(255,255,255,0.6); letter-spacing: 0.03em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500;
  padding: 7px 10px; border-radius: 5px; transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.sidebar-contact { margin-top: auto; padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.5); }
.sidebar-contact p { margin: 0 0 6px; }
.social-links { display: flex; gap: 6px; align-items: center; }
.social-links a { color: rgba(255,255,255,0.7); font-size: 12.5px; }
.social-links a:hover { color: var(--accent2); text-decoration: none; }
.social-links span { color: rgba(255,255,255,0.3); }

/* Content */
.content { margin-left: var(--sidebar-w); padding: 36px 44px 72px; max-width: 860px; width: 100%; }
.section { margin-bottom: 52px; }
.section-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  color: var(--accent); margin: 0 0 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent2); display: inline-block;
}

/* Intro */
.intro { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 28px; }
.avatar {
  width: 130px; height: 130px; object-fit: cover;
  border-radius: var(--radius); border: 3px solid var(--accent2);
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.bio-name { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: var(--accent); margin: 0 0 4px; }
.bio-role { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.bio-affil { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.bio-links { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-block; padding: 4px 12px;
  border: 1.5px solid var(--accent); border-radius: 20px;
  font-size: 12.5px; font-weight: 500; color: var(--accent);
  transition: background 0.15s, color 0.15s;
}
.badge:hover { background: var(--accent); color: #fff; text-decoration: none; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--ink);
  font-size: 18px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.icon-badge:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
.icon-badge-text { font-size: 11px; font-weight: 800; letter-spacing: 0.03em; }

/* About */
.about-text h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  color: var(--accent); margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent2); display: inline-block;
}
.about-text p { margin: 0 0 12px; }

/* Bullets — pure CSS list-style, no encoding issues */
.interest-list {
  margin: 8px 0 16px; padding-left: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.interest-list li {
  font-size: 14px; color: var(--ink);
  padding: 6px 12px 6px 14px;
  border-left: 3px solid var(--accent2);
  background: var(--card-bg);
  border-radius: 0 4px 4px 0;
}

.collab-note { font-style: italic; color: var(--muted); font-size: 14px; }

/* News */
.news { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.news li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 16px; background: var(--card-bg);
  border-radius: var(--radius); border-left: 3px solid var(--accent2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); font-size: 14px; line-height: 1.55;
}
.date-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 4px;
}

/* Experience */
.exp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.exp-item {
  display: flex; gap: 16px; background: var(--card-bg);
  border-radius: var(--radius); padding: 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07); border: 1px solid var(--rule);
  transition: box-shadow 0.15s;
}
.exp-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.11); }
.exp-logo {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); overflow: hidden;
}
.exp-logo span {
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.03em; text-align: center; line-height: 1;
}
.exp-logo-img {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 6px;
}
.exp-logo-img img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.exp-body { flex: 1; }
.exp-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 6px; flex-wrap: wrap;
}
.exp-title { font-size: 14.5px; margin: 0; color: var(--ink); }
.exp-note { font-size: 12px; font-weight: 400; color: var(--muted); }
.exp-date {
  flex-shrink: 0; font-size: 11px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.exp-desc { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Publications */
.publications { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pub-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card-bg); border-radius: var(--radius); padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid var(--rule);
  transition: box-shadow 0.15s;
}
.pub-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.pub-venue {
  flex-shrink: 0; width: 84px; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 5px; line-height: 1.4; margin-top: 2px;
}
.pub-venue.conf     { background: #dbeafe; color: #1e40af; }
.pub-venue.journal  { background: #d1fae5; color: #065f46; }
.pub-venue.iclr-ws  { background: #fce7f3; color: #9d174d; }
.pub-venue.acl-ws   { background: #fce7f3; color: #9d174d; }
.pub-venue.allerton { background: #e0e7ff; color: #3730a3; }
.pub-venue.preprint { background: #f3e8ff; color: #6b21a8; }
.pub-body { flex: 1; }
.pub-title { font-weight: 600; font-size: 14.5px; color: var(--ink); margin: 0 0 4px; line-height: 1.45; }
.pub-authors { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.pub-info { font-size: 13px; color: var(--muted); margin: 0; }
.pub-info a { font-weight: 600; color: var(--link); }

/* Footer */
.footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; text-align: center; }

/* Responsive */
@media (max-width: 820px) {
  :root { --sidebar-w: 0px; }
  .sidebar { position: static; width: 100%; }
  .sidebar-inner { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 18px; gap: 10px; height: auto; }
  .site-name { margin: 0; }
  .site-name a { font-size: 18px; }
  .sidebar-role, .sidebar-contact { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .hero { margin-left: 0; height: 160px; }
  .page-wrap { flex-direction: column; }
  .content { margin-left: 0; padding: 24px 18px 48px; }
  .intro { flex-direction: column; gap: 18px; }
  .avatar { width: 100px; height: 100px; }
  .interest-list { grid-template-columns: 1fr; }
  .exp-header { flex-direction: column; gap: 4px; }
}
