/* General layout */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.6;
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2.2em;
  color: #004080; /* deep blue */
  margin-bottom: 0.2em;
}

header p {
  font-size: 1.1em;
  color: #444;
}

/* Navigation bar */
nav {
  text-align: center;
  margin: 20px 0;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #b8860b; /* gold */
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Section titles */
h2 {
  color: #004080; /* blue */
  border-bottom: 2px solid #004080;
  padding-bottom: 5px;
  margin-top: 30px;
}

/* Subheadings */
h3 {
  color: #004080;
  margin-top: 15px;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  margin-top: 40px;
  color: #666;
}

.pub-list {
  list-style-type: none;
  padding-left: 0;
}

.pub-list li {
  margin-bottom: 15px;
}

.pub-list a {
  color: #b8860b; /* gold */
  text-decoration: none;
}

.pub-list a:hover {
  text-decoration: underline;
}

/* Banner table */
.banner {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  border: none;
}

.banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* soft corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Profile table */
.profile-table {
  width: 100%;
  margin: 20px auto;
  border: none;
}

.profile-pic {
  width: 30%;
  text-align: center;
  vertical-align: top;
}

.profile-pic img.portrait-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.profile-text {
  width: 70%;
  padding-left: 20px;
  vertical-align: top;
  font-size: 1.1em;
  color: #333;
}

.tagline {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  color: #004080;
}

/* Images never overflow their container */
img {
  max-width: 100%;
  height: auto;
}

/* Nav wraps instead of overflowing on narrow screens */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  padding: 4px 0;
}

/* Small screens: the layout tables collapse to a single column */
@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  header h1 {
    font-size: 1.7em;
  }

  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-pic {
    width: 100%;
    margin-bottom: 15px;
  }

  .profile-pic img.portrait-img {
    max-width: 55%;
  }

  .profile-text {
    width: 100%;
    padding-left: 0;
    text-align: center;
  }

  .banner-img {
    border-radius: 6px;
  }
}
