:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --border: #d7dce2;
  --link: #174ea6;
  --link-background: #f6f9ff;
  --highlight-background: #fff8e8;
  --highlight-border: #d7a022;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  background: var(--background);
  color: var(--text);
}

body {
  margin: 0;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 0.12em;
}

.page {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.page-header {
  margin-bottom: 44px;
}

.language-nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.profile-image {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  margin: 0;
}

.profile-name-en {
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 500;
}

.profile-title {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.profile-links {
  margin: 14px 0 0;
  font-size: 0.96rem;
}

.section {
  margin-top: 44px;
}

.section > h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
  line-height: 1.3;
}

.cv-group {
  padding: 16px 0;
}

.cv-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
}

.cv-item {
  padding-left: 0.15rem;
}

.cv-primary {
  font-weight: 700;
}

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

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

h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 700;
}

.lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}


.talk-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.talk-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.talk-highlight {
  margin: -10px -12px;
  padding: 10px 12px;
  border-left: 3px solid var(--highlight-border);
  border-radius: 4px;
  background: var(--highlight-background);
}

.talk-slide,
.talk-slide-placeholder,
.talk-slide-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--link-background);
}

.talk-slide {
  color: var(--link);
  text-decoration: none;
  font-size: 0.9rem;
}

.talk-slide-frame {
  display: block;
  height: auto;
  padding: 0;
}

.talk-item:has(.talk-slide),
.talk-item:has(.talk-slide-placeholder),
.talk-item:has(.talk-slide-frame) {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.talk-slide:hover {
  border-color: currentColor;
  text-decoration: underline;
}

.talk-item h4 {
  margin: 0 0 4px;
  font-size: 1.04rem;
  line-height: 1.45;
}

.talk-item p {
  margin: 0;
}

.talk-meta,
.talk-date,
.talk-description {
  color: var(--muted);
}

.talk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

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

.publication {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.publication-highlight {
  margin: -10px -12px;
  padding: 10px 12px;
  border-left: 3px solid var(--highlight-border);
  border-radius: 4px;
  background: var(--highlight-background);
}

.publication-image-link {
  display: block;
}

.publication-image-placeholder {
  width: 120px;
}

.publication-image {
  display: block;
  width: 120px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 4px;
  object-fit: cover;
}

.publication h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.publication p {
  margin: 0;
}

.authors {
  color: var(--text);
}

.authors strong {
  font-weight: 700;
}

.venue {
  margin-top: 4px;
  color: var(--muted);
}

.citation-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid var(--highlight-border);
  border-radius: 4px;
  background: #fffdf6;
  color: #6f4b00;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: nowrap;
}

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

.publication-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--link-background);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
}

.publication-link:hover {
  border-color: currentColor;
}

@media (max-width: 760px) {
  .talk-item,
  .talk-item:has(.talk-slide),
  .talk-item:has(.talk-slide-placeholder),
  .talk-item:has(.talk-slide-frame) {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .talk-slide,
  .talk-slide-placeholder,
  .talk-slide-frame {
    width: min(100%, 320px);
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, var(--max-width));
    padding: 36px 0 52px;
  }

  h1 {
    font-size: 1.85rem;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-image {
    width: 128px;
    height: 128px;
  }

  .publication-list {
    gap: 24px;
  }

  .publication {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .publication-image,
  .publication-image-placeholder {
    width: 88px;
  }
}
