:root {
  --page-bg: #ffffff;
  --paper-bg: #ffffff;
  --ink: #071426;
  --muted: #27384d;
  --rule: #cbd8e6;
  --accent: #0b3a66;
  --accent-soft: #edf5ff;
  --name-font: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body-font: Georgia, "Times New Roman", serif;
  --base-font-size: 14.5px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  line-height: 1.48;
}

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--name-font);
}

.topbar a {
  color: var(--ink);
  text-decoration: none;
}

.topbar a:hover,
.topbar a:focus {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.topbar-brand {
  font-size: 1.02rem;
  font-weight: 700;
}

.topbar-links {
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
}

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

.profile {
  display: grid;
  grid-template-columns: 310px minmax(0, 560px);
  gap: 52px;
  align-items: start;
  justify-content: start;
  margin-left: 0;
}

.profile-text {
  display: flex;
  min-height: 198px;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
}

.profile-photo {
  display: block;
  width: 300px;
  height: auto;
  aspect-ratio: 2830 / 1800;
  border: 1px solid var(--rule);
  background: var(--paper-bg);
  grid-column: 1;
  grid-row: 1;
  margin-left: 10px;
  object-fit: contain;
}

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

h1 {
  margin-bottom: 1rem;
  color: #000000;
  font-family: var(--name-font);
  font-size: clamp(1.86rem, 3.6vw, 2.10rem);
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 0.95;
}

.profile p {
  margin-bottom: 0.26rem;
}

.role {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.18rem;
}

.affiliation {
  margin-bottom: 0.58rem;
}

.links {
  margin-top: 0.95rem;
}

.links span {
  color: var(--rule);
  margin: 0 0.45rem;
}

.interests {
  max-width: none;
  margin-top: auto;
  margin-bottom: 0;
}

section {
  padding: 28px 0 4px;
  border-bottom: 1px solid var(--rule);
}

section:last-child {
  border-bottom: 0;
}

h2 {
  color: var(--accent);
  font-size: 1.12rem;
  font-variant-caps: small-caps;
  letter-spacing: 0.075em;
}

h3 {
  margin-bottom: 0.32rem;
  font-size: 1.02rem;
  line-height: 1.28;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  background: var(--accent-soft);
}

.paper {
  margin: 0 0 24px;
}

.paper p {
  margin-bottom: 0.58rem;
}

.abstract {
  margin: 0.36rem 0 0.66rem;
}

.abstract summary {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.4rem 0.68rem;
}

.abstract summary:hover,
.abstract summary:focus {
  background: var(--accent-soft);
}

.abstract p {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .page {
    width: min(100% - 24px, 860px);
    padding-top: 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }

  .topbar-links {
    gap: 14px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-left: 0;
  }

  .profile-text,
  .profile-photo {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-photo {
    width: min(100%, 300px);
    height: auto;
  }

  .links span {
    margin: 0 0.28rem;
  }
}
