:root {
  --bg: #f7f2ea;
  --paper: #fffaf2;
  --ink: #1e2528;
  --muted: #697174;
  --line: rgba(30, 37, 40, 0.12);
  --accent: #8a4f2a;
  --accent-dark: #5f351d;
  --accent-soft: #ead6c7;
  --shadow: 0 24px 70px rgba(42, 37, 31, 0.12);
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff7ea 0, var(--bg) 38%, #efe5d7 100%);
  line-height: 1.75;
}
a { color: inherit; }
.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 234, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--muted);
}
.nav a {
  text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover { color: var(--accent); }
.hero {
  padding: 88px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(54px, 9vw, 108px);
  line-height: .98;
  letter-spacing: -0.06em;
}
h1 span {
  color: var(--accent-dark);
  font-style: italic;
  font-size: .62em;
  letter-spacing: -0.045em;
}
.lead {
  max-width: 720px;
  color: #3e474a;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.75;
}
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #fff;
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(95, 53, 29, .2);
}
.button.secondary { background: rgba(255, 250, 242, .72); }
.profile-card, .content-card, .project-card, .contact-card {
  background: rgba(255, 250, 242, .82);
  border: 1px solid rgba(138, 79, 42, .16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profile-card {
  padding: 34px;
}
.avatar {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  background: linear-gradient(135deg, #1e2528, #70401e);
  color: #fff;
  font-size: 42px;
  font-weight: 700;
}
.profile-card h2 { font-size: 28px; margin-bottom: 8px; }
.profile-card p, .muted { color: var(--muted); }
dl { margin: 24px 0 0; }
dl div { padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
dt {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--accent);
}
dd { margin: 6px 0 0; color: #40494b; }
.section { padding: 82px 0; }
.section.alt { background: rgba(255, 255, 255, .22); border-block: 1px solid rgba(30, 37, 40, .06); }
.two-col {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}
.section-heading {
  position: sticky;
  top: 104px;
}
.section-heading.narrow {
  position: static;
  max-width: 760px;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}
.content-card { padding: 34px; }
.big-text { font-size: 20px; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tag-list span {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.timeline { padding: 14px 34px; }
.timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 0; }
.year {
  color: var(--accent);
  font-weight: 800;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.timeline h3, .project-card h3 { font-size: 22px; margin-bottom: 6px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  padding: 28px;
  min-height: 310px;
}
.card-kicker, .pub-type {
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 14px;
}
.writing-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.writing-list article:first-child { padding-top: 0; }
.writing-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.writing-list p { margin-bottom: 0; }
.contact-section { padding-bottom: 100px; }
.contact-card {
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.contact-card p { max-width: 680px; color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-grid p { margin: 0; }

@media (max-width: 880px) {
  .nav { display: none; }
  .hero { padding-top: 58px; }
  .hero-grid, .two-col, .card-grid { grid-template-columns: 1fr; }
  .section-heading { position: static; }
  .contact-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-bottom: 44px; }
  .section { padding: 58px 0; }
  .profile-card, .content-card, .project-card, .contact-card { border-radius: 22px; padding: 24px; }
  .timeline { padding: 4px 24px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  h1 { font-size: 54px; }
}
