:root {
  --bg: #f8f8f4;
  --surface: #ffffff;
  --border: #dde2da;
  --border-strong: #c6cfc4;
  --text: #142019;
  --muted: #657168;
  --headline: #101411;
  --accent: #21674c;
  --content-width: 880px;
  --page-width: 1120px;
  --anchor-offset: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

code {
  font-family:
    "SFMono-Regular",
    ui-monospace,
    "Cascadia Code",
    "Source Code Pro",
    Menlo,
    monospace;
  font-size: 0.92em;
}

.page-shell {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 0 16px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--headline);
}

.identity-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-button:hover {
  color: var(--headline);
}

.lang-button.is-active {
  background: var(--headline);
  color: #ffffff;
}

.main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: 32px;
}

.hero,
.section {
  scroll-margin-top: var(--anchor-offset);
}

.section {
  margin-top: 40px;
  padding-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-meta span + span::before {
  content: "•";
  margin: 0 10px;
  color: var(--border-strong);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--headline);
}

h1 {
  max-width: 28ch;
  margin-top: 14px;
  font-size: clamp(1.22rem, 2.05vw, 1.76rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
}

.hero-intro {
  max-width: 76ch;
  margin-top: 14px;
  font-size: 0.96rem;
  color: var(--text);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 22px;
  padding-top: 16px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-radius: 14px;
  padding: 18px 20px;
}

.fact-item {
  min-width: 0;
}

.fact-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.fact-value {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.section-note {
  font-size: 0.94rem;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.highlight-item h3 {
  margin-bottom: 0;
}

.highlight-metrics {
  color: var(--headline);
  font-weight: 600;
  line-height: 1.45;
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
}

.experience-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  padding-top: 22px;
}

.experience-item:first-of-type {
  padding-top: 0;
}

.period,
.org,
.practice-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.org {
  margin-bottom: 8px;
}

.summary {
  margin-top: 10px;
  color: var(--text);
}

.bullet-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

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

.bullet-list strong {
  color: var(--headline);
}

.subcase-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.subcase {
  padding-top: 0;
}

.subcase:first-child {
  padding-top: 0;
}

.subcase-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--headline);
}

.practice-item,
.education-item {
  padding-top: 18px;
}

.practice-item:first-of-type,
.education-item:first-of-type {
  padding-top: 0;
}

.practice-item h3 {
  margin-top: 6px;
  margin-bottom: 10px;
}

.education-item .period {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 920px) {
  .highlight-list {
    grid-template-columns: 1fr;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --anchor-offset: 126px;
  }

  .page-shell {
    width: min(calc(100% - 20px), var(--page-width));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 14px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    gap: 12px;
  }

  .main {
    padding-top: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.18rem, 5.4vw, 1.56rem);
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
