/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: #efe8df;
  color: #333;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: #222;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.3em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.25em; }

p {
  margin: 0 0 1.2em;
}

a {
  color: #2c5f8a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Site Container
   ========================================================================== */

.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2em 3em;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
  margin-bottom: 2.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid #e0e0e0;
}

.site-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #222;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5em;
}

.site-title:hover {
  color: #2c5f8a;
  text-decoration: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 1.5em;
}

.site-header nav a {
  color: #555;
  text-decoration: none;
  font-size: 0.95em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-header nav a:hover {
  color: #2c5f8a;
  text-decoration: none;
}

.site-header nav a.active {
  color: #2c5f8a;
  border-bottom: 2px solid #2c5f8a;
  font-weight: bold;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-content {
  min-height: 60vh;
}

/* ==========================================================================
   Profile Section
   ========================================================================== */

.profile-row {
  display: flex;
  align-items: center;
  gap: 1.8em;
  margin-bottom: 2em;
}

.profile-row .profile-photo {
  width: 280px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-bio h1 {
  font-size: 3em;
  margin: 0 0 0.4em;
}

.profile-bio p {
  margin: 0 0 0.6em;
  font-size: 0.95em;
  line-height: 1.6;
}

.profile-links {
  margin-top: 0.4em;
}

.profile-links a {
  margin-right: 1em;
  font-size: 0.9em;
}

/* ==========================================================================
   Updates List
   ========================================================================== */

.updates-list {
  list-style: none;
  padding: 0;
}

.updates-list li,
.update-item {
  padding: 0.5em 0;
  margin-bottom: 0.3em;
}

.updates-list li strong,
.update-date {
  display: inline-block;
  color: #2c5f8a;
  margin-bottom: 0.2em;
  font-size: 0.9em;
}

/* ==========================================================================
   Publication List
   ========================================================================== */

.publication-list {
  counter-reset: pub-counter;
  list-style: none;
  padding: 0;
}

.publication-list li,
.publication-list > ol > li {
  counter-increment: pub-counter;
  margin-bottom: 1.2em;
  padding-left: 2em;
  position: relative;
}

.publication-list li::before {
  content: counter(pub-counter) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #2c5f8a;
}

.publication-list li strong {
  font-weight: bold;
}

ol.publication-list {
  padding-left: 0;
}

/* ==========================================================================
   Resume Embed
   ========================================================================== */

.resume-embed embed,
.resume-embed iframe {
  width: 100%;
  height: 600px;
  border: 1px solid #e0e0e0;
}

.resume-embed {
  margin: 1.5em 0;
}

.resume-download {
  margin-bottom: 1.5em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.85em;
  color: #999;
}

/* ==========================================================================
   Responsive — ≤768px
   ========================================================================== */

@media (max-width: 768px) {
  .site-container {
    padding: 1.2em 1em;
  }

  .site-header nav {
    flex-direction: column;
    gap: 0.5em;
  }

  .site-header nav a {
    border-bottom: none;
    padding: 0.3em 0;
  }

  .site-header nav a.active {
    border-bottom: none;
    font-weight: bold;
    color: #2c5f8a;
  }

  .profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-row .profile-photo {
    width: 180px;
    height: auto;
  }

  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }

  .resume-embed embed,
  .resume-embed iframe {
    height: 400px;
  }
}
