/* 米白纸色与深绿墨色，延续网站最初的样子。 */
:root { color-scheme: light; --paper: #f5f2e9; --ink: #253a30; --muted: #626c60; --line: #ccd0c3; --soft: #eae9df; --serif: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
::selection { background: #d9dfcf; color: var(--ink); }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 1px; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.site-shell { width: min(1120px, calc(100% - 112px)); min-height: 100vh; min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; }
.skip-link { position: fixed; z-index: 10; top: 14px; left: 14px; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-160%); font-family: var(--sans); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 106px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.wordmark-symbol { font-size: 30px; line-height: 1; font-weight: 400; }
.site-nav { display: flex; gap: 34px; font-size: 15px; }
.site-nav a { padding: 12px 0; }
.site-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }

/* 首页：标题与留白是主要的视觉元素。 */
.hero { position: relative; padding: 82px 0 76px; }
.eyebrow { font-size: 13px; letter-spacing: .18em; color: var(--muted); }
.hero h1 { margin: 29px 0 36px; font-size: clamp(70px, 8.5vw, 116px); line-height: 1.02; letter-spacing: -.065em; font-weight: 400; }
.title-break { display: none; }
.title-dot { color: #87947d; }
.hero-intro { position: relative; z-index: 1; }
.hero-chinese { font-size: 26px; line-height: 1.6; letter-spacing: .1em; }
.hero-description { margin-top: 12px; font-size: 16px; color: var(--muted); line-height: 1.9; }
.winter-mark { position: absolute; right: 40px; bottom: 77px; width: 78px; height: 80px; opacity: .65; }
.winter-mark span { position: absolute; width: 1px; height: 78px; top: 0; left: 39px; background: #87947d; }
.winter-mark span:nth-child(2) { transform: rotate(60deg); }
.winter-mark span:nth-child(3) { transform: rotate(-60deg); }
.writing-section { margin-bottom: 80px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 19px 0; }
.section-heading h2 { font-size: 18px; letter-spacing: .06em; font-weight: 400; margin: 0; }
.count { margin-left: 10px; color: var(--muted); font-size: 12px; vertical-align: super; letter-spacing: 0; font-family: var(--sans); }
.text-link { font-size: 13px; color: var(--muted); }
.text-link span { margin-left: 7px; }
.empty-state { padding: 41px 0 45px; }
.empty-title { font-size: 24px; line-height: 1.7; }
.empty-state p + p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item { border-bottom: 1px solid var(--line); }
.post-link { display: grid; grid-template-columns: 112px minmax(0, 1fr) 24px; align-items: baseline; column-gap: 28px; padding: 32px 0; }
.post-link:hover { text-decoration: none; }
.post-link:hover h3 { text-decoration: underline; text-underline-offset: .25em; }
.post-date { font-family: var(--sans); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-link h3 { margin: 0; font-size: 26px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.post-link p { margin-top: 8px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.site-footer { margin-top: auto; padding: 25px 0 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.footer-note { margin-left: auto; margin-right: auto; letter-spacing: .08em; }
.site-footer a { white-space: nowrap; }
.site-footer a span { margin-left: 5px; }

/* 独立页面与长文的阅读排版。 */
.page-header { padding: 76px 0 44px; }
.page-header h1 { margin: 21px 0 17px; font-size: clamp(44px, 6vw, 66px); line-height: 1.2; font-weight: 400; letter-spacing: -.04em; }
.page-description { color: var(--muted); font-size: 16px; line-height: 1.9; }
.archive-section { margin-bottom: 100px; }
.archive-section > .empty-state { border-top: 1px solid var(--line); }
.about-content { max-width: 700px; margin: 0 0 100px; padding-top: 35px; border-top: 1px solid var(--line); }
.about-content p { font-size: 20px; line-height: 2; }
.about-content p + p { margin-top: 18px; }
.about-content .about-signature { font-size: 15px; color: var(--muted); letter-spacing: .12em; margin-top: 44px; }
.back-link { display: inline-block; color: var(--muted); font-size: 14px; line-height: 1.8; }
.article-header { max-width: 700px; margin: 70px auto 38px; }
.article-header h1 { margin: 28px 0 22px; font-weight: 400; font-size: clamp(32px, 4.8vw, 50px); line-height: 1.5; letter-spacing: -.02em; overflow-wrap: anywhere; }
.article-meta { color: var(--muted); font-size: 13px; line-height: 1.8; }
.article-body { max-width: 700px; margin: 0 auto; font-size: 18px; line-height: 2; overflow-wrap: anywhere; }
.article-body > * { margin: 0 0 1.4em; }
.article-body h2, .article-body h3, .article-body h4 { font-weight: 400; line-height: 1.5; margin-top: 2em; }
.article-body h2 { font-size: 28px; }
.article-body h3 { font-size: 23px; }
.article-body a { text-decoration: underline; }
.article-body blockquote { padding: 2px 0 2px 24px; margin-left: 0; margin-right: 0; border-left: 2px solid #9aa58e; color: var(--muted); }
.article-body blockquote p + p { margin-top: 1em; }
.article-body ul, .article-body ol { padding-left: 1.6em; }
.article-body li + li { margin-top: .25em; }
.article-body code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8em; background: var(--soft); padding: .15em .3em; border-radius: 2px; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 20px; background: var(--soft); font-size: 15px; line-height: 1.7; }
.article-body pre code { padding: 0; font-size: inherit; white-space: pre; }
.article-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.article-body img { display: block; margin: 1.5em auto; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9em; }
.article-body th, .article-body td { padding: 9px 14px; text-align: left; border: 1px solid var(--line); }
.article-footer { max-width: 700px; margin: 54px auto 85px; padding-top: 24px; border-top: 1px solid var(--line); }
.not-found { flex: 1; padding: 110px 0; }
.not-found h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 400; margin: 20px 0 25px; line-height: 1.3; }
.not-found p:not(.eyebrow) { font-size: 17px; line-height: 2; color: var(--muted); }
.not-found .back-link { margin-top: 35px; color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) {
  .site-shell { width: calc(100% - 48px); }
  .site-header { min-height: 84px; }
  .wordmark { font-size: 16px; gap: 5px; }
  .wordmark-symbol { font-size: 25px; }
  .site-nav { gap: 23px; font-size: 14px; }
  .hero { padding: 64px 0 59px; }
  .hero h1 { font-size: clamp(68px, 12.7vw, 95px); margin-top: 27px; margin-bottom: 30px; }
  .title-break { display: block; }
  .hero-chinese { font-size: 23px; }
  .hero-description { font-size: 15px; max-width: 250px; }
  .winter-mark { right: 12px; bottom: 80px; width: 44px; height: 44px; }
  .winter-mark span { height: 44px; left: 22px; }
  .section-heading { padding: 18px 0; }
  .writing-section { margin-bottom: 55px; }
  .post-link { grid-template-columns: minmax(0, 1fr) 20px; column-gap: 16px; padding: 25px 0; }
  .post-date { grid-column: 1 / -1; margin-bottom: 9px; }
  .post-link h3 { font-size: 23px; }
  .site-footer { flex-wrap: wrap; gap: 8px 20px; font-size: 11px; }
  .footer-note { display: none; }
  .site-footer a { margin-left: auto; }
  .page-header { padding: 57px 0 35px; }
  .about-content { margin-bottom: 75px; }
  .about-content p { font-size: 18px; }
  .article-header { margin-top: 48px; }
  .article-body { font-size: 17px; line-height: 1.95; }
  .article-body h2 { font-size: 25px; }
  .article-body h3 { font-size: 21px; }
  .article-body pre { padding: 16px; font-size: 13px; }
  .article-footer { margin-bottom: 65px; }
}
@media (max-width: 370px) {
  .site-shell { width: calc(100% - 36px); }
  .wordmark { font-size: 14px; }
  .site-nav { gap: 17px; }
  .hero h1 { font-size: 64px; }
  .winter-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-shell { width: 100%; min-height: 0; }
  .site-nav, .skip-link, .winter-mark, .site-footer a { display: none; }
  body { background: white; color: black; }
  .article-header, .article-body, .article-footer { max-width: none; }
  .article-header { margin-top: 24px; }
  .article-body a { text-decoration: underline; }
}
