:root {
  --bg: #f3f0e8;
  --paper: rgba(255, 252, 247, .9);
  --paper-solid: #fffdf8;
  --ink: #1b2822;
  --muted: #4e5e55;
  --line: rgba(27, 40, 34, .12);
  --pine: #1e6a48;
  --pine-deep: #143d2b;
  --moss: #d7e6db;
  --sand: #f6ebe1;
  --gold: #8d6a3d;
  --shadow: 0 18px 50px rgba(32, 52, 40, .06);
  --radius: 22px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(140, 176, 154, .38), transparent 60%),
    radial-gradient(700px 380px at -10% 8%, rgba(232, 205, 184, .7), transparent 55%),
    var(--bg);
}
img { max-width: 100%; }
a { color: var(--pine-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--pine); }
button, input { font: inherit; }
::selection { background: #d5eadc; color: var(--pine-deep); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--pine-deep); color: white;
  padding: 8px 12px; border-radius: 999px; z-index: 20;
}
.skip:focus { top: 12px; color: white; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.container, .narrow, .latest-row > *, .card > span, .feature-main { min-width: 0; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 240, 232, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: block; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; }
.brand-text small { color: var(--muted); letter-spacing: .08em; }
.search { margin-left: auto; display: flex; gap: 8px; }
.search input, .form input, .form textarea, .filters input {
  border: 1px solid var(--line); background: var(--paper-solid); color: var(--ink);
  border-radius: 999px; padding: 10px 14px; min-height: 44px;
}
.search input { width: min(240px, 36vw); }
.search button, .btn {
  border: 0; border-radius: 999px; min-height: 44px; padding: 0 16px; cursor: pointer;
  background: var(--paper-solid); color: var(--pine-deep);
}
.btn-primary, .search button { background: var(--pine); color: #f7fbf8; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--paper-solid);
  border-radius: 999px; min-height: 44px; padding: 0 14px;
}
.nav { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 14px; }
.nav a { color: var(--muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.nav a.is-on { color: var(--pine-deep); box-shadow: inset 0 -1px 0 var(--pine); }
.hero { padding: 56px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: end; }
.eyebrow { margin: 0 0 10px; color: var(--gold); letter-spacing: .16em; font-size: .82rem; }
h1, h2, h3, strong { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 4.3rem); line-height: 1.18; font-weight: 500; letter-spacing: -.03em; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.stats div, .tag-card, .feature-main, .card, .archive a, .feature-side a {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats div { padding: 16px; }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { margin: 6px 0 0; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.section { padding: 28px 0 10px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.section-head h2 { margin: 0; font-size: 1.7rem; font-weight: 500; }
.feature { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.feature-main, .feature-side a, .card { text-decoration: none; color: inherit; }
.feature-main { padding: 28px; min-height: 280px; display: flex; flex-direction: column; }
.feature-main h3 { margin: 16px 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; font-weight: 500; }
.feature-main p { color: var(--muted); margin: 0 0 16px; }
.feature-main em, .card em, .latest-row em, .feature-side em { color: var(--muted); font-style: normal; font-size: .92rem; }
.mark {
  width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--moss); color: var(--pine-deep); font-family: var(--serif); font-size: 1.4rem;
}
.feature-side { display: grid; gap: 10px; }
.feature-side a { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.feature-side strong, .card strong { font-weight: 500; line-height: 1.45; }
.tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tag-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 168px; text-decoration: none; color: inherit; }
.tag-card b { font-size: 1.2rem; font-weight: 600; }
.tag-card span { color: var(--muted); flex: 1; }
.tag-card em { font-style: normal; color: var(--gold); font-size: .88rem; }
.latest { display: grid; }
.latest-row {
  display: grid; grid-template-columns: 3rem 1fr auto; gap: 8px 16px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.latest-row span { font-family: var(--serif); color: var(--gold); }
.archive-note { color: var(--muted); }
.archive { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.archive a {
  min-height: 72px; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.archive b { font-family: var(--serif); font-size: 1.15rem; }
.archive span { color: var(--muted); font-size: .8rem; }
.page-head { padding: 42px 0 8px; }
.card-list { display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; }
.card > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 10px; }
.pager a, .pager-current, .pager-gap {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none;
}
.pager a { border: 1px solid var(--line); background: var(--paper-solid); padding: 0 12px; }
.pager-current { background: var(--pine); color: white; }
.crumb { color: var(--muted); font-size: .92rem; }
.crumb a { color: var(--muted); }
.article-head { padding-bottom: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); }
.meta b { font-weight: 600; color: var(--ink); }
.prose { font-size: 1.05rem; line-height: 1.95; }
.prose p { margin: 0 0 1em; }
.prose > br { display: none; }
.prose > p > strong:only-child {
  display: block; margin-top: 1.5em; color: var(--pine-deep); font-size: 1.16rem; letter-spacing: .02em;
}
.about-prose { padding-bottom: 40px; }
.disclaimer { color: var(--muted); font-size: .92rem; }
.article-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.like {
  border: 1px solid var(--line); background: var(--sand); color: var(--pine-deep);
  border-radius: 999px; min-height: 44px; padding: 0 16px; cursor: pointer;
}
.neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.neighbors a { text-decoration: none; color: inherit; padding: 14px; border-top: 1px solid var(--line); }
.neighbors small { display: block; color: var(--gold); letter-spacing: .12em; }
.empty { color: var(--muted); }
.site-footer { margin-top: 48px; padding: 28px 0 20px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.footer-grid span { color: var(--gold); letter-spacing: .12em; font-size: .82rem; }
.footer-grid p { margin: 8px 0 0; }
.footer-grid a { display: inline-block; margin: 0 10px 6px 0; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding-top: 8px; }
.to-top {
  position: fixed; right: 16px; bottom: 16px; border: 0; border-radius: 999px;
  background: var(--pine-deep); color: white; min-height: 44px; padding: 0 14px; cursor: pointer;
}
.hold { width: min(640px, calc(100% - 32px)); margin: 16vh auto; }
@media (max-width: 980px) {
  .hero-grid, .feature, .footer-grid { grid-template-columns: 1fr; }
  .tag-grid { grid-template-columns: 1fr 1fr; }
  .archive { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .bar { flex-wrap: wrap; }
  .search { width: 100%; margin-left: 0; order: 3; }
  .search input { flex: 1; width: auto; min-width: 0; }
  .nav-wrap { display: none; padding-bottom: 12px; }
  body.nav-open .nav-wrap { display: block; }
  .nav { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav a { min-height: 44px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tag-grid, .neighbors { grid-template-columns: 1fr; }
  .archive { grid-template-columns: repeat(4, 1fr); }
  .latest-row { grid-template-columns: 2.4rem 1fr; }
  .latest-row em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .to-top, .search, .hero-actions, .like { display: none !important; }
  body { background: white; }
}
