:root {
  --text: #2b2b2b;
  --muted: #666666;
  --link: #2873c7;
  --line: #dedede;
  --soft: #f7f7f7;
  --accent: #c84630;
  --page-width: 920px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.page,
.site-footer {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
}

.page {
  padding: 58px 0 32px;
}

.profile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  margin-bottom: 50px;
}

.profile-photo {
  margin: 0;
}

.profile-photo img {
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.profile-copy h1 {
  margin: 0 0 18px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
}

.profile-copy h1 span {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
}

.profile-copy p {
  margin: 0 0 14px;
  font-size: 17px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 20px !important;
  font-weight: 600;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-links i {
  width: 1em;
  font-size: 14px;
  text-align: center;
}

.profile-links > span,
.publication-links span {
  color: #aaaaaa;
}

.content-section {
  margin-top: 38px;
}

.content-section h2 {
  margin: 0 0 20px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

.content-section h2::after {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 7px;
  margin-bottom: -9px;
  background: var(--link);
  content: "";
}

.news-list p {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  margin: 10px 0;
}

.news-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.education-logo {
  display: block;
}

.education-logo img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.education-copy p {
  margin: 3px 0;
  font-size: 15px;
}

.education-school {
  font-size: 17px !important;
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 116px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.experience-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 80px;
}

.experience-logo img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.experience-logo .experience-logo-wide {
  width: 110px;
  height: auto;
}

.experience-copy p {
  margin: 3px 0;
  font-size: 15px;
}

.experience-role {
  font-size: 17px !important;
}

.publication-list {
  display: grid;
  gap: 0;
}

.publication-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.publication-item:first-child {
  padding-top: 6px;
}

.publication-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.publication-media img,
.publication-media video {
  display: block;
  width: 100%;
  height: 156px;
  object-fit: cover;
}

.publication-media video {
  pointer-events: none;
}

.publication-media .publication-image-contain {
  object-fit: contain;
}

.publication-media .publication-video-contain {
  object-fit: contain;
  background: #000000;
}

.publication-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.publication-copy h3 a {
  color: var(--text);
}

.publication-copy p {
  margin: 4px 0;
  font-size: 14px;
}

.authors {
  color: var(--text);
}

.author-note {
  color: var(--muted);
  font-size: 12px !important;
}

.venue {
  color: var(--accent);
}

.publication-links {
  display: flex;
  gap: 8px;
  margin-top: 8px !important;
  font-weight: 600;
}

.site-footer {
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.error-page {
  display: grid;
  min-height: 100svh;
  align-content: center;
  width: min(calc(100% - 40px), 760px);
  margin: 0 auto;
}

.error-page .eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.error-page h1 {
  margin: 14px 0;
  font-size: 42px;
  line-height: 1.1;
}

.error-page p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--muted);
}

.error-link {
  width: max-content;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  font-weight: 600;
}

@media (max-width: 720px) {
  .page {
    padding-top: 34px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .profile-photo {
    justify-self: center;
  }

  .profile-photo img {
    width: 180px;
    height: 180px;
  }

  .profile-copy h1 {
    font-size: 32px;
    text-align: center;
  }

  .profile-copy h1 span {
    font-size: 19px;
  }

  .profile-copy p {
    font-size: 16px;
  }

  .profile-links {
    justify-content: center;
  }

  .content-section {
    margin-top: 32px;
  }

  .content-section h2 {
    font-size: 24px;
  }

  .publication-item {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }

  .publication-media img,
  .publication-media video {
    height: 126px;
  }
}

@media (max-width: 560px) {
  .page,
  .site-footer {
    width: min(calc(100% - 30px), var(--page-width));
  }

  .profile-copy h1 span {
    display: block;
    margin: 6px 0 0;
  }

  .news-list p {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    font-size: 14px;
  }

  .education-item {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .education-logo img {
    width: 60px;
    height: 60px;
  }

  .education-copy p {
    font-size: 14px;
  }

  .education-school {
    font-size: 15px !important;
  }

  .experience-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    min-height: 100px;
    padding: 16px;
  }

  .experience-logo {
    width: 72px;
    height: 64px;
  }

  .experience-logo img {
    width: 60px;
    height: 60px;
  }

  .experience-logo .experience-logo-wide {
    width: 72px;
    height: auto;
  }

  .experience-copy p {
    font-size: 14px;
  }

  .experience-role {
    font-size: 15px !important;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
  }

  .publication-media img,
  .publication-media video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .publication-copy h3 {
    font-size: 17px;
  }

  .error-page h1 {
    font-size: 34px;
  }
}
