@font-face {
  font-family: "Lato";
  src: url("assets/fonts/lato-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("assets/fonts/lato-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("assets/fonts/lato-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("assets/fonts/lato-bold-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #252525;
  --body: #505050;
  --muted: #707070;
  --line: #e6e6e6;
  --paper: #ffffff;
  --display: "Lato", Verdana, Helvetica, sans-serif;
  --sans: "Lato", Verdana, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 3rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
::selection { background: #e7e7e7; color: #111; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 1px; }
p, h1, h2, h3 { margin: 0; }
ol, ul { list-style: none; padding: 0; margin: 0; }

.page { width: min(100% - 7rem, 1040px); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 60px; padding-top: 94px; }
.sidebar { position: sticky; top: 94px; align-self: start; padding-bottom: 2rem; }
.profile-photo { display: block; width: 250px; max-width: 100%; height: auto; border-radius: 14px 20px 14px 20px; transform: rotate(-3deg); margin: 0 0 27px; }
.profile-details { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.identity { display: inline-block; font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: normal; text-decoration: none; white-space: nowrap; }
.identity:hover { text-decoration: none; opacity: .7; }
.contact-links { display: flex; flex: 0 0 auto; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; }
.contact-links a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--muted); border-radius: 4px; text-decoration: none; }
.contact-links a:hover { color: var(--ink); background: #f5f5f5; }
.contact-links svg { display: block; }
nav { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 34px; }
nav a { position: relative; padding: 5px 0; font-size: .9375rem; color: var(--muted); text-decoration: none; }
nav a[aria-current="location"] { color: var(--ink); font-weight: 700; }
nav a[aria-current="location"]::before { content: ""; position: absolute; top: 50%; left: -19px; width: 8px; height: 1px; background: currentColor; }
main { min-width: 0; }
.section { padding: 0 0 42px; margin-bottom: 39px; border-bottom: 1px solid var(--line); scroll-margin-top: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 27px; }
.section-heading h1, .section-heading h2 { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; font-weight: 400; letter-spacing: normal; }
.section-number { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.intro { font-family: var(--sans); font-size: 1.8rem; font-weight: 400; line-height: 1.45; letter-spacing: normal; margin-bottom: 22px; max-width: 610px; }
.bio { color: var(--body); margin-top: 12px; line-height: 1.8; }
.placeholder { color: inherit; }
h3 { font-size: 1rem; line-height: 1.5; font-weight: 700; }
.education-list { display: grid; gap: 27px; }
.education-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 1.5rem; }
.education-entry > div { display: contents; }
.education-entry h3 { grid-column: 1 / -1; }
.education-entry > .date { grid-column: 2; grid-row: 2; justify-self: end; }
.education-entry p { grid-column: 1; }
.education-entry p { color: var(--body); margin-top: 3px; }
.education-entry .secondary, .secondary { color: var(--muted); font-size: .875rem; }
.date { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.publication-list { display: grid; gap: 28px; }
.publication { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: baseline; }
.publication h3 { max-width: 540px; }
.publication h3 a { text-decoration: none; }
.publication h3 a:hover { text-decoration: underline; }
.authors { margin-top: 6px; font-size: .875rem; color: var(--body); line-height: 1.65; }
.authors strong { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: #b5b5b5; text-underline-offset: 3px; }
.venue { color: var(--muted); font-size: .875rem; margin-top: 3px; font-style: italic; }
.collaborator-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 35px; }
.collaborator-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.collaborator-bio { color: var(--body); margin-top: 9px; line-height: 1.7; font-size: .875rem; }
.collaborators-section { margin-bottom: 0; padding-bottom: 40px; }
footer { padding: 25px 0 42px; display: flex; justify-content: space-between; gap: 1.5rem; color: var(--muted); font-size: .8125rem; }
footer a { text-decoration: none; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 8px 16px; background: var(--ink); color: white; z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 1000px) {
  .page { width: min(100% - 5rem, 900px); grid-template-columns: 220px minmax(0, 1fr); column-gap: 45px; padding-top: 64px; }
  .sidebar { top: 64px; }
  .intro { font-size: 1.65rem; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 1.5rem; }
  .page { display: block; width: calc(100% - 3rem); padding-top: 36px; }
  .sidebar { position: static; padding-bottom: 0; margin-bottom: 35px; }
  .profile { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 23px; }
  .profile-photo { flex: 0 0 auto; width: 140px; margin: 0; }
  .profile-details { flex: 0 0 auto; min-width: 0; }
  .identity { font-size: 1.8rem; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 5px 22px; margin-top: 25px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
  nav a { font-size: .875rem; padding: 8px 0; }
  nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: 6px; }
  nav a[aria-current="location"]::before { display: none; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h1, .section-heading h2 { font-size: 1.4rem; }
  .intro { font-size: 1.6rem; }
  .section { margin-bottom: 32px; padding-bottom: 33px; }
  .education-entry { grid-template-columns: minmax(0, 1fr); }
  .education-entry h3 { grid-row: 2; }
  .education-entry > .date { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 5px; }
  .publication { grid-template-columns: 1fr; row-gap: 5px; }
  .collaborator-list { grid-template-columns: 1fr; gap: 27px; }
  .collaborator-bio { max-width: 34rem; }
  .collaborators-section { margin-bottom: 0; }
}

@media (max-width: 380px) {
  .profile { gap: 18px; }
  .profile-photo { width: 115px; }
  .identity { font-size: 1.6rem; }
  nav { column-gap: 17px; }
}

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