/* Typography follows the classic Jon Barron academic-homepage template. */
@font-face {
  font-family: 'LatoSite';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/lato-v25-light-300.woff2') format('woff2');
}

@font-face {
  font-family: 'LatoSite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lato-v25-regular-400.woff2') format('woff2');
}

@font-face {
  font-family: 'LatoSite';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/lato-v25-bold-700.woff2') format('woff2');
}

@font-face {
  font-family: 'LXGWWenKaiName';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lxgw-wenkai-v1.522-name.woff2') format('woff2');
  unicode-range: U+FF08, U+7A0B, U+8A89, U+6D32, U+FF09;
}

@font-face {
  font-family: 'TinosTitle';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tinos-v26-name.woff2') format('woff2');
  unicode-range: U+0020, U+0043, U+0059, U+0065, U+0067, U+0068, U+006E, U+006F, U+0075, U+007A;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'LatoSite', sans-serif;
  font-size: 14px;
}

body {
  margin: 8px;
  color: #000;
  background: #fff;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

strong {
  font-family: 'LatoSite', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-family: 'LatoSite', sans-serif;
  font-size: 22px;
  font-weight: 400;
}

.page,
.intro-table,
.section-table,
.papers {
  width: 100%;
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
}

.page > tbody > tr > td {
  padding: 0;
}

.intro-copy {
  width: 63%;
  padding: 2.5%;
  vertical-align: middle;
}

.portrait-cell {
  width: 37%;
  max-width: 37%;
  padding: 2.5%;
  vertical-align: middle;
}

.portrait {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'LatoSite', sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
}

.name-en {
  font-family: 'TinosTitle', serif;
  font-weight: 400;
}

.name-cn {
  margin-left: 8px;
  font-family: 'LXGWWenKaiName', serif;
  font-size: 0.78em;
  font-weight: 400;
  white-space: nowrap;
}

.profile-links {
  text-align: center;
}

.section-table td {
  width: 100%;
  padding: 16px;
  vertical-align: middle;
}

.papers {
  border-spacing: 0 10px;
}

.paper-row .media-cell {
  width: 20%;
  padding: 16px;
  vertical-align: middle;
}

.paper-copy {
  width: 80%;
  padding: 8px;
  vertical-align: middle;
}

.papertitle {
  font-family: 'LatoSite', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.one {
  width: 180px;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #f6f6f6;
}

.one img,
.one video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.media-poster,
.preview-video {
  position: absolute;
  inset: 0;
}

.preview-video {
  opacity: 0;
  transition: opacity .16s ease-in-out;
}

.preview-video.is-ready {
  opacity: 1;
}

.paper-figure img {
  object-fit: contain;
}

.paper-copy p {
  margin-top: 1em;
  margin-bottom: 1em;
}

@media (max-width: 700px) {
  .intro-table,
  .intro-table tbody,
  .intro-table tr,
  .intro-table td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .portrait-cell {
    box-sizing: border-box;
    text-align: center;
  }

  .portrait {
    width: 180px;
  }

  .paper-row .media-cell {
    width: 34%;
    padding: 10px;
  }

  .paper-copy {
    width: 66%;
    padding: 10px;
  }

  .one {
    width: min(180px, 30vw);
  }
}

@media (max-width: 420px) {
  .name-cn {
    display: block;
    margin-top: 2px;
    margin-left: 0;
  }
}
