:root {
  --text: #202124;
  --muted: #5f6368;
  --rule: #dadce0;
  --link: #1772d0;
  --link-hover: #f09228;
  --bg: #ffffff;
  --soft: #f6f8fa;
  --highlight: #fff4bd;
  --highlight-rule: #f2c94c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.58;
}

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

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

.page {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 46px 0 36px;
}

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

h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
}

h3 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
  margin-top: 14px;
}

.links span {
  color: var(--muted);
}

.portrait {
  justify-self: center;
  width: 210px;
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  object-fit: cover;
}

.section {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  margin-top: 26px;
}

.news-section {
  padding-top: 18px;
}

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

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

.news-list time {
  color: var(--muted);
  white-space: nowrap;
}

.paper {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 24px 0;
  transition: transform 200ms ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .paper:hover {
    transform: scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper {
    transition: none;
  }
}

.paper-highlight {
  position: relative;
  isolation: isolate;
}

.paper-highlight::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  background: var(--highlight);
  border-left: 3px solid var(--highlight-rule);
  border-radius: 4px;
}

.paper-thumb {
  display: block;
  background: var(--soft);
  border-radius: 4px;
  overflow: hidden;
}

.paper-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.authors,
.venue,
.paper-links {
  margin-bottom: 2px;
}

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

.paper-summary {
  margin-top: 4px;
}

.highlight-word {
  background: var(--highlight);
  border-radius: 2px;
  padding: 0 3px;
}

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

.plain-list li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.plain-list span {
  color: var(--muted);
  white-space: nowrap;
}

.experience-list {
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
}

.experience-card {
  position: relative;
  isolation: isolate;
  min-height: 151px;
  padding: 12px 20px;
  overflow: hidden;
  background: #fcfcfd;
  border: 1px solid rgba(212, 212, 216, 0.72);
  border-radius: 6px;
  color: #0a0a0f;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.experience-card:hover {
  background: #f4f4f5;
  border-color: rgba(212, 212, 216, 1);
}

.experience-bg {
  position: absolute;
  inset-block: 0;
  right: 0;
  z-index: -1;
  width: 25%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, black 45%, transparent);
  mask-image: linear-gradient(to left, black 45%, transparent);
}

.experience-content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 620px;
  flex-direction: column;
  gap: 6px;
}

.experience-card h3 {
  margin: 0;
  color: #0a0a0f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.experience-date,
.experience-location {
  margin: 0;
  color: #45454d;
  font-size: 14.5px;
  line-height: 1.5;
}

.experience-card ul {
  margin: 0;
  padding-left: 18px;
  color: #45454d;
  font-size: 14.5px;
  line-height: 1.55;
  list-style: disc;
}

.experience-card li + li {
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.gallery-album {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.album-cover {
  display: block;
  position: relative;
  background: var(--soft);
  border-radius: 4px;
  box-shadow: 7px 7px 0 var(--soft), 7px 7px 0 1px var(--rule);
  overflow: hidden;
}

.album-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 160ms ease;
}

.gallery-album:focus-visible .album-cover,
.gallery-album:hover .album-cover {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.gallery-album:hover .album-cover img {
  transform: scale(1.025);
}

.album-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.album-title {
  font-size: 13px;
}

.album-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.gallery-preview {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 28px;
}

.gallery-preview.is-open {
  display: grid;
  place-items: center;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.78);
}

.preview-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: calc(100vh - 56px);
  padding: 18px;
  overflow: auto;
  background: var(--bg);
  border-radius: 4px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.preview-title {
  margin: 0 42px 12px 0;
}

.preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 4px;
  overflow: hidden;
}

.preview-image {
  display: block;
  max-width: 100%;
  max-height: min(66vh, 720px);
  object-fit: contain;
}

.preview-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 34px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.preview-prev {
  left: 10px;
}

.preview-next {
  right: 10px;
}

.preview-caption {
  color: var(--muted);
  margin: 10px 0;
}

.preview-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-thumb {
  width: 74px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.preview-thumb.is-active {
  border-color: var(--link);
}

.preview-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  margin-top: 28px;
  padding-top: 18px;
  text-align: center;
}

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

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

  .portrait {
    order: -1;
    width: min(58vw, 220px);
  }

  h1 {
    font-size: 30px;
  }

  .paper {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .paper-thumb {
    max-width: 360px;
  }

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

  .experience-card {
    min-height: 0;
    padding: 12px 16px;
  }

  .experience-card h3 {
    font-size: 17px;
  }

  .experience-date,
  .experience-location,
  .experience-card ul {
    font-size: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview {
    padding: 12px;
  }

  .preview-panel {
    max-height: calc(100vh - 24px);
    padding: 12px;
  }

  .preview-image {
    max-height: 58vh;
  }

}

@media print {
  body {
    font-size: 12px;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  a {
    color: var(--text);
  }
}
