:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #3b4b5f;
  --muted-soft: #55708a;
  --link: #155480;
  --link-strong: #123f67;
  --soft-blue: #edf6ff;
  --soft-blue-strong: #dceeff;
  --soft-green: #f6fdf8;
  --line: rgba(30, 64, 112, 0.14);
  --line-strong: rgba(47, 111, 159, 0.3);
  --award: #b83232;
  --green: #2a9d6f;
  --shadow: 0 16px 40px -32px rgba(17, 24, 39, 0.42);
  --serif: "Source Serif 4", "Noto Serif SC", Georgia, Times, serif;
  --display: "Fraunces", "Noto Serif SC", "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--link-strong);
  text-decoration: underline;
}

p {
  margin: 0 0 0.7rem;
}

strong {
  color: var(--text);
  font-weight: 700;
}

em {
  color: #25364a;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.55rem 0.85rem;
  background: var(--link-strong);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.85rem;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.masthead__inner-wrap {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.58rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-family: var(--sans);
}

.masthead__social,
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
}

.masthead__social a,
.nav a {
  color: #3b4b5f;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.masthead__social a:hover,
.nav a:hover {
  color: var(--link-strong);
  text-decoration: none;
}

.site-layout {
  display: grid;
  max-width: 1180px;
  margin: 2.2rem auto 0;
  padding: 0 1.25rem 4rem;
  grid-template-columns: 240px minmax(0, 820px);
  gap: 3rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 5.25rem;
}

.profile-box {
  font-family: var(--sans);
}

.author__avatar {
  width: 100%;
  max-width: 210px;
}

.author__avatar img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px -32px rgba(17, 24, 39, 0.38);
}

.author__content {
  margin-top: 0.95rem;
}

.author__name {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}

.author__bio {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.author__urls {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author__urls li {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.48;
}

.author__urls strong {
  display: block;
  margin-bottom: 0.02rem;
  color: var(--text);
  font-size: 0.74rem;
}

.sidebar-actions {
  margin-top: 1rem;
}

.button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.45rem 1.1rem;
  background: var(--link);
  border: 1px solid var(--link);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover,
.cta-button:hover {
  background: var(--link-strong);
  border-color: var(--link-strong);
  color: #ffffff;
  text-decoration: none;
}

.page {
  min-width: 0;
}

.page__content {
  color: var(--text);
  font-size: 1.02rem;
}

.page__content h2 {
  display: flex;
  align-items: center;
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.page__content h3 {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}

.content-section {
  scroll-margin-top: 5rem;
}

.content-section + .content-section {
  margin-top: 2.2rem;
}

.hero-tagline {
  margin: 0 0 1.5rem;
  padding: 1.35rem 1.55rem;
  background: linear-gradient(135deg, rgba(237, 246, 255, 0.94), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(30, 64, 112, 0.13);
  border-left: 4px solid #2f6f9f;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tagline-text {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.6;
}

.cta-email {
  display: inline-block;
  margin-left: 0.75rem;
  color: var(--muted-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.highlight-announcement {
  margin: 1.3rem 0 0;
  padding: 0.9rem 1.15rem;
  background: var(--soft-green);
  border: 1px solid rgba(34, 130, 80, 0.2);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.research-intro {
  margin: 1.1rem 0 1.25rem;
  padding: 1.2rem 1.35rem;
  background: rgba(237, 246, 255, 0.72);
  border: 1px solid rgba(30, 64, 112, 0.12);
  border-radius: 8px;
}

.research-intro p {
  margin: 0;
  color: #25364a;
  font-size: 0.96rem;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.research-card {
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(30, 64, 112, 0.13);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.research-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px -30px rgba(17, 24, 39, 0.4);
  transform: translateY(-1px);
}

.research-card p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.research-card-papers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.research-tag {
  display: inline-flex;
  padding: 0.2rem 0.56rem;
  background: var(--soft-blue);
  border-radius: 4px;
  color: var(--link);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
}

.research-tag:hover {
  background: var(--soft-blue-strong);
  color: var(--link-strong);
  text-decoration: none;
}

.timeline-list,
.news-list,
.clean-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  line-height: 1.55;
}

.timeline-year {
  color: var(--link);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.compact-heading {
  margin-top: 1.9rem !important;
}

.headline-news {
  margin-bottom: 0.9rem;
  padding: 1rem 1.2rem;
  background: rgba(237, 246, 255, 0.78);
  border: 1px solid rgba(47, 111, 159, 0.15);
  border-left: 4px solid #2f6f9f;
  border-radius: 8px;
}

.headline-label {
  margin-bottom: 0.35rem;
  color: var(--link);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
}

.headline-news p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.news-list li,
.clean-list li {
  padding-left: 1rem;
  border-left: 2px solid var(--soft-blue-strong);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.section-title-row h2 {
  margin-bottom: 0;
  border-bottom: 0;
}

.section-title-row a {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
}

.paper-box {
  display: flex;
  position: relative;
  align-items: stretch;
  gap: 1.2rem;
  margin: 1.05rem 0;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.paper-box:hover {
  border-color: var(--line-strong);
  box-shadow: 0 22px 52px -34px rgba(17, 24, 39, 0.44);
  transform: translateY(-1px);
}

.paper-thumb {
  display: flex;
  flex: 0 0 180px;
  min-height: 128px;
  padding: 0.9rem;
  align-items: flex-end;
  justify-content: space-between;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 112, 0.12);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--sans);
}

.paper-thumb span {
  align-self: flex-start;
  padding: 0.16rem 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #25364a;
  font-size: 0.68rem;
  font-weight: 700;
}

.paper-thumb strong {
  align-self: flex-start;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.05;
}

.paper-thumb-blue {
  background: linear-gradient(135deg, #1f5f8b, #76a7c8);
}

.paper-thumb-green {
  background: linear-gradient(135deg, #16685a, #7eb6a1);
}

.paper-thumb-slate {
  background: linear-gradient(135deg, #334155, #94a3b8);
}

.paper-thumb-red {
  background: linear-gradient(135deg, #8f2d2d, #d37a70);
}

.paper-box-text {
  min-width: 0;
  flex: 1;
}

.paper-box-text p {
  margin-bottom: 0.42rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.58;
}

.paper-box-text .paper-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 650;
}

.badge {
  display: inline-flex;
  margin-bottom: 0.48rem;
  padding: 0.22rem 0.62rem;
  background: var(--award);
  border-radius: 0 4px 4px 0;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-blue {
  background: var(--link);
}

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

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-wide {
  grid-column: 1 / -1;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gallery-wide img {
  height: 330px;
  object-position: center 44%;
}

.gallery-item figcaption {
  margin: 0;
  padding: 0.72rem 0.9rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cv-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.25rem 1.45rem;
  background: linear-gradient(135deg, rgba(237, 246, 255, 0.86), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cv-panel h2 {
  margin-bottom: 0.4rem;
  border-bottom: 0;
}

.cv-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  color: var(--muted-soft);
  font-family: var(--sans);
  font-size: 0.8rem;
}

@media (max-width: 940px) {
  .site-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .sidebar {
    position: static;
  }

  .profile-box {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1rem 1.3rem;
    align-items: start;
  }

  .author__avatar {
    max-width: 150px;
    grid-row: span 3;
  }

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

  .sidebar-actions {
    margin-top: 0.25rem;
  }
}

@media (max-width: 700px) {
  .masthead__inner-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .nav {
    gap: 0.35rem 0.85rem;
  }

  .research-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: auto;
  }

  .paper-box {
    flex-direction: column;
  }

  .paper-thumb {
    flex-basis: auto;
    min-height: 118px;
  }

  .cv-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  html {
    font-size: 15px;
  }

  .masthead__inner-wrap,
  .site-layout,
  .site-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .profile-box {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .author__avatar {
    max-width: 104px;
  }

  .author__name {
    font-size: 1.2rem;
  }

  .author__urls {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .sidebar-actions {
    grid-column: 1 / -1;
  }

  .hero-tagline,
  .research-intro,
  .headline-news,
  .paper-box,
  .cv-panel {
    padding: 1rem;
  }

  .tagline-text {
    font-size: 1.04rem;
  }

  .cta-email {
    display: block;
    margin: 0.6rem 0 0;
    overflow-wrap: anywhere;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .gallery-item img,
  .gallery-wide img {
    height: 230px;
  }
}
