:root {
  --bg: #f4f2ed;
  --surface: #fbfaf7;
  --ink: #252a28;
  --muted: #66706b;
  --accent: #61766c;
  --accent-soft: #dce3de;
  --line: #d9ddd9;
  --code: #eef1ee;
  --max: 920px;
  --serif: Georgia, "Noto Serif SC", "Songti SC", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.7 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .6rem 1rem; color: #fff; background: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244,242,237,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { width: min(var(--max), calc(100% - 2.5rem)); min-height: 64px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); font: 700 1.08rem var(--serif); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.45rem; }
.site-nav a { color: var(--muted); font-size: .82rem; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); text-decoration: none; }
.site-nav a.active { font-weight: 600; }
.menu-button { display: none; border: 0; background: transparent; padding: .5rem 0; }
.menu-button span { display: block; width: 22px; height: 1px; margin: 5px 0; background: var(--ink); }

.page { width: min(var(--max), calc(100% - 2.5rem)); margin: auto; min-height: calc(100vh - 130px); }
.profile { display: grid; grid-template-columns: 1fr 190px; gap: 3.5rem; align-items: center; padding: 5rem 0 3.4rem; }
.profile h1 { margin: 0 0 .35rem; font: 700 clamp(2.35rem, 6vw, 3.8rem)/1.15 var(--serif); letter-spacing: -.035em; }
.profile .role { margin: 0 0 1.4rem; color: var(--muted); font-size: 1.02rem; }
.profile p { max-width: 620px; margin: 0 0 1rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.2rem; font-size: .86rem; }
.avatar { width: 176px; height: 176px; border-radius: 50%; display: grid; place-items: center; color: #f8f7f2; background: linear-gradient(145deg, #7b8d84, #4f6259); box-shadow: 0 0 0 8px var(--accent-soft); font: italic 700 4.6rem var(--serif); user-select: none; }

.home-section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2, .page-title { margin: 0; font: 700 1.55rem/1.3 var(--serif); }
.section-head a { font-size: .78rem; }
.news-list, .simple-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: .62rem 0; }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; }
.interest-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.interest-list span, .term { padding: .28rem .68rem; color: #495950; background: var(--accent-soft); border-radius: 3px; font-size: .78rem; }

.entry-list { display: grid; gap: .85rem; }
.entry { position: relative; padding: 1.25rem 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s, transform .2s; }
.entry:hover { border-color: #aeb8b2; transform: translateY(-1px); }
.entry > a.cover-link { position: absolute; inset: 0; }
.entry h3 { margin: 0 0 .35rem; font: 700 1.05rem var(--serif); }
.entry p { margin: 0; color: var(--muted); font-size: .88rem; }
.entry-meta { display: flex; gap: .8rem; margin-bottom: .35rem; color: var(--muted); font-size: .74rem; }
.entry-meta .badge { color: var(--accent); font-weight: 600; }

.inner-header { padding: 4rem 0 2rem; border-bottom: 1px solid var(--line); }
.inner-header .page-title { font-size: clamp(2rem, 5vw, 3rem); }
.inner-header p { margin: .55rem 0 0; color: var(--muted); }
.inner-content { padding: 2.25rem 0 5rem; }
.empty-state { padding: 3rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.empty-state p { margin: 0 0 .8rem; }
.terms { display: flex; gap: .7rem; flex-wrap: wrap; }

.article { width: min(720px, 100%); margin: auto; padding: 4rem 0 6rem; }
.breadcrumbs { margin-bottom: 1.8rem; color: var(--muted); font-size: .78rem; }
.article h1 { margin: 0 0 .7rem; font: 700 clamp(2rem, 5vw, 3rem)/1.25 var(--serif); letter-spacing: -.02em; }
.article-info { padding-bottom: 1.7rem; margin-bottom: 2.2rem; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .8rem; }
.article-body { font: 1rem/1.9 var(--serif); }
.article-body h2 { margin: 2.4rem 0 .7rem; font-size: 1.4rem; }
.article-body p { margin: 0 0 1.2rem; }
.article-body a { overflow-wrap: anywhere; }
.article-body code { padding: .15rem .35rem; background: var(--code); border-radius: 3px; font-size: .86em; }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; margin-top: 3rem; border-top: 1px solid var(--line); font-size: .84rem; }

.not-found { display: grid; place-items: center; min-height: calc(100vh - 130px); text-align: center; }
.not-found strong { display: block; color: var(--accent-soft); font: 700 clamp(7rem, 25vw, 14rem)/.8 var(--serif); }
.not-found h1 { font: 700 1.6rem var(--serif); }
.button { display: inline-block; padding: .55rem 1rem; color: #fff; background: var(--accent); border-radius: 3px; }
.button:hover { color: #fff; text-decoration: none; background: #4d6258; }

.site-footer { width: min(var(--max), calc(100% - 2.5rem)); margin: auto; padding: 1.4rem 0; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: .73rem; }
.site-footer p { margin: 0; }

@media (max-width: 680px) {
  .menu-button { display: block; cursor: pointer; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 1.2rem max(1.25rem, calc((100vw - var(--max))/2)); background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .profile { grid-template-columns: 1fr; padding-top: 3rem; gap: 2rem; }
  .avatar { grid-row: 1; width: 126px; height: 126px; font-size: 3.3rem; }
  .news-list li { grid-template-columns: 78px 1fr; }
  .site-footer { flex-direction: column; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
