:root {
  color-scheme: light;
  --background: #fbfcfa;
  --ink: #1c2b33;
  --muted: #64737a;
  --accent: #365f78;
  --line: #d9e1e3;
  --icon-background: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100% - 64px, 1090px);
  margin: 0 auto;
  padding: 88px 0 130px;
}

.introduction {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(56px, 8vw, 110px);
}

.profile {
  min-width: 0;
}

.portrait {
  display: block;
  width: 100%;
  height: 302px;
  object-fit: cover;
  object-position: center 16%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d9dce0;
}

.social-links {
  display: flex;
  justify-content: space-between;
  gap: 11px;
  margin-top: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 51px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--icon-background);
  color: var(--accent);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

a.social-link:hover {
  border-color: var(--accent);
  background: #f2f6f7;
  transform: translateY(-2px);
}

.social-link--pending {
  color: #9ca9af;
  cursor: default;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link[aria-label="Novak Chen on X"] svg {
  stroke-width: 1.85;
}

.discipline {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 31px;
  font-size: clamp(2.3rem, 4vw, 3.65rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h1 span {
  white-space: nowrap;
}

.intro-copy > p:not(.discipline) {
  max-width: 65ch;
  margin-bottom: 18px;
  color: #3c4a51;
  font-size: 1.035rem;
  line-height: 1.78;
}

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

.text-link {
  color: var(--accent);
  text-decoration-color: #9bb1bd;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.content-section {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.education {
  margin-top: 82px;
}

h2 {
  margin-bottom: 32px;
  font-size: 1.38rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.education-list {
  max-width: 820px;
}

.education-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 34px;
}

.education-item + .education-item {
  border-top: 1px solid #e8edee;
  padding-top: 30px;
}

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

.education-years {
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

h3 {
  margin-bottom: 3px;
  font-size: 1.085rem;
  font-weight: 630;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.institution {
  margin-bottom: 4px;
  color: #45545b;
}

.advisor {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.publications {
  margin-top: 70px;
}

.publication-citation {
  max-width: 820px;
  margin-bottom: 0;
  color: #3c4a51;
  font-size: 1.035rem;
  line-height: 1.78;
}

.publication-title {
  color: var(--ink);
  font-weight: 630;
}

.publication-self {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.publication-venue {
  font-style: italic;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 40px, 600px);
    padding-top: 45px;
    padding-bottom: 90px;
  }

  .introduction {
    grid-template-columns: 1fr;
    gap: 39px;
  }

  .profile {
    width: min(100%, 280px);
  }

  .education {
    margin-top: 62px;
  }

  .publications {
    margin-top: 55px;
  }
}

@media (max-width: 520px) {
  h1 {
    margin-bottom: 25px;
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .intro-copy > p:not(.discipline) {
    font-size: 1rem;
    line-height: 1.72;
  }

  .education-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-bottom: 28px;
  }

  .education-item + .education-item {
    padding-top: 24px;
  }

  .education-years {
    padding-top: 0;
  }
}

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

  .social-link {
    transition: none;
  }
}
