:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f6f7f8;
  --text: #494e52;
  --heading: #252a2e;
  --muted: #6f777d;
  --border: #d7dadd;
  --rule: #eceeef;
  --accent: #2f7f9f;
  --accent-dark: #1f6079;
  --accent-soft: #edf6f9;
  --accent-cool: #2f7f9f;
  --max-width: 1120px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  letter-spacing: 0;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

main {
  flex: 1;
}

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

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

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

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 0;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
  font-size: 0.95rem;
}

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

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

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--heading);
}

.site-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 54px 0 78px;
}

.page-layout {
  padding-top: 50px;
}

.profile-card {
  position: sticky;
  top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.profile-photo {
  width: 164px;
  height: 164px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
  object-position: 63% 43%;
}

.profile-card h1,
.profile-card h2 {
  margin: 0 0 6px;
  border: 0;
  padding: 0;
  color: var(--heading);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
}

.profile-role,
.profile-fields {
  margin: 0 0 8px;
}

.profile-fields {
  color: var(--text);
}

.profile-fields span {
  display: block;
}

.profile-links {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.profile-links p {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-links a {
  display: block;
  width: max-content;
  margin: 4px 0;
  color: var(--muted);
  text-decoration: none;
}

.profile-links a:hover,
.profile-links a:focus {
  color: var(--accent);
  text-decoration: underline;
}

.content-column {
  max-width: 760px;
  padding-top: 4px;
}

.content-column > p {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--heading);
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  color: var(--heading);
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
}

h3 {
  margin-bottom: 5px;
  color: var(--heading);
  font-size: 1.03rem;
  line-height: 1.45;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

.lead {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.narrow {
  max-width: 650px;
}

.details {
  display: grid;
  gap: 14px;
  margin: 34px 0 28px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.details div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
}

.details dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.details dd {
  margin: 0;
}

.link-row,
.button-row,
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.icon-link span,
.button span {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 820;
  line-height: 1;
}

.icon-link:hover,
.icon-link:focus {
  color: var(--accent);
}

.icon-link:hover span,
.icon-link:focus span {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.icon-link.small {
  font-size: 0.9rem;
}

.icon-link.small span {
  min-width: 32px;
  height: 25px;
  font-size: 0.61rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  padding: 10px 16px;
  background: #ffffff;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.button span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.button:hover,
.button:focus {
  background: var(--accent);
  color: #ffffff;
}

.button:hover span,
.button:focus span {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.page {
  padding: 66px 0 78px;
}

.page-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.page-header h1 {
  margin-bottom: 12px;
}

.section-block {
  margin-bottom: 46px;
}

.research-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.research-item:first-of-type {
  padding-top: 6px;
}

.research-item.compact {
  padding: 14px 0;
}

.research-item h3 {
  max-width: 800px;
}

.meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.paper-authors,
.paper-version {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.paper-links {
  display: block;
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.paper-links a {
  font-weight: 600;
  text-decoration: none;
}

.paper-links a:hover,
.paper-links a:focus {
  text-decoration: underline;
}

.course-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.course-list li {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.course-list span {
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}

.cv-page {
  padding-top: 36px;
}

.cv-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.cv-pdf-viewer {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  min-height: 620px;
  border: 1px solid var(--rule);
  background: #fff;
}

.cv-image-preview {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.cv-image-preview img {
  display: block;
  width: min(100%, 8.5in);
  height: auto;
  border: 1px solid var(--rule);
  background: #fff;
}

.cv-text-version {
  max-width: 7.25in;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.cv-text-version summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92rem;
}

.cv-text-version .cv-document {
  margin-top: 18px;
}

.cv-document.cv-word {
  max-width: 7.25in;
  margin: 0 auto;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.15;
}

.cv-word .cv-heading {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.cv-word .cv-heading h1 {
  margin: 0 0 10px;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.cv-rule {
  height: 1px;
  margin: 0 0 6px;
  background: #a0a0a0;
}

.cv-contact {
  display: block;
  margin: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.15;
}

.cv-contact p {
  margin: 0;
}

.cv-section {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.cv-word .cv-section:first-of-type {
  margin-top: 6px;
  border-top: 1px solid #a0a0a0;
}

.cv-section h2 {
  margin: 0;
  border-bottom: 0;
  padding: 0;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
}

.cv-entry {
  margin: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.15;
}

.cv-entry-indent {
  margin-left: 36px;
}

.cv-entry-institution {
  margin-left: 36px;
  font-size: 16px;
}

.cv-entry-note {
  text-indent: 36px;
  font-size: 10px;
  font-style: italic;
}

.cv-entry em {
  font-style: italic;
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  padding: 26px 0;
}

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

  .header-inner {
    display: block;
    padding: 18px 0;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .site-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 38px 0 54px;
  }

  .profile-card {
    position: static;
  }

  .profile-photo {
    width: 132px;
    height: 132px;
    margin-bottom: 14px;
  }

  h1 {
    font-size: 1.72rem;
  }

  .page {
    padding: 42px 0 54px;
  }

  .details div,
  .course-list li {
    display: block;
  }

  .details dt {
    margin-bottom: 3px;
  }

  .course-list span {
    display: block;
    margin-top: 3px;
    white-space: normal;
  }

  .cv-tools {
    justify-content: flex-start;
  }

  .cv-pdf-viewer {
    height: 72vh;
    min-height: 480px;
  }

  .cv-document.cv-word {
    font-size: 13.5px;
  }

  .cv-entry-indent,
  .cv-entry-institution {
    margin-left: 24px;
  }

  .cv-entry-note {
    text-indent: 24px;
  }
}
