:root {
  --content-width: 800px;
  --text-color: #2c3e50;
}

body {
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.7;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 2rem 10vh;
  color: var(--text-color);
  background: #fffff8;
  font-weight: 400;
}

/* Set default header weight */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

/* Header with Image */
.header {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.profile-image {
  width: 180px;
  height: 240px; /* 3:4 aspect ratio */
  object-fit: cover;
  border-radius: 4px;
}

.header-content h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  color: #000;
}

.header-content p {
  margin: 0.25rem 0;
  font-size: 0.85em;
}

/* Navigation */
nav {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid #eee; /* Light grey */
  border-bottom: 1px solid #eee; /* Light grey */
}

nav a {
  color: #555; /* Dark grey default */
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 400; /* Normal weight */
  padding-bottom: 0;
  border-bottom: none;
  transition: color 0.2s ease, font-weight 0.2s ease; /* Smooth transition for color and weight */
}

nav a:hover {
  color: #000; /* Black on hover */
  text-decoration: none;
}

/* Style for the active page link */
nav a.active {
  color: #000; /* Black */
  font-weight: 600; /* Bolder */
  text-decoration: none;
}

/* Ensure visited links don't get unwanted styles */
nav a:visited {
    color: #555; /* Keep default color */
    text-decoration: none;
}

/* Style for the link while being clicked (momentary) */
nav a:active {
    color: #000; /* Black when clicking */
    text-decoration: none;
}

/* Contact Info */
.contact-info {
  margin: 2rem 0;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 0.85em;
}

.contact-info a {
  color: #6495ED; /* Cornflower Blue */
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: #4173C4; /* Darker Cornflower Blue on hover */
  text-decoration: none;
}

/* Specific style for email links in contact info */
.contact-info a[href^="mailto:"] {
  color: #555; /* Grey for email links */
  transition: color 0.2s ease;
}

.contact-info a[href^="mailto:"]:hover {
  color: #333; /* Darker grey on hover for email links */
  text-decoration: none;
}

/* Social Links */
.social-links {
  margin: 2rem 0;
}

.social-links a {
  color: #2c3e50;
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #000;
}

/* General Link Styles */
a {
  color: #4682B4; /* Steel Blue */
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #3A6A97; /* Darker Steel Blue on hover */
  text-decoration: none;
}

/* About Section */
.about {
  margin: 2rem 0;
}

.about h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: #000;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.about p {
  margin: 1rem 0;
  font-size: 0.9em;
}

/* Research Panels */
.research-panel {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid #e0e4e8;
  transition: border-color 0.25s ease;
}

.research-panel[open] {
  border-left-color: #4682B4;
}

.research-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 0.15em 0;
}

.research-panel summary::-webkit-details-marker { display: none; }

.panel-title {
  display: block;
  font-weight: 600;
  font-size: 0.95em;
  color: #2c3e50;
  transition: color 0.2s ease;
}

.panel-chevron {
  font-style: normal;
  color: #aaa;
  font-size: 1.1em;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.research-panel[open] .panel-chevron {
  transform: rotate(90deg);
  color: #4682B4;
}

.research-panel summary:hover .panel-title {
  color: #4682B4;
}

.research-panel summary:hover .panel-chevron {
  color: #4682B4;
}

.panel-desc {
  display: block;
  font-size: 0.83em;
  color: #999;
  font-style: italic;
  margin-top: 0.1em;
}

/* Body */
.panel-body {
  margin-top: 0.8em;
}

.panel-group {
  margin-bottom: 0.9em;
}

.panel-group-title {
  font-size: 0.78em;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3em;
}

.panel-item {
  font-size: 0.85em;
  color: #555;
  padding: 0.25em 0 0.25em 0.8em;
  border-left: 1px solid #eee;
  margin-bottom: 0.2em;
  line-height: 1.6;
}

.panel-item a {
  color: #4682B4;
}

.panel-item a:hover {
  color: #3A6A97;
}

.panel-item em {
  color: #bbb;
  font-style: normal;
  font-size: 0.9em;
}

/* Get in Touch */
.connect {
  margin-top: 3.5rem;
  padding-bottom: 2rem;
}


/* Responsive Design */
@media (max-width: 700px) {
  body {
    padding: 1rem;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .profile-image {
    width: 160px;
    height: 213px;
    margin: 0 auto;
  }

  h1 {
    font-size: 2rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  nav a {
    margin: 0 0.75rem;
  }

  .social-links {
    text-align: center;
  }
}
