:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #374151;
  --paper: #f7f7f7;
  --panel: #ffffff;
  --soft-panel: #ffffff;
  --line: #d9d9d9;
  --accent: #1f63d8;
  --accent-dark: #0f4fb5;
  --rust: #a3442c;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0;
}

.sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile h1,
.intro h2,
.section-heading h2 {
  margin: 0;
  line-height: 1.05;
}

.profile h1 {
  max-width: 8ch;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 850;
  letter-spacing: 0;
}

.subtitle,
.intro p,
.timeline p,
.publication-list p {
  color: var(--muted);
  font-weight: 500;
}

.subtitle {
  max-width: 34rem;
  margin: 8px 0 0;
  font-size: 1rem;
}

.profile {
  margin-bottom: 0;
}

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

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-panel);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: rgba(31, 99, 216, 0.32);
  background: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.contact-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.contact-list span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f9fd;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.primary-link {
  border-color: rgba(31, 99, 216, 0.26) !important;
}

.timeline h3,
.publication-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.35;
}

.content {
  display: grid;
  gap: 44px;
  min-width: 0;
  padding: 22px 0 48px;
}

.intro {
  padding-top: clamp(16px, 5vw, 62px);
}

.intro h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4.8vw, 4.7rem);
  letter-spacing: 0;
}

.intro p {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.intro .highlight-line {
  display: block;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  box-shadow: none;
}

.intro .highlight-line span {
  color: var(--accent-dark);
  font-weight: 850;
}

.intro a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.publication-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: publication;
}

.interest-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.interest-panel p {
  margin: 0;
  color: var(--muted);
}

.interest-panel strong {
  color: var(--ink);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  padding: 7px 11px;
  border: 1px solid rgba(31, 99, 216, 0.18);
  border-radius: 999px;
  background: #f7fafc;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.publication-list li {
  counter-increment: publication;
}

.publication-list article,
.timeline article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.publication-list article {
  padding: 20px 20px 18px 64px;
}

.publication-list article::before {
  content: counter(publication, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 20px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.publication-list p {
  margin: 8px 0 0;
  font-size: 0.96rem;
}

.publication-list footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-list footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  padding: 20px;
}

.timeline article > p {
  grid-column: 1 / -1;
  margin: 0;
}

.timeline article > div p {
  margin: 4px 0 0;
}

.timeline time {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 680px);
    padding: 20px 0 34px;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .profile h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .content {
    padding-top: 0;
  }

  .intro {
    padding-top: 0;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 20px, 520px);
  }

  .sidebar {
    padding: 20px;
  }

  .contact-list a {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .publication-list article {
    padding: 18px;
  }

  .publication-list article::before {
    position: static;
    display: block;
    margin-bottom: 8px;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .timeline time {
    white-space: normal;
  }
}
