/* Core Typography & Base */
body {
  margin: 0;
  font-family: "Inter", "Noto Sans", sans-serif;
  background: #fdfdfd;
  color: #222;
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-top: 2.5rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem;}
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

a {
  color: #267CB9;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a5b8a;
  text-decoration: underline;
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* New Layout with Fixed Right Panel */
.site-wrapper {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 3rem;
  max-width: 1200px; /* Centered container */
  margin: 0 auto;
  padding: 0 2rem;
}

.main-panel {
  /* No changes needed here */
}

.right-panel {
  position: fixed; /* Fixes the panel to the viewport */
  right: calc(10% - 100px); /* Adjusts its horizontal position */
  top: 2rem;
  width: 200px; /* Needs a fixed width when using position: fixed */
  height: 100vh; /* Optional: Makes it fill the entire viewport height */
  padding-left: 2rem;
  border-left: 1.5px solid #bab9b9;
}

/* Adjustments for the main panel to make space for fixed right panel */
.main-panel { /* Create a gap for the fixed right panel */
  margin-left: 10rem;
}

/* Photo Container */
.photo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid #ffffff;
}
/* ... rest of your CSS ... */

/* Specific Section Styling */
.section {
  margin-bottom: 1rem;
}

/* Blog Posts Section */
#blog ul {
  list-style: disc;
  margin-left: 1.5rem; /* This sets the list's left margin */
  margin-bottom: 0.5rem;
}

#blog li {
  margin-bottom: 0.5rem;
}

/* New rule for the "Jump to Substack" link */
.blog-link {
  margin-left: 4rem; /* Match the ul's margin-left */
}

/* Home Section */
#home {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: #555;
  margin-top: 0;
  line-height: 1.4;
}

/* Projects */
.projects-list {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  margin-left: 3rem; /* Add this line for the left margin */
}

.project-entry {
  border-bottom: 1px dashed #e0e0e0;
}

.project-entry:last-child {
  border-bottom: none;
}

.project-entry h3 {
  margin-bottom: 0rem
}

.project-entry p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

.project-entry .tags {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Highlights List */
.highlights-list {
  list-style: none;
  padding: 0;
}

.highlights-list li {
  margin-bottom: 1.2rem;
  line-height: 1.5;
  color: #333;
}

.highlights-list strong {
  color: #111;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

/* Contact Section & Icons */
#contact {
  text-align: center; /* This centers the heading and the icons container */
}

.contact-icons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* Change 'wrap' to 'nowrap' */
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* No changes to the icon link styling */
.contact-icons a {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icons a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .site-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .main-panel {
    border-right: none;
    padding-right: 0;
  }

  .right-panel {
    position: static;
    padding-left: 0;
    border-top: 1px solid #eee;
    padding-top: 2rem;
    align-content: center;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 576px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .profile-photo {
    width: 90px;
    height: 90px;
  }
}