:root {
  --text: #111111;
  --muted: #5f6368;
  --link: #163c63;
  --border: #dddddd;
  --soft: #f7f7f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: #ffffff;
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.site-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px 24px 14px;
  border-bottom: 1px solid var(--border);
}
.site-title { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.site-title a { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.site-nav a { color: #333333; }
.page-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}
.page-header { margin-bottom: 34px; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; font-weight: 650; }
h2 { font-size: 24px; margin: 42px 0 18px; padding-top: 4px; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.35; margin: 0 0 4px; font-weight: 600; }
p { margin: 0 0 16px; }
.intro, .page-intro { color: var(--muted); max-width: 760px; }
.item { margin: 0 0 22px; }
.item.featured-resource, .pullout {
  background: var(--soft);
  border-left: 4px solid var(--border);
  padding: 16px 18px;
  margin: 24px 0 26px;
}
.pullout h3 { margin-bottom: 8px; }
.pullout p:last-child { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 15px; }
ul.link-list { margin: 10px 0 0 22px; padding: 0; }
ul.link-list li { margin: 8px 0; }
.about-block { margin-top: 34px; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header, .page-content { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
}

.dated-list { margin-top: 18px; }
.dated-entry {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  margin: 0 0 22px;
}
.dated-year {
  color: var(--muted);
  font-size: 15px;
  padding-top: 2px;
}
.dated-body h3 { margin-bottom: 3px; }
@media (max-width: 640px) {
  .dated-entry { grid-template-columns: 1fr; gap: 2px; margin-bottom: 24px; }
  .dated-year { font-weight: 600; }
}

/* ── Homepage ── */
.home-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.home-text { flex: 1; min-width: 0; }
.home-photo { flex-shrink: 0; width: 200px; }
.home-photo img { width: 100%; display: block; border-radius: 3px; }
.home-links {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 16px;
}
@media (max-width: 640px) {
  .home-layout { flex-direction: column-reverse; gap: 20px; }
  .home-photo img { width: 140px; }
}

/* ── Research page ── */
.paper { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid #e8e8e4; }
.paper:last-child { border-bottom: 1px solid #e8e8e4; padding-bottom: 22px; }
.bucket-note { color: var(--muted); font-size: 15px; max-width: 760px; margin: 0 0 22px; }
.desc { font-size: 16px; max-width: 760px; margin-bottom: 8px; }
.links { font-size: 14px; color: var(--muted); margin-top: 6px; }
.links a { color: var(--link); }

/* ── Columns page ── */
.section-note { color: var(--muted); font-size: 16px; max-width: 760px; margin-bottom: 8px; }
.site-footer { border-top: 1px solid #ddd; margin-top: 40px; padding-top: 18px; color: var(--muted); font-size: 14px; }

/* ── Testimony page ── */
.testimony-list { margin-top: 1.5rem; }
.testimony-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #ddd; }
.testimony-item:last-child { border-bottom: none; }
.testimony-item .year { font-weight: 600; display: inline-block; min-width: 3.5rem; }
.testimony-item .title { display: inline; }
.testimony-links { margin-top: .25rem; margin-left: 3.75rem; font-size: .92rem; }

/* ── Mentoring page ── */
.dated-body { }
.dated-body h3 { margin-bottom: 3px; }

/* ── Research page extras ── */
.research-main {
  max-width: 980px;
  padding: 36px 28px 80px;
  line-height: 1.45;
}
.research-main h1 { font-size: 42px; letter-spacing: -0.03em; }
.research-main h2 { font-size: 28px; letter-spacing: -0.02em; }
.research-main h3 { font-size: 19px; line-height: 1.25; font-weight: 620; }
.research-main h3 a { color: var(--text); text-decoration: none; }
.research-main h3 a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.research-main .intro { font-size: 18px; color: #2a2a2a; max-width: 780px; }
.research-main .page-header { margin-bottom: 0; }
.research-main section { padding: 20px 0 30px; }
.research-main .bucket-note { font-size: 16px; }
.research-main .desc { font-size: 15.5px; }
.meta a { color: var(--link); text-decoration: none; }
.meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.media-coverage { color: var(--muted); font-size: 13px; margin-top: 6px; }
.media-coverage a { color: var(--link); text-decoration: none; }
.media-coverage a:hover { text-decoration: underline; text-underline-offset: 3px; }
.coauthors { font-size: 14px; color: var(--muted); margin: 3px 0 6px; }
.tip-wrap { position: relative; display: inline; }
.tip-trigger { border-bottom: 1px dashed #d8d8d8; cursor: default; }
.tip-box {
  display: none;
  position: absolute;
  left: 0; top: calc(100% + 5px);
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.tip-wrap:hover .tip-box { display: block; }

/* ── Research section nav ── */
.section-nav {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
}
.section-nav a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.section-nav a:hover { border-bottom-color: var(--link); }

/* ── About page subheadings ── */
.about-subhead { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }

/* ── Teaching page ── */
.teaching-main {
  max-width: 1000px;
  padding: 36px 28px 80px;
}
.teaching-main h1 { font-size: 40px; letter-spacing: -0.02em; }
.teaching-main .intro { font-size: 18px; color: #2a2a2a; max-width: 800px; }
.teaching-main section { padding: 8px 0 30px; }
.teaching-main h2 { font-size: 26px; letter-spacing: -0.01em; margin: 34px 0 14px; }
.teaching-main p { max-width: 800px; }

/* Single archival artifact */
.artifact-figure { margin: 26px auto 30px; text-align: center; }
.artifact-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 2px;
}
.artifact-figure.narrow { max-width: 560px; }
.artifact-figure.medium { max-width: 720px; }
.artifact-caption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 9px;
  line-height: 1.5;
}
.artifact-caption a { color: var(--link); }

/* Then / now paired blocks */
.then-now { margin: 30px 0 38px; }
.then-now > h3 { font-size: 19px; margin-bottom: 6px; }
.then-now-intro { max-width: 800px; margin-bottom: 16px; }
.then-now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.then-now-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 2px;
}
.col-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.then-now-stack { display: flex; flex-direction: column; gap: 22px; }
.then-now .artifact-caption { text-align: left; margin-top: 12px; }

@media (max-width: 720px) {
  .then-now-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* Teaching: click-to-enlarge */
.zoom { display: inline-block; max-width: 100%; }
.zoom img { cursor: zoom-in; }
.then-now-grid .zoom, .then-now-stack .zoom { display: block; width: 100%; }

/* Teaching: single-column labeled artifact */
.then-now-grid.single { grid-template-columns: 1fr; max-width: 780px; }

/* Teaching: course list */
.course-jump { margin: 10px 0 0; font-size: 15px; }
#courses { margin-top: 40px; padding-top: 8px; border-top: 1px solid #e2e2e2; }
.course-list { list-style: none; padding: 0; margin: 18px 0 0; max-width: 860px; }
.course-list li { display: flex; gap: 18px; padding: 11px 0; border-bottom: 1px solid #eee; align-items: baseline; }
.course-list li:last-child { border-bottom: none; }
.course-year { flex: 0 0 52px; color: var(--link); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 15px; }
.course-main { display: flex; flex-direction: column; gap: 3px; }
.course-where { color: #6a6a6a; font-size: 13px; }
.course-desc { color: #4b5563; font-size: 14px; line-height: 1.5; }
.course-note { color: #6a6a6a; font-size: 14px; margin: 0 0 12px; }
@media (max-width: 520px) { .course-list li { gap: 12px; } }
.course-audience { color: #6a6a6a; font-size: 13px; }
.sort-toggle { font: inherit; font-size: 14px; color: var(--link); background: #fff; border: 1px solid #cfd6dd; border-radius: 6px; padding: 4px 12px; cursor: pointer; margin: 0 0 16px; }
.sort-toggle:hover { background: #f2f5f8; }

/* Teaching: split title and prominent syllabi jump */
.teaching-main .page-header h1 { margin-bottom: 4px; }
.page-subtitle { margin: 0 0 16px; font-size: 20px; font-weight: 400; color: #555; line-height: 1.3; }
.syllabi-jump { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
