/* ===========================================================================
   Personal site — based on Jon Barron's website template.
   Clean, centered, single-column. Edit colors/fonts to taste.
   =========================================================================== */

:root {
  --max-width: 800px;
  --text: #1a1a1a;
  --muted: #555;
  --link: #1772d0;
  --link-hover: #f09228;
  --rule: #e6e6e6;
}

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

body {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  max-width: var(--max-width);
  margin: 40px auto 80px auto;
  padding: 0 22px;
}

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

h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px 0;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 8px 0 4px 0;
}

p { margin: 0 0 14px 0; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 28px 0;
}

/* ---------- Nav ---------- */
.nav {
  font-weight: 400;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.nav a { margin-right: 18px; }

/* ---------- Header / bio ---------- */
.header { margin-bottom: 4px; }

.role {
  font-weight: 400;
  margin: 0 0 2px 0;
}
.location {
  color: var(--muted);
  margin: 0 0 10px 0;
}

.header-text {
  vertical-align: top;
  padding-right: 28px;
}

.header-photo {
  vertical-align: top;
  width: 180px;
  text-align: right;
}

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

.links {
  font-weight: 400;
  margin-top: 6px;
}

/* ---------- Project / publication entries ---------- */
.content td { vertical-align: top; }

.thumb {
  width: 180px;
  text-align: center;
  padding-right: 18px;
}
.thumb img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.entry { padding-left: 4px; }

.title {
  font-weight: 700;
  font-size: 18px;
}
.authors { color: var(--text); }
.venue {
  color: var(--muted);
  font-style: italic;
}
.desc {
  color: var(--muted);
  display: inline-block;
  margin: 6px 0;
}
.entry-links { font-weight: 400; }

/* ---------- Research ---------- */
.subhead {
  font-weight: 700;
  margin: 14px 0 6px 0;
}
.key-areas {
  margin: 0 0 6px 0;
  padding-left: 22px;
}
.key-areas li { margin-bottom: 4px; }

/* ---------- Publications (text-only, no thumbnails) ---------- */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pub-list li { margin-bottom: 18px; }
.pub-list .title { font-weight: 700; }
.pub-list .authors { color: var(--text); }
.pub-list .venue { color: var(--muted); font-style: italic; }

/* ---------- Academic background ---------- */
.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.edu-list li { margin-bottom: 16px; line-height: 1.5; }
.edu-list .degree { font-weight: 700; }
.edu-list .institution { color: var(--text); }
.edu-list .edu-year { color: var(--muted); font-style: italic; }
.edu-list .edu-detail { color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  body { font-size: 16px; }

  .header, .header-text, .header-photo,
  .content, .content tbody, .content tr, .content td,
  .thumb, .entry {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0;
  }

  .header-photo { text-align: center; margin: 0 0 18px 0; }
  .header-text { padding-right: 0; }

  .content tr { margin-bottom: 26px; }
  .thumb { text-align: center; margin-bottom: 10px; padding: 0; }
  .thumb img { width: 100%; height: auto; max-width: 320px; }
}
