

/* Improved academic website style with rectangular, larger avatar */
:root {
  --maxw: 1020px;
  --pad: 1.2rem;
  --color-accent: #4b5563;
  --color-link: #1d4ed8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1f2937; background: #ffffff; line-height: 1.6; font-weight: 400; }

header.site-header { max-width: var(--maxw); margin: 0 auto; padding: var(--pad); border-bottom: 2px solid #e5e7eb; }
header .profile { display: flex; align-items: flex-start; gap: 1.5rem; }
header .avatar { width: 243px; height: 193px; object-fit: cover; border: 3px solid #ddd; border-radius: 6px; }
.profile-content { flex: 1; min-width: 0; }
header h1 { margin: 0 0 0.3rem 0; font-size: 2rem; font-weight: 600; }
header .affiliations { margin: 0 0 0.3rem 0; color: var(--color-accent); font-weight: 400; }
header .email { margin: 0 0 0.6rem 0; color: var(--color-accent); font-size: 0.95rem; font-weight: 400; }

.social-links { display: flex; gap: 1rem; }
.social-links a { color: var(--color-link); font-size: 1.4rem; transition: color 0.2s ease; }
.social-links a:hover { color: #0d3aa9; transform: translateY(-1px); }

.nav { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.nav a { text-decoration: none; color: var(--color-link); font-weight: 500; }
.nav a:hover { text-decoration: underline; }

main { max-width: var(--maxw); margin: 0 auto; padding: var(--pad); }
section { margin-bottom: 1.8rem; }
section h2 { font-size: 1.6rem; font-weight: 600; border-bottom: 2px solid #e5e7eb; padding-bottom: .3rem; margin-bottom: 0.7rem; }

ul, ol { padding-left: 1.2rem; }
p { line-height: 1.2; margin-bottom: 0.1rem; padding: 0.1rem; }
ul li, ol li { margin-bottom: 0.1rem; line-height: 1.2; padding: 0.1rem; }
.honors-list li { margin-bottom: 0.1rem; line-height: 1.2; padding: 0.1rem; }

footer.site-footer { max-width: var(--maxw); margin: 0 auto; padding: var(--pad); text-align: center; border-top: 2px solid #e5e7eb; color: #555; }

/* Publications list */
.publication-list { list-style-type: none; padding-left: 0; }
.publication-list li { margin-bottom: 1rem; line-height: 1.5; }
.publication-list a { text-decoration: none; color: var(--color-link); margin-left: 0.4rem; }
.publication-list a:hover { text-decoration: underline; }

/* Responsive adjustments */
@media (max-width: 640px) {
  header .profile { flex-direction: column; align-items: flex-start; }
  header .avatar { width: 190px; height: 153px; }
  .nav { gap: .7rem; }
}
/* ================================
   Publications — Base Styles
   ================================ */

/* CSS Reset-ish */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

/* Typography */
:root{
  --text: #0b0f12;
  --muted: #5b6570;
  --link: #0b57d0;
  --link-hover: #0846a6;
  --rule: #e8eaed;
  --bg: #ffffff;
  --badge-bg: #f3f4f6;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}

.container{
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

/* Headings */
h1{
  font-size: clamp(1.8rem, 2.2vw + 1rem, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h2{
  margin: 2.25rem 0 1rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* Lists */
ul{ padding-left: 1.15rem; }
li{ margin: 0 0 1.1rem; }

/* Links */
a{
  color: var(--link);
  text-decoration: none;
}
a:hover,
a:focus{
  text-decoration: underline;
  color: var(--link-hover);
}

/* Meta / venue line */
.venue{
  font-style: italic;
  color: var(--muted);
}

/* Square-bracket link cluster like [paper] [code] */
.links{
  display: inline-block;
  margin-top: 0.1rem;
}
.links a{
  display: inline-block;
  margin: 0 0.25rem 0 0;
  padding: 0 .15rem;
}

/* Author highlighting */
b{ font-weight: 600; }

/* Horizontal rhythm for dense entries */
li > a:first-child{
  font-weight: 600;
}
li br + .venue{
  display: inline-block;
  margin-top: .15rem;
}

/* Small footer */
small{ color: var(--muted); }

/* Optional: subtle card hover for entries (non-intrusive) */
li{
  list-style: disc;
  transition: background-color 120ms ease, box-shadow 120ms ease;
  border-radius: 8px;
  padding: .35rem .4rem .4rem .2rem;
}
li:hover{
  background: #fafafa;
}

/* Responsive tweaks */
@media (max-width: 640px){
  .container{ margin: 1.5rem auto; }
  ul{ padding-left: 1rem; }
  li{ padding: .35rem .25rem; }
}

/* Print styles: compact and link targets visible */
@media print{
  :root{ --text: #000; --muted: #333; --rule: #ccc; }
  a{ color: #000; text-decoration: underline; }
  li{ break-inside: avoid; }
  .container{ margin: 0; max-width: 100%; }
}

/* ===== Future-friendly hooks (safe to keep even if unused yet) ===== */

/* Year filter (if you add it later) */
.year-filter{
  display: flex;
  gap: .5rem;
  align-items: center;
  margin: 0 0 1rem;
}
.year-filter select{
  padding: .4rem .6rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}

/* Venue badges (optional).
   Usage: <span class="badge badge-acl">ACL</span> */
.badge{
  display: inline-block;
  font-size: .75rem;
  line-height: 1;
  padding: .35rem .5rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: #111;
  margin-right: .35rem;
  vertical-align: middle;
}
.badge-acl { background: #eef4ff; }
.badge-emnlp { background: #f6f2ff; }
.badge-naacl { background: #f2fbff; }
.badge-iclr { background: #fff4f2; }
.badge-neurips { background: #f2fff6; }
.badge-cvpr { background: #fff8e6; }

/* Compact brackets look nicer when spaced */
.links a::before{ content: "["; opacity: .8; }
.links a::after{ content: "]"; opacity: .8; }


