:root {
  --background: #ffffff;
  --text: #1f2937;
  --muted: #5f6875;
  --line: #e3e7ed;
  --soft: #f6f8fa;
  --highlight: #ffffd0;
  --link: #1769aa;
  --link-hover: #984600;
  --focus: #0b63ce;
  --content-width: 900px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-color: rgb(23 105 170 / 30%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

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

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 64px 24px 28px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(210px, 0.65fr);
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
  margin-bottom: 52px;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-align: center;
}

.profile-copy > p {
  margin-bottom: 12px;
}

.profile-copy > p:last-of-type {
  margin-bottom: 0;
}

.profile-links,
.resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.profile-links {
  justify-content: center;
  margin-top: 22px;
}

.profile-image-wrap {
  width: min(100%, 250px);
  margin-inline: auto;
}

.profile-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: left center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.research h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
}

.representative-note {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.highlight {
  background-color: var(--highlight);
}

.research-list {
  display: grid;
  gap: 42px;
}

.research-item {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.representative-paper {
  border-radius: 2px;
  background: var(--highlight);
  box-shadow: 0 0 0 12px var(--highlight);
}

.research-media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  box-shadow: 0 1px 2px rgb(15 23 42 / 7%);
}

.research-media:hover {
  border-color: var(--link-hover);
}

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

.research-copy h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.42;
}

.research-copy p {
  margin-bottom: 5px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.research-copy strong {
  font-weight: 700;
}

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

.resource-links {
  margin-top: 8px;
}

sup {
  line-height: 0;
}

footer {
  margin-top: 58px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .page-shell {
    padding: 38px 20px 24px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 44px;
  }

  .profile-image-wrap {
    width: min(58vw, 220px);
  }

  .research h2 {
    margin-bottom: 8px;
  }

  .representative-note {
    margin-bottom: 22px;
  }

  .research-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .research-media {
    width: 100%;
  }

  footer {
    text-align: left;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    padding-inline: 16px;
  }

  .profile-links,
  .resource-links {
    column-gap: 6px;
  }
}

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

@media print {
  .page-shell {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .skip-link {
    display: none;
  }
}
