:root {
  --text: #222222;
  --muted: #666666;
  --accent: #a64b24;
  --border: #e5e5e5;
  --background: #ffffff;
  --width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--background);
  color: var(--text);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 17px;
  line-height: 1.7;
}

.container {
  width: min(var(--width), calc(100% - 56px));
  margin: 0 auto;
}


/* =========================================================
   Navigation
   ========================================================= */

.site-header {
  border-bottom: 1px solid #e7e3de;
  background: #ffffff;
}

.nav {
  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  color: #202020;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;

  text-decoration: none;
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 31px;
}

.nav-links a {
  position: relative;

  color: #505050;

  font-size: 14.5px;
  font-weight: 400;

  text-decoration: none;

  transition: color 0.15s ease;
}

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

.nav-links a.active::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;

  height: 1px;

  background: var(--accent);
}

.nav-toggle {
  display: none;

  border: 0;
  background: transparent;

  color: #333;
  font-size: 25px;

  padding: 4px 0;
  cursor: pointer;
}



/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 34px 0 58px;
}


/* ---------- Heading ---------- */

.hero-heading {
  margin-bottom: 38px;
}

.hero h1 {
  margin: 0 0 12px;

  color: #202020;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.08;

  letter-spacing: -1px;
}

.position {
  margin: 0;

  color: #66615d;

  font-size: 16px;
  line-height: 1.55;
}


/* ---------- Bio + Portrait ---------- */

.hero-content-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 760px)
    300px;

  justify-content: space-between;

  column-gap: 80px;

  align-items: stretch;
}

.hero-copy {
  min-width: 0;
}


/* ---------- Biography ---------- */

.bio {
  margin: 0 0 26px;

  color: #3f3c39;

  font-size: 17px;
  line-height: 1.72;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.bio a,
.bio a:visited {
  color: var(--accent);
  text-decoration: none;
}

.bio a:hover {
  color: #713216;
  text-decoration: underline;
}


/* ---------- Research statement ---------- */

.research-statement {
  margin: 0 0 28px;

  color: #2f2c2a;

  font-size: 18px;
  line-height: 1.72;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* ---------- Links ---------- */

.hero-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 0;

  margin-top: 6px;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  color: var(--accent);

  font-size: 15.5px;
  font-weight: 500;

  text-decoration: none;

  transition: color 0.15s ease;
}

.hero-socials iconify-icon {
  width: 20px;
  height: 20px;

  font-size: 20px;

  flex-shrink: 0;
}

.hero-socials a:hover {
  color: #713216;
}

.social-separator {
  margin: 0 18px;

  color: #c9b7ad;

  font-size: 17px;
  font-weight: 300;
}
/* ---------- Portrait ---------- */

.hero-photo {
  width: 300px;

  align-self: stretch;
  justify-self: end;

  padding: 6px 0;

  overflow: hidden;
}

.hero-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 35%;

  border-radius: 2px;
}


.home-news {
  padding: 48px 0 52px;

  border-top: 1px solid var(--border);
}

.home-news-heading {
  margin-bottom: 24px;
}

.home-news-heading h2 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;

  color: #202020;
}


/* News rows */

.home-news-list {
  max-width: 900px;
}

.home-news-item {
  display: grid;

  grid-template-columns: 90px minmax(0, 1fr);
  column-gap: 24px;

  padding: 7px 0;
}

.home-news-date {
  padding-top: 1px;

  color: var(--accent);

  font-size: 13.5px;
  font-weight: 600;

  white-space: nowrap;
}

.home-news-text {
  color: #4d4946;

  font-size: 15px;
  line-height: 1.6;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.home-news-text a,
.home-news-text a:visited {
  color: var(--accent);
  text-decoration: none;
}

.home-news-text a:hover {
  color: #713216;
  text-decoration: underline;
}

/* =========================================================
   Research
   ========================================================= */

.research-section {
  padding: 72px 0 82px;

  border-top: 1px solid var(--border);
}


/* ---------- Section heading ---------- */

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  margin-bottom: 54px;
}

.section-heading h2 {
  margin: 0;

  color: #202020;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
}

.section-link {
  color: var(--accent);

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;
}

.section-link:hover {
  color: #713216;
}


/* =========================================================
   Research pillar
   ========================================================= */

.research-pillar {
  margin-bottom: 76px;
}

.research-pillar:last-child {
  margin-bottom: 0;
}

.second-pillar {
  padding-top: 58px;

  border-top: 1px solid #ece9e6;
}


/* ---------- Pillar heading ---------- */

.pillar-heading {
  display: grid;

  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 22px;

  margin-bottom: 34px;
}

.pillar-number {
  padding-top: 4px;

  color: var(--accent);

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 0.08em;
}

.pillar-title h3 {
  margin: 0 0 9px;

  color: #272421;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;

  line-height: 1.25;
}

.pillar-title p {
  max-width: none;

  margin: 0;

  color: #65615e;
  font-style: italic;

  font-size: 16.5px;
  line-height: 1.65;
}


/* =========================================================
   Project grid
   ========================================================= */

.project-grid {
  display: grid;

  gap: 28px;
}

.project-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   Project card
   ========================================================= */

.project-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  color: inherit;
  text-decoration: none;
}

.project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  
}

/* ---------- Figure ---------- */

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;

  margin-bottom: 18px;

  overflow: hidden;

  background: #f3f1ef;
  border: 1px solid #ebe7e3;
}

.project-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.015);
  opacity: 0.94;
}


/* ---------- Text ---------- */

.project-content h4 {
  margin: 0 0 8px;

  color: #2a2725;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;

  line-height: 1.35;
}

.project-content p {
  margin: 0 0 12px;

  color: #66615e;

  font-size: 14.5px;
  line-height: 1.58;
  text-align: justify;
  text-justify: inter-word;
    hyphens: auto;
}


.project-link {
  margin-top: auto;

  color: var(--accent);

  font-size: 13.5px;
  font-weight: 500;
}

.project-card:hover .project-link {
  color: #713216;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: 65px 0;

  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 40px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
}

.research-item {
  max-width: 820px;
  margin-bottom: 35px;
}

.research-item:last-child {
  margin-bottom: 0;
}

.research-item h3 {
  margin: 0 0 6px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.research-item p {
  margin: 0;
  color: #555555;
}

.muted {
  color: var(--muted);
}



/* =========================================================
   Publications Page
   ========================================================= */

.publications-page {
  padding: 48px 0 72px;
}


/* Publications can be slightly narrower than Research */

.pub-container {
  max-width: 1050px;
}


/* =========================================================
   Header
   ========================================================= */

.pub-header {
  margin-bottom: 44px;
}

.pub-header h1 {
  margin: 0 0 10px;

  color: #202020;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;

  letter-spacing: -0.6px;
}

.pub-header p {
  max-width: 760px;

  margin: 0 0 18px;

  color: #66615e;

  font-size: 16px;
  line-height: 1.6;
}


/* =========================================================
   Quick navigation
   ========================================================= */

.pub-jump {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 11px;
}

.pub-jump a {
  color: var(--accent);

  font-size: 14.5px;
  font-weight: 500;

  text-decoration: none;
}

.pub-jump a:hover {
  color: #713216;
}

.pub-jump span {
  display: inline-block;

  width: 1px;
  height: 14px;

  margin: 0 5px;

  background: #d8ccc5;
}


/* =========================================================
   Sections
   ========================================================= */

.pub-section {
  margin-top: 40px;

  scroll-margin-top: 90px;
}

.pub-section + .pub-section {
  margin-top: 50px;
}

.pub-section h2 {
  margin: 0 0 22px;

  padding-bottom: 8px;

  border-bottom: 1px solid #dfdbd7;

  color: #292624;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}


/* =========================================================
   Publication item
   ========================================================= */

.pub-item {
  display: grid;

  grid-template-columns: 54px minmax(0, 1fr);

  column-gap: 18px;

  margin-bottom: 19px;

  scroll-margin-top: 90px;
}

.pub-item:last-child {
  margin-bottom: 0;
}


/* Year */

.pub-year {
  padding-top: 3px;

  color: var(--accent);

  font-size: 13.5px;
  font-weight: 600;

  letter-spacing: 0.02em;
}


/* Title */

.pub-title {
  margin: 0 0 2px;

  color: #292624;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 17.5px;
  font-weight: 500;

  line-height: 1.38;
}


/* Authors */

.pub-authors {
  margin: 0;

  color: #4d4946;

  font-size: 14.5px;
  line-height: 1.45;
}

.pub-authors strong {
  color: #292624;
  font-weight: 600;
}


/* Venue + links */

.pub-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;

  gap: 6px 14px;

  margin-top: 1px;

  font-size: 14px;
  line-height: 1.45;
}

.pub-venue {
  color: #77716d;
  font-style: italic;
}

.pub-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.pub-links a {
  color: var(--accent);

  font-size: 13.5px;
  font-weight: 500;

  text-decoration: none;
}

.pub-links a + a {
  position: relative;

  margin-left: 12px;
  padding-left: 12px;
}

.pub-links a + a::before {
  content: "";

  position: absolute;
  left: 0;
  top: 50%;

  width: 1px;
  height: 0.9em;

  background: #cfc6c0;

  transform: translateY(-50%);
}

.pub-links a:hover {
  color: #713216;
  text-decoration: underline;
}


/* =========================================================
   Teaching Page
   ========================================================= */

.teaching-page {
  padding: 48px 0 72px;
}

.teaching-container {
  max-width: 1050px;
}


/* =========================================================
   Teaching Header
   ========================================================= */

.teaching-header {
  margin-bottom: 38px;
}

.teaching-header h1 {
  margin: 0 0 10px;

  color: #202020;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;

  letter-spacing: -0.6px;
}

.teaching-header p {
  max-width: 760px;

  margin: 0;

  color: #66615e;

  font-size: 16px;
  line-height: 1.6;
}


/* =========================================================
   Teaching Section
   ========================================================= */

.teaching-section {
  margin-top: 36px;
}

.teaching-section h2 {
  margin: 0 0 18px;

  padding-bottom: 8px;

  border-bottom: 1px solid #dfdbd7;

  color: #292624;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}


/* =========================================================
   Teaching List
   ========================================================= */

.teaching-list {
  width: 100%;
}

.teaching-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  column-gap: 40px;

  align-items: start;

  padding: 10px 0;
}


/* =========================================================
   Course
   ========================================================= */

.teaching-main {
  min-width: 0;
}

.teaching-main h3 {
  margin: 0 0 2px;

  color: #292624;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.4;
}


/* Course number, e.g. MATH 500 */

.course-code {
  color: var(--accent);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 14px;
  font-weight: 600;
}


/* Small separator between course number and title */

.course-divider {
  margin: 0 5px;

  color: #aaa19b;
  font-weight: 400;
}


/* =========================================================
   Teaching Role
   ========================================================= */

.teaching-role {
  margin: 0;

  color: #77716d;

  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
}


/* =========================================================
   Term
   ========================================================= */

.teaching-term {
  padding-top: 2px;

  color: #77716d;

  font-size: 14px;
  line-height: 1.45;

  white-space: nowrap;
}


/* =========================================================
   Subtle row interaction
   ========================================================= */

.teaching-item {
  transition: background-color 0.15s ease;
}

/*
.teaching-item:hover {
  background: #faf9f8;
}
*/


/* =========================================================
   Activities Page
   ========================================================= */

.activities-page {
  padding: 48px 0 72px;
}

.activities-container {
  max-width: 1050px;
}


/* =========================================================
   Activities Header
   ========================================================= */

.activities-header {
  margin-bottom: 42px;
}

.activities-header h1 {
  margin: 0 0 10px;

  color: #202020;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;

  letter-spacing: -0.6px;
}

.activities-header p {
  max-width: 760px;

  margin: 0;

  color: #66615e;

  font-size: 16px;
  line-height: 1.6;
}


/* =========================================================
   Activity Sections
   ========================================================= */

.activities-section {
  margin-top: 40px;
}

.activities-section + .activities-section {
  margin-top: 54px;
}

.activities-section h2 {
  margin: 0 0 20px;

  padding-bottom: 8px;

  border-bottom: 1px solid #dfdbd7;

  color: #292624;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}


/* =========================================================
   Talks
   ========================================================= */

.talk-list {
  width: 100%;
}

.talk-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  column-gap: 40px;

  align-items: start;

  padding: 11px 0;
}

.talk-main {
  min-width: 0;
}

.talk-main h3 {
  margin: 0 0 2px;

  color: #292624;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.4;
}


/* Venue and location */

.talk-venue {
  color: #77716d;

  font-size: 14px;
  line-height: 1.45;
}

.talk-location {
  color: #918a85;
}


/* Date */

.talk-date {
  padding-top: 2px;

  color: #77716d;

  font-size: 14px;
  line-height: 1.45;

  white-space: nowrap;
}


/* =========================================================
   Talk Links
   ========================================================= */

.talk-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;

  margin-top: 5px;
}

.talk-links a {
  position: relative;

  color: var(--accent);

  font-size: 13.5px;
  font-weight: 500;

  text-decoration: none;
}

.talk-links a + a {
  margin-left: 12px;
  padding-left: 12px;
}

.talk-links a + a::before {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 1px;
  height: 0.85em;

  background: #cfc6c0;

  transform: translateY(-50%);
}

.talk-links a:hover {
  color: #713216;
  text-decoration: underline;
}


/* =========================================================
   Abstract
   ========================================================= */

.talk-abstract {
  max-width: 800px;

  margin-top: 6px;

  color: #5d5854;

  font-size: 14px;
  line-height: 1.6;
}

.talk-abstract summary {
  display: inline-block;

  color: var(--accent);

  font-size: 13.5px;
  font-weight: 500;

  cursor: pointer;

  list-style: none;
}

.talk-abstract summary::-webkit-details-marker {
  display: none;
}

.talk-abstract summary::after {
  content: " +";

  margin-left: 2px;

  color: #a99589;
}

.talk-abstract[open] summary::after {
  content: " −";
}

.talk-abstract summary:hover {
  color: #713216;
}

.talk-abstract-content {
  margin-top: 8px;

  color: #68625e;

  font-size: 14px;
  line-height: 1.65;

  text-align: justify;
  hyphens: auto;
}

.talk-abstract-content p {
  margin: 0 0 10px;
}

.talk-abstract-content p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   Academic Service
   ========================================================= */

.service-section {
  margin-top: 56px;
}

.service-list {
  width: 100%;
}

.service-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  column-gap: 40px;

  align-items: start;

  padding: 10px 0;
}

.service-main {
  min-width: 0;
}

.service-main h3 {
  margin: 0 0 2px;

  color: #292624;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.service-description {
  color: #77716d;

  font-size: 14px;
  line-height: 1.45;
}

.service-description a,
.service-description a:visited {
  color: var(--accent);
  text-decoration: none;
}

.service-description a:hover {
  color: #713216;
  text-decoration: underline;
}

.service-institution {
  color: #918a85;
}

.service-date {
  padding-top: 2px;

  color: #77716d;

  font-size: 14px;
  line-height: 1.45;

  white-space: nowrap;
}



/* ============================================================
   Research page
   ============================================================ */

.research-page {
  padding: 54px 0 90px;
}


/* ------------------------------------------------------------
   Intro
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Research Intro
   ------------------------------------------------------------ */

.research-intro {
  margin-bottom: 42px;
}

.research-intro h1 {
  margin: 0 0 28px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
}


/* Text + figure */

.research-intro-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.7fr)
    minmax(260px, 0.8fr);

  column-gap: 55px;

  align-items: center;
}


/* Left text */

.research-intro-text {
  min-width: 0;
}

.research-intro-text p {
  margin: 0;

  color: var(--text);

  font-size: 16px;
  line-height: 1.75;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* Links / bold text generated by Markdown */

.research-intro-text strong {
  font-weight: 600;
}


/* Right figure */

.research-intro-figure {
  width: 90%;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.research-intro-figure img {
  display: block;

  width: 100%;
  max-width: 340px;
  height: auto;

  object-fit: contain;
}


/* ------------------------------------------------------------
   Jump navigation
   ------------------------------------------------------------ */

.research-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;

  padding: 18px 0 22px;
  margin-bottom: 42px;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.research-jump a {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}

.research-jump a span {
  margin-right: 5px;
  color: var(--accent);
}

.research-jump a:hover {
  color: var(--accent);
}


/* ------------------------------------------------------------
   Individual research program
   ------------------------------------------------------------ */

.research-program {
  scroll-margin-top: 90px;
  padding: 52px 0 58px;
  border-top: 1px solid var(--border);
}

.research-program:first-child {
  border-top: 0;
  padding-top: 8px;
}


/* ------------------------------------------------------------
   Program heading
   ------------------------------------------------------------ */

.research-program-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 22px;

  margin-bottom: 28px;
}

.research-number {
  padding-top: 5px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;

  color: var(--accent);
}

.research-heading-content h2 {
  margin: 0 0 10px;

  max-width: 850px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.22;

  color: var(--text);
}

.research-question {
  margin: 0;

  max-width: 830px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;

  color: var(--muted);
}


/* ------------------------------------------------------------
   Program body
   ------------------------------------------------------------ */

.research-program-body {
  margin-left: 74px;
  max-width: 930px;
}

.research-narrative {
  max-width: 850px;
}

.research-narrative p {
  margin: 0 0 15px;
   text-align: justify;
  text-justify: inter-word;
  hyphens: auto;

  font-size: 15.5px;
  line-height: 1.72;

  color: var(--text);
}


/* ------------------------------------------------------------
   Research directions
   ------------------------------------------------------------ */

.research-directions {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.research-directions.directions-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-directions.directions-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.research-direction {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 100%;

  padding: 22px 22px 16px;

  background: #ffffff;

  border: 1px solid #e7e3df;
  border-radius: 2px;

  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}


/* Accent line */

.research-direction::before {
  content: "";

  position: absolute;

  top: -1px;
  left: 22px;

  width: 42px;
  height: 2px;

  background: var(--accent);
}


/* Slight interaction */

.research-direction:hover {
  border-color: #d6c9c1;
  transform: translateY(-2px);
}

/* .research-direction h3 {
  margin: 0 0 9px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;

  color: var(--text);
} */

.research-direction h3 {
  margin: 0 0 11px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;

  color: var(--text);
}


.research-direction-content {
  flex: 1;
}

.research-direction p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
/* .research-direction p {
  margin: 0;

  font-size: 14px;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;

  color: var(--muted);
} */

.research-narrative a,
.research-narrative a:visited,
.research-direction a,
.research-direction a:visited {
  color: var(--accent);
  text-decoration: none;
}

.research-narrative a:hover,
.research-direction a:hover {
  color: #713216;
  text-decoration: underline;
}


/* ------------------------------------------------------------
   Research program: narrative + figure
   ------------------------------------------------------------ */

.research-direction-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 0;

  margin-top: 18px;
  padding-top: 12px;

  border-top: 1px solid #ebe7e3;
}

.research-direction-links a {
  position: relative;

  color: var(--accent);

  font-size: 12.5px;
  font-weight: 600;

  text-decoration: none;
}

.research-direction-links a + a {
  margin-left: 12px;
  padding-left: 12px;
}

.research-direction-links a + a::before {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 1px;
  height: 0.85em;

  background: #d8cec8;

  transform: translateY(-50%);
}

.research-direction-links a:hover {
  color: #713216;
  text-decoration: underline;
}




.research-program-main.has-figure {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  column-gap: 48px;
  align-items: center;
}

.research-program-main.figure-right {
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(260px, 0.75fr);
}

.research-program-main.figure-left {
  grid-template-columns:
    minmax(260px, 0.75fr)
    minmax(0, 1.55fr);
}

.research-program-main.has-figure > * {
  min-width: 0;
}

.research-program-figure {
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.research-program-figure img {
  display: block;

  width: 100%;
  max-width: 350px;
  height: auto;

  object-fit: contain;
}

.research-overview-figure {
  margin: 6px 0 34px 74px;

  max-width: 930px;

  display: flex;
  justify-content: center;
}

.research-overview-figure img {
  display: block;

  width: 100%;
  max-width: 500px;
  height: auto;

  object-fit: contain;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  padding: 35px 0;

  border-top: 1px solid var(--border);

  color: var(--muted);
  font-size: 14px;
}








/* =========================================================
   Mobile
   ========================================================= */


@media (max-width: 760px) {

  .nav {
    position: relative;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;

    position: absolute;
    top: 64px;
    right: 0;

    min-width: 190px;

    padding: 10px 0;

    background: #ffffff;
    border: 1px solid var(--border);

    z-index: 100;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    padding: 9px 18px;

    font-size: 14.5px;
    white-space: nowrap;
  }

  .nav-links a.active::after {
    display: none;
  }

}

@media (max-width: 760px) {

  .container {
    width: min(1100px, calc(100% - 36px));
  }

  .nav {
    min-height: 64px;
  }

  
  .hero {
    padding: 48px 0 58px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column-reverse;

    gap: 34px;

    align-items:flex-start;
  }

  .hero-photo {
    width: 170px;

    justify-self: auto;
  }

  .hero h1 {
    font-size: 42px;
  }

  .position {
    font-size: 15px;
  }

  .intro {
    font-size: 18px;
    line-height: 1.65;
  }

  .hero-links {
    gap: 9px 20px;
  }


   .research-section {
    padding: 54px 0 64px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .pillar-heading {
    grid-template-columns: 38px minmax(0, 1fr);

    column-gap: 14px;
  }

  .pillar-title h3 {
    font-size: 23px;
  }

  .project-grid-four,
  .project-grid-three {
    grid-template-columns: 1fr;
  }

  .project-image {
    aspect-ratio: 16 / 9;
  }

  .second-pillar {
    padding-top: 46px;
  }


    .publications-page {
    padding: 40px 0 58px;
  }

  .pub-header h1 {
    font-size: 36px;
  }

  .pub-header {
    margin-bottom: 36px;
  }

  .pub-item {
    grid-template-columns: 1fr;

    row-gap: 2px;

    margin-bottom: 22px;
  }

  .pub-year {
    padding-top: 0;

    font-size: 13px;
  }

  .pub-title {
    font-size: 17px;
  }

  .pub-jump span {
    margin: 0 2px;
  }

  /* =======================================================
     Teaching Page — Mobile
     ======================================================= */

  .teaching-page {
    padding: 40px 0 58px;
  }

  .teaching-header {
    margin-bottom: 32px;
  }

  .teaching-header h1 {
    font-size: 36px;
  }

  .teaching-header p {
    font-size: 15px;
  }

  .teaching-section {
    margin-top: 30px;
  }

  .teaching-section h2 {
    font-size: 22px;
  }

  .teaching-item {
    grid-template-columns: 1fr;

    row-gap: 2px;

    padding: 11px 0;
  }

  .teaching-main h3 {
    font-size: 17px;
  }

  .teaching-term {
    padding-top: 1px;

    font-size: 13px;
  }
  
    /* =======================================================
     Activities Page — Mobile
     ======================================================= */

  .activities-page {
    padding: 40px 0 58px;
  }

  .activities-header {
    margin-bottom: 34px;
  }

  .activities-header h1 {
    font-size: 36px;
  }

  .activities-header p {
    font-size: 15px;
  }

  .activities-section {
    margin-top: 32px;
  }

  .activities-section + .activities-section {
    margin-top: 44px;
  }

  .activities-section h2 {
    font-size: 22px;
  }

  .talk-item,
  .service-item {
    grid-template-columns: 1fr;

    row-gap: 2px;

    padding: 11px 0;
  }

  .talk-main h3 {
    font-size: 17px;
  }

  .talk-date,
  .service-date {
    padding-top: 2px;

    font-size: 13px;
  }

  .talk-abstract-content {
    text-align: left;
  }

  
}

@media (max-width: 820px) {

  .research-page {
    padding-top: 38px;
  }

  .research-program-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 14px;
  }

  .research-program-body {
    margin-left: 52px;
  }

  .research-directions.directions-2,
  .research-directions.directions-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

    .research-direction {
    width: 100%;
    padding: 20px 20px 16px;
  }


}


@media (max-width: 560px) {

  .research-intro h1 {
    font-size: 32px;
  }

  .research-jump {
    display: block;
  }

  .research-jump a {
    display: block;
    margin: 8px 0;
  }

  .research-program-heading {
    display: block;
  }

  .research-number {
    margin-bottom: 8px;
  }

  .research-program-body {
    margin-left: 0;
  }

  .research-heading-content h2 {
    font-size: 25px;
  }

}

@media (max-width: 820px) {

  .research-intro-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .research-intro-figure {
    justify-content: flex-start;
  }

  .research-intro-figure img {
    max-width: 420px;
  }

}

@media (max-width: 820px) {

  .research-program-main.has-figure {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .research-program-figure {
    justify-content: flex-start;
  }

  .research-program-figure img {
    max-width: 420px;
  }

}

@media (max-width: 820px) {

  .research-program-main.figure-right,
  .research-program-main.figure-left {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .research-program-figure img {
    max-width: 420px;
  }

}

@media (max-width: 820px) {

  .research-overview-figure {
    margin-left: 52px;
  }

}

@media (max-width: 560px) {

  .research-overview-figure {
    margin-left: 0;
  }

}

@media (max-width: 560px) {

  .home-news-item {
    grid-template-columns: 1fr;
    row-gap: 1px;

    padding: 9px 0;
  }

  .home-news-date {
    font-size: 13px;
  }

}

/* ============================================================
   Final mobile cleanup — Homepage
   ============================================================ */

@media (max-width: 760px) {

  /* Page width */
  .container {
    width: calc(100% - 32px);
  }


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

  .hero {
    padding: 34px 0 46px;
  }

  .hero-heading {
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.6px;
  }

  .position {
    font-size: 15px;
    line-height: 1.5;
  }


  /* Correct class: hero-content-grid */
  .hero-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 26px;
    column-gap: 0;
    align-items: start;
  }


  /* Portrait */
  .hero-photo {
    order: -1;

    width: 180px;
    height: auto;

    justify-self: start;
    align-self: auto;

    padding: 0;
    overflow: hidden;
  }

  .hero-photo img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
    object-position: center;

    border-radius: 2px;
  }


  /* Text */
  .bio {
    margin-bottom: 22px;

    font-size: 16px;
    line-height: 1.65;

    text-align: left;
    hyphens: none;
  }

  .research-statement {
    margin-bottom: 24px;

    font-size: 16.5px;
    line-height: 1.65;

    text-align: left;
    hyphens: none;
  }


  /* Social links */
  .hero-socials {
    gap: 10px 18px;
  }

  .social-separator {
    display: none;
  }

  .hero-socials a {
    font-size: 14.5px;
  }

}


@media (max-width: 820px) {

  .research-directions,
  .research-directions.directions-2,
  .research-directions.directions-3 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
    width: 100%;
  }

  .research-direction {
    width: 100%;
    min-width: 0;
  }

}