:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5f6f7e;
  --line: #d9e0e7;
  --teal: #0f766e;
  --blue: #2458a6;
  --amber: #a15c07;
  --link: #1f5fbf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover,
a:focus {
  color: var(--teal);
  text-decoration: underline;
}

.page {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  padding: 48px 0 40px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 48px;
  padding: 18px 0 34px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.14;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

h3 {
  margin-bottom: 4px;
  font-size: 17px;
  line-height: 1.35;
}

.affiliation {
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
}

.degree-period {
  margin-bottom: 4px;
  color: var(--muted);
}

.advisor {
  margin-bottom: 20px;
  color: var(--muted);
}

.summary {
  max-width: 680px;
  margin-bottom: 18px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.profile-links a {
  font-weight: 700;
}

.profile-links a + a::before {
  content: "/";
  margin-right: 18px;
  color: var(--muted);
  font-weight: 400;
}

.portrait {
  margin: 0;
  justify-self: end;
}

.portrait img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.section p:last-child,
.entry p:last-child,
.item p:last-child {
  margin-bottom: 0;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.interest-list li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: #24313f;
  font-size: 14px;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
}

time,
.meta,
.muted {
  color: var(--muted);
}

.item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px 0;
}

.item + .item,
.entry + .entry {
  border-top: 1px solid var(--line);
}

.thumb {
  width: 160px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: linear-gradient(135deg, #174c6b, #0f766e);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
}

.thumb-placeholder span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.thumb-placeholder strong {
  font-size: 15px;
  line-height: 1;
}

.authors {
  margin-bottom: 2px;
}

.author-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.entry {
  padding: 14px 0;
}

.contact-line {
  font-weight: 700;
}

.footer {
  padding-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.visitor-stats {
  margin-bottom: 14px;
}

.visitor-stats img {
  display: block;
  width: min(420px, 100%);
  height: auto;
  border: 0;
}

.visitor-caption {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 28px, 940px);
    padding-top: 26px;
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portrait {
    justify-self: start;
    order: -1;
  }

  .portrait img {
    width: 180px;
    height: 180px;
  }

  h1 {
    font-size: 36px;
  }

  .news-list li,
  .item {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: min(100%, 260px);
  }
}

@media (max-width: 440px) {
  body {
    font-size: 15px;
  }

  .page {
    width: min(100% - 24px, 940px);
  }

  h1 {
    font-size: 32px;
  }

  .profile-links {
    gap: 6px 12px;
  }

  .profile-links a + a::before {
    margin-right: 12px;
  }
}
