/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap');

:root{
  --bg: #fff7fb;            /* light pink stays */
  --fg: #111827;
  --muted: #6b7280;         /* soft gray */
  --link: #6b2d5c;          /* warm plum */
  --link-visited: #8b4a79;  /* lighter plum */
  --accent: #6b2d5c;        /* shared accent */
  --maxw:1280px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg)}
body{font:17px/1.7 'Source Sans Pro',ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji"}
h1,h2,h3{font-family:'Playfair Display', Georgia, 'Times New Roman', Times, serif; font-weight:700; letter-spacing:.1px}
/* Subpage titles (Research, CV) are h1; keep them larger */
h1{font-size:clamp(38px, 6.4vw, 58px);line-height:1.2;margin:0 0 6px}
/* Homepage name: slightly smaller than subpage h1 */
.home-title{font-size:clamp(36px, 6vw, 54px)}
h2{font-size:clamp(22px,3.3vw,28px);line-height:1.25;margin:36px 0 8px}
h3{font-size:18px;margin:28px 0 4px}
p{margin:0 0 14px}
a{color:var(--link); text-decoration: underline; text-underline-offset:3px}
a:visited{color:var(--link-visited)}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
header{border-bottom:1px solid rgba(0,0,0,.06); position:sticky;top:0;background:color-mix(in oklab,var(--bg) 92%, transparent); backdrop-filter: blur(6px);}
.sitebar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.sitebrand{font-family:'Playfair Display', Georgia, 'Times New Roman', Times, serif; font-weight:700; font-size:20px}
nav a{margin-left:16px; padding:6px 0; font-weight:600}
nav a:hover{opacity:.8}
main{padding:28px 0 48px}
footer{border-top:1px solid rgba(0,0,0,.06); color:var(--muted); font-size:14px; padding:18px 0 42px}
.lede{color:var(--muted)}
ul.clean{list-style:none; padding:0; margin:8px 0 0}
ul.clean li{margin:10px 0}
.pubtitle{font-weight:700}
.pubmeta{color:var(--muted); font-size:14px}
.btnrow{display:flex; gap:12px; flex-wrap:wrap; margin:14px 0 0}
.btn{
  display:inline-block;
  border:1px solid rgba(107,45,92,.35);
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  color: var(--accent);
  background: transparent;
}
.btn.primary{
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(0.97);
}
img{max-width:100%; height:auto; border-radius:10px}
@media (max-width:700px){
  nav{font-size:15px}
}

/* ===== Homepage hero with headshot ===== */
/* =========================================================
   FULL-WIDTH LAYOUT (shared by Home + all subpages)
   ========================================================= */

/* ---------- Header ---------- */

.header-wrap{
  max-width: var(--maxw); 
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.header-grid{
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 56px;
  align-items: center;
}

.header-grid nav{
  justify-self: stretch;      /* take full width of the right column */
  display: flex;
  justify-content: flex-end;  /* push links to the far right */
  gap: 16px;
}

/* ---------- Homepage Hero ---------- */

.hero-wrap{
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 56px;
  align-items: center; /* vertical centering of text */
}

.hero-photo{
  width: 100%;
}

.headshot{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.hero-text{
  min-width: 0;
}

@media (max-width:900px){
  .header-grid,
  .hero-grid{
    grid-template-columns: 1fr !important;
  }

  .header-wrap,
  .hero-wrap{
    max-width: 100%;
    overflow-x: hidden;
  }

  img{
    max-width: 100%;
    height: auto;
  }

  .sitebrand a{
    font-size: 24px;
    line-height: 1.25;
  }

  .header-wrap{
    padding-top: 16px;
    padding-bottom: 10px;
  }

  /* ADD THESE */
  .hero-text{
    width: 100%;
    max-width: 100%;
  }

  .lede{
    max-width: 38ch;
  }

  .topnav{
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }
}


/* Research abstract dropdown — with text bubble */

.abstract-toggle{
  margin-top: 6px;
}

.abstract-toggle summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  list-style: none;
}

.abstract-toggle summary::-webkit-details-marker{
  display: none;
}

.abstract-toggle summary::after{
  content: " ▸";
  font-weight: 700;
}

.abstract-toggle[open] summary::after{
  content: " ▾";
}

/* THIS is the bubble */
/* Research abstract dropdown — clear rounded card */

/* One single bubble that wraps the entire abstract */
.abstract-card{
  margin: 12px 0 10px;
  padding: 16px 18px;
  background: #fff2f7;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
}

/* Paragraph styling inside the bubble */
.abstract-card p{
  margin: 0 0 10px;
  line-height: 1.65;
  color: var(--fg);
}

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

/* ===== Prevent horizontal scrolling on mobile ===== */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}
