:root {
  --bg: #f1eee8;
  --ink: #201d1a;
  --muted: #5d5851;
  --faint: #77716a;
  --line: rgba(32, 29, 26, 0.14);
  --panel: #f8f6ef;
  --panel-strong: #fefdfd;
  --accent: #2247cf;
  --accent-soft: rgba(34, 71, 207, 0.1);
  --accent-line: rgba(34, 71, 207, 0.2);
  --highlight-bg: rgba(191, 163, 112, 0.085);
  --highlight-hover-bg: rgba(191, 163, 112, 0.13);
  --venue-note: #8a6840;
  --publication-hover: rgba(255, 255, 255, 0.28);
  --link: #3f4549;
  --body-font: "Newsreader", Georgia, "Times New Roman", serif;
  --ui-font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--muted);
  background: var(--bg);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.58;
}

::selection {
  background: var(--accent-soft);
}

a {
  color: inherit;
  text-decoration-color: rgba(34, 71, 207, 0.36);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.profile-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(44px, 7vw, 92px);
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.profile-card {
  position: sticky;
  top: 40px;
  display: flex;
  min-height: calc(100vh - 80px);
  flex-direction: column;
  align-self: start;
  font-family: var(--ui-font);
  color: var(--muted);
}

.portrait {
  display: block;
  width: 176px;
  height: 176px;
  margin-bottom: 24px;
  border-radius: 50%;
  object-fit: cover;
}

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

h1,
h2 {
  font-family: var(--ui-font);
  font-weight: 520;
  letter-spacing: 0;
}

h1 {
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
}

h2 {
  margin-bottom: 20px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 520;
  line-height: 1.2;
}

h3 {
  color: #2b2824;
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.25;
}

.role {
  margin-top: 12px;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  font-size: 13px;
}

.contact-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
}

.contact-row svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-row .brand-icon {
  fill: currentColor;
  stroke: none;
}

.section-nav {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 34px;
  font-size: 13px;
  line-height: 1.2;
}

.section-nav a {
  position: relative;
  width: fit-content;
  padding-left: 13px;
  color: rgba(119, 113, 106, 0.78);
  text-decoration: none;
  transition: color 160ms ease;
}

.section-nav a::before {
  position: absolute;
  top: 0.46em;
  left: 0;
  width: 0;
  height: 0;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  border-left: 5px solid currentColor;
  content: "";
  opacity: 0.22;
  transition: opacity 160ms ease;
}

.section-nav a:hover,
.section-nav a:focus {
  color: var(--ink);
}

.section-nav a:hover::before,
.section-nav a:focus::before {
  opacity: 1;
}

.content-flow {
  max-width: 810px;
}

.intro {
  padding: 10px 0 36px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  scroll-margin-top: 34px;
}

.intro p {
  max-width: 760px;
}

.section-block {
  padding: 34px 0 12px;
  scroll-margin-top: 34px;
}

.publication-list {
  display: grid;
  gap: 0;
}

.publication {
  position: relative;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 22px;
  padding: 16px 0;
  border-bottom: 0;
  transition: background-color 160ms ease;
}

.publication:hover,
.publication:focus-within {
  background: var(--publication-hover);
}

.publication-highlight {
  background: var(--highlight-bg);
}

.publication-highlight:hover,
.publication-highlight:focus-within {
  background: var(--highlight-hover-bg);
}

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

.publication:first-child {
  border-top: 0;
}

.publication-media {
  display: block;
  overflow: hidden;
  align-self: start;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 160ms ease, filter 160ms ease;
}

.publication:hover .publication-media,
.publication:focus-within .publication-media {
  border-color: rgba(32, 29, 26, 0.24);
  filter: saturate(1.03);
}

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

.publication-info {
  color: var(--muted);
  font-size: 13.5px;
  min-width: 0;
}

.publication-info h3 {
  margin: 3px 0 7px;
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.venue {
  color: var(--faint);
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authors {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.more-authors,
.load-more-publications {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--faint);
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: normal;
  text-align: left;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(119, 113, 106, 0.62);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.more-authors {
  display: inline;
}

.publication-more-control {
  padding: 16px 0 4px;
  text-align: center;
}

.load-more-publications {
  display: inline-block;
  font-family: var(--ui-font);
  font-size: 13px;
}

.publication-collapsible:not([hidden]) {
  display: grid;
  gap: 0;
}

.more-authors:hover,
.more-authors:focus,
.load-more-publications:hover,
.load-more-publications:focus {
  color: var(--muted);
  text-decoration-color: var(--muted);
}

.more-authors:focus-visible,
.load-more-publications:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  color: #2e2b26;
  font-weight: 600;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  font-family: var(--ui-font);
  font-size: 12px;
}

.publication-links a {
  color: var(--link);
  text-decoration-color: rgba(63, 69, 73, 0.28);
}

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

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.time {
  color: var(--faint);
  font-family: var(--ui-font);
  font-size: 12px;
}

.timeline p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.timeline.compact .timeline-item {
  padding: 12px 0;
}

#experience,
#education,
#awards {
  color: var(--faint);
}

#publications h2,
#experience h2,
#education h2,
#awards h2 {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 15px;
  font-weight: 500;
  border-bottom-color: rgba(32, 29, 26, 0.09);
}

#experience .timeline-item,
#education .timeline-item,
#awards .timeline-item {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 0;
}

#experience .time,
#education .time,
#awards .time {
  color: rgba(119, 113, 106, 0.72);
  font-size: 11px;
}

#experience h3,
#education h3 {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

#awards h3 {
  color: var(--faint);
  font-family: var(--body-font);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}

#experience .timeline p,
#education .timeline p,
#awards .timeline p {
  margin-top: 3px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.45;
}

#awards .timeline-item {
  padding: 8px 0;
}

@media (max-width: 820px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(100% - 28px, 680px);
    padding-top: 34px;
  }

  .profile-card {
    position: static;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
    min-height: 0;
  }

  .portrait {
    grid-row: span 4;
    width: 112px;
    height: 112px;
    margin: 0;
  }

  .contact-list {
    margin-top: 6px;
  }

  .section-nav {
    display: none;
  }

  .intro {
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .profile-layout {
    width: min(100% - 24px, 680px);
    padding-top: 28px;
    padding-bottom: 54px;
  }

  .intro {
    padding-bottom: 24px;
    font-size: 15px;
    line-height: 1.55;
  }

  .section-block {
    padding: 28px 0 8px;
  }

  .publication {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
  }

  .publication-media {
    width: 94px;
    max-width: 94px;
    aspect-ratio: 4 / 3;
  }

  .publication-info {
    font-size: 12.8px;
    line-height: 1.45;
  }

  .publication-info h3 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.27;
  }

  .venue {
    font-size: 10px;
    letter-spacing: 0.045em;
  }

  .publication-links {
    gap: 8px;
    margin-top: 7px;
    font-size: 11.5px;
  }

  .publication-more-control {
    padding: 12px 0 2px;
  }

  .timeline-item,
  #experience .timeline-item,
  #education .timeline-item,
  #awards .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .publication {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
  }

  .publication-media {
    width: 84px;
    max-width: 84px;
  }

  .publication-info {
    font-size: 12.5px;
  }

  .publication-info h3 {
    font-size: 13.5px;
  }
}
