* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px;
  background-color: #f4f1ea;
  color: #09132b;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

h1 {
  color: #101a34;
  font-size: 64px;
}

header,
main {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

header {
  padding: 72px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.hero-copy {
  flex: 1;
}

.role {
  margin: 0 0 16px;
  color: #626979;
  font-weight: bold;
}

header h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.intro {
  max-width: 580px;
  margin-top: 24px;
  font-size: 18px;
}

.profile-photo {
  width: 210px;
  height: 240px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
}

section {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid #c9c5bd;
}

h2 {
  margin-top: 0;
  font-size: 32px;
}

article h3 {
  margin-bottom: 4px;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #101a34;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 999px;
}

.button:hover {
  background-color: #244eb8;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 8px 14px;
  border: 1px solid #101a34;
  border-radius: 999px;
}

@media (max-width: 600px) {
  body {
    padding: 20px;
  }

  footer {
    flex-direction: column;
  }

  header {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profile-photo {
    width: 170px;
    height: 195px;
    justify-self: start;
    grid-row: 1;
  }

  section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .expertise-list {
  grid-template-columns: 1fr;
}
}

nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #c9c5bd;
}

nav a {
  color: #101a34;
  font-weight: bold;
  text-decoration: none;
}

nav a:hover {
  color: #244eb8;
}

article + article {
  margin-top: 32px;
}

html {
  scroll-behavior: smooth;
}

footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

footer a {
  color: #244eb8;
}

.entry {
  margin-bottom: 40px;
}

.entry h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.entry-meta {
  margin-top: 0;
  color: #626979;
  font-weight: bold;
}

.cv-bullets {
  padding-left: 22px;
}

.cv-bullets li {
  margin-bottom: 12px;
  padding-left: 6px;
}

.publications li {
  margin-bottom: 20px;
}

.publications a {
  color: #244eb8;
  font-weight: bold;
}

.cv-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.text-link {
  color: #244eb8;
  font-weight: bold;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

.gallery figcaption {
  margin-top: 10px;
  color: #626979;
}

.hero-links {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-links .button {
  margin-top: 0;
}

.social-link {
  color: #101a34;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #244eb8;
}

.social-link:hover {
  color: #244eb8;
}

.icon-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #101a34;
  color: white;
  border-radius: 50%;
  transition: transform 0.2s, background-color 0.2s;
}

.icon-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.icon-link:hover {
  background-color: #244eb8;
  transform: translateY(-2px);
}

.expertise-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  list-style: none;
}

.expertise-list li {
  padding: 14px 16px;
  background-color: rgba(16, 26, 52, 0.05);
  border-left: 3px solid #244eb8;
  border-radius: 4px;
}

.page-intro {
  padding: 72px 0;
  border-top: 0;
}

.page-intro h1 {
  margin: 8px 0 20px;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
}

.page-intro > p:last-child {
  max-width: 650px;
  font-size: 18px;
}

nav {
  flex-wrap: wrap;
}

nav a[aria-current="page"] {
  color: #244eb8;
  border-bottom: 2px solid #244eb8;
}

.page-intro .role {
  margin: 0 0 10px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}