/* Simple academic homepage stylesheet -- Lu Xing */

:root {
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --link: #14539a;
  --rule: #dcdcdc;
  --rule-soft: #ebebeb;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header ---- */

header.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

header.masthead img.photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.ident { flex: 1 1 380px; }

.ident h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
}

.ident .role {
  margin: 0 0 12px;
  color: var(--muted);
}

.ident address {
  font-style: normal;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 12px;
}

/* Email gets a line of its own, above the link row. */
.emailline {
  display: block;
  font-size: 16px;
  margin: 0 0 6px;
}

.emailline .email { font-weight: 600; }

.quicklinks {
  font-size: 15px;
  margin: 0;
}

.quicklinks a { white-space: nowrap; }

.quicklinks .sep { color: var(--rule); padding: 0 6px; }

/* ---- Navigation ---- */

nav.sections {
  margin: 18px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

nav.sections a { white-space: nowrap; }
nav.sections .sep { color: var(--rule); padding: 0 6px; }

/* ---- Sections ---- */

section { margin-top: 36px; }

h2 {
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 30px 0 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule-soft);
}

/* First subheading sits right under its h2 -- close the gap. */
h2 + h3 { margin-top: 18px; }

p { margin: 0 0 12px; }

/* ---- Publications ---- */

ol.pubs {
  margin: 0;
  padding-left: 22px;
}

ol.pubs li { margin-bottom: 14px; }

.pubs .title { font-weight: 600; }
.pubs .venue { color: var(--muted); }
.pubs .me { text-decoration: underline; }

.links {
  font-size: 14px;
  white-space: nowrap;
}

.links a {
  display: inline-block;
  margin-right: 6px;
  padding: 0 5px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  line-height: 1.5;
}

/* ---- Plain lists ---- */

ul.plain {
  margin: 0;
  padding-left: 22px;
}

ul.plain li { margin-bottom: 8px; }

/* ---- Experience entries ---- */

.entry { margin-bottom: 16px; }

.entry .head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.entry .what { font-weight: 600; }
.entry .when { color: var(--muted); font-size: 15px; }
.entry .where { color: var(--muted); }
.entry ul { margin: 4px 0 0; padding-left: 22px; }

/* ---- Footer ---- */

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

/* ---- Breadcrumb (secondary pages) ---- */

.crumb { font-size: 15px; color: var(--muted); margin: 0 0 24px; }

@media (max-width: 600px) {
  .wrap { padding: 28px 18px 48px; }
  header.masthead { gap: 18px; }
  header.masthead img.photo { width: 130px; height: 130px; }
  .ident h1 { font-size: 25px; }
}

/* ---- Obfuscated email ---- */

.email { white-space: nowrap; }

/* The character before "[at]" is a lowercase L, not the digit 1. The body face
   (Helvetica/Arial) draws them almost alike, so set it in an italic serif. */
.ell {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.email-hint {
  color: var(--muted);
  font-size: 13px;
}

footer .email { color: var(--muted); }

footer .email-hint { font-size: 13px; }
