:root{
  --max-w: 780px;
  --muted: #5b5b5b;
  --accent: #0b66c3;
  --card-border: #eee;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
html,body { height:100%; }
body{
  margin:0;
  background: #fff;
  color:#111;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:48px 18px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.wrap{
  width:100%;
  max-width:var(--max-w);
}

header{
  display:flex;
  gap:20px;
  align-items:center;
  margin-bottom:22px;
}

.avatar {
  width: 300px;       /* bigger profile image */
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #eee; /* slightly thicker border to match size */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.name {
  font-size: 56px;     /* much larger heading */
  line-height: 1.1;
  margin: 0;
  font-weight: 800;    /* bolder weight */
  letter-spacing: -0.8px;
}

.job {
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;     /* bigger subtitle too */
  font-weight: 500;
}

.social-links {
  margin-top: 12px;
  display: flex;
  gap: 18px;
}

.social-links a {
  color: var(--muted);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover,
.social-links a:focus {
  color: var(--accent);
}

.social-links svg {
  width: 28px;
  height: 28px;
}



.meta{
  margin: 10px 0 18px 0;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}
.meta a{
  color:var(--muted);
  text-decoration:none;
}
.meta a:hover{ color:var(--accent); }

.bio{
  margin: 14px 0 28px 0;
  color:#222;
  line-height:1.6;
  font-size:15px;
}

h2.section{
  margin: 0 0 10px 0;
  font-size:22px;
  border-top:1px solid #f0f0f0;
  padding-top:22px;
}
.subhdr{
  color:var(--muted);
  font-size:12px;
  margin:6px 0 18px 0;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.pub-list{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.pub{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px;
  border:1px solid var(--card-border);
  border-radius:10px;
}
.pub-thumb{
  width:92px;
  height:68px;
  background:#f2f2f2;
  border-radius:6px;
  flex-shrink:0;
  overflow: hidden;
}
.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-body{ flex:1; }
.pub-title{
  font-weight:700;
  margin:0 0 6px 0;
  font-size:15px;
}
.pub-meta{
  margin:0 0 8px 0;
  color:var(--muted);
  font-size:13px;
}
.pub-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.link-btn{
  font-size:13px;
  color:var(--accent);
  text-decoration:none;
}
.link-btn:hover{
  text-decoration:underline;
}

footer{
  margin-top:34px;
  color:var(--muted);
  font-size:13px;
  border-top:1px solid #f3f3f3;
  padding-top:16px;
  text-align: center;
}

@media (max-width:560px){
  header{ gap:12px; }
  .name{ font-size:28px; }
  .avatar{ width:200px; height:200px; }
  .pub{ padding:12px; }
  .pub-thumb{ width:84px; height:64px; }
}

@media (max-width: 560px) {

  /* Header stacks vertically, avatar centered */
  header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .title {
    text-align: center;
  }

  /* Publications stack thumbnail above text */
  .pub {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pub-thumb {
    width: 100%;
    max-width: 280px;   /* optional max width for thumbnails */
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .pub-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .pub-body {
    width: 100%;
  }

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

