:root {
  color-scheme: light;
  --bg: #faf9f7;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e4de;
  --card: #ffffff;
  --accent: #1a1a1a;
  --accent-soft: #f0ebe3;
  --tag-bg: #f3efe8;
  --max: 720px;
  --wide: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { opacity: 0.72; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}
.brand {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand:hover { opacity: 1; }
.nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--fg); opacity: 1; }
.nav-cta {
  color: var(--fg) !important;
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.hero {
  padding: 4.5rem 0 2.5rem;
  width: min(100% - 2.5rem, var(--wide));
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.55rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn.primary { background: var(--fg); color: #fff; }
.btn.ghost { border-color: var(--line); background: transparent; color: var(--fg); }

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding: 0 0 3rem;
  width: min(100% - 2.5rem, var(--wide));
}
.hl {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  min-height: 8.5rem;
}
.hl:hover { opacity: 1; border-color: #cfc8bc; }
.hl-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
.hl strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.hl-desc { color: var(--muted); font-size: 0.88rem; }

.section { padding: 2.75rem 0; }
.section-label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}
.section-title {
  margin: 0 0 0.75rem;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
}
.section-sub {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 32rem;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.work {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}
.tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--tag-bg);
  color: var(--muted);
}
.status { font-size: 0.82rem; color: var(--muted); }
.work h3 {
  margin: 0 0 0.45rem;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.25rem;
  font-weight: 600;
}
.work p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 36rem;
}
.work-link {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.work-link:hover { opacity: 0.65; }
.more-tools {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.more-tools a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-body {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}
.about-body p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.contact { padding-bottom: 4rem; }
.mail-row { margin: 1.5rem 0 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}
.footer-inner {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner p { margin: 0 0 0.3rem; }
.copy { margin-top: 0.75rem !important; color: var(--fg); font-weight: 500; }

@media (max-width: 720px) {
  .highlights { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .header-inner { padding: 0.95rem 0; }
  .nav { gap: 0.85rem; }
}

@media (max-width: 480px) {
  .wrap, .hero, .highlights, .header-inner, .footer-inner {
    width: min(100% - 1.5rem, var(--wide));
  }
  .hero h1 { font-size: 1.7rem; }
  .nav a { font-size: 0.86rem; }
}
