@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=IBM+Plex+Sans:wght@400;500&display=swap');

:root {
  --ink: #16181d;
  --ink-soft: #4b4f58;
  --ink-faint: #8b8e96;
  --paper: #ffffff;
  --line: #e3e2dd;
  --line-strong: #c9c7c0;
  --accent: #1f3a5f;
  --accent-tint: #eaeff5;
  --gold: #9c7a3c;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 19.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav ---------- */

.nav-bar {
  background: var(--accent-tint);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 20px;
}

.nav-name {
  font-family: 'Newsreader', serif;
  font-size: 33.3px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 19px;
}

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

.nav-links a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

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

header.hero {
  border-top: 1px solid var(--line);
  padding: 40px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: start;
}

.portrait {
  width: 340px;
  height: 440px;
  background: var(--accent-tint);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 16.3px;
  text-align: center;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  line-height: 1.4;
}

.hero h1 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 33.3px;
  margin: 0 0 4px;
  color: var(--ink);
}

.hero .role {
  color: var(--ink-soft);
  font-size: 18.3px;
  margin: 0 0 14px;
}

.market-flag {
  display: inline-block;
  font-size: 17.3px;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 17.3px;
}

.hero-links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hero-links a:hover { border-bottom-color: var(--accent); }

/* ---------- Sections ---------- */

section {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

section > .wrap,
section.wrap {
  display: block;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 17.3px;
  color: var(--ink-faint);
  margin: 0 0 6px;
}

h2.section-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 24.3px;
  margin: 0 0 18px;
}

.page-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--ink);
}

.bio p {
  margin: 0 0 18px;
  font-size: 19.3px;
  color: var(--ink);
}

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

.bio em { font-style: italic; color: var(--ink-soft); }
.bio strong { font-weight: 500; }

/* ---------- Research agenda blocks ---------- */

.agenda {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.agenda:first-of-type { border-top: none; padding-top: 0; }

.agenda-label {
  font-size: 16.8px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.agenda-title {
  font-size: 20.3px;
  font-weight: 500;
  margin: 0 0 6px;
}

.agenda-q {
  font-size: 17.8px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.figure-slot {
  background: var(--accent-tint);
  border-radius: 6px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 17.3px;
  text-align: center;
  padding: 20px;
  line-height: 1.6;
}

.figure-caption {
  font-size: 17.8px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

.figure-caption a { color: var(--accent); }

/* ---------- Research list ---------- */

.pub {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.pub:first-child { border-top: none; padding-top: 0; }

.pub-title { margin: 0 0 3px; font-size: 18.8px; }

.pub-meta {
  margin: 0;
  font-size: 17.8px;
  color: var(--ink-soft);
}

.pub-meta .status { color: var(--accent); }

/* ---------- Teaching ---------- */

.course {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 17.8px;
}

.course:first-child { border-top: none; padding-top: 0; }

.course-role { color: var(--ink-faint); text-align: right; white-space: nowrap; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 17.8px;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* ---------- Feature project: skill-space app ---------- */

.app-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 18px 0 16px;
  font-size: 17.3px;
}

.app-controls label {
  display: block;
  color: var(--ink-soft);
  font-size: 16.8px;
  margin-bottom: 4px;
}

.app-controls select {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17.3px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px 10px;
  min-width: 180px;
}

.subscribe-box {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 16px 18px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.subscribe-note {
  font-size: 17.8px;
  color: var(--ink-soft);
  margin: 0;
}

.subscribe-btn {
  font-size: 17.8px;
  color: var(--paper);
  background: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  white-space: nowrap;
}

.subscribe-btn:hover { opacity: 0.9; }

/* ---------- Dissertation projects: side-by-side boxes ---------- */

.diss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.diss-box { min-width: 0; }

.diss-img {
  background: var(--accent-tint);
  border-radius: 6px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15.8px;
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.diss-img img,
.lightbox-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.diss-title {
  font-size: 17.8px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.4;
}

.diss-desc {
  display: none;
}

.diss-hint {
  font-size: 14.8px;
  color: var(--ink-faint);
  margin: 0;
}

@media (max-width: 700px) {
  .diss-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Short-description list items (published & ongoing) ---------- */

.pub-desc {
  margin: 6px 0 0;
  font-size: 17.8px;
  color: var(--ink-soft);
}

/* ---------- Click-to-expand hint ---------- */

.hint {
  font-size: 15.8px;
  color: var(--ink-faint);
  font-weight: 400;
}

/* ---------- Teaching page: course blocks ---------- */

.course-content {
  font-size: 15.3px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.65;
}

.course-resp {
  font-size: 15.3px;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.65;
}

.course-resp strong { font-weight: 500; }

.course-quotes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-quotes li {
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
  margin-bottom: 12px;
  font-size: 14.3px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
}

.course-quotes li:last-child { margin-bottom: 0; }

/* ---------- Lightbox ---------- */

.diss-box { cursor: pointer; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  padding: 24px;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-card {
  background: var(--paper);
  border-radius: 10px;
  max-width: 940px;
  width: 94%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 34px 38px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(8px);
  transition: transform 0.18s ease;
}

.lightbox-overlay.open .lightbox-card { transform: translateY(0); }

@media (max-width: 600px) {
  .lightbox-overlay { padding: 10px; }
  .lightbox-card {
    width: 100%;
    padding: 44px 16px 22px;
    border-radius: 8px;
  }
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px 8px;
}

.lightbox-close:hover { color: var(--ink); }

.lightbox-img {
  background: var(--accent-tint);
  border-radius: 6px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 17px;
  margin-bottom: 24px;
  overflow: hidden;
}

.lightbox-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 27px;
  margin: 0 0 14px;
}

.lightbox-desc {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.lightbox-desc + .lightbox-desc { margin-top: 16px; }

@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .portrait { width: 100%; height: 320px; }
  .nav-name { font-size: 24px; }
  .nav-links { gap: 14px; }
}

/* ---------- Accessibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
