/* The layout follows the clean academic format used by doubiiu.github.io. */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Lato Regular"), local("Lato-Regular"), url("https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Lato Bold"), local("Lato-Bold"), url("https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local("Lato Italic"), local("Lato-Italic"), url("https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: local("Lato Bold Italic"), local("Lato-BoldItalic"), url("https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2") format("woff2");
}

:root {
  --text: #111;
  --muted: #4e4e4e;
  --link: #1772d0;
  --link-hover: #f09228;
  --rule: #e8e8e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 17px;
  line-height: normal;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.page-shell {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 0 0 20px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 63fr) minmax(240px, 37fr);
  gap: 0;
  align-items: center;
  padding: 25px 0;
}

.intro-copy {
  padding: 0 25px;
}

h1 {
  margin: 17px 0;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.role {
  margin: 0 0 1em;
  font-size: 18.7px;
  line-height: normal;
  text-align: center;
}

.intro-copy > p:not(.role) {
  margin: 1em 0;
}

.no-break {
  white-space: nowrap;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin: 1em 0;
}

.portrait-wrap {
  margin: 0;
  padding: 0 25px;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 52% 38%;
}

.works {
  margin-top: 0;
}

h2 {
  margin: 0;
  padding: 20px;
  font-size: 25px;
  font-weight: 400;
}

.works-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}

.works-toggle {
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.works-toggle-button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--link);
  background: transparent;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.works-toggle-button:hover,
.works-toggle-button:focus-visible {
  color: var(--link-hover);
}

.works-toggle-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.works-toggle-button.is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.works-view[hidden] {
  display: none;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  gap: 0;
  align-items: center;
  padding: 0;
}

.work-visual {
  display: block;
  overflow: hidden;
  background: #f5f5f5;
  margin: 20px;
}

.work-copy {
  padding: 20px;
}

.work-visual img,
.work-visual video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 220ms ease;
}

.work-visual img.contain {
  object-fit: contain;
  padding: 24px 16px;
}

.work-visual img.gl-preview {
  object-fit: contain;
  background: #fff;
}

.work-visual:hover img,
.work-visual:hover video {
  transform: scale(1.025);
}

.work-copy h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.work-copy p {
  margin: 1em 0;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
}

.star-badge {
  display: inline-flex;
  align-items: center;
  margin-left: -4px;
}

.star-badge img {
  display: block;
  width: auto;
  height: 20px;
}

.all-works {
  padding: 0 20px;
}

.publication-year {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0 0;
}

.publication-year > h3 {
  margin: 1px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.publication-item {
  margin: 0 0 20px;
}

.publication-item h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.publication-item p {
  margin: 4px 0;
}

.publication-venue {
  color: var(--muted);
  font-style: italic;
}

.detail-section,
.academic-services {
  margin-top: 0;
  padding: 0 20px;
}

.detail-section ul {
  margin: 0;
  padding-left: 28px;
}

.detail-section li {
  margin: 1em 0;
  padding-left: 4px;
}

.academic-services ul {
  margin: 0;
  padding-left: 28px;
}

.academic-services li {
  margin: 1em 0;
  padding-left: 4px;
}

.academic-services li > strong,
.academic-services li > span {
  display: block;
}

.academic-services li > span {
  margin-left: 0;
}

.site-footer {
  margin-top: 20px;
  padding: 20px;
  color: var(--text);
  font-size: small;
  line-height: normal;
  text-align: right;
}

.site-footer p {
  margin: 1em 0;
  font-size: small;
}

.site-footer a {
  font-size: 14px;
}

@media (max-width: 640px) {
  .page-shell {
    width: 100%;
    padding-top: 0;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 0;
  }

  .portrait-wrap {
    grid-row: 1;
    width: min(76vw, 340px);
    margin: 0 auto;
    padding: 20px;
  }

  .intro-copy {
    grid-row: 2;
  }

  .works {
    margin-top: 0;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .work-visual {
    width: 100%;
    margin: 20px 20px 0;
    width: calc(100% - 40px);
  }

  .publication-year {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 20px;
  }

  .site-footer {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
