:root {
  --bg: #FAF8F5;
  --primary: #1C1917;
  --accent: #B45309;
  --text: #44403C;

  --line: rgba(28, 25, 23, 0.12);
  --accent-line: rgba(180, 83, 9, 0.40);
  --muted: rgba(68, 64, 60, 0.72);

  --font-sans: "Geist", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-96: 96px;
  --s-128: 128px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s-24);
}

/* 顶部极简导航 */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: var(--s-24) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-24);
  flex-wrap: wrap;
}

.nav a {
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--primary);
}

/* 首屏 */
.hero {
  padding: var(--s-64) 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 var(--s-24);
}

.eyebrow-dot {
  width: var(--s-8);
  height: var(--s-8);
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.hero-title-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-16);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.handle {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-role {
  margin: 0 0 var(--s-24);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 var(--s-32);
  max-width: 640px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-24);
  flex-wrap: wrap;
}

.link-primary {
  display: inline-block;
  padding-bottom: var(--s-4);
  color: var(--primary);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.link-primary:hover {
  color: var(--accent);
}

.link-secondary {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
  text-decoration-color: var(--line);
}

.link-secondary:hover {
  color: var(--primary);
}

/* 通用章节与关于我 */
.section {
  padding: var(--s-64) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-12);
  margin-bottom: var(--s-32);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--accent);
  font-weight: 600;
}

h2 {
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.intro-p {
  margin: 0 0 var(--s-32);
  font-size: 16px;
  line-height: 1.75;
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
}

.pillar-item {
  padding-left: var(--s-16);
  border-left: 1px solid var(--accent-line);
}

.pillar-title {
  margin: 0 0 var(--s-4);
  color: var(--primary);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 600;
}

.pillar-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

/* 我在做什么 */
.work-list {
  display: flex;
  flex-direction: column;
}

.work-item {
  padding: var(--s-24) 0;
  border-top: 1px solid var(--line);
}

.work-item:last-child {
  border-bottom: 1px solid var(--line);
}

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-16);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

.work-title {
  margin: 0;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 600;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}

.work-desc {
  margin: 0 0 var(--s-12);
  font-size: 16px;
  line-height: 1.75;
}

.work-item.no-links .work-desc {
  margin-bottom: 0;
}

.work-links {
  display: flex;
  align-items: center;
  gap: var(--s-16);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}

/* 联系方式 */
.contact-lead {
  margin: 0 0 var(--s-24);
  font-size: 16px;
  line-height: 1.75;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-16);
  flex-wrap: wrap;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  min-width: var(--s-64);
}

/* 极简页脚 */
.site-footer {
  padding: var(--s-48) 0 var(--s-64);
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* 克制动效 */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a {
    transition: none;
  }
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--s-16);
  }
  .hero {
    padding: var(--s-48) 0;
  }
  .section {
    padding: var(--s-48) 0;
  }
  .pillar-list {
    gap: var(--s-16);
  }
  .work-item {
    padding: var(--s-16) 0;
  }
}
