/* ======================
   FONTS
====================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600&display=swap');


/* ======================
   VARIABLES
====================== */

:root {
  --accent: #7d2239;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --border: #eaeaea;
}


/* ======================
   BASE
====================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: white;
}

.content h1 {
  margin-top: 0;
  margin-bottom: 20px;
}

.container {
  max-width: 820px;      /* comfortable academic reading width */
  margin: 0 auto;        /* center horizontally */
  padding: 0 28px;       /* left/right breathing room */
}

/* ======================
   SUBPAGE HEADER BANNER
====================== */
.subpage-hero {
  height: 160px;
  background-image: url("assets/header-crop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 30px;
  opacity: 0.92;

}


/* ======================
   PUBLIC ENGAGEMENT
====================== */

.engagement-list {
  margin: 8px 0 28px 0;
  padding-left: 18px;
}

.engagement-list li {
  margin-bottom: 8px;
}

/* ======================
   LINKS
====================== */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ======================
   NAVIGATION
====================== */

.nav {
  border-bottom: 1px solid var(--border);
  background: white;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

/* Space Grotesk ONLY here */
.logo,
nav {
  font-family: "Space Grotesk", sans-serif;
}

.logo {
  font-weight: 600;
  font-size: 16px;
}

nav a {
  margin-left: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.2px;
}

nav a:hover {
  color: var(--accent);
}


/* ======================
   HERO HEADER
====================== */

.hero {
  background-image: url("assets/header.jpg");
  background-size: cover;
  background-position: center;
  height: 55vh;
  min-height: 380px;
  position: relative;
}

.hero-overlay {
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
}

.hero-title {
  color: white;
}

.hero-title h1 {
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.hero-title h2 {
  font-size: 17px;
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
}


/* ======================
   BIO SECTION
====================== */

.bio-section {
  padding: 80px 0;
}

/* stable layout that never collapses */
.bio-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

.photo img {
  width: 240px;   /* ← change ONLY this number to resize */
  height: auto;
  border-radius: 10px;
  display: block;
}

.bio-text p {
  margin-bottom: 18px;
}


/* ======================
   PAGE CONTENT
====================== */
.page {
  padding-top: 48px;
  padding-bottom: 80px;
}
h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 26px;
}
h2 {
  font-size: 20px;      /* section titles */
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.clean {
  padding-left: 18px;
}

.pub-list {
  list-style: none;
  padding: 0;
}

.pub-list li {
  margin-bottom: 14px;
}


/* ======================
   FOOTER
====================== */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}


/* ======================
   TEACH
====================== */
.pubs li,
.media-list li,
.awards-list li {
  margin-bottom: 6px;   /* was 8–16 */
}
.teach-sub {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  margin-top: -10px;   /* pulls it closer to heading */
  margin-bottom: 12px;
}

/* ======================
   TALKS
====================== */

 /* talks formatted like CV entries */
.talks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.talks li {
  margin-bottom: 14px;
  padding-left: 22px;
  text-indent: -22px;   /* hanging indent */
}

/* ======================
   PUBLICATIONS
====================== */

.pub-note {
  color: var(--muted);
  margin-bottom: 28px;
}

.pubs a {
  text-decoration: none;
}

.pubs a:hover {
  text-decoration: underline;
}

.pubs {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

/* hanging indent citation style */
.pubs li {
  margin-bottom: 14px;
  padding-left: 22px;
  text-indent: -22px;
}


/* engagement labels */

.label {
  font-weight: 600;
  color: var(--accent);
  margin-right: 6px;
}


/* slightly larger opening paragraph on pages */
.lead {
  font-size: 18px;
  color: #333;
  margin-bottom: 28px;
}

/* cleaner lists */
.clean li {
  margin-bottom: 8px;
}

.page-intro {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ======================
   MEDIA APPEARANCES
====================== */

.media-list {
  list-style: none;      /* remove bullets */
  padding-left: 0;       /* remove default indent */
  margin-top: 6px;
}

.media-list li {
  margin-bottom: 8px;    /* tighter spacing */
  line-height: 1.45;

  /* hanging indent like publications */
  padding-left: 18px;
  text-indent: -18px;
}

.media-list a {
  text-decoration: none;
}

.media-list a:hover {
  text-decoration: underline;
}
/* ======================
   NAVIGATION
====================== */

.nav a {
  text-decoration: none;
  color: inherit;
  padding-bottom: 3px;
  transition: color 0.15s ease;
}

/* hover */
.nav a:hover {
  color: #7d2239;
}

/* active page */
.nav a.active {
  color: #7d2239;
  font-weight: 600;
  border-bottom: 2px solid #7d2239;
}
/* ======================
   AWARDS
====================== */
.awards-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.awards-list li {
  margin-bottom: 8px;
  padding-left: 18px;
  text-indent: -18px;
  line-height: 1.45;
}



/* ======================
   COLLAPSIBLE YEARS
====================== */

/* ===== Collapsible year sections ===== */

details.year-block {
  margin-bottom: 18px;
}

details.year-block summary {
  cursor: pointer;
  font-weight: 600;
  margin: 20px 0 8px 0;
  list-style: none;
}

/* subtle triangle */
details.year-block summary::marker {
  content: "";
}

details.year-block summary::before {
  content: "▸ ";
  color: var(--muted);
}

details[open].year-block summary::before {
  content: "▾ ";
}
.me {
  font-weight: 600;
}


/* ========================================
   MOBILE (≤ 768px)
======================================== */

@media (max-width: 768px) {

  /* -----------------
     CONTAINER
  ----------------- */
  .container {
    padding: 0 20px;  /* reduced from 28px for more room */
  }

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

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 14px;
  }

  nav a {
    margin-left: 0;
    padding: 4px 0;
  }

  .logo {
    font-size: 16px;
  }

  /* -----------------
     HERO
  ----------------- */

  .hero {
    height: 40vh;
    min-height: 280px;
  }

  .hero-title h1 {
    font-size: 28px;
  }

  .hero-title h2 {
    font-size: 15px;
  }

  /* -----------------
     BIO SECTION - KEY FIX
  ----------------- */

  .bio-section {
    padding: 48px 0;
  }

  /* Stack photo on top of text */
  .bio-grid {
    display: flex;
    flex-direction: column;
  }

  .photo {
    order: 1;  /* photo comes first */
    align-self: center;
    margin-bottom: 20px;
  }

  .photo img {
    width: 180px;
    max-width: 100%;
  }

  .bio-text {
    order: 2;  /* text comes after */
    width: 100%;
  }

  /* -----------------
     HEADER IMAGE
  ----------------- */

  .subpage-hero {
    height: 80px;   /* much slimmer on mobile */
  }

  /* -----------------
     TYPOGRAPHY
  ----------------- */

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 15px;
  }

  body {
    font-size: 15px;
  }

  .lead {
    font-size: 16px;
  }

  .page-intro {
    font-size: 16px;
  }

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

  .page {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  /* -----------------
     LONG LISTS
  ----------------- */

  .pubs,
  .media-list,
  .awards-list {
    font-size: 14px;
    line-height: 1.5;
  }

  .pubs li,
  .media-list li,
  .awards-list li {
    margin-bottom: 12px;
    padding-left: 16px;
    text-indent: -16px;
  }

  .talks li {
    padding-left: 16px;
    text-indent: -16px;
  }

  /* -----------------
     DETAILS BLOCKS
  ----------------- */

  details summary {
    font-size: 15px;
  }

  /* -----------------
     FOOTER
  ----------------- */

  .footer {
    margin-top: 48px;
    padding: 20px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

}


/* ========================================
   EXTRA SMALL MOBILE (≤ 480px)
======================================== */

@media (max-width: 480px) {

  .container {
    padding: 0 16px;
  }

  .hero-title h1 {
    font-size: 24px;
  }

  .hero-title h2 {
    font-size: 14px;
  }

  .photo img {
    width: 150px;  /* slightly smaller on tiny screens */
  }

  nav {
    font-size: 13px;
    gap: 6px 10px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 17px;
  }

  body {
    font-size: 14px;
  }

}
