/* Editorial layer: keep legacy content classes, refine the reading experience. */
:root {
  --bg: #f5f2eb; --card: #f9f7f1; --text: #25251f; --soft: #4a483f;
  --muted: #64634f; --accent: #a64930; --border: #d3cbba; --border-l: #e3dccf;
  --warm: #ede7da; --max-w: 1180px;
  --font-serif-cn: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --font-sans-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: var(--font-serif-cn);
  --font-mono: "SFMono-Regular", Consolas, monospace;
}
[hidden] { display: none !important; }
body { font-size: 1rem; overflow-wrap: anywhere; }
a { text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-top: 100px; }
#main-content:focus { outline: none; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 200; background: var(--text); color: var(--bg); padding: 12px 18px; }
.skip-link:focus { top: 10px; }
.site-nav { background: var(--bg); border-bottom: 1px solid var(--text); }
.nav-inner { min-height: 64px; height: auto; gap: 20px; }
.nav-brand { min-height: 44px; flex-shrink: 0; }
.nav-logo { background: none; color: var(--text); font-size: 1.5rem; width: auto; height: auto; letter-spacing: .08em; }
.nav-name { font: .8rem var(--font-display); color: var(--muted); font-weight: 400; }
.nav-links a { min-height: 44px; display: flex; align-items: center; font-size: .9rem; border-radius: 0; color: var(--soft); border-bottom: 2px solid transparent; }
.nav-links a.current { background: transparent; border-bottom-color: var(--accent); }
.nav-lang { min-height: 44px; }
.menu-toggle { display: none; padding: 8px 12px; min-height: 44px; border: 1px solid var(--border); font: inherit; background: none; color: var(--text); }
.hero { max-width: none; padding: 28px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 40px; align-items: center; }
.hero-top { margin-bottom: 10px; gap: 16px; }
.hero h1 { font-size: 2.75rem; letter-spacing: .09em; line-height: 1.3; }
.hero-photo { width: 60px; height: 60px; border: 1px solid var(--border); }
.hero-bio { font-size: .95rem; max-width: 44em; line-height: 1.8; }
.hero-bio p { margin-bottom: 8px; }
.hero-bio .identity-line { color: var(--muted); font-size: .875rem; margin-bottom: 10px; }
.hero-motto { font: italic 1.65rem/1.4 var(--font-display); color: var(--accent); border-left: 1px solid var(--border); padding-left: 28px; }
.text-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.text-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; text-decoration: underline; text-decoration-color: var(--border); }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 48px; padding: 32px 0 48px; }
.home-content, .home-aside { min-width: 0; }
.section { padding: 0 0 32px; border-top: 0; }
.section-head { border-top: 1px solid var(--text); padding-top: 10px; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.section-title { font-size: 1.3rem; }
.section-eyebrow { color: var(--muted); font-size: .75rem; }
.view-all { min-height: 44px; display: inline-flex; align-items: center; font-size: .85rem; }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.featured-card { padding: 16px 0; border: 0; border-bottom: 1px solid var(--border); background: none; border-radius: 0; min-width: 0; }
.featured-card:first-child { grid-column: 1 / -1; padding-top: 4px; }
.featured-card h3 { font-size: 1.25rem; line-height: 1.45; }
.featured-card:first-child h3 { font-size: 1.7rem; }
.featured-card h3 a:hover, .post-title a:hover { text-decoration: underline; }
.featured-card p { font-size: .9rem; line-height: 1.75; }
.featured-card .reader-question, .reader-question { color: var(--accent); font-family: var(--font-sans-cn); font-size: .875rem; margin-bottom: 8px; }
.featured-card .post-meta { margin-top: 12px; }
.post-meta { flex-wrap: wrap; gap: 4px 12px; font: .75rem/1.7 var(--font-sans-cn); color: var(--muted); }
.post-date { font: .75rem/1.7 var(--font-display); color: var(--muted); }
.post-kind { border: 1px solid var(--border); padding: 1px 5px; font-size: .7rem; }
.post-item { padding: 20px 0; border-bottom: 1px solid var(--border-l); }
.post-item:hover { padding-left: 0; }
.post-title { font-size: 1.2rem; line-height: 1.55; margin-bottom: 6px; }
.post-summary { font-size: .9rem; line-height: 1.8; }
.post-en { font-size: .9rem; }
.home-aside { border-left: 1px solid var(--border); padding-left: 24px; }
.aside-block { margin-bottom: 28px; }
.aside-block h2 { font-size: 1rem; margin-bottom: 8px; font-family: var(--font-serif-cn); }
.category-links { display: flex; flex-direction: column; }
.category-links a { min-height: 44px; padding: 8px 0; display: flex; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--border-l); font-size: .9rem; }
.category-count { font: .8rem var(--font-display); color: var(--muted); }
.small-note { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: .9rem; }
.planned-list li { padding: 6px 0; font-size: .8rem; color: var(--muted); }
.now-box { border: 0; border-radius: 0; padding: 0; background: none; }
.now-grid { grid-template-columns: 1fr; gap: 8px; }
.now-item { padding: 0; background: none; font-size: .85rem; }
.listing { padding: 40px 0 64px; max-width: 860px; }
.page-heading { font: 600 2.2rem/1.4 var(--font-serif-cn); margin-bottom: 12px; }
.listing-intro { font-size: .95rem; color: var(--soft); margin-bottom: 24px; }
.filters { padding: 0 0 12px; margin: 24px 0 0; gap: 8px 20px; }
.filters a { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; gap: 6px; }
.filters a[aria-current=page] { color: var(--accent); text-decoration: underline; }
.search-form { display: flex; gap: 8px; margin: 20px 0; max-width: 580px; }
.search-form label { flex: 1; min-width: 0; }
.search-form input[type=search] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); background: var(--card); font: .95rem var(--font-sans-cn); color: var(--text); border-radius: 0; }
.search-form button { min-height: 46px; padding: 10px 18px; background: var(--text); color: var(--bg); font: .9rem var(--font-sans-cn); border: 1px solid var(--text); cursor: pointer; }
.empty-state { padding: 32px 0; color: var(--soft); }
.empty-state a { text-decoration: underline; display: inline-flex; min-height: 44px; align-items: center; }
.pagination { margin: 32px 0; }
.nav-links .page-numbers, .pagination .page-numbers { padding: 10px 15px; min-height: 44px; display: inline-flex; align-items: center; }
.pagination .current { background: var(--warm); }
.article-single, .page-content { max-width: 680px; margin: 0 auto; padding: 40px 0 48px; }
.article-back { min-height: 44px; font-size: .85rem; display: inline-flex; align-items: center; margin-bottom: 16px; }
.article-single > h1, .page-content > h1 { font: 600 2.25rem/1.45 var(--font-serif-cn); margin: 10px 0 16px; }
.article-subtitle { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.article-lede { font-size: 1rem; line-height: 1.85; color: var(--soft); border-left: 2px solid var(--accent); padding-left: 18px; margin: 20px 0; }
.history-note { font: .8rem/1.8 var(--font-sans-cn); color: var(--muted); margin: 16px 0; }
.article-toc { padding: 8px 16px; background: var(--warm); margin: 24px 0; border: 1px solid var(--border); }
.article-toc ol { padding: 0 0 12px 20px; list-style: decimal; }
.article-toc a { font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
.article-content { color: var(--text); font: 1.125rem/1.9 var(--font-body); overflow-wrap: anywhere; }
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-size: 1.5rem; margin: 40px 0 16px; line-height: 1.5; }
.article-content h3 { font-size: 1.2rem; }
.article-content a { text-decoration: underline; }
.article-content blockquote { font-size: 1rem; border-radius: 0; }
.article-content pre { border-radius: 0; }
.article-content table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font: .95rem/1.7 var(--font-sans-cn); margin: 24px 0; }
.article-content th, .article-content td { border: 1px solid var(--border); min-width: 140px; padding: 12px; vertical-align: top; text-align: left; }
.article-content th { background: var(--warm); }
.article-content caption { text-align: left; padding: 8px 0; font-size: .8rem; color: var(--muted); }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 24px 0; }
.table-scroll table { display: table; width: 100%; max-width: none; margin: 0; }
.editor-note { background: var(--warm); padding: 18px; border-left: 2px solid var(--accent); margin: 24px 0; font-size: 1rem; }
.editor-note p:last-child { margin-bottom: 0; }
.contact-note { border-top: 1px solid var(--text); padding: 24px 0; margin-top: 32px; }
.contact-note h2 { font: 600 1.2rem/1.6 var(--font-serif-cn); margin: 0 0 8px; }
.contact-note p { color: var(--soft); font-size: .9rem; }
.related-posts { margin-top: 32px; }
.related-posts h2 { font: 600 1.25rem var(--font-serif-cn); }
.related-posts a { display: block; padding: 12px 0; min-height: 44px; border-bottom: 1px solid var(--border); }
.site-footer { background: var(--bg); margin-top: 0; }
.footer-inner { padding: 24px var(--gap); }
.footer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-motto { font: italic 1.1rem var(--font-display); color: var(--muted); }
.footer-bottom { font-size: .8rem; }
.footer-copy, .footer-built { color: var(--muted); font-size: .75rem; }
.contact-card, .book-card, .link-card { border-radius: 0; }
@media (max-width: 960px) {
  .home-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-aside { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-motto { display: none; }
  .home-aside .now-section { display: none; }
}
@media (max-width: 700px) {
  :root { --gap: 18px; }
  .nav-inner { flex-wrap: wrap; gap: 0; padding-top: 8px; padding-bottom: 8px; }
  .nav-name { display: inline; }
  .menu-toggle { margin-left: auto; }
  .js .menu-toggle { display: block; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 0 12px; }
  .js .site-nav .nav-links { display: none; padding-top: 8px; }
  .js .site-nav .nav-links.is-open { display: flex; }
  .nav-links a { padding: 8px 10px; font-size: .9rem; }
  .hero { padding: 22px 0; }
  .hero h1 { font-size: 2.25rem; }
  .hero-bio { font-size: .875rem; }
  .hero-top { margin-bottom: 8px; }
  .home-layout { padding-top: 24px; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-card:first-child h3 { font-size: 1.4rem; }
  .post-title { font-size: 1.125rem; }
  .listing .post-summary { display: none; }
  .home-content .post-item .post-summary { display: none; }
  .listing { padding-top: 28px; }
  .page-heading { font-size: 1.8rem; }
  .article-single, .page-content { padding-top: 28px; }
  .article-single > h1, .page-content > h1 { font-size: 1.75rem; }
  .article-content { font-size: 1.0625rem; }
  .article-content h2 { font-size: 1.3rem; }
  .site-nav { position: static; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
