body {
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  margin: 0;
  background: #f7f5f2;
  color: #333;
  line-height: 1.6;
  font-size: 18px;
}

/* HEADER */
header {
  background: #4a6a86;
  color: white;
  text-align: center;
  padding: 2rem 1rem;   /* 🔽 reduced */
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin-top: 0.4rem;
  font-size: 1rem;
}

/* NAV */
nav {
  text-align: center;
  padding: 0.8rem;   /* 🔽 reduced */
  background: #eae7e2;
}

nav a {
  margin: 0 12px;   /* 🔽 slightly tighter */
  text-decoration: none;
  color: #4a6a86;
}

/* CONTENT */
.content {
  max-width: 750px;   /* 🔼 slightly wider overall */
  margin: auto;
  text-align: center;
  padding: 1.5rem;
}

/* TEXT BLOCKS */
.content p {
  margin: 6px 0;   /* 🔽 tighter lines (important fix) */
}

/* LISTS */
ul {
  list-style-position: outside;
  padding-left: 1.5rem;
  text-align: left;
  margin: 0.8rem 0;   /* remove auto centering */
  max-width: 100%;    /* ✅ fills .content */
}
li {
  font-size: 1.05rem;   /* 🔽 slightly smaller */
  margin-bottom: 0.5rem;   /* 🔽 tighter */
  line-height: 1.4;
}

/* PROFILE PHOTO */
.profile-photo {
  text-align: center;
  margin: 2rem 0 0.8rem;   /* 🔽 BIG FIX: reduces gap below photo */
}

.profile-photo img {
  width: 200px;
  border-radius: 50%;
}

/* ICONS */
.icons {
  display: flex;
  justify-content: center;
  gap: 30px;   /* slightly tighter */
  margin: 1rem 0;   /* 🔽 reduced (was too large) */
}

.icons a {
  font-size: 2rem;
  color: #4a6a86;
  transition: 0.2s;
}

.icons a:hover {
  transform: translateY(-4px);
  color: #2f4f66;
}

/* HEADINGS */
h3 {
  margin: 1rem 0 0.4rem;   /* 🔽 tighter */
}

/* UPDATES */
.updates {
  margin-top: 1.5rem;   /* 🔽 reduced from 3rem */
  text-align: left;
}

.updates h3 {
  text-align: center;
}

/* TILE IMAGE */
.tile-image {
  text-align: center;
  margin-top: 2rem;   /* 🔽 reduced from 4rem */
}

.tile-image img {
  width: 105px;
}

/* FOOTER */
footer {
  background: #4a6a86;
  color: white;
  text-align: center;
  padding: 1.2rem;   /* 🔽 reduced */
  margin-top: 2rem;   /* 🔽 reduced */
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 600px) {

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1.1rem;
  }

  nav {
    padding: 0.6rem;
  }

  nav a {
    display: inline-block;
    margin: 4px 6px;
    font-size: 0.9rem;
  }

  .profile-photo img {
    width: 140px;
  }

  .content {
    padding: 1.2rem 0.8rem;
  }

  .icons {
    gap: 18px;
    flex-wrap: wrap;
    margin: 0.8rem 0;
  }

  .icons a {
    font-size: 1.6rem;
  }

  ul {
    padding-left: 1.2rem;
    max-width: 100%;
  }

  li {
    font-size: 1rem;
  }

  .tile-image img {
    width: 80px;
  }

  footer {
    padding: 0.9rem;
    font-size: 0.85rem;
  }
}

/* tighten space between image and first text */
.profile-photo {
  margin-bottom: 5px;
}

/* remove default paragraph top spacing in intro */
.intro p {
  margin: 4px 0;
}

/* tighten first block as a unit */
.intro {
  margin-top: 0;
  margin-bottom: 18px; /* creates separation from positions */
}

/* spacing for the affiliation block */
.positions p {
  margin: 4px 0;
}

/* pushes last two lines away from intro */
.positions {
  margin-top: 10px;
  margin-bottom: 25px;
}
