* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

/* ---------- LINKS ---------- */

a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}

a:hover {
  border-bottom: 1px solid #111;
}

/* ---------- LAYOUT ---------- */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  min-height: 75vh;
}

/* ---------- NAVIGATION ---------- */

nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;

  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid #e6e6e6;
  z-index: 100;
}

/* ---------- HOME CENTER BLOCK ---------- */

.center-block {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
}

/* ---------- HEADINGS ---------- */

h1 {
  font-size: 30px;
  font-weight: 600;
  margin: 18px 0 16px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- TEXT ---------- */

p {
  font-size: 17px;
  margin-bottom: 14px;
}

/* ---------- IMAGE ---------- */

.profile-img-center {
  width: 180px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* ---------- LINKS ROW ---------- */

.links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 15px;
}

/* ---------- LISTS ---------- */

ul {
  padding-left: 18px;
}

li {
  margin-bottom: 12px;
  font-size: 16.5px;
}

.project-list li {
  margin-bottom: 18px;
}

.teaching-list li {
  margin-bottom: 12px;
}

/* ---------- SMALL NOTES ---------- */

.small-note {
  font-size: 14.5px;
  color: #444;
  margin-top: 28px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 800px) {
  nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
