@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap");

:root {
  --page: #f7f9fb;
  --text: #252b31;
  --muted: #68727d;
  --link: #165173;
  --line: #dbe1e5;
  --soft-line: #e8ecef;
  --accent-soft: #d7e1e7;
  --accent-faint: #ebf1f4;
  --axis-node-size: 10px;
  --axis-node-border: 2px;
  --axis-node-halo: 3px;
  --sidebar: 270px;
  --content: 900px;
  --page-width: calc(var(--sidebar) + var(--content) + 64px);
  --page-pad: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

p,
li,
a,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--link) 70%, white);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  color: var(--text);
  background: color-mix(in srgb, var(--link) 18%, white);
}

.keyword {
  text-decoration-line: underline;
  text-decoration-color: #9ca7af;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--page-width) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(34, 39, 46, 0.72);
  font-size: 19px;
  font-weight: 700;
}

.site-title::before {
  width: 4px;
  height: 22px;
  background: var(--link);
  content: "";
}

.site-signature {
  position: fixed;
  bottom: 34px;
  left: 34px;
  width: 100px;
  height: auto;
  opacity: 0.34;
  pointer-events: none;
  z-index: 5;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.topnav a {
  position: relative;
  padding-bottom: 5px;
  color: #4b5563;
  text-decoration: none;
}

.topnav a.active,
.topnav a:hover {
  color: var(--link);
}

.topnav a::after {
  position: absolute;
  right: 16%;
  bottom: 0;
  left: 16%;
  height: 2.5px;
  background: var(--link);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.topnav a.active::after,
.topnav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.page {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, var(--content));
  gap: 64px;
  max-width: calc(var(--page-width) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 42px var(--page-pad) 72px;
  overflow-x: hidden;
}

.page::before {
  position: absolute;
  top: 42px;
  bottom: 72px;
  left: calc(var(--page-pad) + var(--sidebar) + 32px);
  width: 1px;
  background: var(--soft-line);
  content: "";
}

.sidebar {
  position: static;
  align-self: start;
}

.avatar {
  display: block;
  width: 220px;
  height: 220px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: #f6f8fa;
  box-shadow:
    0 0 0 4px var(--page),
    0 0 0 5px color-mix(in srgb, var(--link) 24%, var(--line)),
    0 12px 28px rgba(22, 81, 115, 0.07);
}

.sidebar h1 {
  margin: 0 0 6px;
  color: #1f2328;
  font-size: 27px;
  line-height: 1.15;
}

.alias {
  margin: 0 0 12px;
  color: #57606a;
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
}

.role {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.current-degree {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.8px;
}

.location img {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.profile-links {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  transition: color 180ms ease;
}

.profile-links a:hover {
  text-decoration-thickness: 1px;
}

.profile-links img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
}

.content {
  max-width: var(--content);
  min-width: 0;
}

.content-section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--soft-line);
}

.content-section:last-child {
  border-bottom: 0;
}

.home-page .content-section {
  border-bottom: 0;
  margin-bottom: 31px;
  padding-bottom: 31px;
}

.home-page .content-section > p,
.home-page .plain-list {
  max-width: 85ch;
}

.home-page h2 {
  margin-bottom: 16px;
}

.home-page .plain-list li {
  margin: 7px 0;
}

.home-page .plain-list li::marker {
  color: color-mix(in srgb, var(--link) 66%, var(--muted));
}

.interest-list {
  display: grid;
  gap: 17px;
  padding-left: 0;
  list-style: none;
  counter-reset: research-interest;
}

.home-page .interest-list {
  padding-left: 0;
}

.home-page .interest-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  margin: 0;
  padding: 0;
  counter-increment: research-interest;
}

.home-page .interest-list li + li {
  padding-top: 0;
}

.home-page .interest-list li::before {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: auto;
  margin-top: 1px;
  color: var(--link);
  content: counter(research-interest, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.interest-title,
.interest-description {
  display: block;
  grid-column: 2;
}

.interest-title {
  color: #303840;
  font-weight: 600;
  line-height: 1.4;
}

.interest-description {
  max-width: 62ch;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.home-page .content a {
  font-weight: 500;
}

h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #1f2328;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h2::after {
  position: static;
  display: block;
  width: 172px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(
    to right,
    rgba(104, 114, 125, 0.66) 0%,
    rgba(104, 114, 125, 0.58) 52%,
    rgba(104, 114, 125, 0.4) 80%,
    rgba(104, 114, 125, 0.16) 94%,
    rgba(104, 114, 125, 0) 100%
  );
  content: "";
}

h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #1f2328;
  font-size: 18px;
  line-height: 1.3;
}

.school-logo {
  flex: 0 0 auto;
  object-fit: contain;
}

p {
  margin: 0 0 14px;
}

.plain-list {
  margin: 0;
  padding-left: 22px;
}

.plain-list li {
  margin: 6px 0;
}

.section-note,
.meta {
  color: var(--muted);
  font-size: 13.8px;
}

.subtitle {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.school-logo-seal {
  width: 30px;
  height: 30px;
}

.school-logo-rmit {
  width: 58px;
  height: 20px;
}

.school-logo-ivy {
  width: 72px;
  height: 24px;
}

.school-logo-kindergarten {
  width: 30px;
  height: 30px;
}

.publication-list {
  margin: 18px 0 0;
}

.publication-year {
  position: relative;
  margin: 0 0 34px 4px;
  padding-left: 28px;
}

.publication-year::before,
.awards-page .year-group::before {
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--accent-soft);
  content: "";
  transform: translateX(-50%);
}

.publication-year::after,
.awards-page .year-group::after {
  position: absolute;
  top: 5px;
  left: 0;
  width: var(--axis-node-size);
  height: var(--axis-node-size);
  border: var(--axis-node-border) solid var(--link);
  border-radius: 50%;
  background: var(--page);
  content: "";
  transform: translateX(-50%);
}

.publication-year.current-year::after,
.awards-page .year-group.current-year::after {
  background: var(--link);
  box-shadow: 0 0 0 var(--axis-node-halo) var(--accent-faint);
}

.publication-year:last-child {
  margin-bottom: 0;
}

.publication-year h3,
.awards-page .year-group h3 {
  color: #1f2328;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.publication-year h3 {
  position: relative;
  margin-bottom: 14px;
}

.awards-page .year-group h3 {
  margin-bottom: 16px;
}

.publication-year h3::after,
.awards-page .year-group h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--soft-line);
}

.publication-entry {
  position: relative;
  margin-bottom: 25px;
  padding-left: 0;
}

.publication-entry::before {
  position: absolute;
  top: 8px;
  left: -28px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--link) 58%, var(--page));
  content: "";
  transform: translateX(-50%);
  z-index: 1;
}

.publication-entry:last-child {
  margin-bottom: 0;
}

.publication-entry:last-child::after {
  position: absolute;
  top: 11px;
  bottom: 0;
  left: -28px;
  width: 3px;
  background: var(--page);
  content: "";
  transform: translateX(-50%);
}

.publication-entry h4 {
  margin: 0 0 7px;
  color: #3f4851;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.38;
  text-wrap: pretty;
  transition: color 180ms ease;
}

.publication-entry:hover h4 {
  color: #303b45;
}

.publication-entry p {
  margin-bottom: 6px;
}

.pub-authors {
  color: #59636d;
  font-size: 15px;
  line-height: 1.5;
}

.pub-venue {
  color: #515b65;
  font-size: 15px;
  line-height: 1.5;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pub-actions a {
  color: var(--link);
  font-size: 13.8px;
  font-weight: 700;
  white-space: nowrap;
}

.year-group {
  margin-bottom: 40px;
}

.year-group:last-child {
  margin-bottom: 0;
}

.awards-page .plain-list {
  padding-left: 0;
  list-style: none;
}

.awards-page .year-group {
  position: relative;
  margin: 0 0 36px 4px;
  padding-left: 28px;
}

.awards-page .year-group h3 {
  position: relative;
}

.awards-page .plain-list li {
  position: relative;
  margin: 0 0 14px;
  color: #424a52;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.awards-page .plain-list li::before {
  position: absolute;
  top: 8px;
  left: -28px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--link) 58%, var(--page));
  content: "";
  transform: translateX(-50%);
  z-index: 1;
}

.awards-page .plain-list li:last-child {
  margin-bottom: 0;
}

.awards-page .plain-list li:last-child::after {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: -28px;
  width: 3px;
  background: var(--page);
  content: "";
  transform: translateX(-50%);
}

.awards-page .plain-list li::marker {
  color: var(--muted);
}

.awards-page .plain-list strong {
  color: #1f2328;
  font-weight: 800;
}

.timeline {
  --timeline-axis: 176px;

  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--timeline-axis);
  width: 1px;
  background: var(--accent-soft);
  content: "";
  transform: translateX(-50%);
}

.timeline-item::after {
  position: absolute;
  top: 6px;
  left: var(--timeline-axis);
  width: var(--axis-node-size);
  height: var(--axis-node-size);
  border: var(--axis-node-border) solid var(--link);
  border-radius: 50%;
  background: var(--page);
  content: "";
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item:first-child::before {
  top: 11px;
}

.timeline-item:first-child::after {
  background: var(--link);
  box-shadow: 0 0 0 var(--axis-node-halo) var(--accent-faint);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item:last-child::before {
  bottom: auto;
  height: 11px;
}

.education-page .timeline-item h3 {
  gap: 6px;
}

.date {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 821px) and (max-height: 820px) {
  .site-signature {
    bottom: 22px;
    left: 24px;
    width: 84px;
    opacity: 0.3;
  }
}

@media (min-width: 821px) {
  .education-page .page {
    padding-bottom: 0;
  }

  .education-page .content-section {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .education-page h2 {
    margin-bottom: 24px;
    padding-bottom: 0;
  }

  .education-page .timeline {
    gap: 0;
  }

  .education-page .timeline-item {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 17px;
  }

  .education-page .timeline-item:last-child {
    padding-bottom: 0;
  }

  .education-page .timeline-item h3 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
  }

  .education-page .school-logo {
    width: 48px;
    height: 30px;
    flex: 0 0 48px;
    object-position: center;
    background: transparent;
  }

  .education-page .timeline-item p {
    margin-bottom: 5px;
    line-height: 1.4;
  }

  .education-page .timeline-item .subtitle {
    font-size: 14px;
  }

  .education-page .timeline-item .meta,
  .education-page .date {
    font-size: 13.8px;
  }

}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px 22px;
    max-width: 100vw;
  }

  .site-signature {
    display: none;
  }

  .page {
    display: block;
    max-width: 100vw;
    padding: 30px 22px 56px;
  }

  .page::before {
    display: none;
  }

  .sidebar {
    position: static;
    display: block;
    width: auto;
    min-width: 0;
  }

  .avatar {
    width: 112px;
    height: 112px;
    margin: 0 0 14px;
  }

  .sidebar h1,
  .alias,
  .role,
  .current-degree,
  .location,
  .profile-links {
    grid-column: auto;
  }

  .sidebar h1 {
    margin-top: 0;
    font-size: 24px;
  }

  .role {
    margin-bottom: 8px;
    max-width: 100%;
  }

  .profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .content,
  .content-section {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 24px;
  }

  .timeline {
    --timeline-axis: 5px;
  }

  .education-page .school-logo {
    width: 48px;
    height: 30px;
    flex: 0 0 48px;
    object-position: center;
    background: transparent;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
