:root {
  --ink: #18222d;
  --muted: #5d6873;
  --accent: #285f82;
  --accent-dark: #183f5b;
  --paper: #fbfaf7;
  --line: #d9dee2;
  --soft-blue: #eef4f7;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-size: 1.02rem;
  line-height: 1.68;
}

main.content {
  padding-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  color: var(--accent-dark);
}

.profile-shell,
.research-section {
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
}

.profile-shell {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.75rem);
  grid-template-columns: 245px minmax(0, 1fr);
  padding: 4.5rem 0 3.75rem;
}

.profile-card {
  width: 245px;
}

.profile-card figure {
  margin: 0;
}

.profile-card img {
  aspect-ratio: 4 / 5;
  border-radius: 0.28rem;
  box-shadow: 0 18px 42px rgba(24, 34, 45, 0.14);
  display: block;
  object-fit: cover;
  object-position: 50% 25%;
  width: 100%;
}

.profile-links {
  align-items: center;
  display: flex;
  gap: 0.42rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.profile-links a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  padding: 0.2rem;
  text-decoration: none;
}

.profile-links a {
  color: #74808a;
  opacity: 0.82;
  transition: color 140ms ease, opacity 140ms ease;
}

.profile-links a:hover,
.profile-links a:focus {
  color: var(--accent);
  opacity: 1;
}

.profile-links i {
  font-size: 1.05rem;
}

.cv-page-icon {
  fill: none;
  height: 1.12rem;
  overflow: visible;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  width: 1.12rem;
}

.cv-page-icon text {
  fill: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.2px;
  font-weight: 700;
  letter-spacing: 0.15px;
  stroke: none;
}

.profile-copy {
  max-width: 690px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.095em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.profile-copy h1 {
  font-size: clamp(3rem, 6vw, 4.45rem);
  line-height: 1.02;
  margin: 0 0 0.55rem;
}

.profile-copy h2 {
  color: var(--accent);
  font-family: inherit;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 650;
  letter-spacing: 0.005em;
  margin: 0 0 1rem;
}

.profile-copy .bio {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1.25rem 0 0;
  max-width: 660px;
  padding-top: 1.25rem;
}

.contact-line {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.85rem 0 0;
}

.contact-line a {
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.research-section {
  border-top: 1px solid var(--line);
  padding: 3.25rem 0 1.75rem;
}

.research-section .level2 > h2 {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  margin: 2.65rem 0 0;
  padding-bottom: 0.65rem;
  text-transform: uppercase;
}

.research-section .level2:first-child > h2 {
  margin-top: 0;
}

.paper-item {
  border-bottom: 1px solid rgba(217, 222, 226, 0.72);
  padding: 1.1rem 0 1.15rem;
}

.paper-item h3 {
  color: var(--accent);
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 0.28rem;
}

.paper-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.paper-abstract {
  margin-top: 0.55rem;
}

.paper-abstract summary {
  border: 1px solid #bac9d2;
  border-radius: 0.23rem;
  color: var(--accent);
  cursor: pointer;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  list-style: none;
  padding: 0.38rem 0.58rem;
  user-select: none;
}

.paper-abstract summary::-webkit-details-marker {
  display: none;
}

.paper-abstract summary::after {
  content: " +";
}

.paper-abstract[open] summary::after {
  content: " −";
}

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

.paper-abstract > p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0.9rem 0 0;
  max-width: 900px;
}

.paper-note {
  color: #727d86;
  font-size: 0.88rem;
  margin: 0.38rem 0 0.58rem;
}

.page-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 2.75rem;
}

@media (max-width: 760px) {
  .profile-shell {
    align-items: start;
    gap: 2.25rem;
    grid-template-columns: 1fr;
    padding: 2.75rem 0 3rem;
  }

  .profile-card {
    width: min(220px, 72vw);
  }

  .profile-links {
    justify-content: flex-start;
  }

  .profile-copy h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .research-section {
    padding-top: 2.6rem;
  }
}
