:root{
  --blue: #012169;
  --pink: #ab2673;
  --lightblue: #6CACE4;
  --lightlightblue: #f4f7fb;
  --white: #FFFFFF;
  --gray: #444;
  --black: #000000;
  --muted: #6b7280;
  --shadow: rgba(10,30,80,0.08);
  --radius: 14px;
  --columbiablue: #75aadb;
  --blue-dark: #012169;
  --bg: var(--white);
  --text: #111;
  --maxw: 1120px;
  --pad: clamp(18px, 3.2vw, 40px);
  --gap: clamp(18px, 3vw, 48px);
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.35;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--pad);
}

/* ===== Links (match lab site) ===== */
/* a{ color: var(--columbiablue); text-decoration: none; }
a:visited{ color: var(--columbiablue); }
a:hover{ color: var(--pink); text-decoration: none; } */
/* ===== Global links: pink default, dark blue hover ===== */
a{
  color: var(--black);
  text-decoration: none;
  position: relative;
  transition: color .2s ease;
  font-weight: 600;
}

a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width .25s ease;
}

a:hover{
  color: var(--pink);
}

a:hover::after{
  width: 100%;
}

/* ===== Buttons: black → pink on hover, no underline ===== */
.btn{
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

/* disable animated underline on buttons */
.btn::after{
  display: none;
}

.btn:hover{
  color: var(--pink);
}

/* ===== Header ===== */
header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 6px;
}

/* .name{
  margin: 0;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--black);
} */

.name{
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
}

/* nav inline with separators */
.toplinks{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 16px;
  color: var(--black);
}
.toplinks a{
  color: var(--black);
  font-weight: 500;
  position: relative;
  transition: color .2s ease;
}
.toplinks a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width .25s ease;
}
.toplinks a:hover{
  color: var(--pink);
}
.toplinks a:hover::after{
  width: 100%;
}
.dot{
  color: #bbb;
}

/* ===== Hero layout ===== */
.hero{
  padding-top: clamp(36px, 10vh, 120px);
  padding-bottom: clamp(24px, 8vh, 80px);

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--gap);
  align-items: start; /* important */
}

@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; padding-top: 40px; }
}

/* ===== Bio block ===== */
.bio h2{
  font-weight: 700;   /* instead of 800 */
  font-size: 18px;
}
.bio p{
  margin: 0 0 14px 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 48ch;
}
.bio .muted{
  color: var(--muted);
}

/* ===== CTA buttons (match lab "qb" pills) ===== */
.cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn{
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--lightlightblue);
  border: 1px solid #e2e8f0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  transition: all .2s ease;
  text-decoration: none;
  color: var(--black);
}
.btn:hover{
  background: #e9edf6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.btn.primary{
  color: var(--pink);
  font-weight: 700;
}

/* ===== Photo ===== */
.photo{
  display: grid;
  justify-items: end;
}
@media (max-width: 920px){
  .photo{ justify-items: start; }
}

.headshot{
  /* hard cap so it never dominates */
  max-height: 340px;
  max-width: 340px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* ===== News ===== */
.section{
  border-top: 1px solid #e5e7eb;
  padding-top: 28px;
  padding-bottom: 18px;
}

/* ===== Subsection headings ===== */
.section h3{
  margin: 22px 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.005em;
}

/* ===== Teaching list (inline, no awkward breaks) ===== */

.teaching-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.teaching-list li{
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 18px;
}

.teaching-list .term{
  min-width: 110px;      /* aligns semesters vertically */
  color: var(--muted);
  font-weight: 500;
}

.teaching-list a{
  font-weight: 600;
  color: var(--black);
}
.teaching-list a:hover{
  color: var(--pink);
}

/* course emphasis */
.teaching-list .course-code{
  font-weight: 700;
  letter-spacing: 0.01em;
}

.teaching-list .course-title{
  font-style: italic;
  color: var(--gray);
}

.teaching-list a:hover .course-title{
  color: inherit;
}

@media (max-width: 520px){
  .teaching-list li{ grid-template-columns: 1fr; gap: 6px; }
}

/* ===== Course hero image ===== */
.course-hero{
  margin: 18px 0 24px 0;
  display: flex;
  justify-content: center;
}

.course-hero img{
  max-width: 900px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

/* Optional caption */
.course-hero-caption{
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ===== Course meta line ===== */
.course-meta{
  margin: 6px 0 18px 0;
  font-size: 15px;
  color: var(--muted);
}

/* ===== Course pages: no divider after hero ===== */
.course-page .section:first-of-type{
  border-top: none;
  padding-top: 0;
}

.date{ color: var(--muted); font-size: 14px; }
.item{ font-size: 16px; color: var(--gray); }
.item strong{ color: var(--black); }

/* ===== Footer ===== */
footer{
  border-top: 1px solid #ddd;
  margin-top: 30px;
  padding: 18px 0;
  color: #666;
  font-size: 14px;
}


/* ===== Publications ===== */
.publications{
  display: grid;
  gap: 18px;
  max-width: 900px;
}

.pub{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
}

.pub-thumb{
  width: 200px;              /* overall visual size */
  aspect-ratio: 20 / 10;     /* ≈ 2 */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.pub-title{
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
}

.pub-authors{
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

.pub-venue{
  font-size: 14px;
  color: var(--gray);
  margin-top: 2px;
}

.pub-links{
  margin-top: 6px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* important: links inside pub-links should not be extra-bold */
.pub-links a{
  font-weight: 500;
}

/* ===== Tables (for teaching pages) ===== */
.table-wrap{
  overflow-x: auto;
}

.table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.table th, .table td{
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  font-size: 15px;
}

.table th{
  background: var(--lightlightblue);
  font-weight: 700;
  color: var(--black);
}

.table tr:last-child td{
  border-bottom: none;
}

/* ===== Name + pronunciation ===== */
.name-block{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pronunciation{
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.ipa-hover{
  position: relative;
  cursor: default;
  white-space: nowrap;
}

/* tooltip */
.ipa-hover::after{
  content: attr(data-ipa);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

/* small arrow */
.ipa-hover::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 115%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #e5e7eb transparent transparent transparent;
  opacity: 0;
  transition: opacity .15s ease;
}

.ipa-hover:hover::after,
.ipa-hover:hover::before{
  opacity: 1;
}

/* ===== Calendar embed ===== */
/* Calendar embed */
.calendar-embed{
  width: 100%;
  max-width: 100%;
}

.calendar-embed iframe{
  display: block;
  width: 100%;
  height: min(78vh, 820px); /* tweak if you want */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}