:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --ink: #2f2f2f;
  --muted: #747474;
  --soft: #9a9a9a;
  --line: #e8e8e8;
  --line-strong: #d7d7d7;
  --accent: #2f6fae;
  --accent-warm: #dc2f02;
  --accent-soft: #eef5fb;
  --shadow: 0 1px 2px rgba(24, 24, 24, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: 12px;
  z-index: 5;
  transform: translateY(-160%);
  padding: 8px 12px;
  color: var(--panel);
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding: 38px 0 22px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.brand {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

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

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.intro-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 34px 0 46px;
}

.profile {
  position: sticky;
  top: 24px;
  text-align: center;
}

.avatar {
  width: 156px;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 650;
}

.name-subtitle {
  margin: 3px 0 14px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.role {
  display: grid;
  gap: 3px;
  margin: 0 auto 20px;
  max-width: 190px;
  line-height: 1.38;
}

.role-title {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
}

.role-organization {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.focus-list span,
.venue {
  border-radius: 4px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  text-decoration: none;
}

.icon-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #f7f7f7;
}

.icon-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-link:nth-child(2) svg {
  fill: currentColor;
  stroke: none;
}

.about-copy {
  padding-top: 4px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

.about-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.18;
  font-weight: 760;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 720;
}

.about-copy p {
  margin: 1rem 0 0;
  color: var(--ink);
}

.about-copy strong {
  color: var(--ink);
  font-weight: 700;
}

.about-copy a {
  color: var(--accent);
  text-decoration-color: rgba(47, 111, 174, 0.35);
}

.about-copy a:hover {
  color: var(--accent-warm);
  text-decoration-color: currentColor;
}

.focus-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.focus-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  display: block;
  min-height: 138px;
  padding: 18px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.link-card:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.link-card span {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.link-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-block {
  border-top: 1px solid var(--line-strong);
  padding: 34px 0 42px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading-quiet {
  margin-bottom: 16px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading.compact {
  display: block;
  margin-bottom: 16px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
}

.timeline-meta {
  display: grid;
  gap: 2px;
  align-content: start;
  color: var(--soft);
  font-size: 0.92rem;
}

.timeline-body h3,
.plain-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.institution {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

ul {
  margin: 10px 0 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 8px;
}

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

.publication-item {
  position: relative;
  padding: 18px 0 18px 220px;
  border-top: 1px solid var(--line);
}

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

.publication-title {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
}

.publication-item p:not(.publication-title) {
  margin: 0;
  color: var(--muted);
}

.detailed-publications {
  gap: 0;
}

.detailed-publications .publication-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 22px;
  align-items: start;
  padding-left: 0;
  padding-top: 22px;
  padding-bottom: 24px;
}

.detailed-publications .venue {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--accent-warm);
  background: #fff5f3;
  border: 1px solid #f3d4cf;
  box-shadow: none;
}

.publication-teaser {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.publication-teaser img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.publication-teaser-empty {
  background:
    linear-gradient(135deg, rgba(47, 111, 174, 0.06) 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(135deg, transparent 75%, rgba(47, 111, 174, 0.06) 75%) 0 0 / 14px 14px,
    var(--panel);
}

.publication-body {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.detailed-publications .publication-title {
  margin-bottom: 6px;
}

.publication-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-authors {
  line-height: 1.55;
}

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

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.publication-links a,
.bibtex summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.publication-links a:hover,
.bibtex summary:hover {
  color: var(--accent-warm);
}

.bibtex {
  margin-top: 10px;
}

.bibtex summary {
  cursor: pointer;
  width: fit-content;
}

.bibtex pre {
  margin: 10px 0 0;
  padding: 12px;
  overflow-x: auto;
  color: var(--ink);
  background: #f4f4f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.venue {
  position: absolute;
  left: 0;
  top: 18px;
  display: inline-flex;
  min-width: 108px;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  color: var(--accent-warm);
  background: #fcecea;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.plain-list {
  display: grid;
  gap: 18px;
}

.plain-list article {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.plain-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.plain-list span {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.92rem;
}

.page-shell {
  padding: 30px 0 48px;
}

.page-title {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 18px;
  margin-bottom: 30px;
}

.page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1.2;
}

.page-content {
  max-width: 760px;
}

.page-content > section:first-child {
  margin-top: 0;
}

.page-content h2 {
  margin: 36px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.3;
}

.page-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-content h3 {
  margin: 22px 0 4px;
  color: var(--ink);
  font-size: 1.08rem;
}

.page-content .publication-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
}

.page-content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.page-content ul {
  color: var(--muted);
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.experience-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.experience-card h2,
.experience-card h3 {
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-frame-wide {
  padding: 12px 8px;
}

.date-line {
  color: var(--soft);
  font-size: 0.94rem;
}

.highlight-list {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.highlight-list strong {
  color: var(--ink);
  font-weight: 720;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.site-footer {
  padding: 22px 0 42px;
}

.site-footer .shell {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 980px);
  }

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

  .site-nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .intro-grid,
  .timeline-item,
  .section-heading,
  .link-grid,
  .split-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profile {
    position: static;
    text-align: left;
  }

  .avatar {
    width: 118px;
    margin-left: 0;
  }

  .role,
  .contact-links {
    justify-content: flex-start;
    margin-left: 0;
  }

  .about-copy h2,
  .section-heading h2 {
    font-size: 1.65rem;
  }

  .about-copy h2 {
    font-size: 2rem;
  }

  .publication-item {
    padding-left: 0;
  }

  .detailed-publications .publication-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detailed-publications .venue,
  .publication-teaser,
  .publication-body {
    grid-column: 1;
    grid-row: auto;
  }

  .publication-teaser {
    max-width: 320px;
  }

  .experience-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .logo-frame {
    width: 56px;
    height: 56px;
    padding: 8px;
  }

  .venue {
    position: static;
    margin-bottom: 8px;
  }

  .detailed-publications .venue {
    width: min(100%, 320px);
    margin-bottom: 0;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-top: 24px;
  }

  .site-nav a {
    font-size: 0.94rem;
  }

  .intro-grid {
    padding-top: 22px;
  }
}
