/* ── Fonts (Lato via Google CDN) ── */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design Tokens ── */
:root {
  --bg:       #f8f7f4;
  --surface:  #ffffff;
  --text:     #1c1c1e;
  --muted:    #6b7280;
  --accent:   #8b1a2a;
  --accent-h: #6d1220;
  --border:   #e4e3dc;
  --tag-bg:   #faeaec;
}

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

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-h);
  text-decoration: underline;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.nav-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-name:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  padding-bottom: 2px;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

/* ── Container ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ── Section Headings ── */
h2.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 40px 0 16px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

/* ── Home: Profile Hero ── */
.profile {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 40px;
}

.profile-photo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.profile-info h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.profile-info .tagline {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 14px;
}

.profile-info .bio {
  margin-bottom: 16px;
  line-height: 1.72;
}

.profile-info .bio p + p {
  margin-top: 6px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-links a {
  font-size: 14px;
  color: var(--surface);
  background: var(--accent);
  padding: 4px 15px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s;
}

.profile-links a:hover {
  background: var(--accent-h);
  text-decoration: none;
}

/* ── See All Link ── */
.see-all {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--accent);
  font-weight: 700;
}

.see-all:hover {
  text-decoration: underline;
}

/* ── Papers ── */
.equal-contrib {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
}

.job-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8e6;
  border-left: 4px solid #e6a317;
  padding: 11px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 16px;
  font-weight: 700;
  color: #7a4800;
  margin: 22px 0 4px;
}

.paper {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.paper:last-of-type {
  border-bottom: none;
}

.paper-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
  color: var(--text);
}

.paper-title a {
  color: var(--text);
  text-decoration: none;
}

.paper-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.paper-authors {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.55;
}

.paper-authors .self {
  color: var(--accent);
  font-weight: 700;
}

.paper-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.venue-tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.venue-tag.award {
  background: #fff4e0;
  color: #a05f00;
}

.paper-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.paper-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.paper-links a::before { content: "["; }
.paper-links a::after  { content: "]"; }

.paper-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Experience ── */
.exp-entry {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.exp-entry:last-child {
  border-bottom: none;
}

.exp-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 3px;
}

.exp-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1px;
}

.exp-content .exp-org {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 5px;
}

.exp-content .exp-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.exp-content .exp-body a {
  font-size: 15px;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .profile {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .profile-photo {
    width: 130px;
    height: 130px;
  }

  .profile-links {
    justify-content: center;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 14px;
  }

  h2.section-title {
    margin-top: 32px;
  }
}
