:root {
  --grey: rgb(82, 82, 82);
  --muted: rgb(112, 112, 112);
  --line: rgb(222, 226, 232);
  --blue1: rgb(2, 33, 105);
  --blue2: rgb(0, 94, 170);
  --blue3: rgb(0, 114, 206);
  --paper: rgb(255, 255, 255);
  --soft: rgb(247, 249, 252);
  --anchor-offset: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--grey);
  font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
}

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

a:hover,
a:focus {
  color: var(--blue1);
  text-decoration: underline;
}

#profile-intro p a,
.news-list a,
.paper-links a,
.edu-right p a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 114, 206, 0.42);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

p {
  margin: 0 0 0.75rem;
}

strong {
  color: rgb(35, 35, 35);
  font-weight: 600;
}

h1,
h2,
h3 {
  color: var(--blue1);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  clear: both;
  font-size: 1.45rem;
  margin: 2.25rem 0 1rem;
}

#page,
#header {
  width: min(1000px, calc(100vw - 36px));
  margin: 0 auto;
}

#header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

#header a {
  color: var(--grey);
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
}

#header a:hover,
#header a:focus {
  color: var(--blue3);
}

#profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  scroll-margin-top: var(--anchor-offset);
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
}

#profile-pic {
  width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgb(238, 242, 247);
}

#profile-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#profile-name {
  color: var(--blue1);
  font-size: 2.65rem;
  font-weight: 400;
  text-align: center;
}

#profile-email {
  margin: 0.2rem 0 1.1rem;
  color: var(--blue1);
  font-weight: 400;
  text-align: center;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  margin-top: 1.2rem;
}

.profile-links a,
.profile-links span {
  font-weight: 400;
}

.profile-links > :not(:last-child)::after {
  color: var(--muted);
  content: "/";
  margin-left: 0.8rem;
}

.section {
  clear: both;
  scroll-margin-top: var(--anchor-offset);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

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

.news-list li {
  margin: 0.25rem 0;
}

.research-proj {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: center;
  min-height: 190px;
  margin: 0 0 30px;
}

.research-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.research-thumb img,
.research-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.research-copy p:last-child {
  margin-bottom: 0;
}

.research-proj-title {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--blue1);
  font-size: 1.13rem;
  font-weight: 500;
  line-height: 1.25;
}

.paper-authors,
.paper-venue,
.paper-links,
.paper-tldr {
  margin-bottom: 0.35rem;
}

.paper-authors {
  color: rgb(35, 35, 35);
}

.paper-venue {
  color: var(--grey);
}

.research-note {
  color: var(--muted);
  font-size: 0.96rem;
  margin: -0.5rem 0 0;
}

.paper-links {
  font-weight: 400;
}

.placeholder-link {
  color: var(--muted);
}

.paper-tldr {
  color: var(--grey);
}

.author-link {
  color: rgb(35, 35, 35);
}

.author-link:hover,
.author-link:focus {
  color: var(--blue3);
}

.placeholder-section p {
  max-width: 620px;
  color: var(--muted);
}

.service-group {
  margin-top: 1.2rem;
}

.service-group h3 {
  margin: 0 0 0.55rem;
  color: var(--blue1);
  font-size: 1.22rem;
  font-weight: 500;
}

.service-list {
  margin: 0;
  padding-left: 1.15rem;
}

.service-list li {
  margin: 0.32rem 0;
}

.service-title {
  color: rgb(35, 35, 35);
  font-weight: 600;
}

.edu-table {
  width: 100%;
  border: 0;
  border-spacing: 0 8px;
  border-collapse: separate;
}

.edu-col-logo {
  width: 160px;
}

.edu-left {
  width: 160px;
  padding: 10px 20px 10px 0;
  text-align: center;
  vertical-align: middle;
}

.edu-logo {
  display: block;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.edu-logo-stanford {
  width: 118px;
}

.edu-logo-snu {
  width: 124px;
}

.edu-right {
  padding: 10px 0;
  vertical-align: top;
}

.edu-title {
  display: block;
  color: rgb(35, 35, 35);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.edu-subtitle {
  display: block;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 0.12rem;
}

.edu-date {
  display: block;
  margin-top: 0.55rem;
}

.edu-right p {
  margin: 0.32rem 0 0;
}

.edu-label {
  color: rgb(35, 35, 35);
  font-weight: 600;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  #page,
  #header {
    width: min(100% - 28px, 1000px);
  }

  #header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.85rem;
    overflow-x: visible;
    padding-bottom: 8px;
  }

  #profile {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 28px;
  }

  #profile-pic {
    width: min(220px, 70vw);
    margin: 0 auto;
  }

  #profile-name {
    font-size: 2.25rem;
  }

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

  .research-proj {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 34px;
  }

  .research-thumb {
    max-width: 100%;
  }

  .edu-col-logo {
    width: 104px;
  }

  .edu-left {
    width: 104px;
    padding-right: 16px;
  }

  .edu-logo-stanford {
    width: 88px;
  }

  .edu-logo-snu {
    width: 92px;
  }
}

@media (max-width: 520px) {
  h2 {
    font-size: 1.72rem;
  }

  #header a {
    font-size: 0.9rem;
  }

  .profile-links > :not(:last-child)::after {
    margin-left: 0.6rem;
  }

  .edu-table,
  .edu-table tbody,
  .edu-table tr,
  .edu-table td {
    display: block;
    width: 100%;
  }

  .edu-left {
    padding: 14px 0 4px;
    text-align: left;
  }

  .edu-right {
    padding-top: 4px;
  }
}
