/* =========================
   Gray–White Minimal Theme
   ========================= */

/* Color tokens */
:root{
  --bg:#f7f7f8;      /* page background */
  --fg:#222426;      /* primary text */
  --muted:#6b6f76;   /* secondary text */
  --line:#e5e7eb;    /* borders/dividers */
  --card:#ffffff;    /* card background */
  --link:#3f4752;    /* links */
  --accent:#7a838e;  /* subtle accent */
}

/* Keep light theme even in system dark mode */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#f7f7f8; --fg:#222426; --muted:#6b6f76; --line:#e5e7eb; --card:#ffffff; --link:#3f4752; --accent:#7a838e;
  }
}

/* Base reset */
*{ box-sizing:border-box }
html,body{ margin:0; padding:0 }
body{
  background:var(--bg);
  color:var(--fg);
  font:16px/1.7 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  letter-spacing:.1px;
}

/* Layout */
.container{ max-width:980px; margin:0 auto; padding:0 16px }
.section{ padding:40px 0 }
.section .container{ padding-top:10px; border-top:1px solid var(--line) }
.section h2{ font-size:22px; margin:0 0 14px 0; font-weight:700; color:#1f2327 }

/* Header */
.site-header{
  position:sticky; top:0; z-index:10;
  background:#fbfbfc;
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:16px 0;
}
.name{ margin:0; font-size:32px; font-weight:700 }
.tagline{ margin:4px 0; color:#2c2f33 }
.tagline.light{ color:var(--muted); font-size:13.5px }
.subtag{ color:#4c5056; margin-top:6px }

/* Nav */
.nav a{
  color:#2b2e31; text-decoration:none;
  margin-left:18px; padding-bottom:4px; position:relative;
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:#9aa2ad; transition:width .2s ease;
}
.nav a:hover{ color:#16181a }
.nav a:hover::after{ width:100% }
/* Keyboard focus */
.nav a:focus{ outline:2px solid var(--accent); outline-offset:2px }

/* Hero */
.hero{
  display:grid; grid-template-columns:160px 1fr;
  gap:28px; align-items:center;
}
.avatar{
  display:block;
  width:100%;
  max-width:260px;         /* desktop max */
  height:auto;             /* keep aspect */
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:0 3px 10px rgba(0,0,0,.04);
  object-fit:contain;      /* show full image */
  object-position:center;
  margin:0 auto;           /* center on small screens */
}
.intro p{ margin-top:6px }

/* ID badges / bullets near About */
.id-badges{ margin:12px 0 0 0; padding-left:18px; color:var(--muted) }


/* Publications */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-list li {
  margin-bottom: 1rem;
}

.pub-list p {
  margin: 0;
  line-height: 1.6;
  text-align: justify;
  font-size: 0.95rem;
  color: var(--fg);
}

.pub-list strong {
  font-weight: 600;
}

.pub-list em {
  font-style: italic;
}

.pub-list a {
  color: var(--link);
  text-decoration: none;
}

.pub-list a:hover {
  text-decoration: underline;
}

.status {
  color: #2f855a;
  font-weight: 500;
}



/* Acknowledgements */
#acknowledgements p{
  color:var(--muted);
  line-height:1.8;
}

/* Contact */
.contact{ margin:8px 0 0 1.2rem }
.contact li{ list-style:none; position:relative; padding-left:22px; margin:6px 0 }
.contact li::before{
  content:"•"; position:absolute; left:6px; top:0;
  color:#8d949c; font-weight:700;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:20px 0; color:#8a9098;
  background:#fafafb; font-size:14px;
}

/* Responsive */
@media (max-width:640px){
  .hero{ grid-template-columns:1fr }
  .avatar{ max-width:180px }
  .nav{ display:none }  /* simple mobile header; can replace with hamburger later */
}

/* ---- Academic Publication Style ---- */
.pub-list {
  list-style: none;
  margin: 8px 0;         
  padding-left: 1.2rem;   
}
.pub-list li {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  text-indent: -1.2rem;   
}

.pub-authors {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.pub-title {
  margin: 4px 0;
  font-size: 16px;
  line-height: 1.5;
}
.pub-meta {
  margin: 2px 0;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}
.pub-link {
  margin: 4px 0 0 0;
  font-size: 14px;
}
.pub-link a.ext {
  color: var(--link);
  font-weight: 600;
}
.pub-link a.ext:hover {
  text-decoration: underline;
}

/* === Card readability polish === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);              
  box-shadow: 0 10px 24px rgba(0,0,0,.08);  
  border-color: #d9dde3;
}

.card h3 {
  margin: 4px 0 10px 0;
  font-size: 14px;
  line-height: 1.25;
}

.card p {
  font-size: 11px;
  margin: 6px 0 0 0;
  line-height: 1.7;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .cards { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  .card { 
    padding: 18px; 
  }
  .card h3 { 
    font-size: 20px; 
    margin-bottom: 10px; 
  }
}
