:root {
  --background: #f7f7f5;
  --surface: #ffffff;
  --text: #242832;
  --muted: #667085;
  --line: #d9dce2;
  --link: #2466a8;
  --link-dark: #17446f;
  --accent: #b45f45;
  --soft: #edf3f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--link-dark);
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 830px);
  gap: clamp(34px, 6vw, 70px);
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.profile {
  position: sticky;
  top: 32px;
  align-self: start;
  text-align: center;
}

.portrait {
  display: block;
  width: min(230px, 74vw);
  height: min(230px, 74vw);
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(36, 40, 50, 0.12);
}

.portrait-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.06);
  transform-origin: center 44%;
}

.profile h1 {
  margin: 0 0 4px;
  font-size: 1.72rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.role,
.affiliation {
  margin: 0;
  color: var(--muted);
}

.role {
  font-size: 1rem;
}

.affiliation {
  margin-top: 4px;
  font-size: 0.95rem;
}

.profile-links {
  display: grid;
  gap: 9px;
  padding: 22px 0 0;
  margin: 22px 0 0;
  text-align: left;
  border-top: 1px solid var(--line);
  list-style: none;
}

.profile-links li,
.profile-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  color: var(--link);
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.content {
  min-width: 0;
}

.section-block {
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.section-block:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.intro {
  padding-top: 8px;
}

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

h2 {
  margin-bottom: 18px;
  padding-bottom: 8px;
  color: #1d2733;
  font-size: 1.86rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
}

h3 {
  margin-bottom: 6px;
  color: #1d2733;
  font-size: 1.08rem;
  line-height: 1.36;
}

p {
  margin-bottom: 14px;
}

.intro p {
  font-size: 1.05rem;
}

.section-block ul:not(.profile-list):not(.full-publication-list) {
  padding-left: 20px;
  margin: 0;
}

.section-block li + li {
  margin-top: 9px;
}

.profile-list-section {
  margin-top: 8px;
}

.profile-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.profile-list__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #eceef2;
}

.profile-list__item:last-child {
  border-bottom: 0;
}

.profile-list__date {
  color: #5f6368;
  font-weight: 700;
  white-space: nowrap;
}

.profile-list__content {
  color: #242832;
}

.subheading {
  margin: 34px 0 16px;
  color: var(--accent);
  font-size: 1.42rem;
  font-weight: 700;
  text-transform: none;
}

.subheading:first-child {
  margin-top: 0;
}

.venue {
  color: var(--muted);
  font-style: italic;
}

.publication-note {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 0.92rem;
}

.selected-papers {
  display: grid;
  gap: 20px;
}

.publication-card {
  padding: 6px;
  color: #5f6368;
  background: #ffffff;
  border: 1.5px solid #dddddd;
  border-radius: 8px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.publication-card.featured {
  background: #fef5f1;
  border-color: #f5bba7;
  box-shadow: 0 4px 8px rgba(242, 166, 120, 0.2);
}

.publication-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.publication-card.featured:hover {
  box-shadow: 0 8px 16px rgba(242, 166, 120, 0.4);
}

.pub-card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pub-media {
  position: relative;
  width: 320px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #ffffff;
}

.pub-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
  margin: 0 auto;
  object-fit: contain;
}

.publication-card strong,
.publication-card > div > div > strong {
  color: #202124;
  font-size: 1.16rem;
  line-height: 1.35;
}

.publication-card p {
  margin: 8px 0 0;
  font-size: 1.03rem;
  line-height: 1.55;
}

.authors {
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.45;
}

.pub-links {
  margin-top: 6px;
}

.pub-links b i {
  color: #83a1c7;
}

.pub-links a,
.pub-list-links a {
  margin-left: 4px;
  color: #c7774c;
  font-weight: 600;
}

.pub-links a:hover,
.pub-list-links a:hover {
  color: #b65f36;
}

.full-publication-list {
  padding-left: 1.25rem;
  margin: 0;
  color: #5f6368;
  font-size: 17px;
  line-height: 1.62;
}

.full-publication-list li {
  margin-bottom: 18px;
}

.pub-list-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  color: #b95f3d;
  background: #fef5f1;
  border: 1px solid rgba(245, 187, 167, 0.75);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  vertical-align: 1px;
}

.pub-list-title {
  color: #202124;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

.pub-list-authors {
  color: #6b7280;
  font-size: inherit;
  line-height: inherit;
  font-style: italic;
}

.pub-list-authors strong {
  color: #202124;
}

.pub-list-note {
  color: #c7774c;
  font-size: inherit;
  line-height: inherit;
  font-style: italic;
  font-weight: 650;
}

.pub-list-links {
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 24px;
  align-items: center;
  padding: 18px 0;
  background: transparent;
  border-top: 1px solid var(--border);
  transition: background 0.2s ease;
}

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

.experience-card:hover {
  background: #fff8f4;
}

.experience-logo {
  width: 116px;
  height: 46px;
  justify-self: center;
  object-fit: contain;
}

.experience-info {
  color: #5f6368;
  font-size: 0.95rem;
  line-height: 1.7;
}

.experience-info strong {
  color: #202124;
  font-size: 1.1em;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 34px;
  }

  .profile {
    position: static;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 26px;
    text-align: left;
  }

  .portrait {
    grid-row: span 3;
    width: 158px;
    height: 158px;
    margin: 0;
  }

  .profile-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100% - 28px, 1200px);
  }

  .profile,
  .profile-list__item {
    grid-template-columns: 1fr;
  }

  .profile-list__item {
    gap: 2px;
  }

  .profile {
    text-align: center;
  }

  .pub-card-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .pub-media,
  .pub-media img {
    width: min(100%, 320px);
  }

  .pub-media {
    height: auto;
  }

  .pub-media img {
    height: auto;
  }

  .experience-card {
    grid-template-columns: 124px 1fr;
    column-gap: 16px;
  }

  .experience-logo {
    width: 112px;
    height: 44px;
  }

  .portrait {
    justify-self: center;
    grid-row: auto;
    width: min(230px, 74vw);
    height: min(230px, 74vw);
  }

  .profile-links {
    text-align: left;
  }

  h2 {
    font-size: 1.58rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
