:root {
  --bg: #f8f8f5;
  --surface: #ffffff;
  --text: #171717;
  --muted: #666a70;
  --line: #dedfd9;
  --accent: #173f5f;
  --accent-soft: #e9f0f5;
  --max: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 760;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.94rem; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--text); }

.hero.profile-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 82px;
  align-items: start;
  padding: 72px 0 70px;
  border-bottom: 1px solid var(--line);
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.portrait-frame {
  width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 50%;
  background: #e8e8e3;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(20, 31, 40, 0.08);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.profile-name {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.profile-title {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 0.90rem;
  font-weight: 650;
  line-height: 1.45;
}

.profile-affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 15px;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #42474c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1;
  transition: color 140ms ease, transform 140ms ease;
}

.social-icon:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.social-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.social-mail span { font-size: 0.93rem; font-weight: 500; }
.social-x span { font-size: 0.96rem; font-weight: 500; }
.social-linkedin span { font-size: 0.86rem; font-weight: 800; letter-spacing: -0.05em; }
.social-scholar span { font-family: Georgia, "Times New Roman", serif; font-size: 0.92rem; font-weight: 700; }
.social-orcid span { font-size: 0.77rem; font-weight: 800; letter-spacing: -0.06em; }

.profile-about {
  padding-top: 77px;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; }

.hero-copy {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.16rem, 1.9vw, 1.42rem);
  line-height: 1.62;
  letter-spacing: -0.012em;
}

.research-fields {
  margin: 25px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 27px;
  font-size: 0.9rem;
}

.profile-links a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

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

.profile-university-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  opacity: 0.9;
  transition: opacity 140ms ease, transform 140ms ease;
}

.profile-university-logo img {
  width: 86px;
  height: auto;
  display: block;
}

.profile-university-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.profile-university-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 44px;
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  position: sticky;
  top: 98px;
  align-self: start;
}
.section-kicker h2 {
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-kicker p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.paper-list { display: grid; gap: 0; }
.paper {
  position: relative;
  padding: 30px 0 32px;
  border-top: 1px solid var(--line);
}
.paper:first-child { border-top: 0; padding-top: 0; }

.paper-title {
  max-width: 820px;
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.7vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.018em;
}
.paper-title a:hover { color: var(--accent); }

.paper-meta {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.93rem;
}
.paper-meta .journal {
  color: var(--text);
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}
.paper-authors {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.93rem;
}
.paper-authors a { color: var(--text); }
.paper-authors a:hover { color: var(--accent); }

.paper-note {
  margin: 8px 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 0.9rem;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.paper-links a, .status {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}
.paper-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.status {
  margin-left: 8px;
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
  vertical-align: 0.15em;
}

.wip-list { display: grid; gap: 0; }
.wip {
  padding: 21px 0;
  border-top: 1px solid var(--line);
}
.wip:first-child { border-top: 0; padding-top: 0; }
.wip h3 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.30rem;
  font-weight: 500;
  line-height: 1.34;
}
.wip p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.old-research { color: var(--muted); }
.old-research .paper-title { font-size: 1.16rem; }

.site-footer {
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.teaching-hero {
  padding: 86px 0 50px;
  border-bottom: 1px solid var(--line);
}
.teaching-hero h1 { font-size: clamp(3rem, 8vw, 5.2rem); }
.teaching-intro { max-width: 650px; color: var(--muted); }

.course-list { padding: 56px 0 80px; }
.course {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.course:first-child { border-top: 0; }
.course-time { color: var(--muted); font-size: 0.9rem; }
.course h2 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}
.course p { margin: 0; color: var(--muted); font-size: 0.91rem; }

@media (max-width: 820px) {
  .hero.profile-hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 50px;
  }
  .profile-card { align-items: flex-start; text-align: left; }
  .profile-university-logo { margin-top: 16px; }
  .profile-university-logo img { width: 82px; }
  .portrait-frame { width: min(300px, 82vw); }
  .social-icons { justify-content: flex-start; }
  .profile-about { padding-top: 0; max-width: 680px; }
  .section { grid-template-columns: 1fr; gap: 26px; padding: 56px 0; }
  .section-kicker { position: static; }
  .section-kicker p { max-width: 520px; }
  .course { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 520px) {
  .profile-university-logo img { width: 76px; }
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 58px; }
  .nav-links { gap: 18px; }
  .hero.profile-hero { padding: 38px 0 48px; gap: 36px; }
  .profile-name { font-size: 1.16rem; }
  .hero-copy { font-size: 1.12rem; }
  .paper { padding: 25px 0 27px; }
  .status { display: inline-flex; margin: 7px 0 0; }
}

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