:root {
  --page-bg: var(--bs-body-bg);
  --page-text: var(--bs-body-color);
  --muted-text: var(--bs-secondary-color);
  --accent: var(--bs-primary);
  --accent-hover: var(--bs-primary);
  --important: #ff0000;
  --rule: var(--bs-primary);
  --nav-bg: rgba(var(--bs-body-bg-rgb), 0.94);
  --shadow: var(--bs-box-shadow);
  --content-width: 760px;
  --bs-body-font-family: Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-bg);
  color: var(--page-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.48;
  margin: 0;
  transition: background-color 180ms ease, color 180ms ease;
}

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

a:hover,
a:focus {
  color: var(--accent-hover);
  text-decoration: underline;
}

.container-narrow {
  margin-inline: auto;
  width: min(calc(100% - 2rem), var(--content-width));
}

.hero-section {
  padding: 2.5rem 0 1.2rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: 260px minmax(0, 1fr);
  width: 100%;
}

.hero-photo-wrap {
  align-items: center;
  display: flex;
  height: 260px;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  width: 260px;
}

.hero-photo {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

h1 {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  border-bottom: 3px solid var(--rule);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0.8rem 0 0.45rem;
}

p {
  margin-bottom: 0.65rem;
}

ul {
  padding-left: 2rem;
}

li {
  margin-bottom: 0.8rem;
  padding-left: 0.25rem;
}

.affiliation,
.publication-links,
.site-footer {
  color: var(--muted-text);
}

.phd-notice {
  color: var(--important);
  font-weight: 600;
}

.social-links,
.publication-links,
.site-footer {
  font-size: 1rem;
}

.content-section {
  padding: 1.2rem 0 0.8rem;
}

.scroll-target {
  scroll-margin-top: 4.5rem;
}

.year-heading {
  font-size: 1.12rem;
  margin: 0.75rem 0 0.5rem;
}

.publication-list {
  margin-bottom: 1.2rem;
}

.bibliography-entry {
  margin-bottom: 1.4rem;
}

.bibliography-entry p,
.education-list p {
  margin-bottom: 0.2rem;
}

.publication-title {
  font-weight: 700;
}

.venue-badge {
  background: var(--accent);
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  line-height: 1.2;
  margin-right: 0.35rem;
  padding: 0.12rem 0.35rem;
}

.education-item {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 70px;
}

.project-entry {
  padding-left: 2rem;
}

.education-image {
  display: block;
  height: auto;
  margin: auto;
  object-fit: contain;
  width: 100%;
}

.education-image {
  max-height: 52px;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 1rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.update-badge {
  display: block;
  height: 20px;
}

@media (max-width: 767.98px) {
  body {
    font-size: 15.5px;
  }

  .hero-section {
    min-height: auto;
    padding: 4rem 0 2.7rem;
  }

  .hero-grid {
    gap: 1.4rem;
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    height: 220px;
    width: 220px;
  }

  .project-entry {
    padding-left: 0;
  }

  .education-item {
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .education-image {
    max-height: 42px;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
