@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,650;1,9..144,500&display=swap");

:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-soft: #f2f7fb;
  --ink: #24303a;
  --muted: #64717d;
  --line: #dce5ed;
  --line-strong: #b9cadd;
  --blue: #17447f;
  --blue-soft: #eaf2fb;
  --teal: #1f6f6b;
  --coral: #c9613c;
  --coral-soft: #faebe4;
  --shadow: 0 20px 60px rgba(32, 49, 68, 0.08);
  --card-shadow: 0 14px 28px rgba(38, 54, 72, 0.08), 0 2px 8px rgba(38, 54, 72, 0.05);
  --radius: 8px;
  --content: 1040px;
  --sidebar: 260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 3px;
}

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

strong {
  color: #182530;
  font-weight: 800;
}

img {
  max-width: 100%;
}

.site-icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.site-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

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

.topbar-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  min-height: 62px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #3f4b55;
  font-size: 14px;
  font-weight: 700;
}

.top-nav-link:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.top-nav-link.is-current {
  color: var(--blue);
  background: var(--blue-soft);
}

.site-shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px 32px 56px;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.profile-rail {
  position: sticky;
  top: 96px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.profile-avatar {
  display: block;
  width: 136px;
  height: 136px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 4px solid #fff;
  outline: 1px solid var(--line-strong);
  background: var(--surface-soft);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 34px rgba(32, 49, 68, 0.12);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-name {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
}

.profile-title {
  margin: 0 0 22px;
  color: #384650;
  font-size: 14px;
  line-height: 1.45;
}

.profile-title-line {
  display: block;
}

.profile-title-line + .profile-title-line {
  margin-top: 4px;
}

.profile-facts {
  margin: 0;
  display: grid;
  gap: 16px;
}

.profile-facts div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-facts dt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 4px 0 0;
  color: #31404b;
  font-size: 14px;
}

.focus-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.focus-links a,
.focus-links .pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfdff;
  color: var(--blue);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.focus-links a:hover {
  border-color: var(--coral);
  color: var(--coral);
  text-decoration: none;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.profile-links a,
.interest-pills a,
.interest-pills .pill-tag,
.paper-links a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--blue);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-links a:hover,
.interest-pills a:hover,
.paper-links a:hover {
  border-color: var(--coral);
  color: var(--coral);
  text-decoration: none;
}

.site-main {
  max-width: var(--content);
  min-width: 0;
}

.intro-card,
.standard-page,
.post-detail {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 32px 36px;
}

.page-heading h1 {
  margin: 0 0 14px;
  color: #2c3843;
  font-size: 32px;
  line-height: 1.2;
}

.intro-card p,
.page-heading p {
  max-width: 880px;
}

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

.interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-section,
.research-topic-section,
.page-heading {
  margin-top: 44px;
  scroll-margin-top: 92px;
}

.home-section:first-child {
  margin-top: 0;
}

.home-greeting {
  margin: 0 0 15px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.8vw, 3.15rem);
  font-weight: 650;
  font-variation-settings: "SOFT" 50, "WONK" 0.8;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1e2d38;
}

.home-greeting-name {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(115deg, var(--blue) 0%, var(--teal) 52%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading,
.topic-section-heading {
  margin-bottom: 18px;
}

#about .section-heading {
  margin-bottom: 10px;
}

#about .intro-card {
  padding-top: 22px;
}

.section-heading h2,
.topic-section-heading h2,
.standard-page h1,
.post-detail h1 {
  margin: 0;
  color: #2b3741;
  font-size: 24px;
  line-height: 1.25;
}

.section-heading p:last-child,
.topic-section-heading p:last-child {
  margin-bottom: 0;
}

.news-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.news-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.news-row:hover {
  background: #fbfdff;
}

.news-row:last-child {
  border-bottom: 0;
}

.news-date,
.blog-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.news-date time,
.blog-meta time {
  color: #3f4a53;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.blog-meta time {
  color: var(--coral);
}

.news-text,
.news-row p {
  margin: 0;
  color: #4f5962;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.news-text em {
  color: var(--coral);
  font-style: italic;
}

.news-text a {
  color: inherit;
  font-weight: 500;
}

.news-more {
  border-top: 0;
}

.news-more summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 18px 12px;
  color: #4f5962;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  list-style: none;
}

.news-more summary::-webkit-details-marker {
  display: none;
}

.news-more summary:hover {
  color: var(--blue);
}

.news-more .site-icon {
  width: 16px;
  height: 16px;
}

.news-toggle-icon,
.news-toggle-text {
  display: inline-flex;
}

.news-toggle-icon--less,
.news-toggle-text--less,
.news-more[open] .news-toggle-icon--more,
.news-more[open] .news-toggle-text--more {
  display: none;
}

.news-more[open] .news-toggle-icon--less,
.news-more[open] .news-toggle-text--less {
  display: inline-flex;
}

.news-more[open] summary {
  margin-bottom: 10px;
}

.news-more-list {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.news-more-list .news-row:last-child {
  border-bottom: 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.experience-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
  padding: 22px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.experience-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, rgba(23, 68, 127, 0.55), rgba(31, 111, 107, 0.45), rgba(201, 97, 60, 0.42));
}

.experience-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(38, 54, 72, 0.1), 0 2px 10px rgba(38, 54, 72, 0.06);
}

.experience-block h3 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-list article {
  padding-left: 16px;
  border-left: 3px solid var(--line-strong);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-item-content {
  min-width: 0;
  flex: 1;
}

.timeline-logo {
  display: block;
  width: 52px;
  height: 52px;
  margin-left: auto;
  margin-right: 18px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.timeline-logo--work {
  width: 60px;
  height: 60px;
}

.timeline-logo--bytedance {
  width: 84px;
  height: 84px;
}

.timeline-logo-slot {
  width: 84px;
  margin-left: auto;
  margin-right: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-logo-slot .timeline-logo {
  margin-left: 0;
  margin-right: 0;
}

.timeline-list span {
  display: block;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.timeline-list p,
.compact-list p {
  margin: 3px 0 0;
  color: #4e5b66;
  font-size: 14px;
}

.timeline-title {
  color: #26323d !important;
  font-weight: 560;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.service-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}

.service-role-title {
  grid-column: 1 / -1;
  color: #26323d !important;
  font-weight: 560;
}

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

.home-publication-list {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.home-publication-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
  padding: 22px 26px;
  box-shadow: var(--card-shadow);
}

.home-publication-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 220px;
  height: 158px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.home-publication-figure.is-empty {
  border-style: dashed;
  border-color: var(--line-strong);
}

.home-publication-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-publication-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.home-publication-figure-hint {
  display: none;
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.home-publication-figure.is-empty .home-publication-figure-hint {
  display: block;
}

.home-publication-figure-hint code {
  font-size: 11px;
}

.home-publication-year {
  margin: 0 0 6px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.home-publication-title {
  margin: 0 0 8px;
  color: #26323d;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.home-publication-authors,
.home-publication-venue {
  margin: 0 0 6px;
  color: #4c5964;
  font-size: 14px;
}

.home-publication-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.home-publication-authors .author-note-item + .author-note-item {
  margin-left: 0.55em;
}

.home-publication-venue {
  color: var(--muted);
  font-style: italic;
}

.home-publication-venue-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}

.home-publication-venue-row .home-publication-venue {
  margin: 0;
}

.home-publication-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #f8fbff;
  color: var(--blue);
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  font-style: normal;
  text-decoration: none;
  white-space: nowrap;
}

.home-publication-link:hover {
  border-color: var(--coral);
  color: var(--coral);
  text-decoration: none;
}

.home-publication-link--muted {
  color: var(--muted);
  background: #f6f8fa;
  cursor: default;
}

.home-publication-link--muted:hover {
  border-color: var(--line-strong);
  color: var(--muted);
}

.home-publication-summary-block {
  grid-column: 1 / -1;
}

.home-publication-summary {
  margin: 0;
  color: #4f5962;
  font-size: 14px;
  line-height: 1.55;
}

.home-publication-summary + .home-publication-summary {
  margin-top: 0.65em;
}

.home-project-card {
  grid-template-columns: 1fr;
}

.home-project-label {
  color: #31404b;
  font-weight: 700;
}

.home-project-detail .home-project-label:not(span) {
  margin-bottom: 0.35em;
}

.home-project-points {
  margin: 0 0 0.85em;
  padding-left: 1.25rem;
  color: #4f5962;
  font-size: 14px;
  line-height: 1.55;
}

.home-project-points li + li {
  margin-top: 0.45em;
}

.home-project-detail > .home-publication-summary:last-child,
.home-project-detail > .home-project-points:last-child {
  margin-bottom: 0;
}

.contact-section {
  padding-top: 0;
}

.contact-intro {
  margin: 0 0 24px;
  max-width: 880px;
  color: #384650;
}

.visit-tracker {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.tracker-card {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: var(--card-shadow);
  color: var(--blue);
}

.tracker-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 760;
}

.tracker-widget {
  width: 100%;
  max-width: 520px;
}

.tracker-widget :where(a, div, img, iframe, canvas, svg) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  border-radius: 6px;
}

.form__fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.form__legend {
  padding: 0 8px;
  color: var(--blue);
  font-weight: 900;
}

.label {
  display: block;
  margin-top: 12px;
  color: #33434e;
  font-size: 13px;
  font-weight: 800;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.button,
input[type="submit"] {
  margin-top: 16px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
input[type="submit"]:hover {
  background: #0f315f;
}

.page-heading {
  padding-bottom: 10px;
}

.page-heading:first-child {
  margin-top: 0;
}

.topic-jump-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.topic-jump {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
}

.topic-jump:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.topic-jump-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topic-jump .topic-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.topic-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.topic-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  line-height: 1.25;
  color: #182530;
  font-weight: 750;
}

.topic-title .site-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.topic-jump p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.topic-defi .topic-number {
  background: var(--teal);
}

.topic-defi .topic-title .site-icon {
  color: var(--teal);
}

.topic-social .topic-number {
  background: var(--coral);
}

.topic-social .topic-title .site-icon {
  color: var(--coral);
}

.equal-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.research-topic-section {
  scroll-margin-top: 92px;
}

.publication-grid {
  display: grid;
  gap: 14px;
}

.publication-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.publication-card--interactive {
  cursor: pointer;
}

.publication-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.publication-card:focus-visible {
  outline: 3px solid rgba(23, 68, 127, 0.18);
  outline-offset: 3px;
}

.publication-year {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.publication-body {
  min-width: 0;
}

.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge-row span,
.tag-row span {
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.publication-card h3 {
  margin: 9px 0 8px;
  color: #26323d;
  font-size: 18px;
  line-height: 1.35;
}

.authors,
.venue {
  margin: 0;
  color: #4c5964;
  font-size: 14px;
}

.equal-star {
  color: var(--coral);
  font-weight: 900;
}

.venue {
  margin-top: 3px;
  color: var(--muted);
  font-style: italic;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.publication-modal[hidden] {
  display: none;
}

.publication-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.publication-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 31, 41, 0.48);
  backdrop-filter: blur(6px);
}

.publication-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 28px;
  box-shadow: 0 28px 80px rgba(18, 29, 40, 0.26);
}

.publication-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.publication-dialog-close:hover {
  border-color: var(--line-strong);
  color: var(--blue);
}

.publication-dialog-badges {
  margin: 0 44px 10px 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-dialog h2 {
  margin: 0 44px 8px 0;
  color: #26323d;
  font-size: 26px;
  line-height: 1.25;
}

.publication-dialog-venue {
  margin: 0 44px 22px 0;
  color: var(--muted);
  font-style: italic;
}

.publication-dialog-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.publication-dialog-section h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.3;
}

.publication-dialog-section p {
  margin: 0;
  color: #40505c;
}

.publication-dialog-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--blue);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.publication-dialog-link:hover {
  border-color: var(--coral);
  color: var(--coral);
  text-decoration: none;
}

body.modal-open {
  overflow: hidden;
}

.blog-list {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.blog-card time,
.post-detail time {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.blog-card h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.blog-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.standard-page,
.post-detail {
  padding: 30px 34px;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.post-header .back-link {
  margin-bottom: 0;
}

.post-header .blog-meta {
  flex-shrink: 0;
  margin-left: auto;
}

.post-detail h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 32px;
}

.post-tags {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.post-flow::after {
  content: "";
  display: table;
  clear: both;
}

.post-float-figure {
  float: right;
  width: min(42%, 280px);
  margin: 0.15rem 0 1rem 1.5rem;
}

.post-float-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.post-flow p {
  margin: 0 0 1.1em;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 800;
}

.typeset h2,
.typeset h3,
.typeset h4 {
  color: #2b3741;
  line-height: 1.25;
}

.typeset p,
.typeset li {
  color: #3d4b56;
}

.typeset ul,
.typeset ol {
  padding-left: 1.25rem;
}

.typeset blockquote {
  margin: 22px 0;
  border-left: 4px solid var(--line-strong);
  padding: 2px 0 2px 18px;
  color: var(--muted);
}

.typeset code {
  border-radius: 4px;
  background: var(--blue-soft);
  padding: 2px 4px;
  color: #14345f;
}

.site-footer {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 34px calc(var(--sidebar) + 68px);
  color: var(--muted);
}

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

  .profile-rail {
    position: static;
  }

  .profile-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px 22px;
    align-items: center;
  }

  .profile-avatar {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0 auto;
  }

  .profile-name {
    grid-column: 1 / -1;
  }

  .profile-title,
  .profile-facts,
  .profile-links {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-left: 32px;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .site-shell {
    padding: 24px 20px 44px;
  }

  .intro-card,
  .standard-page,
  .post-detail {
    padding: 24px;
  }

  .topic-jump-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .home-publication-card,
  .home-project-card {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .home-publication-figure {
    width: 100%;
    max-width: 260px;
    height: 158px;
    margin: 0 auto;
  }

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

  .post-float-figure {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.25rem;
  }
}

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

  .site-brand {
    font-size: 17px;
  }

  .top-nav-link {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
  }

  .profile-card {
    display: block;
    padding: 20px;
  }

  .profile-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 16px;
    font-size: 28px;
  }

  .page-heading h1,
  .post-detail h1 {
    font-size: 26px;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tracker-card {
    flex-direction: column;
  }

  .tracker-widget {
    max-width: 100%;
  }
}
