:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #2f2c2c;
  --link: #2c85df;
  --link-hover: #0169c9;
  --intro-heading-color: var(--text);
  --intro-meta-color: var(--muted);
  --intro-icon-color: var(--text);
  --social-icon: #000000;
  --social-icon-hover: var(--link);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  width: min(980px, 92%);
  margin: 0 auto;
}

/* Intro block */
.intro-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 0.6rem;
}

.photo-wrap {
  flex: 0 0 220px;
}

.photo-wrap img {
  width: 100%;
  max-width: 220px;
  display: block;
}

.intro-text h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.9rem, 2.5vw, 2.5rem);
  font-weight: normal;
  line-height: 1.2;
  color: var(--intro-heading-color);
}

.meta-line {
  margin: 0.2rem 0;
  color: var(--intro-meta-color);
}

.social-links {
  display: flex;
  gap: 0.95rem;
  margin-top: 0.8rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--intro-icon-color);
  text-decoration: none;
  line-height: 1;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--link-hover);
}

.intro-section .meta-affiliation a,
.intro-section .meta-affiliation a:hover,
.intro-section .meta-affiliation a:focus-visible {
  color: inherit;
  text-decoration: none;
}

.social-links a.icon-scholar,
.social-links a.icon-linkedin,
.social-links a.icon-github,
.social-links a.icon-x,
.social-links a.icon-cv {
  color: var(--social-icon);
}
.social-links a.icon-scholar:hover,
.social-links a.icon-scholar:focus-visible,
.social-links a.icon-linkedin:hover,
.social-links a.icon-linkedin:focus-visible,
.social-links a.icon-github:hover,
.social-links a.icon-github:focus-visible,
.social-links a.icon-x:hover,
.social-links a.icon-x:focus-visible,
.social-links a.icon-cv:hover,
.social-links a.icon-cv:focus-visible {
  color: var(--social-icon-hover);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Content sections */
.content-section {
  padding: 0.45rem 0 0.25rem;
}

.content-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  font-weight: normal;
}

.readable-text {
  max-width: 780px;
}

.readable-text p {
  margin: 0 0 0.9rem;
}

.pub-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 820px;
}

.pub-list li {
  margin-bottom: 0.85rem;
}

.news-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 820px;
}

.news-list li {
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1rem 0 2rem;
}

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

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

/* Mobile layout */
@media (max-width: 768px) {
  .intro-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding-top: 1.35rem;
  }

  .photo-wrap {
    flex-basis: auto;
  }

  .photo-wrap img {
    max-width: 180px;
  }
}
