:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #637083;
  --link: #0b4f9f;
  --border: #dfe4ee;
  --accent: #0b3d91;
  --shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

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

.site-nav a {
  color: var(--text);
  font-weight: 600;
}

.site-nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
}

.site-main {
  padding: 34px 0 64px;
}

.hero {
  padding: 38px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: stretch;
}

.hero-profile,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-profile {
  text-align: center;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
}

.avatar.small {
  width: 120px;
  height: 120px;
  border-radius: 18px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

h2 {
  font-size: 1.55rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.subtitle {
  font-weight: 650;
}

.muted {
  color: var(--muted);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border: 1px solid var(--accent);
}

.button:hover {
  color: white;
  text-decoration: none;
}

.button.outline {
  background: white;
  color: var(--accent);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  background: #eef4ff;
  color: #0b3d91;
  border: 1px solid #cfe0ff;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
}

.compact-list {
  padding-left: 1.2rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.publication {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.publication:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pub-authors {
  color: #334155;
  font-style: italic;
  margin: 4px 0;
}

.pub-authors strong,
.me {
  text-decoration: underline;
  font-weight: 700;
}

.pub-venue,
.pub-meta {
  color: var(--muted);
  margin: 4px 0;
}

.status {
  float: right;
  color: #7c2d12;
  font-style: italic;
  font-weight: 700;
  margin-left: 16px;
}

.page-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  text-align: center;
}

.sidebar h2 {
  margin-bottom: 8px;
}

.sidebar p {
  margin: 0.45rem 0;
}

.page-content {
  min-width: 0;
}

.author-links {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.author-links p {
  margin: 0.35rem 0;
}

.author-links a {
  display: block;
  padding: 0.35rem 0;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.author-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.timeline {
  border-left: 3px solid var(--border);
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 22px;
}

.timeline-item h3 {
  margin-bottom: 2px;
}

.cv-frame {
  width: 100%;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--muted);
  background: white;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero-grid,
  .two-column,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    float: none;
    display: block;
    margin-left: 0;
  }
}
.author-links {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.author-link-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.58rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  line-height: 1.2;
}

.author-link-button i {
  width: 1.1rem;
  text-align: center;
  color: var(--accent);
  flex-shrink: 0;
}

.author-link-button span {
  flex: 1;
}

.author-link-button:hover {
  background: #eef4ff;
  border-color: #cfe0ff;
  color: var(--accent);
  text-decoration: none;
}
