:root {
  --background: #e6eef2;
  --surface: #f3f7f8;
  --text: #263740;
  --muted: #60737d;
  --border: #c3d1d8;
  --link: #315f78;
  --sans: "Libre Franklin", Arial, sans-serif;
  --content-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.container {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--text);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-name {
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.profile-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 72px);
  align-items: start;
  padding-block: 36px 28px;
}

.profile-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16) translateY(4%);
}

.position {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  font-family: var(--sans);
}

.profile-content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.affiliation {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1.15rem;
}

.bio {
  margin-top: 30px;
  max-width: 620px;
}

.bio p {
  margin: 0 0 16px;
}

.profile-details {
  margin: 20px 0 0;
  border-top: 1px solid var(--border);
}

.profile-details > div {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.profile-details dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-details dd {
  margin: 0;
  font-size: 0.9rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.86rem;
}

.profile-links a,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
}

.profile-links a:hover,
.social-links a:hover {
  background: var(--surface);
}

.profile-links a:focus-visible,
.social-links a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.home-research {
  padding: 28px 0 80px;
  border-top: 1px solid var(--border);
}

.home-research h2,
.research-group h2 {
  margin: 0 0 24px;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.home-paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.home-paper:last-of-type {
  border-bottom: 1px solid var(--border);
}

.home-paper h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.paper-note,
.coauthor {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.more-link {
  margin: 24px 0 0;
  font-size: 0.86rem;
}

.page-content {
  padding-block: 64px 90px;
}

.page-heading {
  max-width: 670px;
  margin-bottom: 60px;
}

.page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(2.25rem, 6vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
}

.research-group {
  margin-top: 58px;
}

.research-group:first-of-type {
  margin-top: 0;
}

.paper {
  padding: 16px 0 18px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 20px;
}

.paper:last-child {
  border-bottom: 1px solid var(--border);
}

.paper h3 {
  max-width: 760px;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
}

.paper-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.paper-title-row h3 {
  max-width: none;
}

.title-link,
.paper-status {
  flex: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.title-link {
  text-underline-offset: 0.22em;
}

.paper-status {
  color: var(--muted);
}

.coauthor {
  margin-top: 6px;
  font-size: 0.92rem;
}

.paper-links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 13px;
  font-size: 0.92rem;
}

.paper-links > span {
  color: var(--muted);
}

details {
  width: auto;
  margin: 0;
}

summary {
  width: max-content;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

details p {
  max-width: 750px;
  margin: 15px 0 0;
  padding: 16px 18px;
  color: #4d4d4d;
  background: #d9e5ea;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.65;
}

details[open] {
  width: 100%;
}

.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner div {
  display: flex;
  gap: 18px;
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 34px), var(--content-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 32px 28px;
  }

  .profile-sidebar {
    width: min(250px, 100%);
  }

  .profile-photo {
    width: min(230px, 72vw);
    height: min(230px, 72vw);
  }

  .home-paper {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-content {
    padding-block: 45px 65px;
  }

  .page-heading {
    margin-bottom: 45px;
  }

}

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