:root {
  --page: #fcfaff;
  --surface: #f2ecfa;
  --surface-strong: #e7dcf5;
  --ink: #28242e;
  --muted: #716979;
  --accent: #75559b;
  --accent-dark: #533575;
  --line: #ddd3e9;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-dark);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.22em;
}

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

.site-header {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

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

main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
  min-height: 580px;
  padding: 72px 0 84px;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 14 / 17;
  object-fit: cover;
  border-radius: 46% 46% 20px 20px;
  background: var(--surface);
  box-shadow: 18px 18px 0 var(--surface-strong);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 30px;
}

.contact-links a {
  font-size: 0.88rem;
  font-weight: 500;
}

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

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 6.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.role {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.bio {
  max-width: 640px;
}

.bio > p:first-child {
  font-size: 1.06rem;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 96px);
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  position: sticky;
  top: 28px;
  align-self: start;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
}

.publication-authors,
.publication-venue {
  color: var(--muted);
}

.publication-authors strong {
  color: var(--ink);
  font-weight: 600;
}

.publication-item {
  padding-top: 4px;
}

.publication-item h3 {
  max-width: 650px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.publication-item p {
  margin-bottom: 4px;
}

.publication-links {
  display: flex;
  gap: 18px;
  margin-top: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    width: min(calc(100% - 36px), var(--max-width));
    padding: 18px 0;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-end;
    gap: 6px 15px;
  }

  main,
  footer {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: auto;
    padding: 58px 0 70px;
  }

  .portrait-column {
    width: min(72vw, 280px);
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 64px 0;
  }

  .section-heading {
    position: static;
  }

  footer {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
