@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Claude palette */
  --brand:           #D97757;
  --brand-dark:      #C06440;
  --brand-glow:      rgba(217, 119, 87, 0.15);

  /* Sidebar */
  --sidebar-bg:      #1C1917;
  --sidebar-hover:   #2A2420;
  --sidebar-active:  #2E2420;
  --sidebar-border:  rgba(255,255,255,.07);
  --sidebar-text:    #CCC3BA;
  --sidebar-muted:   #7A6E68;
  --sidebar-w:       256px;

  /* Main area */
  --bg:              #FAF9F6;
  --card-bg:         #FFFFFF;
  --text:            #1C1917;
  --text-body:       #3D3530;
  --text-muted:      #7A6E68;
  --border:          #E5DFD8;
  --border-light:    #F0EBE5;
  --shadow:          0 1px 3px rgba(28,25,23,.06), 0 4px 16px rgba(28,25,23,.04);
  --shadow-hover:    0 2px 8px rgba(28,25,23,.08), 0 8px 24px rgba(28,25,23,.06);

  /* Type */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-body);
  background: var(--sidebar-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ─────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  border-right: 1px solid var(--sidebar-border);
  z-index: 50;
  flex-shrink: 0;
}

.sidebar-top {
  padding: 28px 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--sidebar-border);
}

.profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--brand);
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-name {
  font-size: 14px;
  font-weight: 700;
  color: #EDE8E3;
  letter-spacing: .3px;
  margin-bottom: 4px;
}

.sidebar-role {
  font-size: 11.5px;
  color: var(--sidebar-muted);
  line-height: 1.5;
}

/* Nav links */
.sidebar-nav {
  padding: 14px 10px;
  flex: 1;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sidebar-muted);
  padding: 10px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}

.nav-link svg { opacity: .7; flex-shrink: 0; }
.nav-link:hover { background: var(--sidebar-hover); color: #EDE8E3; }
.nav-link:hover svg { opacity: 1; }

.nav-link.active {
  background: var(--sidebar-active);
  color: var(--brand);
  font-weight: 600;
}
.nav-link.active svg { opacity: 1; color: var(--brand); }

/* Contacts in sidebar */
.sidebar-contacts {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-contacts .label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sidebar-muted);
  margin-bottom: 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 12px;
  color: var(--sidebar-muted);
  line-height: 1.4;
}

.contact-item svg { flex-shrink: 0; margin-top: 1px; }

.contact-item a {
  color: var(--sidebar-text);
  text-decoration: none;
  word-break: break-all;
  transition: color .15s;
}
.contact-item a:hover { color: var(--brand); }

/* ── MAIN AREA ────────────────────────── */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 22px 40px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(250,249,246,.92);
}

.page-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.page-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.page-body {
  padding: 32px 40px 60px;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* ── CARDS ───────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}

.card:hover { box-shadow: var(--shadow-hover); }

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-title svg { opacity: .85; }

/* ── BIO TEXT ─────────────────────────── */
.bio p {
  color: var(--text-body);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.75;
}
.bio p:last-child { margin-bottom: 0; }
.bio strong { color: var(--text); font-weight: 600; }

/* ── PILL TAGS ────────────────────────── */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: var(--brand-glow);
  color: var(--brand-dark);
  border: 1px solid rgba(217,119,87,.25);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.tag-neutral {
  background: var(--border-light);
  color: var(--text-body);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── TIMELINE (Education) ─────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }

.tl-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0 16px;
  position: relative;
  padding-bottom: 22px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.tl-connector {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
}
.tl-item:last-child .tl-connector { display: none; }

.tl-body { padding-top: 2px; }
.tl-title { font-weight: 600; color: var(--text); font-size: 15px; }
.tl-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.tl-date { font-size: 12px; color: var(--brand); font-weight: 500; margin-top: 4px; }
.tl-notes { margin-top: 6px; padding-left: 16px; }
.tl-notes li { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }

/* ── PUBLICATIONS ─────────────────────── */
.pub-list { display: flex; flex-direction: column; }

.pub-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.pub-item:first-child { padding-top: 0; }
.pub-item:last-child { border-bottom: none; padding-bottom: 0; }

.pub-title {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.pub-authors {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pub-authors .me { font-weight: 600; color: var(--text-body); }

.pub-venue {
  font-size: 13px;
  font-style: italic;
  color: var(--brand);
}

.pub-links { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg);
  transition: all .15s;
}
.pub-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-glow); }

/* ── NEWS ────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 0; }

.news-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }

.news-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  padding-top: 2px;
  white-space: nowrap;
}

.news-text { font-size: 14px; color: var(--text-body); line-height: 1.6; }
.news-text a { color: var(--brand); text-decoration: none; }
.news-text a:hover { text-decoration: underline; }

/* ── PROJECTS ─────────────────────────── */
.proj-list { display: flex; flex-direction: column; }

.proj-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.proj-item:first-child { padding-top: 0; }
.proj-item:last-child { border-bottom: none; padding-bottom: 0; }

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.proj-title { font-weight: 600; color: var(--text); font-size: 15px; }
.proj-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.proj-desc { font-size: 14px; color: var(--text-body); line-height: 1.65; margin: 0; }

.proj-links { display: flex; gap: 8px; flex-shrink: 0; }

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg);
  white-space: nowrap;
  transition: all .15s;
}
.proj-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-glow); }

/* ── TALKS ────────────────────────────── */
.talk-list { display: flex; flex-direction: column; }

.talk-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.talk-item:first-child { padding-top: 0; }
.talk-item:last-child { border-bottom: none; padding-bottom: 0; }

.talk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.talk-meta { display: flex; align-items: center; gap: 10px; }

.talk-date {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}

.talk-title {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}

.talk-venue {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.talk-desc { font-size: 14px; color: var(--text-body); line-height: 1.65; margin: 0; }

/* ── HONORS TABLE ─────────────────────── */
.honors-list { display: flex; flex-direction: column; gap: 0; }

.honor-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.honor-item:first-child { padding-top: 0; }
.honor-item:last-child { border-bottom: none; padding-bottom: 0; }

.honor-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  padding-top: 2px;
}

.honor-title {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 3px;
}

.honor-issuer { font-size: 13px; color: var(--text-muted); }

.honor-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--brand-glow);
  color: var(--brand-dark);
  border: 1px solid rgba(217,119,87,.2);
  margin-top: 5px;
}

/* ── CV PAGE ──────────────────────────── */
.cv-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: background .18s;
}
.btn-download:hover { background: var(--brand-dark); }

.cv-block { margin-bottom: 30px; }
.cv-block:last-child { margin-bottom: 0; }

.cv-block-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cv-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.cv-item:last-child { margin-bottom: 0; }

.cv-item-main { flex: 1; }
.cv-item-date {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}

.cv-item-title { font-weight: 600; color: var(--text); font-size: 15px; }
.cv-item-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.cv-item-desc { font-size: 13.5px; color: var(--text-body); margin-top: 5px; line-height: 1.6; }

.cv-notes { margin-top: 6px; padding-left: 16px; }
.cv-notes li { font-size: 13px; color: var(--text-muted); margin-bottom: 3px; }

/* ── EMPTY STATE ──────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}
.empty-state svg { margin-bottom: 14px; opacity: .3; }
.empty-state p { font-size: 14px; margin: 0 0 6px; }
.empty-state a { color: var(--brand); text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

/* ── FOOTER ───────────────────────────── */
footer {
  margin-top: auto;
  padding: 16px 40px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── MOBILE TOGGLE ────────────────────── */
.mobile-header {
  display: none;
  background: var(--sidebar-bg);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--sidebar-border);
  align-items: center;
  justify-content: space-between;
}

.mobile-brand {
  color: #EDE8E3;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.hamburger {
  background: none;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 768px) {
  .mobile-header { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }

  .main-area { margin-left: 0; }

  .page-header { padding: 18px 20px 14px; }
  .page-body { padding: 20px 20px 48px; }
  footer { padding: 14px 20px; }
}

@media (max-width: 480px) {
  .page-body { gap: 16px; }
  .card { padding: 20px; }
}
