*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ink: #1a1a2e;
  --ink-secondary: #4a4a5a;
  --ink-muted: #8a8a9a;
  --accent: #2c3e6b;
  --accent-light: #3d5a99;
  --accent-subtle: rgba(44, 62, 107, 0.08);
  --accent-border: rgba(44, 62, 107, 0.15);
  --green: #2a7d5f;
  --green-bg: rgba(42, 125, 95, 0.08);
  --green-border: rgba(42, 125, 95, 0.2);
  --amber: #b8860b;
  --amber-bg: rgba(184, 134, 11, 0.08);
  --amber-border: rgba(184, 134, 11, 0.2);
  --blue-bg: rgba(44, 62, 107, 0.06);
  --blue-border: rgba(44, 62, 107, 0.15);
  --border: #e2e4e8;
  --border-light: #eef0f2;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --card-radius: 10px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem;
}
.nav-name {
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 400;
  color: var(--ink-muted); text-decoration: none;
  letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink-secondary); margin: 5px 0; border-radius: 1px; }

/* ── HERO ── */
.hero {
  padding: 10rem 2.5rem 5rem;
  max-width: 1000px; margin: 0 auto;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 240px; gap: 4rem; align-items: start;
}
.hero-text { min-width: 0; }
.hero h1 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-size: 3.2rem; font-weight: 700;
  color: var(--ink); line-height: 1.1;
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.02rem; font-weight: 600;
  color: var(--accent); line-height: 1.5;
  margin-bottom: 0.8rem;
}
.hero-desc {
  font-size: 0.95rem; color: var(--ink-secondary);
  line-height: 1.65; max-width: 560px; margin-bottom: 2rem;
}
.hero-photo { flex-shrink: 0; padding-top: 0.5rem; }
.hero-photo img {
  width: 240px; height: 300px; object-fit: cover;
  border-radius: var(--card-radius);
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  font-family: inherit; font-size: 0.82rem; font-weight: 500;
  text-decoration: none; border-radius: 6px;
  letter-spacing: 0.01em; transition: all 0.2s; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn-primary:hover { background: #243356; border-color: #243356; }
.btn-secondary {
  background: transparent; color: var(--ink-secondary); border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--ink-muted); color: var(--ink); }

/* ── SECTIONS ── */
.section-white { background: var(--bg); }
.section-gray { background: var(--bg-alt); }

.section-inner {
  max-width: 1000px; margin: 0 auto;
  padding: 5rem 2.5rem;
}

/* ── SECTION LABEL (line + uppercase) ── */
.section-label {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 2.2rem;
}
.section-label::before {
  content: '';
  width: 36px; height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-label h2 {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}

/* ── SUB LABEL ── */
.sub-label {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem; margin-top: 2.2rem;
}
.sub-label:first-child { margin-top: 0; }

/* ── ABOUT ── */
.about-text {
  max-width: 740px;
  font-size: 1.02rem; color: var(--ink-secondary);
  line-height: 1.8;
}
.about-text p + p { margin-top: 1rem; }
.about-text a { color: var(--accent); text-decoration: none; }
.about-text a:hover { text-decoration: underline; }

/* ── CARDS (generic) ── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--card-shadow);
}
.card + .card { margin-top: 0.8rem; }

/* ── RESEARCH CARDS ── */
.research-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 0.8rem;
}
.research-card:last-child { margin-bottom: 0; }
.research-card-label {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.5rem;
}
.research-card-title {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--ink); line-height: 1.4; margin-bottom: 0.4rem;
}
.research-card-desc {
  font-size: 0.88rem; color: var(--ink-secondary); line-height: 1.6;
}
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.8rem; }
.tag {
  font-size: 0.7rem; font-weight: 500;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  background: var(--accent-subtle); color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* ── PUBLICATION ── */
.pub-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.3rem 1.6rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 0.6rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.pub-item:last-child { margin-bottom: 0; }
.pub-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--bg-alt); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.15rem;
}
.pub-icon svg { width: 18px; height: 18px; color: var(--ink-muted); }
.pub-content { flex: 1; min-width: 0; }
.pub-citation {
  font-size: 0.88rem; color: var(--ink-secondary); line-height: 1.6;
}
.pub-citation em { font-style: italic; }
.pub-citation a { color: var(--accent); text-decoration: none; }
.pub-citation a:hover { text-decoration: underline; }
.pub-meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; flex-wrap: wrap; }
.pub-status {
  display: inline-block;
  font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.15rem 0.6rem; border-radius: 999px;
}
.pub-status.published { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.pub-status.accepted { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.pub-status.rr { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.pub-status.submitted { background: var(--blue-bg); color: var(--accent); border: 1px solid var(--blue-border); }
.pub-status.invited { background: var(--accent-subtle); color: var(--accent); border: 1px solid var(--accent-border); }
.pub-journal {
  font-size: 0.78rem; color: var(--ink-muted); font-style: italic;
}

/* ── BOOKS ── */
.book-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 0.6rem;
}
.book-card:last-child { margin-bottom: 0; }
.book-title {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.02rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.2rem;
}
.book-press { font-size: 0.82rem; color: var(--ink-muted); }

/* ── PRESENTATIONS ── */
.pres-item {
  padding: 0.7rem 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem; color: var(--ink-secondary); line-height: 1.55;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
}
.pres-item:last-child { border-bottom: none; }
.pres-text { flex: 1; }
.pres-year {
  font-size: 0.72rem; color: var(--ink-muted); font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ── TEACHING ── */
.teaching-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
}
.teaching-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--card-shadow);
}
.teaching-role {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 0.3rem;
}
.teaching-course {
  font-size: 0.9rem; color: var(--ink); font-weight: 500; line-height: 1.4;
}
.teaching-course a { color: var(--accent); text-decoration: none; }
.teaching-course a:hover { text-decoration: underline; }
.teaching-inst { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.15rem; }

/* single column teaching for items that need full width */
.teaching-list .teaching-card { margin-bottom: 0.6rem; }
.teaching-list .teaching-card:last-child { margin-bottom: 0; }

/* ── LEADERSHIP ── */
.leadership-group { margin-bottom: 2.2rem; }
.leadership-group:last-child { margin-bottom: 0; }
.leadership-subtitle {
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.8rem; padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.leadership-item {
  padding: 0.45rem 0; font-size: 0.88rem;
  color: var(--ink-secondary); line-height: 1.6;
}
.leadership-item a { color: var(--accent); text-decoration: none; }
.leadership-item a:hover { text-decoration: underline; }

/* ── RESOURCES ── */
.resource-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 0.6rem;
  display: flex; gap: 1rem; align-items: center;
}
.resource-item:last-child { margin-bottom: 0; }
.resource-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--bg-alt); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.resource-icon svg { width: 18px; height: 18px; color: var(--ink-muted); }
.resource-info { flex: 1; }
.resource-title { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.resource-title a { color: var(--accent); text-decoration: none; }
.resource-title a:hover { text-decoration: underline; }
.resource-desc { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.1rem; }

/* ── CONTACT ── */
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--card-shadow);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.contact-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--bg-alt); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.1rem;
}
.contact-icon svg { width: 16px; height: 16px; color: var(--ink-muted); }
.contact-label {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-muted); margin-bottom: 0.15rem;
}
.contact-value { font-size: 0.88rem; color: var(--ink-secondary); line-height: 1.5; }
.contact-value a { color: var(--accent); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  text-align: right; padding: 2.5rem 2.5rem;
  font-size: 0.78rem; color: var(--ink-muted);
  border-top: 1px solid var(--border-light);
  max-width: 1000px; margin: 0 auto;
}

/* ── PAGE HEADER (for subpages) ── */
.page-header { padding: 8rem 2.5rem 2rem; max-width: 1000px; margin: 0 auto; }
.page-header h1 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--ink); line-height: 1.2; letter-spacing: -0.01em;
}

/* ── SUBPAGE CONTENT ── */
.page-header + section {
  max-width: 1000px; margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
}

/* ── RESOURCE PAGES ── */
.resource-section { margin-bottom: 3rem; }
.resource-section h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  margin-bottom: 1rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.resource-section h3 {
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink); margin-top: 1.3rem; margin-bottom: 0.4rem;
}
.resource-section p, .resource-section li { font-size: 0.86rem; color: var(--ink-secondary); line-height: 1.6; }
.resource-section ul { list-style: none; }
.resource-section ul li { padding: 0.25rem 0; padding-left: 1rem; text-indent: -1rem; }
.resource-section a { color: var(--accent); text-decoration: none; }
.resource-section a:hover { text-decoration: underline; }
.resource-link-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); text-indent: 0; padding-left: 0; }
.resource-link-list li:last-child { border-bottom: none; }

/* ── BIBLIOGRAPHY ── */
.bib-entry {
  font-size: 0.86rem; color: var(--ink-secondary); line-height: 1.6;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border-light);
  text-indent: -1.5rem; padding-left: 1.5rem;
}
.bib-entry:last-child { border-bottom: none; }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .hero { padding: 7.5rem 1.5rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 160px; height: 200px; }
  .section-inner { padding: 3.5rem 1.5rem; }
  .nav-inner { padding: 0.8rem 1.5rem; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border); padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 1.5rem; display: block; }
  .nav-toggle { display: block; }
  .teaching-grid { grid-template-columns: 1fr; }
  .page-header { padding: 7rem 1.5rem 1.5rem; }
  .page-header h1 { font-size: 1.6rem; }
  .contact-card { grid-template-columns: 1fr; }
  .pub-item { flex-direction: column; gap: 0.5rem; }
  .pub-icon { display: none; }
}
