:root {
  --text: #241d1a;
  --muted: #665d59;
  --violet: #8252c8;
  --violet-mid: #9370db;
  --gold: #d6a546;
  --gold-light: #ffd86c;
  --border-soft: rgba(132, 94, 56, 0.16);
  --chip-text: #8f5f2e;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
}

a {
  color: var(--chip-text);
  text-decoration: none;
}

a:hover {
  color: var(--violet);
}

.page-shell {
  position: relative;
  max-width: calc(var(--max-width) + 48px);
  margin: 24px auto;
  padding: 22px 28px 26px;
  border: 4px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(
        135deg,
        rgba(143, 95, 46, 0.88),
        rgba(214, 165, 70, 0.96),
        rgba(130, 82, 200, 0.86),
        rgba(255, 216, 108, 0.98),
        rgba(130, 82, 200, 0.9)
      )
      border-box;
  box-shadow:
    0 8px 18px rgba(130, 82, 200, 0.08),
    0 4px 10px rgba(214, 165, 70, 0.1);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.corner-star {
  position: absolute;
  font-size: 40px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--gold-light), var(--violet-mid));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 10px rgba(255, 216, 108, 0.85),
    0 0 24px rgba(130, 82, 200, 0.5);
  transform-origin: center;
  animation: twinkle 1.15s ease-in-out infinite alternate;
}

.corner-star--tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.corner-star--tr { top: 0; right: 0; transform: translate(50%, -50%); }
.corner-star--bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.corner-star--br { bottom: 0; right: 0; transform: translate(50%, 50%); }

.hero {
  display: block;
  padding: 10px 0 4px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chip-text);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow:empty {
  display: none;
}

.hero__heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.hero__name {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
}

.hero__divider {
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: #757575;
}

.hero__local-name {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-family: "Ma Shan Zheng", "KaiTi", cursive;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--gold-light), var(--violet-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 14px rgba(147, 112, 219, 0.28);
}

.hero__body p,
.hero__contact {
  margin: 0 0 14px;
  line-height: 1.8;
}

.hero__intro-row {
  display: flow-root;
}

.focus-box {
  margin: 22px 0 0;
  padding: 0;
  background: transparent;
}

.focus-box__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chip-text);
}

.focus-box__list,
.bullet-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.focus-box__list li + li,
.bullet-list li + li {
  margin-top: 8px;
}

.hero__visual {
  display: block;
  width: 180px;
}

.hero__visual--intro {
  float: left;
  margin-right: 24px;
  margin-bottom: 8px;
}

.hero__visual img {
  width: 100%;
  max-width: 180px;
  height: 230px;
  object-fit: cover;
  border-radius: 4px;
}

.hero__intro-copy {
  overflow: hidden;
}

.hero__contact {
  margin-top: 14px;
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__meta {
  width: 100%;
  margin-top: 8px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--chip-text);
  font-weight: 600;
}

.section {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.work-list {
  display: grid;
  gap: 18px;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.work-thumb {
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.work-thumb__image {
  cursor: zoom-in;
}

.work-thumb__fallback,
.avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  text-align: center;
  color: #8f5f2e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.work-title {
  margin: 2px 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}

.work-title a {
  color: var(--text);
}

.work-authors,
.work-description,
.feature-card p,
.interest-card p {
  margin: 0;
  line-height: 1.75;
}

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

.work-authors u,
.work-affiliations u,
.work-notes u {
  text-underline-offset: 3px;
}

.work-affiliations,
.work-notes {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.work-venue {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--chip-text);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.work-links a {
  display: inline-flex;
  align-items: center;
  color: var(--chip-text);
  font-weight: 600;
}

.work-links a:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: rgba(143, 95, 46, 0.6);
}

.feature-card__kicker {
  margin: 0 0 4px;
  color: var(--chip-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.feature-card h2,
.interest-card h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

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

.interest-card {
  padding: 0;
}

.interest-card h3 {
  font-size: 1.35rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20, 14, 10, 0.78);
  z-index: 999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: min(92vw, 1280px);
  max-height: 88vh;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

@keyframes twinkle {
  from {
    opacity: 0.58;
  }
  to {
    opacity: 1;
  }
}

.corner-star--tl,
.corner-star--tr,
.corner-star--bl,
.corner-star--br {
  animation-name: twinkle-corner;
}

@keyframes twinkle-corner {
  0% {
    opacity: 0.56;
  }
  100% {
    opacity: 1;
  }
}

.corner-star--tl {
  animation-name: corner-tl;
}

.corner-star--tr {
  animation-name: corner-tr;
}

.corner-star--bl {
  animation-name: corner-bl;
}

.corner-star--br {
  animation-name: corner-br;
}

@keyframes corner-tl {
  0% {
    transform: translate(-50%, -50%) scale(0.92) rotate(-10deg);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.26) rotate(10deg);
    opacity: 1;
  }
}

@keyframes corner-tr {
  0% {
    transform: translate(50%, -50%) scale(0.92) rotate(10deg);
    opacity: 0.55;
  }
  100% {
    transform: translate(50%, -50%) scale(1.26) rotate(-10deg);
    opacity: 1;
  }
}

@keyframes corner-bl {
  0% {
    transform: translate(-50%, 50%) scale(0.92) rotate(10deg);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, 50%) scale(1.26) rotate(-10deg);
    opacity: 1;
  }
}

@keyframes corner-br {
  0% {
    transform: translate(50%, 50%) scale(0.92) rotate(-10deg);
    opacity: 0.55;
  }
  100% {
    transform: translate(50%, 50%) scale(1.26) rotate(10deg);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .page-shell {
    margin: 12px;
    padding: 18px 18px 22px;
  }

  .hero__intro-row {
    display: block;
  }

  .hero__visual {
    width: 100%;
    max-width: 180px;
    margin-bottom: 16px;
  }

  .hero__visual--intro {
    float: none;
    margin-right: 0;
  }

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

  .work-thumb {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .hero__heading {
    gap: 10px;
  }

  .hero__name,
  .hero__local-name {
    font-size: 1.9rem;
  }

  .section-heading {
    align-items: start;
  }

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