:root {
  --bg: #fcfaf6;
  --paper: rgba(255, 255, 252, 0.9);
  --ink: #1f1a17;
  --muted: #3c332d;
  --line: rgba(31, 26, 23, 0.1);
  --accent: #8b3d24;
  --accent-soft: rgba(139, 61, 36, 0.1);
  --shadow: 0 14px 36px rgba(63, 42, 31, 0.06);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(139, 61, 36, 0.07), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(66, 94, 70, 0.06), transparent 25rem),
    var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(247, 241, 232, 0.72);
  border-bottom: 1px solid rgba(31, 26, 23, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand,
.top-nav a {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  font-weight: 600;
}

.top-nav {
  display: flex;
  gap: 1.4rem;
}

.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.2rem;
  align-items: center;
  padding: 1.5rem 0 3rem;
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto -1.1rem -1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center 20%;
}

.eyebrow,
.section-kicker,
.venue,
.timeline-date {
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  margin-top: 0.25rem;
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.38rem;
  margin-bottom: 0.55rem;
}

.lead {
  max-width: 44rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.person-link {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1.5px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.65rem;
  color: var(--muted);
}

.hero-links span {
  color: rgba(31, 26, 23, 0.3);
}

.hero-meta {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.hero-meta .hero-links {
  margin-top: 0;
}

.hobby-panel {
  width: min(100%, 37rem);
}

.hobby-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  list-style: none;
  user-select: none;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1.2px;
  transition: color 140ms ease;
}

.hobby-button:hover {
  color: var(--accent);
}

.hobby-button::-webkit-details-marker {
  display: none;
}

.hobby-button::after {
  content: "";
}

.hobby-content {
  margin-top: 0.55rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(31, 26, 23, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 252, 0.78);
  color: var(--muted);
}

.hobby-content p {
  margin: 0;
}

.section {
  padding: 1.35rem 0 0.2rem;
}

.section-head {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.subsection-head {
  margin: 1.35rem 0 0.85rem;
}

.subsection-head h3 {
  font-size: 1.08rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publication,
.timeline-card,
.panel {
  background: var(--paper);
  border: 1px solid rgba(31, 26, 23, 0.06);
  box-shadow: var(--shadow);
}

.publication {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 1.4rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  align-items: start;
}

.publication-link {
  color: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease,
    background-color 140ms ease;
}

.publication-link:hover {
  color: inherit;
  transform: translateY(-1px);
  border-color: rgba(139, 61, 36, 0.14);
  box-shadow: 0 18px 42px rgba(63, 42, 31, 0.08);
  background: rgba(255, 255, 250, 0.98);
}

.publication .authors,
.publication p,
.timeline-card p,
.panel p {
  margin: 0.28rem 0 0;
  color: var(--muted);
}

.publication .authors strong {
  color: #24120c;
  font-weight: 700;
}

.publication-body h3,
.timeline-head h3 {
  font-size: 1.28rem;
}

.publication-meta {
  padding-top: 0.18rem;
}

.publication-body p:last-child,
.timeline-card p:last-child {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  display: block;
}

.timeline-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 1.1rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-md);
  align-items: start;
}

.timeline-subrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 2;
  margin-top: 0.04rem;
}

.timeline-subtitle {
  color: var(--ink) !important;
  font-weight: 500;
  margin-top: 0 !important;
}

.timeline-location-inline {
  color: var(--muted) !important;
  margin-top: 0 !important;
  text-align: right;
  white-space: nowrap;
}

.timeline-logo-wrap {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 26, 23, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  grid-row: 1 / span 3;
}

.timeline-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 2;
  padding-bottom: 0;
}

.timeline-head h3 {
  max-width: 42rem;
}

.title-note {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.qwen-word {
  color: #1a49db;
  font-weight: 700;
}

.timeline-date {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.inline-mini-logo {
  width: 2.68em;
  height: 2.68em;
  object-fit: contain;
  vertical-align: -0.7em;
  margin-left: 0.28em;
}

.topic-line {
  margin: 0.26rem 0 0 !important;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  grid-column: 2;
}

.keyword-list {
  display: none;
  margin-top: 0.85rem;
  grid-column: 2;
}

.keyword-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.2;
}

.compact-section {
  padding-bottom: 3rem;
}

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

.panel {
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-logo-wrap {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 26, 23, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
}

.panel-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero,
  .publication,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2rem;
    padding-top: 0;
  }

  .hero-photo-wrap {
    max-width: 320px;
  }

  .top-nav {
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .timeline-head {
    flex-direction: column;
    gap: 0.35rem;
  }

  .timeline-subrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .timeline-date {
    text-align: left;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }

  .timeline-logo-wrap,
  .timeline-head,
  .timeline-subrow,
  .timeline-subtitle,
  .keyword-list,
  .topic-line {
    grid-column: 1;
    grid-row: auto;
  }

  .timeline-logo-wrap {
    width: 78px;
    height: 78px;
  }

  .panel-head {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    flex-direction: column;
  }

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

  .brand,
  .top-nav a,
  .eyebrow,
  .section-kicker,
  .venue,
  .timeline-date {
    letter-spacing: 0.07em;
  }
}
