:root {
  --text: #4d5156;
  --heading: #35383d;
  --muted: #73777e;
  --link: #315f9f;
  --border: #e4e6e8;
  --surface: #f6f7f8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
}

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

.site-name {
  color: var(--heading);
  font-weight: 650;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
}

.page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding-top: 42px;
  padding-bottom: 72px;
}

.profile-photo {
  display: block;
  width: 180px;
  height: 180px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.profile h1 {
  margin: 18px 0 3px;
  color: var(--heading);
  font-size: 1.18rem;
  line-height: 1.3;
}

.profile p {
  margin: 2px 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.profile-role {
  font-weight: 600;
}

.profile-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.content {
  min-width: 0;
}

section {
  margin-bottom: 42px;
  scroll-margin-top: 24px;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 5px;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
  font-size: 1.35rem;
  line-height: 1.4;
}

h3,
.publication-title {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

section > p:first-of-type {
  margin-top: 0;
}

.publication p {
  margin: 0;
}

.muted,
.entry-date {
  color: var(--muted);
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin-bottom: 18px;
}

.entry p {
  margin: 0;
}

.entry-date {
  white-space: nowrap;
  text-align: right;
}

.site-footer {
  padding: 20px 0;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 8px;
  }

  .nav-links {
    gap: 10px 20px;
    font-size: 0.92rem;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 30px;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .entry-date {
    text-align: left;
  }
}

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