*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --surface: #fbfcfe;
  --surface-strong: #f6f8fb;
  --text: #273142;
  --text-secondary: #526176;
  --text-muted: #8390a3;
  --heading: #101827;
  --link: #1f6fbd;
  --link-hover: #c85f39;
  --date: #577287;
  --cream: #fff6de;
  --aqua: #8bdfdd;
  --coral: #f48f68;
  --yellow: #ffe394;
  --accent: #c85f39;
  --accent-cool: #45aaa8;
  --accent-warm: #f0bf54;
  --accent-soft: #fff6de;
  --accent-cool-soft: #eefafa;
  --accent-coral-soft: #fff0ea;
  --border: #e8edf3;
  --border-section: #dfe7f1;
  --news-border: #edf1f6;
  --thumb-border: #dbe3ed;
  --shadow-soft: 0 14px 34px rgba(39, 49, 66, 0.08);
  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--cream) 0 25%,
    var(--aqua) 25% 50%,
    var(--coral) 50% 75%,
    var(--yellow) 75% 100%
  );
  pointer-events: none;
  z-index: 10;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-sans);
  font-weight: 700;
}

p {
  margin: 0 0 0.75em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

.container {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 28px 68px;
}

.top-tabs {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 38px;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid var(--border-section);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(16, 24, 39, 0.03);
}

.tab:hover,
.tab:focus {
  background: var(--accent-soft);
  border-color: rgba(244, 143, 104, 0.34);
  color: var(--link-hover);
}

.profile-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 60px;
  padding-bottom: 0;
}

.profile-text {
  flex: 1;
}

h1.name {
  margin-bottom: 18px;
  color: var(--heading);
  font-size: 41px;
  font-weight: 700;
  line-height: 1.08;
}

.role {
  display: none;
}

.profile-photo {
  position: relative;
  order: -1;
  flex-shrink: 0;
  width: 280px;
  max-width: 100%;
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--border-section);
  border-radius: 18px;
  z-index: -1;
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--thumb-border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  background: var(--surface-strong);
  object-fit: contain;
  object-position: center top;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-section);
  border-radius: 50%;
  background: var(--surface);
  color: var(--link);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.icon-link:hover,
.icon-link:focus {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 189, 0.22);
  background: #f7fbff;
  color: var(--link-hover);
}

.content-section {
  position: relative;
  margin-bottom: 50px;
  scroll-margin-top: 24px;
}

.content-section h2 {
  margin-bottom: 20px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border-section);
  color: var(--heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.news-section {
  padding: 0;
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.news-section h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-section);
}

.news-list,
.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li,
.experience-list li {
  position: relative;
  --row-bar: var(--cream);
  --row-bg: rgba(255, 246, 222, 0.42);
  --row-bar-shadow: rgba(255, 227, 148, 0.5);
  display: flex;
  gap: 16px;
  padding: 8px 0 8px 14px;
  border-bottom: 1px solid var(--news-border);
  font-size: 15.5px;
  line-height: 1.5;
}

.news-section .news-list li {
  margin-bottom: 0;
  padding: 5px 0 5px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.news-list li::before,
.experience-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--row-bar);
  box-shadow: 0 0 0 1px var(--row-bar-shadow);
}

.news-section .news-list li::before {
  top: 0;
  bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.news-section .news-list li:first-child::before {
  border-radius: 999px 999px 0 0;
}

.news-section .news-list li:last-child::before {
  border-radius: 0 0 999px 999px;
}

.news-list li:nth-child(4n + 1),
.experience-list li:nth-child(4n + 1) {
  --row-bar: var(--cream);
  --row-bg: rgba(255, 246, 222, 0.74);
  --row-bar-shadow: rgba(255, 227, 148, 0.55);
}

.news-list li:nth-child(4n + 2),
.experience-list li:nth-child(4n + 2) {
  --row-bar: var(--aqua);
  --row-bg: rgba(139, 223, 221, 0.24);
  --row-bar-shadow: rgba(139, 223, 221, 0.45);
}

.news-list li:nth-child(4n + 3),
.experience-list li:nth-child(4n + 3) {
  --row-bar: var(--coral);
  --row-bg: rgba(244, 143, 104, 0.18);
  --row-bar-shadow: rgba(244, 143, 104, 0.42);
}

.news-list li:nth-child(4n),
.experience-list li:nth-child(4n) {
  --row-bar: var(--yellow);
  --row-bg: rgba(255, 227, 148, 0.34);
  --row-bar-shadow: rgba(255, 227, 148, 0.5);
}

.news-list li:last-child,
.experience-list li:last-child {
  border-bottom: none;
}

.date {
  flex-shrink: 0;
  width: 95px;
  color: var(--date);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding-top: 1px;
}

.publication-card {
  position: relative;
  overflow: hidden;
  --pub-accent: var(--aqua);
  --pub-soft: rgba(139, 223, 221, 0.12);
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  padding: 15px 15px 15px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, var(--surface));
  box-shadow: 0 1px 0 rgba(16, 24, 39, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.publication-card::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 10px;
  width: 5px;
  border-radius: 999px;
  background: var(--pub-accent);
  box-shadow: 0 0 0 1px var(--pub-soft);
}

.publication-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 18px;
  width: 58px;
  height: 7px;
  border-radius: 0 0 999px 999px;
  background: var(--pub-accent);
  opacity: 0.82;
}

.publication-card:nth-of-type(4n + 1) {
  --pub-accent: var(--aqua);
  --pub-soft: rgba(139, 223, 221, 0.12);
}

.publication-card:nth-of-type(4n + 2) {
  --pub-accent: var(--coral);
  --pub-soft: rgba(244, 143, 104, 0.1);
}

.publication-card:nth-of-type(4n + 3) {
  --pub-accent: var(--yellow);
  --pub-soft: rgba(255, 227, 148, 0.18);
}

.publication-card:nth-of-type(4n) {
  --pub-accent: var(--cream);
  --pub-soft: rgba(255, 246, 222, 0.55);
}

.publication-card:hover {
  transform: translateY(-1px);
  border-color: var(--pub-accent);
  box-shadow: var(--shadow-soft);
}

.publication-card:last-child {
  margin-bottom: 0;
}

.pub-thumb {
  flex-shrink: 0;
  align-self: flex-start;
  width: 132px;
  border: 1px solid var(--thumb-border);
  border-radius: 10px;
  display: block;
  background: var(--pub-soft);
  box-shadow: 0 0 0 5px var(--pub-soft);
}

.publication-card > div {
  flex: 1;
}

h3 {
  margin-bottom: 5px;
  color: var(--heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.authors {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.venue {
  margin: 0 0 4px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-coral-soft);
  color: #b85f3f;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 14.5px;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-cool-soft);
  border: 1px solid rgba(139, 223, 221, 0.42);
  color: var(--link);
  font-weight: 700;
}

.chips a:hover,
.chips a:focus {
  color: var(--link-hover);
}

@media (max-width: 600px) {
  .container {
    padding: 28px 18px 48px;
  }

  .top-tabs {
    justify-content: flex-start;
  }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: start;
  }

  .profile-photo {
    width: 220px;
  }

  .publication-card {
    flex-direction: column;
    gap: 14px;
  }

  .pub-thumb {
    width: min(100%, 240px);
  }

  .date {
    width: 74px;
  }

  .news-section .news-list li {
    padding: 6px 0 6px 15px;
  }

  .publication-card {
    padding-left: 22px;
  }

  .publication-card::after {
    left: 9px;
    width: 4px;
  }
}
