/* Wenhao Zhang — academic homepage (classic style) */
:root{
  --text:#1f2328; --muted:#57606a; --navy:#232d4b; --link:#1a5fb4;
  --accent:#e57200; --rule:#e3e6ea; --venue:#7a2e2e;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; padding:0 20px; background:#fff; color:var(--text);
  font:17px/1.65 Georgia, "Times New Roman", "Songti SC", serif;
}
.page{max-width:780px; margin:0 auto; padding:26px 0 40px}
a{color:var(--link); text-decoration:none}
a:hover{color:var(--accent); text-decoration:underline}

/* top nav */
.topnav{
  display:flex; justify-content:space-between; align-items:baseline;
  border-bottom:1px solid var(--rule); padding-bottom:12px; margin-bottom:44px;
}
.topnav .site-name{
  font-size:16px; letter-spacing:.12em; text-transform:uppercase; color:var(--navy);
}
.topnav .links a{
  margin-left:22px; font-size:15.5px; color:var(--muted);
}
.topnav .links a:hover{color:var(--accent); text-decoration:none}
.topnav .links a.active{
  color:var(--navy); font-weight:bold;
  border-bottom:2px solid var(--accent); padding-bottom:3px;
}

/* header */
.header{display:flex; gap:36px; align-items:flex-start}
.header .intro{flex:1; min-width:0}
h1{font-size:34px; margin:0 0 2px; font-weight:normal; color:var(--navy); letter-spacing:.2px}

/* name pronunciation button */
.say-name{
  display:inline-flex; align-items:center; justify-content:center;
  vertical-align:middle; margin-left:11px; transform:translateY(-3px);
  width:30px; height:30px; padding:0;
  border:1px solid var(--rule); border-radius:7px;
  background:#fff; color:var(--muted); cursor:pointer;
  transition:color .15s ease, border-color .15s ease, background .15s ease;
}
.say-name:hover{color:var(--accent); border-color:var(--accent)}
.say-name:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.say-name svg{width:17px; height:17px; display:block}
.say-name.is-speaking{color:#fff; background:var(--accent); border-color:var(--accent)}

.cn-name{color:var(--muted); font-size:17px; margin:0 0 14px}
.header img{
  width:172px; height:172px; object-fit:cover; border-radius:8px; flex:none;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
}
.bio{margin:0 0 14px}
.quicklinks{font-size:15px; letter-spacing:.06em}
.quicklinks a{margin-right:14px; white-space:nowrap}

/* sections */
h2{
  font-size:15px; text-transform:uppercase; letter-spacing:.14em; font-weight:bold;
  color:var(--navy); border-bottom:1px solid var(--rule);
  padding-bottom:6px; margin:44px 0 18px;
}
.page-title{
  font-size:26px; font-weight:normal; color:var(--navy); margin:0 0 6px;
}
.page-subtitle{color:var(--muted); margin:0 0 8px; font-size:16px}
ul{padding-left:22px; margin:0}
li{margin-bottom:10px}
.muted{color:var(--muted)}
.venue{color:var(--venue); font-style:italic}
b.me{color:var(--navy)}

/* news */
.news{list-style:none; padding:0}
.news li{display:flex; gap:16px}
.news .date{flex:none; width:86px; color:var(--muted); font-size:15px}

/* research entries */
.work{display:flex; gap:20px; margin-bottom:24px; align-items:flex-start}
.work img{
  width:168px; height:104px; object-fit:cover; border-radius:6px; flex:none;
  border:1px solid var(--rule);
}
.work .body{flex:1; min-width:0}
.work h3{margin:0 0 4px; font-size:17.5px; font-weight:bold; color:var(--text)}
.work p{margin:0; font-size:16px}
.work .meta{font-size:14.5px; color:var(--muted); margin-top:4px}

/* publications */
.pubs li{margin-bottom:14px}

/* education */
.edu{list-style:none; padding:0}
.edu li{display:flex; justify-content:space-between; gap:16px; margin-bottom:10px}
.edu .right{color:var(--muted); white-space:nowrap; font-size:15.5px}

footer{
  margin-top:56px; padding-top:14px; border-top:1px solid var(--rule);
  font-size:14px; color:var(--muted);
}

@media (max-width:640px){
  .page{padding-top:18px}
  .topnav{margin-bottom:30px}
  .header{flex-direction:column-reverse; gap:20px}
  .header img{width:150px; height:150px}
  .work{flex-direction:column}
  .work img{width:100%; height:auto; max-height:180px}
  .edu li{flex-direction:column; gap:0}
}
