@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Sacramento&family=Source+Sans+3:wght@300;400;500;600&display=swap');
/* --------------------------------------------------
   SITE BASICS
-------------------------------------------------- */

body {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  background-color: #FBF8F2 !important;
  color: #302E2B;
}

a {
  color: #4F7562;
}

a:hover {
  color: #315744;
}

/* --------------------------------------------------
   SITE-WIDE HEADER
-------------------------------------------------- */

.site-identity {
  text-align: center;
  padding: 1.35rem 1rem 0.8rem 1rem;
  
}

.site-name {
  font-family: "Sacramento", cursive;
  font-size: 3rem;
  line-height: 1.05;
  color: #6F9A84;
  margin-bottom: 0.55rem;
}

.site-credentials {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #302E2B;
  margin: 0 auto 1.8rem auto;
}

.site-credentials .permanency {
  margin-top: 0.1rem;
  font-size: 0.94rem;
}


/* --------------------------------------------------
   CUSTOM NAVIGATION
-------------------------------------------------- */

.custom-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-top: 0.8rem;
  margin-bottom: 1.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #D7E7DD;
}

.custom-nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #4F6F60;
}

.custom-nav a:hover {
  color: #315744;
}

/* --------------------------------------------------
   LANGUAGE SWITCH
-------------------------------------------------- */

.site-identity {
  position: relative;
}

.language-switch {
  position: absolute;
  top: 0.9rem;
  right: 1.5rem;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #4F7562;
  text-decoration: none;
}

.language-switch:hover {
  color: #315744;
  text-decoration: underline;
}

/* --------------------------------------------------
   PAGE CONTENT
-------------------------------------------------- */

main {
  padding-top: 0.4rem;
  padding-bottom: 4rem;
}

main.content {
  margin-top: 0;
}

/* Keep the first element on each page close to the header */
main.content > :first-child {
  margin-top: 0 !important;
}


/* --------------------------------------------------
   PAGE TITLES AND HEADINGS
-------------------------------------------------- */

h1.title {
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em !important;
  text-align: center;
  color: #302E2B;
  margin-top: 0 !important;
  margin-bottom: 0.8rem !important;
}

h1,
h2 {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Section headings */
.publications-page h2,
.engagement-page h2,
.teaching-page h2 {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 1.2rem !important;
  font-weight: normal !important;
  letter-spacing: -0.025em !important;
  color: #302E2B !important;
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}

/* Teaching institution headings */
.teaching-page h3 {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 1rem !important;
  font-weight: normal !important;
  letter-spacing: 0 !important;
  color: #302E2B !important;
  margin-top: 0.8rem !important;
  margin-bottom: 0.35rem !important;
}
/* --------------------------------------------------
   RESEARCH AGENDA DROPDOWNS
-------------------------------------------------- */

.research-agenda {
  margin: 0.85rem 0;
  border: none;
}

/* Clickable research agenda title */
.research-agenda summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 2.5rem 0.65rem 0;
  border-bottom: 1px solid #B8CFC1;

  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #4F6F60;
}

/* Remove default browser triangle */
.research-agenda summary::-webkit-details-marker {
  display: none;
}

/* Plus */
.research-agenda summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #6F9A84;
}

/* Minus when open */
.research-agenda[open] summary::after {
  content: "−";
}

/* Expanded content */
.agenda-content {
  padding: 0.4rem 0 0.1rem 0;
  line-height: 1.38;
}

.agenda-content p {
  margin-top: 0.35rem;
  margin-bottom: 0.55rem;
}

.agenda-content h4 {
  margin-top: 0.8rem;
  margin-bottom: 0.35rem;
}
/* Research agenda title and guiding question */
.agenda-title {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #4F6F60;
}

.agenda-question {
  display: block;
  margin-top: 0.12rem;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #6F756F;
}

/* Engagement entry titles */
.engagement-page strong {
  color: #686561;
  font-weight: 600;
}

/* Tighter spacing on Teaching & Mentoring */
.teaching-page {
  line-height: 1.38;
}

.teaching-page p {
  margin-top: 0.3rem;
  margin-bottom: 0.55rem;
}

.teaching-page h2 {
  margin-top: 1.25rem !important;
  margin-bottom: 0.45rem !important;
}

.teaching-page h3 {
  margin-top: 0.8rem !important;
  margin-bottom: 0.35rem !important;
}
/* Teaching course titles */
.teaching-page strong {
  color: #4F6F60;
  font-weight: 600;
}

/* CV page */
.cv-actions {
  text-align: right;
  margin-bottom: 0.7rem;
}

.cv-actions a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: #4F7562;
  text-decoration: none;
}

.cv-actions a:hover {
  color: #315744;
  text-decoration: underline;
}

.cv-viewer {
  width: 100%;
  margin-top: 0.4rem;
}

.cv-viewer iframe {
  width: 100%;
  min-height: 1100px;
}

/* ==================================================
   HOME PAGE
   ================================================== */

.home-intro {
  display: grid;
  grid-template-columns: minmax(190px, 0.52fr) minmax(0, 1.48fr);
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Left column: portrait + contact */
.home-photo {
  width: 100%;
}

/* Cropped portrait */
.home-photo-crop {
  height: 280px;
  overflow: hidden;
  border-radius: 18px;
}

.home-photo-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.12);
  transform-origin: center 38%;
  display: block;
}

/* Contact information */
.home-contact {
  margin-top: 0.7rem;
  text-align: left;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.home-contact a {
  color: #4F7562;
  text-decoration: none;
}

.home-contact a:hover {
  color: #315744;
  text-decoration: underline;
}

/* Homepage text */
.home-text {
  font-family: "Times New Roman", Times, serif;
  line-height: 1.42;
}

.home-text p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Research fields */
.home-fields {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.15rem;
  font-weight: normal;
  color: #302E2B;
  margin-bottom: 1rem;
}

/* Homepage links */
.home-links {
  margin-top: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.home-links span {
  color: #686561;
  margin: 0 0.35rem;
}


/* ==================================================
   JUSTIFIED NARRATIVE TEXT
   ================================================== */

.research-page p,
.engagement-page p,
.teaching-page p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 768px) {

  .home-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-photo {
    max-width: 360px;
    margin: 0 auto;
  }

  .home-photo-crop {
    height: 390px;
  }

  .home-photo-crop img {
    object-position: center 38%;
    transform: scale(1.08);
    transform-origin: center 38%;
  }

  .home-text {
    text-align: left;
  }

  .home-text p,
  .research-page p,
  .engagement-page p,
  .teaching-page p {
    text-align: left;
  }

  .home-fields {
    text-align: center;
  }
}