:root {
  --paper: #f1ede2;
  --paper-dark: #e5dfd1;
  --ink: #302f28;
  --muted: #746f61;
  --accent: #7c6530;
  --line: #c8c0ad;
  --serif: "Songti SC", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--serif); font-size: 17px; line-height: 1.8; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
p, h1, h2, h3 { margin-top: 0; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 8px 16px; color: var(--paper); background: var(--ink); font-family: var(--sans); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--ink); }
.masthead { min-height: 125px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { display: block; font-size: 36px; font-weight: 700; line-height: 1.25; letter-spacing: .08em; }
.brand-tagline { display: block; margin-top: 9px; color: var(--muted); font-family: var(--sans); font-size: 11px; letter-spacing: .1em; }
.primary-nav { display: flex; gap: 24px; font-family: var(--sans); font-size: 13px; }
.primary-nav a { padding: 7px 0; color: var(--ink); border-top: 1px solid transparent; border-bottom: 1px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.category-strip { border-top: 1px solid var(--line); }
.category-strip nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 13px; }
.category-strip a { color: var(--muted); font-family: var(--sans); font-size: 12px; }
.category-strip a::before { content: "§"; margin-right: 7px; color: var(--accent); }
.category-strip a:hover, .category-strip a[aria-current="page"] { color: var(--ink); }
.mobile-nav { display: none; position: relative; font-family: var(--sans); }
.mobile-nav summary { padding: 8px 0 8px 16px; border-left: 1px solid var(--line); cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.nav-toggle-icon { display: inline-grid; gap: 5px; width: 18px; margin-left: 10px; vertical-align: middle; }
.nav-toggle-icon i { height: 1px; background: var(--ink); }
.mobile-nav[open] .nav-toggle-icon i:first-child { transform: translateY(3px) rotate(45deg); }
.mobile-nav[open] .nav-toggle-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav nav { position: absolute; z-index: 20; top: calc(100% + 12px); right: 0; width: min(320px, calc(100vw - 32px)); padding: 12px 20px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--paper-dark); }
.mobile-nav nav a { display: block; padding: 9px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

.hero { padding: 62px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; padding-bottom: 55px; border-bottom: 1px solid var(--ink); }
.eyebrow { margin-bottom: 14px; color: var(--accent); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.hero h1 { max-width: 920px; margin-bottom: 26px; font-size: clamp(47px, 6.5vw, 78px); font-weight: 500; line-height: 1.18; letter-spacing: -.035em; }
.hero-intro { max-width: 760px; margin-bottom: 30px; color: #575347; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; font-family: var(--sans); }
.button { display: inline-block; padding: 9px 0; border-bottom: 1px solid currentColor; }
.button:hover { text-decoration: none; border-bottom-width: 3px; }
.button-primary { color: var(--paper); padding: 10px 20px; background: var(--ink); border: 1px solid var(--ink); }
.button-secondary { color: var(--ink); }
.hero-aside { display: grid; grid-template-columns: 130px 1fr; gap: 10px 28px; max-width: 850px; padding-top: 25px; border-top: 1px solid var(--line); }
.aside-label { grid-row: span 2; margin: 0; color: var(--accent); font-size: 20px; }
.hero-aside ul { display: flex; flex-wrap: wrap; gap: 5px 28px; margin: 0; padding: 0; list-style: none; }
.hero-aside li::before { content: "—"; margin-right: 8px; color: var(--accent); }
.aside-note { margin: 0; color: var(--muted); font-family: var(--sans); font-size: 12px; }

.section-block { padding-block: 64px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(29px, 3.4vw, 41px); font-weight: 500; line-height: 1.35; }
.heading-with-link { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--ink); }
.section-link { flex: none; font-family: var(--sans); font-size: 12px; }
.service-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.service-card { display: grid; grid-template-columns: 70px 250px 1fr; gap: 25px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-index { color: var(--accent); font-family: var(--sans); font-size: 12px; }
.service-card h3 { margin: 0; font-size: 23px; font-weight: 500; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }
.latest-section { padding-top: 25px; }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.article-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.article-card.no-cover { display: block; padding-left: 70px; }
.article-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-dark); }
.article-media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(.8); }
.article-meta { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-bottom: 10px; color: var(--muted); font-family: var(--sans); font-size: 11px; }
.article-title { margin-bottom: 12px; font-size: 26px; font-weight: 500; line-height: 1.45; }
.article-title a { color: var(--ink); }
.article-summary { display: -webkit-box; overflow: hidden; margin-bottom: 16px; color: var(--muted); font-size: 15px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.read-more { font-family: var(--sans); font-size: 12px; }
.empty-state { margin: 0; padding: 22px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-style: italic; }
.home-categories { display: grid; grid-template-columns: 1fr; gap: 50px; padding-bottom: 80px; }
.category-block { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 35px; }
.category-block .section-heading { display: block; margin: 0; }
.category-block .section-heading h2 { font-size: 25px; }
.category-block .section-link { display: inline-block; margin-top: 15px; }
.story-list { margin: 0; padding: 0; list-style: none; counter-reset: stories; }
.story-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); counter-increment: stories; }
.story-list a { color: var(--ink); font-size: 18px; }
.story-list time { color: var(--muted); font-family: var(--sans); font-size: 10px; white-space: nowrap; }

.page-hero { padding: 58px 0; border-bottom: 1px solid var(--ink); }
.narrow-heading { max-width: 900px; }
.narrow-heading h1 { margin-bottom: 18px; font-size: clamp(45px, 6vw, 70px); font-weight: 500; line-height: 1.2; }
.narrow-heading > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; }
.listing-section { padding-top: 20px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 38px; padding-block: 15px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--sans); font-size: 12px; }
.page-direction, .page-number { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 6px 9px; color: var(--ink); }
.page-numbers { display: flex; gap: 5px; }
.page-number[aria-current="page"] { color: var(--paper); background: var(--ink); }
.page-direction.is-disabled { color: #aaa393; }
.pagination-status { margin: 10px 0 0; color: var(--muted); text-align: center; font-family: var(--sans); font-size: 11px; }

.article-detail { max-width: 880px; padding-top: 35px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; color: var(--muted); font-family: var(--sans); font-size: 11px; }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-bottom: 25px; font-size: clamp(39px, 5.2vw, 59px); font-weight: 500; line-height: 1.28; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-family: var(--sans); font-size: 12px; }
.article-lead { margin: 28px 0 0; color: #5b5649; font-size: 21px; line-height: 1.85; }
.article-cover { margin: 38px 0; padding: 12px; border: 1px solid var(--line); }
.article-cover img { width: 100%; height: auto; }
.article-content { max-width: 720px; margin: 45px auto 0; overflow-wrap: anywhere; font-size: 19px; line-height: 2.1; }
.article-content h2 { margin: 1.9em 0 .8em; font-size: 31px; font-weight: 500; line-height: 1.45; }
.article-content h2::before { content: "§ "; color: var(--accent); }
.article-content h3 { margin: 1.7em 0 .7em; font-size: 24px; font-weight: 500; }
.article-content p, .article-content ul, .article-content ol { margin-bottom: 1.5em; }
.article-content img { height: auto; margin: 30px auto; }
.article-content blockquote { margin: 35px 0; padding: 0 25px; color: var(--accent); border-left: 1px solid var(--accent); font-size: 22px; font-style: italic; }
.article-content pre { max-width: 100%; overflow-x: auto; padding: 20px; color: var(--paper); background: var(--ink); font-family: monospace; font-size: 14px; }
.article-content table { display: block; width: 100%; max-width: 100%; margin: 30px 0; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: 13px; }
.article-content th, .article-content td { min-width: 120px; padding: 12px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: var(--paper-dark); }
.article-footer { max-width: 720px; margin: 42px auto 0; padding: 25px 0 60px; border-top: 1px solid var(--ink); font-family: var(--sans); font-size: 12px; }
.article-tags { display: flex; align-items: start; gap: 18px; margin-bottom: 22px; }
.article-tags ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.article-tags li::before { content: "#"; color: var(--accent); }
.original-link { margin: 0; color: var(--muted); }
.related-articles { padding-top: 0; }
.related-story-list { max-width: 880px; }

.about-intro { padding-bottom: 5px; }
.prose-panel { max-width: 850px; padding: 32px 0 32px 38px; border-left: 1px solid var(--accent); }
.prose-panel h2 { font-size: 35px; font-weight: 500; }
.prose-panel p:last-child { margin: 0; color: var(--muted); font-size: 19px; }
.contact-section { padding-top: 5px; }
.contact-panel { max-width: 850px; padding-top: 25px; border-top: 1px solid var(--ink); }
.contact-list { margin: 0; font-style: normal; }
.contact-list p { display: grid; grid-template-columns: 100px 1fr; gap: 20px; margin: 0; padding: 17px 0; border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-family: var(--sans); font-size: 12px; }
.contact-list strong { font-weight: 500; }
.error-panel { padding-block: 100px; text-align: center; }
.error-code { margin: 0; color: var(--accent); font-size: clamp(100px, 17vw, 180px); font-weight: 400; line-height: 1; }
.error-panel h1 { font-size: 42px; font-weight: 500; }
.error-panel .hero-actions { justify-content: center; margin-top: 28px; }

.site-footer { padding: 45px 0 25px; background: var(--paper-dark); border-top: 1px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; padding-bottom: 30px; }
.footer-brand strong { font-size: 25px; font-weight: 500; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); }
.footer-source { font-family: var(--sans); font-size: 12px; }
.footer-source p { margin-top: 0; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.related-links span { color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 25px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: 11px; }
.footer-legal p { margin: 0; }

@media (max-width: 900px) {
  .category-block { grid-template-columns: 220px minmax(0, 1fr); }
  .service-card { grid-template-columns: 50px 210px 1fr; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 1080px); }
  .masthead { min-height: 90px; }
  .primary-nav, .category-strip { display: none; }
  .mobile-nav { display: block; }
  .hero-aside { grid-template-columns: 100px 1fr; }
  .category-block { grid-template-columns: 1fr; gap: 15px; }
  .category-block .section-heading { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { font-size: 27px; }
  .brand-tagline { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 43px; }
  .hero-intro { font-size: 17px; }
  .hero-actions { gap: 12px; }
  .button { width: 100%; text-align: center; }
  .button-secondary { padding: 10px 20px; border: 1px solid var(--ink); }
  .hero-aside { grid-template-columns: 1fr; }
  .aside-label { grid-row: auto; }
  .hero-aside ul { display: block; }
  .section-block { padding-block: 48px; }
  .service-card { grid-template-columns: 38px 1fr; gap: 10px; }
  .service-card p { grid-column: 2; }
  .article-card { grid-template-columns: 1fr; gap: 20px; }
  .article-card.no-cover { padding-left: 0; }
  .article-media { aspect-ratio: 16 / 9; }
  .story-list li { grid-template-columns: 1fr; gap: 3px; }
  .pagination { flex-wrap: wrap; justify-content: center; }
  .page-numbers { order: 3; width: 100%; justify-content: center; }
  .article-header h1 { font-size: 36px; }
  .article-lead { font-size: 18px; }
  .article-content { font-size: 18px; }
  .article-tags { display: block; }
  .article-tags strong { display: block; margin-bottom: 10px; }
  .prose-panel { padding-left: 22px; }
  .contact-list p { grid-template-columns: 1fr; gap: 3px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
