/* ============================================
   Academic website — stylesheet
   Inspired by www.abeel.be (Garland green variant)
   Modern professional, TU Delft style
   ============================================ */

/* --- Reset & base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #3d3d3d;
  background: #f5f3ee;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Header & nav --- */
.site-header {
  background: linear-gradient(135deg, #1a3a0a 0%, #2c6b0e 100%);
  color: #fff;
  padding: 0;
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0.8rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-title a:hover {
  opacity: 0.85;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.1rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* --- Layout --- */
.wrapper {
  flex: 1;
  max-width: 1060px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.content-card {
  background: #fff;
  border-radius: 6px;
  padding: 2rem 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.content-card:last-child {
  margin-bottom: 0;
}

/* --- Typography --- */
h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a3a0a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c6b0e;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e0ddd0;
  line-height: 1.3;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3d3d3d;
  margin-bottom: 0.4rem;
  margin-top: 1.2rem;
}

p {
  margin-bottom: 0.8rem;
}

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

a:hover {
  text-decoration: underline;
}

/* --- Hero section --- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.hero-text {
  flex: 1;
  min-width: 260px;
}

.hero-name {
  font-size: 2rem;
  font-weight: 700;
  color: #1a3a0a;
  margin-bottom: 0.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: 1rem;
  color: #6a6a6a;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.hero-affiliation {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.2rem;
}

.hero-bio {
  max-width: 75%;
}

.hero-photo {
  flex-shrink: 0;
  width: 230px;
  text-align: center;
}

.hero-photo img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0ddd0;
}

/* --- Contact details --- */
.contact-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.8rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.contact-details dt {
  color: #888;
  font-weight: 500;
}

.contact-details dd {
  color: #3d3d3d;
}

/* --- Research tags --- */
.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.research-tag {
  background: #eef3e6;
  color: #2c6b0e;
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-weight: 500;
}

/* --- CV page --- */
.cv-header {
  margin-bottom: 1.5rem;
}

.cv-contact-line {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.cv-section {
  margin-bottom: 1.5rem;
}

.cv-section h2 {
  margin-top: 0;
}

.cv-entry {
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  border-left: 3px solid #d4d9c8;
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry-title {
  font-weight: 600;
  color: #1a3a0a;
}

.cv-entry-date {
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
  margin-left: 0.4rem;
}

.cv-entry-sub {
  font-size: 0.88rem;
  color: #6a6a6a;
}

.cv-entry-desc {
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.15rem;
}

/* --- Publications --- */
.pub-num {
  display: inline-block;
  min-width: 2.2em;
  color: #999;
  font-size: 0.82rem;
  font-weight: 400;
}

.pub-entry {
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  padding-left: 0;
}

.pub-authors {
  color: #3d3d3d;
}

.pub-authors .highlight {
  font-weight: 600;
}

.pub-title {
  font-style: italic;
}

.pub-journal {
  color: #6a6a6a;
}

.pub-links {
  font-size: 0.82rem;
}

.pub-links a {
  color: #2c6b0e;
}

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

/* --- Utility --- */
.muted-intro {
  font-size: 0.88rem;
  color: #888;
}

/* --- Preprints --- */
.pub-entry.preprint {
  border-left: 3px solid #d4d9c8;
  padding-left: 0.6rem;
  margin-bottom: 0.5rem;
}

.pub-entry.preprint .pub-journal {
  color: #b0a890;
  font-size: 0.82rem;
}

/* --- Projects --- */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.project-card {
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #2c6b0e;
  transition: box-shadow 0.15s, transform 0.15s;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.project-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a3a0a;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.project-card-section {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.project-card-skills {
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid #eee;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #e0ddd0;
  margin-top: 2rem;
}

.site-footer a {
  color: #888;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1rem 0.6rem 1rem;
  }

  .main-nav ul {
    justify-content: center;
  }

  .main-nav a {
    font-size: 0.82rem;
    padding: 0.25rem 0.5rem;
  }

  .wrapper {
    padding: 0 0.8rem;
    margin: 1rem auto;
  }

  .content-card {
    padding: 1.2rem 1.2rem;
  }

  .hero {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-bio {
    max-width: 100%;
  }

  .contact-details {
    text-align: left;
  }

  h1 {
    font-size: 1.4rem;
  }

  .hero-name {
    font-size: 1.5rem;
  }

  .cv-entry {
    padding-left: 0.8rem;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }
}