:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --border:#e5e7eb;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* Normal links */
a, a:visited{
  color:#1a73e8;
  text-decoration: underline;
}
a:hover, a:focus{
  color:#1558b0;
}

/* Big side margins: narrow centered column */
.container{
  max-width: 1200px;          /* more margin on both sides */
  margin: 0 auto;
  padding: 42px 22px 70px;
}

/* NAV: simple black text links */
.nav{
  display:flex;
  justify-content:flex-start;
  gap:18px;
  margin-bottom: 26px;
}
.nav a, .nav a:visited{
  color:#111827;             /* black */
  text-decoration:none;
}
.nav a:hover{
  text-decoration: underline;
}

/* HERO: text left + photo right */
.hero{
  display:grid;
  grid-template-columns: 1fr 260px;  /* fixed photo column */
  gap: 34px;
  align-items:start;
  margin-top: 15px;
}

/* Keep everything aligned with the left column width */
.hero-left{
  min-width: 0;
}

/* Make paragraph look like the example: comfy reading width + airy spacing */
.hero-left,
.section{
  max-width: 950px;          /* controls line length */
}

.hero-left p,
.section p{
  font-size: 22px;           /* slightly larger text */
  line-height: 1.9;          /* airy spacing */
  letter-spacing: 0.01em;    /* subtle */
  margin: 0 0 18px;
}

/* Photo */
.profile-photo{
  width: 240px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  margin-top: 160px;  
}


/* Headings */
h1{
  font-size: 54px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
h2{
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 18px;
}

.small{
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

/* Sections below: single column */
.section{
  margin-top: 38px;
}

.section-title{
  font-size: 36px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.item{
  padding: 0;
  margin: 10px 0;
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
}

.footer{
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

/* Publication block */
.pub{
  margin-top: 18px;
  padding-top: 6px;
}

.pub-top{
  margin-bottom: 10px;
}

.tag{
  display:inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  vertical-align: middle;
}

/* Tag colors */
.tag-purple{ background:#7c3aed; color:#fff; }
.tag-green{ background:#16a34a; color:#fff; }
.tag-gray{ background:#f3f4f6; color:#111827; border-color:#e5e7eb; }

.pub-title{
  font-size: 20px;
  font-weight: 650;
  margin: 4px 0 6px;
}

.pub-authors{
  font-size: 16px;
  margin: 0 0 4px;
}

.pub-venue{
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 12px;
}

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

/* Boxed buttons like the screenshot */
.btn, .btn:visited{
  display:inline-block;
  padding: 6px 14px;
  border: 1px solid #111827;
  border-radius: 3px;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  background: #fff;
}

.btn:hover{
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
}

.pub-with-thumb{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  margin-top: 18px;
}

/* Left column: tag + image */
.pub-left{
  width: 140px;            /* controls left column width */
  flex: 0 0 140px;
}

.pub-left .tag{
  margin-top: 10px
  display:inline-block;
  margin-bottom: 10px;
}

.pub-thumb{
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display:block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Right column content */
.pub-right{
  flex: 1 1 auto;
  min-width: 0;
}

/* Keep title/author/venue spacing nice */
.pub-right .pub-title{ margin: 0 0 6px; }
.pub-right .pub-authors{ margin: 0 0 4px; }
.pub-right .pub-venue{ margin: 0 0 12px; }

.social-links{
  margin-top: 50px;   /* increase/decrease to tune */
}

/* Mobile */
@media (max-width:820px){
  .container{max-width: 720px;}
  .hero{grid-template-columns:1fr;gap:18px}
  .profile-photo{width: 220px}
  .hero-left, .section{max-width: 100%;}
  .hero-left p, .section p{font-size: 17px; line-height: 1.8;}
  .pub-with-thumb{ flex-direction: column; }
  .pub-left{ width: 220px; flex: 0 0 auto; }
}
