/* ============================================
   Olivetti-Inspired Minimal CSS
   Background: #f4f4f2
   Text:       #2d2d2d
   Links:      #ae5856
   ============================================ */

/* Basic reset */

/* Local Ilisarniq font (Coppers and Brasses) – for local testing only */

@font-face {
  font-family: "Sweden Sans";
  src: url("../fonts/sweden-sans/SwedenSansBook.woff2") format("woff2");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sweden Sans";
  src: url("../fonts/sweden-sans/SwedenSansRegular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sweden Sans";
  src: url("../fonts/sweden-sans/SwedenSansSemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sweden Sans";
  src: url("../fonts/sweden-sans/SwedenSansBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
    font-family: "Sweden Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 350;    /* try the light weight */
    font-size: 1.05rem;
    letter-spacing: 0.015em;
    line-height: 1.7;
    color: #2d2d2d;
    background-color: #f4f4f2;
  }

/* Layout */
.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Typography */
h1, h2, h3, h4 {
  color: #2d2d2d;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2rem;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* Links */
a {
  color: #ae5856;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

a:hover {
  opacity: 0.7;
}

a:visited {
  color: #ae5856;
}

/* Header + Navigation bar */
.site-header {
  border-bottom: 1px solid #d6d6d4;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.site-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2d2d2d;
}

.site-subtitle {
  font-size: 1rem;
  opacity: 0.75;
  color: #2d2d2d;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  font-size: 1rem;
  font-family: "Source Sans Pro", sans-serif;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover {
  border-bottom-color: #ae5856;
}

.nav-links a.active {
  border-bottom-color: #2d2d2d;
  font-weight: 600;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-family: "Source Sans Pro", sans-serif;
}

.lang-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.55;
}

.lang-current {
  font-weight: 600;
  color: #2d2d2d;
}

.lang-other {
  border: 1px solid #ae5856;
  padding: 1px 6px;
  border-radius: 4px;
}

.lang-other:hover {
  background-color: #ae5856;
  color: white;
}

/* Main content */
main p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #d6d6d4;
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #2d2d2d;
  opacity: 0.7;
  text-align: center;
}

/* Intro layout: two-column grid with title aligned to text column */
.intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      ". title"
      "photo text";
    column-gap: 2rem;
    row-gap: 1.5rem;
    align-items: flex-start;
  }
  
  /* Title sits in the second column, first row */
  .intro-title {
    grid-area: title;
    margin-bottom: 0.25rem; /* tighten space above text */
  }
  
  /* Photo is in first column, second row */
  .intro-photo {
    grid-area: photo;
  }
  
  .intro-photo img {
    width: 260px;
    max-width: 100%;
    border-radius: 5px;
    object-fit: cover;
    display: block;
  }
  
  /* Text is second column, second row */
  .intro-text {
    grid-area: text;
  }
  
  /* On small screens, stack everything */
  @media (max-width: 700px) {
    .intro {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      grid-template-areas:
        "title"
        "photo"
        "text";
    }
  
    .intro-photo {
      justify-self: center;
      margin-bottom: 0.5rem;
    }
  
    .intro-photo img {
      width: 70%;
      max-width: 280px;
    }
  }
  
  /* === Projects === */

.project {
  margin-top: 1.5rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.project-details {
  display: inline-block;
  align-self: flex-start;
}

/* Project title */
.project h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* Details / summary styling */
.project-details {
  font-family: inherit;
}

.project-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #ae5856;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.project-details summary::before {
  content: "+ ";
}

.project-details[open] summary::before {
  content: "– ";
}
/* Abstract text */
.project-abstract {
  font-size: 0.8rem;
  line-height: 1.65;
  opacity: 0.9;
}
.project-abstract p {
  margin-bottom: 0.9rem;
}

.project-status {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-top: 0.6rem;
}

/* === Pedagogical training & service list === */

.pedagogy-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.pedagogy-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 2rem;
  align-items: baseline;
}

.pedagogy-left {
  line-height: 1.4;
}

.pedagogy-title {
  display: block;
  color: #ae5856;              /* ton rouge Olivetti */
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pedagogy-date {
  display: block;
  color: #2d2d2d;
  font-weight: 400;
}

.pedagogy-right {
  font-style: italic;
  opacity: 0.85;
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 700px) {
  .pedagogy-item {
    grid-template-columns: 1fr;
    row-gap: 0.4rem;
  }

  .pedagogy-right {
    font-style: normal;
    opacity: 0.8;
  }
}

/* Ensure pedagogy section inherits site typography */

.pedagogy-list,
.pedagogy-item,
.pedagogy-left,
.pedagogy-right,
.pedagogy-title,
.pedagogy-date {
  font-family: inherit;
}

/* === Teaching Experience layout (no links) === */

.te-subhead {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.te-aside {
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
}

/* Main bullet list */
.te-list {
  margin-left: 1.6rem;
  margin-top: 0.2rem;
}

.te-list > li {
  margin: 0.85rem 0;
}

/* Course label + term */
.te-course {
  font-weight: 350;
}

.te-term {
  font-weight: 350;
}

/* Nested description list with open-circle bullets */
.te-desc {
  margin-top: 0.55rem;
  margin-left: 1.6rem;
  list-style: none;
  padding-left: 0;
}

.te-desc > li {
  position: relative;
  margin: 0.45rem 0;
  line-height: 1.55;
  font-weight: 350;
}

/* the “○” */
.te-desc > li::before {
  content: "–";
  position: absolute;
  left: -1.2rem;
  top: 0.05rem;
  opacity: 0.95;
}

/* Ordered list (TA at MIT) */
.te-olist {
  margin-left: 1.8rem;
  margin-top: 0.2rem;
}

.te-olist > li {
  margin: 0.95rem 0;
}

/* Instructor line under item */
.te-instructor {
  margin-top: 0.35rem;
  margin-left: 1.2rem;
  font-style: italic;
  opacity: 0.85;
  font-size: 0.95em;
}

.te-list,
.te-list li,
.te-desc,
.te-desc li,
.te-olist,
.te-olist li,
.te-instructor,
.te-subhead {
  font-family: inherit !important;
}