:root {
  --paper: #f1ede5;
  --paper-light: #fbf8f1;
  --ink: #1e1c18;
  --muted: #6e665b;
  --faint: #9c9387;
  --rule: #bcb2a3;
  --accent: #b55337;
  --accent-dark: #8e3e27;
  --green: #405f4d;
  --shadow: 0 8px 24px rgba(39, 34, 26, .05);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Songti SC", "SimSun", "Noto Serif SC", serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 56px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  padding: 8px 14px; background: var(--ink); color: var(--paper);
}
.skip-link:focus { left: 12px; color: var(--paper); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 237, 229, .94);
  border-bottom: 1px solid var(--ink);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent);
  background: transparent; font-family: Georgia, "Songti SC", serif;
  font-size: .92rem; font-weight: 700; transform: rotate(-8deg);
}
.brand-text { font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 1.08rem; font-weight: 700; letter-spacing: .1em; line-height: 1.15; }
.brand-text small { display: block; margin-top: 4px; color: var(--faint); font-family: "Segoe UI", sans-serif; font-size: .52rem; letter-spacing: .2em; font-weight: 600; }
.site-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .74rem; letter-spacing: .08em; padding: 8px 0; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.nav-toggle { display: none; border: 1px solid var(--accent); background: var(--accent); color: var(--paper-light); border-radius: 0; padding: 7px 12px; cursor: pointer; font-family: "Segoe UI", sans-serif; font-size: .75rem; letter-spacing: .08em; }

/* hero */
.hero { padding: 82px 0 72px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 62px; align-items: end; }
.eyebrow { display: inline-block; color: var(--accent); font-family: "Segoe UI", "PingFang SC", sans-serif; font-size: .69rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { margin: 20px 0 24px; font-size: clamp(3.2rem, 7vw, 6.3rem); line-height: 1.04; letter-spacing: -.07em; font-weight: 500; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 590px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 0; font-family: "Segoe UI", "PingFang SC", sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .06em; transition: .18s ease; }
.button.primary { background: var(--ink); color: var(--paper-light); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 38px; padding-top: 15px; border-top: 1px solid var(--rule); color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .7rem; letter-spacing: .06em; }
.hero-stats b { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.hero-art { border-left: 1px solid var(--rule); padding: 0 0 4px 30px; align-self: center; }
.hero-art strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 1.2rem; font-weight: 500; line-height: 1.65; }
.hero-art small { display: block; margin-top: 20px; color: var(--faint); font-family: "Segoe UI", sans-serif; font-size: .7rem; letter-spacing: .1em; }

/* sections */
.section { padding: 66px 0; }
.section-tint { border-block: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 12px; margin-bottom: 30px; border-bottom: 1px solid var(--ink); }
.section-head h2 { margin: 0; font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; }
.section-link { color: var(--accent); font-family: "Segoe UI", sans-serif; font-size: .74rem; font-weight: 700; white-space: nowrap; letter-spacing: .04em; }

/* categories */
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); counter-reset: cat; }
.category-card { display: flex; flex-direction: column; min-height: 210px; padding: 26px 22px 28px; border-right: 1px solid var(--rule); background: transparent; counter-increment: cat; }
.category-card:first-child { padding-left: 0; }
.category-card:last-child { border-right: 0; }
.category-mark { display: none; }
.category-name { font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
.category-name::before { content: counter(cat, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--accent); font-family: "Segoe UI", sans-serif; font-size: .69rem; letter-spacing: .16em; font-weight: 700; }
.category-intro { color: var(--muted); font-size: .8rem; line-height: 1.8; flex: 1; }
.category-count { margin-top: 20px; color: var(--accent); font-family: "Segoe UI", sans-serif; font-size: .7rem; letter-spacing: .06em; }
.category-grid-large .category-card { min-height: 190px; }

/* search and article rows */
.search-row { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.search-label { flex: none; color: var(--faint); font-family: "Segoe UI", sans-serif; font-size: .7rem; letter-spacing: .08em; }
.site-search { width: min(330px, 100%); height: 38px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--ink); outline: none; font-family: Georgia, "Songti SC", serif; }
.site-search:focus { border-bottom-color: var(--accent); }
.site-search::placeholder { color: var(--faint); }
.article-grid { display: block; border-top: 1px solid var(--rule); }
.article-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) 140px; grid-template-rows: auto auto; column-gap: 22px; padding: 24px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; min-height: 0; }
.article-card:hover { transform: none; box-shadow: none; }
.card-top { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.tag { display: inline-flex; align-items: center; min-height: 0; padding: 0; border-radius: 0; color: var(--accent); background: transparent; font-family: "Segoe UI", "PingFang SC", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.tag-life, .tag-guide, .tag-observe { background: transparent; color: var(--accent); }
.card-top time { color: var(--faint); font-family: "Segoe UI", sans-serif; font-size: .66rem; }
.article-card h3 { grid-column: 2; grid-row: 1; margin: 0 0 7px; font-size: 1.45rem; line-height: 1.42; font-weight: 500; letter-spacing: -.02em; }
.article-card p { grid-column: 2; grid-row: 2; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.75; }
.card-foot { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 9px; color: var(--faint); font-family: "Segoe UI", sans-serif; font-size: .68rem; text-align: right; }
.arrow-link { color: var(--accent); font-weight: 700; white-space: nowrap; }
.empty-state { margin: 26px 0 0; padding: 18px; border: 1px dashed var(--rule); color: var(--muted); text-align: center; font-size: .85rem; }
[hidden] { display: none !important; }

/* principles */
.principles { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: start; }
.principles-intro h2 { margin: 8px 0 14px; font-size: 1.55rem; font-weight: 500; line-height: 1.35; }
.principles-intro p { color: var(--muted); max-width: 420px; }
.principle-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.principle-list > div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.principle-num { color: var(--accent); font-family: "Segoe UI", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.principle-list h3 { margin: 4px 0 5px; font-size: 1rem; font-weight: 500; }
.principle-list p { margin: 0; color: var(--muted); font-size: .82rem; }

/* page hero */
.page-hero { padding: 78px 0 54px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { margin: 12px 0 12px; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -.05em; font-weight: 500; }
.page-hero p { margin: 0; max-width: 650px; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--accent); font-family: "Segoe UI", sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }

/* article page */
.article-page { padding: 48px 0 72px; }
.article-wrap { max-width: 820px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--faint); font-family: "Segoe UI", sans-serif; font-size: .7rem; }
.breadcrumbs a:hover { color: var(--accent); }
.article-header { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.article-header h1 { margin: 14px 0 16px; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.22; letter-spacing: -.05em; font-weight: 500; }
.article-lead { margin: 0; color: var(--muted); font-size: 1rem; }
.article-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 20px; color: var(--faint); font-family: "Segoe UI", sans-serif; font-size: .7rem; }
.article-body { padding-top: 32px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: .98rem; }
.article-body h2 { margin: 30px 0 10px; font-size: 1.3rem; line-height: 1.4; font-weight: 500; }
.article-body p { margin: 0 0 14px; }
.article-body ul { margin: 8px 0 16px; padding-left: 1.2rem; }
.article-body li { margin: 5px 0; }
.article-note { margin-top: 28px !important; padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--paper-light); color: var(--muted); font-size: .8rem; }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.article-tags span { padding: 3px 0; color: var(--faint); font-family: "Segoe UI", sans-serif; font-size: .68rem; letter-spacing: .05em; }
.article-disclaimer { margin-top: 30px; padding: 15px 0 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: .76rem; }
.article-disclaimer strong { color: var(--accent); font-weight: 700; }
.related { max-width: 820px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--rule); }
.related h2 { margin: 0 0 14px; font-size: 1.1rem; font-weight: 500; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.related-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); }
.related-item + .related-item { padding-left: 18px; border-left: 1px solid var(--rule); }
.related-item span { color: var(--accent); font-family: "Segoe UI", sans-serif; font-size: .66rem; font-weight: 700; }
.related-item strong { font-size: .86rem; line-height: 1.5; font-weight: 500; }

/* prose / legal */
.prose-page { max-width: 780px; }
.prose-page h2 { margin: 30px 0 10px; font-size: 1.35rem; font-weight: 500; }
.prose-page p { margin: 0 0 16px; color: var(--muted); }
.prose-page ul { margin: 8px 0 18px; padding-left: 1.2rem; color: var(--muted); }
.prose-page li { margin: 5px 0; }
.prose-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.info-table-card { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); text-align: left; font-size: .88rem; }
.info-table th { width: 26%; color: var(--muted); font-weight: 500; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.contact-card { padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.contact-email { margin: 8px 0 10px !important; font-size: 1.25rem; font-weight: 500; color: var(--accent) !important; word-break: break-all; }

/* footer */
.site-footer { margin-top: 20px; background: var(--ink); color: var(--paper); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px 0 30px; }
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-mark { border-color: var(--paper); color: var(--paper); }
.footer-brand .brand-text { color: var(--paper); }
.brand-small .brand-mark { width: 30px; height: 30px; font-size: .82rem; }
.brand-small .brand-text { font-size: .95rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #d8d0c2; font-family: "Segoe UI", sans-serif; font-size: .74rem; letter-spacing: .06em; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; gap: 7px; flex-wrap: wrap; padding: 14px 0 24px; border-top: 1px solid #403b33; color: #a59d91; font-family: "Segoe UI", sans-serif; font-size: .68rem; }
.footer-bottom .dot { color: #5b554b; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 0 0; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card:nth-child(2) { border-right: 0; }
  .category-card { border-bottom: 1px solid var(--rule); }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 20px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: inline-flex; flex: none; position: relative; z-index: 60; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 10px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--ink); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--rule); }
  .hero { padding: 50px 0 42px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-stats { gap: 20px; }
  .section { padding: 44px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:first-child { padding: 21px 0; border-right: 0; }
  .article-card { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; }
  .card-top { grid-column: 1; grid-row: 1 / span 3; }
  .article-card h3 { grid-column: 2; grid-row: 1; font-size: 1.25rem; }
  .article-card p { grid-column: 2; grid-row: 2; }
  .card-foot { grid-column: 2; grid-row: 3; align-items: flex-start; flex-direction: row; justify-content: space-between; margin-top: 8px; }
  .search-row { align-items: stretch; flex-direction: column; gap: 6px; }
  .site-search { width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .related-item + .related-item { padding-left: 0; border-left: 0; }
  .footer-bottom { flex-direction: column; gap: 3px; }
  .footer-bottom .dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
