:root {
    --bg: #f4f6f5;
    --surface: #ffffff;
    --surface-soft: #eef2f0;
    --ink: #18201e;
    --muted: #65706d;
    --line: #dbe2df;
    --accent: #167c70;
    --accent-soft: #dcefeb;
    --accent-deep: #0d5d55;
    --warm: #e5a73c;
    --shadow: 0 18px 50px rgba(32, 50, 45, .08);
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --serif: ui-serif, "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
    --bg: #111615;
    --surface: #19201e;
    --surface-soft: #202a27;
    --ink: #e8eeeb;
    --muted: #9aa8a4;
    --line: #303b38;
    --accent: #5cc5b7;
    --accent-soft: #173b36;
    --accent-deep: #8cddd2;
    --warm: #e8b45c;
    --shadow: 0 18px 55px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.reading-shell { width: min(820px, calc(100% - 48px)); }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%); padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 11px; transform: rotate(8deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span::before, .brand-mark span::after { content: ""; position: absolute; background: var(--accent); }
.brand-mark::before { width: 16px; height: 2px; }
.brand-mark::after { width: 2px; height: 16px; }
.brand-mark span::before { width: 13px; height: 2px; transform: rotate(45deg); }
.brand-mark span::after { width: 13px; height: 2px; transform: rotate(-45deg); }
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; }
.brand-mark.small::before { width: 12px; }
.brand-mark.small::after { height: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; letter-spacing: .04em; }
.brand-text small { margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .18em; }
.site-nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -10px; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav .nav-current a::after { transform: scaleX(1); }
.header-tools { display: flex; justify-self: end; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 39px; height: 39px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.icon-button:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

.home-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--accent-soft) 88%, transparent), transparent 26%), linear-gradient(130deg, var(--bg), color-mix(in srgb, var(--surface) 70%, var(--bg))); }
.home-hero::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent 72%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .75fr); align-items: center; min-height: 570px; gap: 80px; padding-block: 78px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.eyebrow > span { width: 20px; height: 1px; background: currentColor; }
.hero-copy h1 { margin: 22px 0 18px; font-family: var(--serif); font-size: clamp(44px, 5.2vw, 74px); font-weight: 650; letter-spacing: -.055em; line-height: 1.12; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 48px; padding: 0 20px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; box-shadow: 0 9px 24px rgba(20, 30, 27, .15); transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--accent-deep); transform: translateY(-2px); }
.text-button { display: inline-flex; gap: 14px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.text-button span { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.hero-panel { overflow: hidden; border: 1px solid color-mix(in srgb, var(--ink) 32%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .15em; }
.panel-lights { display: flex; gap: 5px; }
.panel-lights i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.panel-lights i:first-child { background: var(--warm); }
.panel-lights i:last-child { background: var(--accent); }
.panel-body { display: grid; grid-template-columns: 1fr 1fr; padding: 26px; }
.metric { display: grid; padding: 6px 18px 22px 0; border-right: 1px solid var(--line); }
.metric.wide { padding-left: 24px; border-right: 0; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { margin: 5px 0 -3px; font-family: var(--mono); font-size: 45px; line-height: 1.15; }
.metric small { color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .15em; }
.signal-line { grid-column: 1 / -1; display: flex; align-items: end; height: 50px; gap: 7px; padding-top: 20px; border-top: 1px solid var(--line); }
.signal-line span { flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--accent) 52%, var(--line)); }
.signal-line span:nth-child(1) { height: 22%; }.signal-line span:nth-child(2) { height: 46%; }.signal-line span:nth-child(3) { height: 35%; }.signal-line span:nth-child(4) { height: 80%; }.signal-line span:nth-child(5) { height: 57%; }.signal-line span:nth-child(6) { height: 100%; }.signal-line span:nth-child(7) { height: 74%; }
.panel-body > p { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.panel-body > p b { margin-right: auto; color: var(--ink); letter-spacing: .12em; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3bb482; box-shadow: 0 0 0 4px color-mix(in srgb, #3bb482 15%, transparent); }

.content-section { padding-block: 82px 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.section-heading h2 { margin: 7px 0 0; font-family: var(--serif); font-size: 36px; letter-spacing: -.035em; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 42px; }
.post-list { display: grid; gap: 18px; }
.post-card { overflow: hidden; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 3px 0 transparent; transition: transform .22s, border-color .22s, box-shadow .22s; }
.post-card.has-image { grid-template-columns: 225px minmax(0, 1fr); }
.post-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 12px 35px rgba(25, 55, 48, .08); transform: translateY(-3px); }
.post-card-image { min-height: 100%; background: var(--surface-soft); }
.post-card-image img { width: 100%; height: 100%; min-height: 225px; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-body { display: flex; flex-direction: column; min-width: 0; padding: 25px 27px 22px; }
.post-card-meta, .post-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.post-tag { overflow: hidden; max-width: 65%; padding: 3px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-deep); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.post-card h3 { margin: 13px 0 8px; font-family: var(--serif); font-size: 23px; letter-spacing: -.025em; line-height: 1.35; }
.post-card h3 a:hover { color: var(--accent); }
.post-card-body > p { display: -webkit-box; overflow: hidden; margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.post-card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--sans); letter-spacing: 0; }
.post-card-footer a { color: var(--ink); font-weight: 700; }
.post-card-footer a span { color: var(--accent); }
.home-sidebar { position: sticky; top: 108px; display: grid; gap: 18px; }
.sidebar-card { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.about-card { background: var(--ink); color: var(--bg); }
.card-kicker { color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.sidebar-card h3 { margin: 12px 0 10px; font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.sidebar-card > p { margin: 0 0 18px; color: color-mix(in srgb, currentColor 68%, transparent); font-size: 13px; }
.sidebar-card > a { color: var(--accent); font-size: 13px; font-weight: 700; }
.tag-cloud { display: grid; margin-top: 15px; }
.tag-cloud a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tag-cloud a:last-child { border-bottom: 0; }
.tag-cloud a:hover span { color: var(--accent); }
.tag-cloud small { color: var(--muted); font-family: var(--mono); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 18px; color: var(--muted); font-size: 12px; }
.pagination a:last-child { justify-self: end; }
.pagination a:hover { color: var(--accent); }

.article-page { padding-top: 78px; }
.article-header { text-align: center; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--accent); }
.article-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.article-tags a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: 11px; }
.article-header h1 { margin: 18px auto 20px; font-family: var(--serif); font-size: clamp(39px, 5vw, 64px); letter-spacing: -.045em; line-height: 1.18; }
.article-deck { max-width: 660px; margin: 0 auto 25px; color: var(--muted); font-size: 17px; }
.article-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.article-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.article-feature { overflow: hidden; width: min(1100px, calc(100% - 48px)); margin-top: 48px; border-radius: 17px; background: var(--surface-soft); box-shadow: var(--shadow); }
.article-feature img { width: 100%; max-height: 640px; object-fit: cover; }
.article-feature figcaption { padding: 9px 15px; color: var(--muted); font-size: 11px; text-align: center; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 760px) 100px; justify-content: center; align-items: start; gap: 42px; margin-top: 64px; }
.article-layout.no-rail { grid-template-columns: minmax(0, 760px); }
.article-rail { position: sticky; top: 118px; }
.toc-card { padding-left: 15px; border-left: 1px solid var(--line); }
.toc-card > span { display: block; margin-bottom: 12px; color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.toc-card nav { display: grid; gap: 9px; }
.toc-card a { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.toc-card a:hover { color: var(--accent); }
.toc-card .toc-h3 { padding-left: 8px; }.toc-card .toc-h4 { padding-left: 16px; }
.article-side-note { display: flex; justify-content: center; }
.vertical-label { position: sticky; top: 120px; color: var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .18em; writing-mode: vertical-rl; }
.gh-content { min-width: 0; font-family: var(--serif); font-size: 17px; line-height: 1.95; }
.gh-content > *:first-child { margin-top: 0; }
.gh-content p { margin: 1.4em 0; }
.gh-content h2, .gh-content h3, .gh-content h4, .gh-content h5 { scroll-margin-top: 110px; color: var(--ink); font-family: var(--sans); line-height: 1.35; }
.gh-content h2 { margin: 2.5em 0 .8em; padding-bottom: .45em; border-bottom: 1px solid var(--line); font-size: 30px; letter-spacing: -.03em; }
.gh-content h3 { margin: 2.1em 0 .7em; font-size: 23px; }
.gh-content h4 { margin: 1.8em 0 .6em; color: var(--accent-deep); font-size: 18px; }
.gh-content h5 { margin: 1.6em 0 .5em; font-size: 16px; }
.gh-content a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.gh-content strong { color: var(--ink); }
.gh-content ul, .gh-content ol { padding-left: 1.45em; }
.gh-content li { margin: .45em 0; padding-left: .2em; }
.gh-content li::marker { color: var(--accent); }
.gh-content blockquote { margin: 2em 0; padding: 18px 24px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); color: var(--ink); font-style: normal; }
.gh-content blockquote p { margin: 0; }
.gh-content img { height: auto; margin: 2.3em auto; border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 40, 34, .1); }
.gh-content figure { margin: 2.5em 0; }
.gh-content figure img { margin: 0 auto; }
.gh-content .kg-width-wide { position: relative; left: 50%; width: min(1000px, calc(100vw - 48px)); max-width: none; transform: translateX(-50%); }
.gh-content .kg-width-full { position: relative; left: 50%; width: 100vw; max-width: none; transform: translateX(-50%); }
.gh-content figcaption { margin-top: 9px; color: var(--muted); font-family: var(--sans); font-size: 11px; text-align: center; }
.gh-content code { padding: .18em .38em; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-soft); font-family: var(--mono); font-size: .84em; }
.gh-content pre { overflow-x: auto; margin: 2em 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: #161d1b; color: #dce8e4; line-height: 1.65; }
.gh-content pre code { padding: 0; border: 0; background: none; color: inherit; }
.table-scroll { overflow-x: auto; margin: 2em 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.gh-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; }
.gh-content th, .gh-content td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.gh-content th { background: var(--surface-soft); color: var(--ink); }
.gh-content hr { margin: 3em 0; border: 0; border-top: 1px solid var(--line); }
.article-footer { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-top: 70px; margin-bottom: 100px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-footer > div > span { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .15em; }
.article-footer h2 { margin: 7px 0 0; font-family: var(--serif); font-size: 25px; }
.article-footer > a { color: var(--accent); font-size: 13px; font-weight: 700; }

.archive-header { padding-top: 100px; padding-bottom: 48px; border-bottom: 1px solid var(--line); text-align: center; }
.archive-header h1 { margin: 14px 0 8px; font-family: var(--serif); font-size: 54px; }
.archive-header p { margin: 0; color: var(--muted); }
.compact-section { max-width: 900px; }
.archive-list { max-width: 780px; margin-inline: auto; }
.error-page { display: grid; place-items: center; min-height: 65vh; padding-block: 80px; text-align: center; }
.error-page > span { color: var(--accent); font-family: var(--mono); font-size: 80px; font-weight: 800; }
.error-page h1 { margin: 0; font-family: var(--serif); font-size: 40px; }
.error-page p { margin: 8px 0 28px; color: var(--muted); }

.site-footer { padding-top: 48px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.footer-grid p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.footer-status { display: grid; grid-template-columns: auto auto; align-items: center; gap: 5px 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 11px; }
.footer-status .status-dot { grid-row: 1 / 3; }
.footer-status strong { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 58px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.record-links { display: flex; gap: 18px; }
.record-links a:hover { color: var(--accent); }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr 330px; gap: 38px; }
    .content-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 25px; }
    .post-card.has-image { grid-template-columns: 185px minmax(0, 1fr); }
    .article-layout { grid-template-columns: minmax(0, 760px); }
    .article-rail, .article-side-note { display: none; }
}

@media (max-width: 760px) {
    .shell, .reading-shell, .article-feature { width: min(100% - 30px, 680px); }
    .site-header { background: var(--bg); backdrop-filter: none; }
    .header-inner { grid-template-columns: 1fr auto; min-height: 67px; }
    .site-nav { position: fixed; right: 15px; bottom: 16px; left: 15px; z-index: 40; padding: 11px 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
    .site-nav ul { justify-content: center; gap: 28px; }
    .site-nav a { font-size: 12px; }
    .site-nav a::after { bottom: -6px; }
    .brand-text small { display: none; }
    .header-tools { grid-column: 2; }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 45px; padding-block: 60px; }
    .hero-copy h1 { font-size: clamp(40px, 12vw, 57px); }
    .hero-panel { width: 100%; max-width: 440px; transform: none; }
    .content-section { padding-block: 64px 78px; }
    .section-heading { align-items: start; }
    .section-heading > p { display: none; }
    .content-layout { grid-template-columns: 1fr; }
    .home-sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .post-card.has-image { grid-template-columns: 150px minmax(0, 1fr); }
    .post-card-image img { min-height: 100%; }
    .post-card-body { padding: 20px; }
    .post-card-body > p { -webkit-line-clamp: 2; }
    .article-page { padding-top: 52px; }
    .article-header h1 { font-size: clamp(36px, 10vw, 52px); }
    .article-layout { margin-top: 44px; }
    .gh-content { font-size: 16px; line-height: 1.9; }
    .gh-content h2 { font-size: 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-status { justify-self: start; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 14px 82px; }
    .record-links { flex-wrap: wrap; gap: 5px 14px; }
}

@media (max-width: 520px) {
    .brand-mark { width: 34px; height: 34px; }
    .brand-text strong { font-size: 14px; }
    .icon-button { width: 36px; height: 36px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
    .panel-body { padding: 20px; }
    .metric strong { font-size: 37px; }
    .home-sidebar { grid-template-columns: 1fr; }
    .post-card.has-image { grid-template-columns: 1fr; }
    .post-card-image { max-height: 200px; }
    .post-card-image img { height: 200px; }
    .post-card-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
    .post-card h3 { font-size: 22px; }
    .article-meta { gap: 8px; }
    .article-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Black-and-white editorial edition */
:root {
    --bg: #f6f6f4;
    --surface: #ffffff;
    --surface-soft: #ececea;
    --ink: #111111;
    --muted: #686866;
    --line: #bdbdb8;
    --accent: #b72f25;
    --accent-soft: #f1ddda;
    --accent-deep: #8f2019;
    --warm: #b72f25;
    --shadow: none;
    --sans: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --serif: Georgia, "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
}

:root[data-theme="dark"] {
    --bg: #111111;
    --surface: #181818;
    --surface-soft: #242424;
    --ink: #f2f2ef;
    --muted: #a6a6a1;
    --line: #444440;
    --accent: #e04b40;
    --accent-soft: #3a201e;
    --accent-deep: #ff746a;
    --warm: #e04b40;
}

body { line-height: 1.75; }
.shell { width: min(1240px, calc(100% - 64px)); }
.reading-shell { width: min(850px, calc(100% - 64px)); }
.site-header { border-bottom: 4px solid var(--ink); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: none; }
.header-inner { min-height: 74px; }
.brand { gap: 10px; }
.brand-mark { width: 26px; height: 26px; border: 0; border-radius: 0; background: var(--accent); transform: none; }
.brand-mark::before, .brand-mark::after, .brand-mark span::before, .brand-mark span::after { background: var(--surface); }
.brand-mark::before { width: 10px; }
.brand-mark::after { height: 10px; }
.brand-mark span::before, .brand-mark span::after { width: 8px; }
.brand-mark.small { width: 22px; height: 22px; border-radius: 0; }
.brand-text strong { letter-spacing: -.02em; }
.brand-text small { color: var(--muted); }
.site-nav a { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.site-nav a::after { bottom: -8px; height: 3px; }
.icon-button { border-color: var(--ink); border-radius: 0; background: transparent; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); transform: none; }

.home-hero { overflow: visible; border-bottom: 1px solid var(--line); background: var(--bg); }
.home-hero::before { display: none; }
.editorial-hero { display: grid; grid-template-columns: .8fr 3.6fr 1.25fr; align-items: end; min-height: 390px; gap: 36px; padding-block: 74px 48px; }
.hero-index { align-self: start; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.7; letter-spacing: .12em; }
.editorial-hero h1 { margin: 0; font-family: var(--sans); font-size: clamp(64px, 8.5vw, 112px); font-weight: 800; letter-spacing: -.09em; line-height: .82; white-space: nowrap; }
.hero-metrics { display: flex; justify-content: flex-end; gap: 30px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hero-metrics span { display: grid; gap: 2px; }
.hero-metrics strong { color: var(--ink); font-family: var(--mono); font-size: 16px; font-weight: 700; white-space: nowrap; }
.hero-metrics strong b { font-weight: inherit; }

.content-section { padding-block: 58px 108px; }
.section-heading { align-items: baseline; margin-bottom: 0; padding-bottom: 15px; border-bottom: 3px solid var(--ink); }
.section-heading h2 { margin: 0; font-family: var(--sans); font-size: 26px; letter-spacing: -.04em; }
.section-heading > span { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.content-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
.post-list { gap: 0; }
.post-card, .post-card.has-image { overflow: visible; display: grid; grid-template-columns: 54px minmax(0, 1fr) 160px; align-items: center; min-height: 210px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; transition: none; }
.post-card:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.post-card-number { align-self: start; padding-top: 34px; color: var(--accent); font-family: var(--mono); font-size: 21px; font-weight: 700; }
.post-card-body { padding: 32px 30px 28px 0; }
.post-card-meta { justify-content: flex-start; gap: 13px; color: var(--muted); }
.post-tag { max-width: 65%; padding: 0; border-radius: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.post-card h3 { margin: 10px 0 9px; font-family: var(--sans); font-size: clamp(24px, 3vw, 36px); letter-spacing: -.045em; line-height: 1.12; }
.post-card h3 a:hover { color: var(--accent); }
.post-card-body > p { margin-bottom: 17px; font-family: var(--serif); font-size: 14px; line-height: 1.75; }
.post-card-footer { justify-content: flex-start; gap: 22px; padding-top: 0; border: 0; font-size: 10px; }
.post-card-footer a { color: var(--ink); }
.post-card-image { width: 160px; height: 104px; min-height: 0; border: 1px solid var(--ink); background: var(--ink); filter: grayscale(1); }
.post-card-image img { width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: .82; transition: opacity .2s; }
.post-card:hover .post-card-image img { opacity: 1; transform: none; }
.post-card-arrow { justify-self: end; color: var(--accent); font-size: 28px; }
.home-sidebar { top: 104px; margin-top: 30px; }
.sidebar-card { padding: 20px 0; border: 0; border-top: 4px solid var(--ink); border-radius: 0; background: transparent; }
.card-kicker { color: var(--accent); }
.sidebar-card h3 { font-family: var(--sans); font-size: 19px; }
.tag-cloud a { padding: 11px 0; }
.tag-cloud a:hover span { color: var(--accent); }
.pagination { margin-top: 30px; padding-top: 18px; border-top: 3px solid var(--ink); font-family: var(--mono); }

.article-page { padding-top: 70px; }
.article-header { text-align: left; }
.back-link { margin-bottom: 42px; font-family: var(--mono); }
.article-tags { justify-content: flex-start; }
.article-tags a { padding: 0; border: 0; border-radius: 0; color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.article-header h1 { margin: 20px 0 24px; font-family: var(--sans); font-size: clamp(48px, 7vw, 86px); font-weight: 800; letter-spacing: -.07em; line-height: .98; }
.article-deck { max-width: 700px; margin: 0 0 28px; padding-top: 18px; border-top: 4px solid var(--accent); color: var(--ink); font-family: var(--serif); font-size: 18px; }
.article-meta { justify-content: flex-start; font-family: var(--mono); font-size: 10px; }
.article-meta i { border-radius: 0; background: var(--accent); }
.article-feature { width: min(1180px, calc(100% - 64px)); margin-top: 52px; border: 1px solid var(--ink); border-radius: 0; box-shadow: none; filter: grayscale(1); }
.article-layout { grid-template-columns: 190px minmax(0, 780px) 100px; gap: 48px; margin-top: 72px; }
.toc-card { padding-left: 16px; border-left: 3px solid var(--ink); }
.toc-card > span { color: var(--accent); }
.vertical-label { color: var(--muted); }
.gh-content { font-size: 17px; line-height: 2; }
.gh-content h2, .gh-content h3, .gh-content h4, .gh-content h5 { font-family: var(--sans); }
.gh-content h2 { border-bottom: 3px solid var(--ink); font-size: 32px; }
.gh-content h3 { font-size: 24px; }
.gh-content blockquote { padding: 18px 0 18px 25px; border-left: 4px solid var(--accent); border-radius: 0; background: transparent; }
.gh-content img { border-radius: 0; box-shadow: none; }
.gh-content code { border-radius: 0; }
.gh-content pre, .table-scroll { border-radius: 0; }
.archive-header { border-bottom: 4px solid var(--ink); text-align: left; }
.archive-header h1 { font-family: var(--sans); font-size: clamp(48px, 7vw, 82px); letter-spacing: -.065em; }

.site-footer { padding-top: 0; border-top: 0; background: var(--ink); color: var(--bg); }
.footer-grid { padding-block: 30px; }
.footer-brand { font-family: var(--sans); font-size: 16px; }
.footer-status { padding: 0; border: 0; border-radius: 0; background: transparent; }
.status-dot { border-radius: 0; background: var(--accent); box-shadow: none; }
.footer-status strong { color: var(--bg); }
.footer-bottom { border-top-color: color-mix(in srgb, var(--bg) 28%, transparent); color: color-mix(in srgb, var(--bg) 68%, transparent); }

@media (max-width: 980px) {
    .editorial-hero { grid-template-columns: .55fr 3fr 1.2fr; }
    .content-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 36px; }
    .post-card, .post-card.has-image { grid-template-columns: 44px minmax(0, 1fr) 130px; }
    .post-card-image { width: 130px; height: 92px; }
}

@media (max-width: 760px) {
    .shell, .reading-shell, .article-feature { width: min(100% - 30px, 680px); }
    .site-header { background: var(--surface); }
    .site-nav { border: 2px solid var(--ink); border-radius: 0; background: var(--surface); box-shadow: none; backdrop-filter: none; }
    .editorial-hero { grid-template-columns: 1fr; min-height: 0; gap: 30px; padding-block: 48px 38px; }
    .editorial-hero h1 { font-size: clamp(50px, 15vw, 88px); }
    .hero-metrics { justify-content: flex-start; }
    .content-section { padding-block: 48px 82px; }
    .content-layout { grid-template-columns: 1fr; }
    .home-sidebar { grid-template-columns: 1fr; }
    .post-card, .post-card.has-image { grid-template-columns: 38px minmax(0, 1fr) 110px; }
    .post-card-image { width: 110px; height: 78px; }
    .article-header h1 { font-size: clamp(44px, 13vw, 68px); }
}

@media (max-width: 520px) {
    .brand-mark { width: 25px; height: 25px; }
    .section-heading > span { display: none; }
    .post-card, .post-card.has-image { grid-template-columns: 32px minmax(0, 1fr); }
    .post-card-number { padding-top: 27px; font-size: 17px; }
    .post-card-body { padding: 26px 0 24px; }
    .post-card-image, .post-card-arrow { display: none; }
    .post-card h3 { font-size: 25px; }
    .article-feature { filter: none; }
}
