:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --surface-warm: #fbf4e8;
  --text: #14201b;
  --muted: #5f6d67;
  --line: #d8e0da;
  --accent: #176b5c;
  --accent-strong: #0f493f;
  --accent-soft: #dcece7;
  --gold: #a96818;
  --blue: #375f7a;
  --shadow: 0 20px 50px rgba(20, 32, 27, 0.1);
  --shadow-soft: 0 10px 30px rgba(20, 32, 27, 0.06);
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(220, 236, 231, 0.7), rgba(246, 247, 242, 0) 440px),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20, 32, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 27, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 68%);
}

a {
  color: var(--accent);
  font-weight: 650;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(23, 107, 92, 0.24);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 68px;
  padding: 0.85rem max(1.2rem, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(216, 224, 218, 0.85);
  background: rgba(246, 247, 242, 0.88);
  backdrop-filter: blur(18px);
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-title::before {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(23, 107, 92, 0.12);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.72rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:active,
.site-nav a:focus-visible,
.site-nav a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(216, 224, 218, 0.85);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.section {
  width: min(100% - 2.4rem, var(--max-width));
  margin: 0 auto;
  padding: 4.25rem 0;
  scroll-margin-top: 88px;
}

.hero {
  width: 100%;
  margin: 0;
  padding: 4.4rem max(1.2rem, calc((100vw - var(--max-width)) / 2)) 4.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow,
.section-label {
  margin: 0 0 0.78rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 0 0 1.25rem;
  color: var(--blue);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.45;
  font-weight: 750;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.04rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.bio-content {
  max-width: 700px;
  color: #2c3b35;
}

.bio-content p {
  margin-bottom: 1rem;
}

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

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.65rem;
}

.contact-row a,
.paper-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.38rem 0.82rem;
  border: 1px solid rgba(23, 107, 92, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contact-row a:hover,
.paper-links a:hover {
  border-color: rgba(23, 107, 92, 0.44);
  box-shadow: 0 9px 20px rgba(23, 107, 92, 0.1);
  transform: translateY(-1px);
}

.profile-panel {
  position: relative;
  align-self: center;
  width: min(100%, 310px);
  padding: 0.95rem;
  border: 1px solid rgba(216, 224, 218, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.profile-panel::after {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--blue));
  content: "";
}

.avatar-frame {
  width: 100%;
  aspect-ratio: 1086 / 1448;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(216, 224, 218, 0.95);
  border-radius: 7px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.profile-name {
  margin-bottom: 0.16rem;
  font-size: 1.12rem;
  font-weight: 850;
}

.profile-role,
.profile-location {
  margin-bottom: 0.08rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.two-column {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.55rem;
}

.section-body {
  max-width: 780px;
  color: #304039;
}

.bio-label {
  display: inline-block;
  margin-right: 0.38rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.section-body p:last-child,
.interest-item p:last-child,
.news-item p:last-child,
.paper-meta,
.site-footer p {
  margin-bottom: 0;
}

.news-box {
  max-height: 390px;
  overflow-y: auto;
  padding: 0.1rem 0.9rem 0.1rem 0;
  scrollbar-color: var(--accent) var(--surface-soft);
}

.news-box:focus {
  outline: 3px solid rgba(23, 107, 92, 0.2);
  outline-offset: 4px;
}

.news-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item time {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.research-section,
.publications-section {
  border-top: 1px solid var(--line);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.interest-item {
  min-height: 190px;
  padding: 1.15rem;
  border: 1px solid rgba(216, 224, 218, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.interest-item h3 {
  color: var(--accent-strong);
}

.interest-item p {
  color: #3e4d47;
}

.publication-list {
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: publications;
}

.publication-list li {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 3.4rem;
  border: 1px solid rgba(216, 224, 218, 0.95);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  counter-increment: publications;
}

.publication-list li::before {
  position: absolute;
  top: 1.2rem;
  left: 1.15rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  content: counter(publications);
  font-size: 0.78rem;
  font-weight: 900;
}

.paper-title {
  margin-bottom: 0.28rem;
  font-size: 1.03rem;
  font-weight: 850;
  line-height: 1.45;
}

.paper-meta {
  color: var(--muted);
  font-size: 0.96rem;
}

.paper-conference {
  display: inline;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.82rem 0 0;
}

.publication-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  width: min(100% - 2.4rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 2.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 840px) {
  .site-header {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .section {
    width: min(100% - 2rem, var(--max-width));
    padding: 3.4rem 0;
  }

  .hero,
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding-top: 3.6rem;
    padding-bottom: 3.5rem;
  }

  .profile-panel {
    max-width: 320px;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  .site-title {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(2.75rem, 18vw, 4rem);
  }

  .contact-row a,
  .paper-links a {
    flex: 1 1 44%;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }

  .publication-list li {
    padding: 1rem 1rem 1rem 3rem;
  }

  .publication-list li::before {
    top: 1rem;
    left: 0.95rem;
  }
}
