/*
Theme Name: 墨白 Ink
Theme URI: https://example.com/mobai
Author: Kaxim
Author URI: https://example.com
Description: 极简东方阅读主题。单栏、超大站点标题、宋体正文、朱砂印章与留白；内置日夜双主题，可跟随系统或手动切换。经典 PHP 主题，零前端依赖。
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mobai
Tags: blog, one-column, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ============================================================
   0. 字体
   ============================================================ */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-var.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Fira Code";
	src: url("assets/fonts/fira-code-var.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* ============================================================
   1. 设计令牌
   ============================================================ */
:root,
html[data-theme="day"] {
	--paper: #fbfaf6;
	--paper-soft: #f4f1e8;
	--ink: #0e0e0c;
	--secondary: #5c574c;
	--muted: #7c776c;
	--wash: #edeae2;
	--seal: #b33a2b;
	--line: #d9d4c8;
	--line-strong: #bfb8a9;
	--code-bg: #efebe2;
	--code-fg: #2b2823;
	--selection-bg: #0e0e0c;
	--selection-fg: #fbfaf6;
	--shadow: rgba(14, 14, 12, .08);
	--grain-opacity: .5;
	--image-filter: none;
	color-scheme: light;
}
html[data-theme="night"] {
	--paper: #0b0b09;
	--paper-soft: #131210;
	--ink: #edeae2;
	--secondary: #b8b2a6;
	--muted: #989286;
	--wash: #171612;
	--seal: #d05a43;
	--line: #2b2823;
	--line-strong: #3d3932;
	--code-bg: #151411;
	--code-fg: #e9e4d8;
	--selection-bg: #d05a43;
	--selection-fg: #0b0b09;
	--shadow: rgba(0, 0, 0, .35);
	--grain-opacity: .34;
	--image-filter: brightness(.82) contrast(1.02);
	color-scheme: dark;
}

:root {
	--serif: "Source Serif 4", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
	--sans: "Inter", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	--mono: "Fira Code", "SFMono-Regular", Consolas, monospace;
	--wrap: 1040px;
	--pad: 48px;
	--rail: 76px;
}

/* ============================================================
   2. 基础
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .4s ease, color .4s ease;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 999;
	pointer-events: none;
	opacity: var(--grain-opacity);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

::selection {
	background: var(--selection-bg);
	color: var(--selection-fg);
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 1.5px solid var(--seal);
	outline-offset: 4px;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
img, svg { max-width: 100%; }
img { height: auto; }
button { font: inherit; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--ink);
	clip: auto !important;
	clip-path: none;
	color: var(--paper);
	display: block;
	font-family: var(--sans);
	font-size: 13px;
	height: auto;
	left: 16px;
	line-height: 1.6;
	padding: 12px 18px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

.skip-link { position: absolute; left: -9999px; top: 0; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--pad);
}

/* ============================================================
   3. 侧边书口
   ============================================================ */
.rail {
	position: fixed;
	top: 0;
	bottom: 0;
	width: var(--rail);
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 30px 0;
	pointer-events: none;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .24em;
	color: var(--muted);
}
.rail-left { left: 0; border-right: 1px solid var(--line); }
.rail-right { right: 0; border-left: 1px solid var(--line); }
.rail-text { writing-mode: vertical-rl; text-transform: uppercase; }
.rail-seal {
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	background: var(--seal);
	color: var(--paper);
	font-family: var(--serif);
	font-size: 13px;
	letter-spacing: 0;
	writing-mode: horizontal-tb;
	transform: rotate(-2deg);
}

/* ============================================================
   4. 页头 / 导航 / 日夜切换
   ============================================================ */
.site-header { position: relative; z-index: 30; }

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 30px 0;
	border-bottom: 1px solid var(--ink);
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.brand-link {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-width: 0;
}
.brand-title {
	display: inline-block;
	font-family: var(--serif);
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .06em;
	color: var(--ink);
	white-space: nowrap;
	transition: color .25s ease;
}
.brand-link:hover .brand-title,
.brand-link:focus-visible .brand-title { color: var(--seal); }
.brand-latin {
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}
.custom-logo-link { display: inline-flex; flex: 0 0 auto; }
.custom-logo-link img { width: auto; max-height: 42px; border-radius: 2px; }

.top-right {
	display: flex;
	align-items: center;
	gap: 28px;
	min-width: 0;
}

.site-nav-list {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 0;
	margin: 0;
	list-style: none;
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: .16em;
}
.site-nav-list li { position: relative; }
.site-nav-list a {
	display: inline-block;
	padding: 3px 0;
	position: relative;
	transition: color .2s ease;
}
.site-nav-list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--seal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.site-nav-list a:hover { color: var(--seal); }
.site-nav-list a:hover::after { transform: scaleX(1); }
.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a,
.site-nav-list .current-menu-ancestor > a,
.site-nav-list .current_page_ancestor > a {
	color: var(--seal);
}
.site-nav-list .current-menu-item > a::after,
.site-nav-list .current_page_item > a::after { transform: scaleX(1); }

.site-nav .menu-item-has-children > a::before {
	content: "·";
	margin-right: 6px;
	color: var(--muted);
}

.theme-toggle {
	--size: 36px;
	width: var(--size);
	height: var(--size);
	flex: 0 0 var(--size);
	display: inline-grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.theme-toggle:hover {
	border-color: var(--seal);
	color: var(--seal);
	background: var(--paper-soft);
}
.theme-toggle__icon { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="night"] .theme-toggle .icon-sun { display: block; }
html[data-theme="night"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   5. 首页 Hero
   ============================================================ */
.hero-wrap { border-bottom: 1px solid var(--ink); }
.hero {
	position: relative;
	padding: 88px 0 56px;
	overflow: hidden;
}
.enso {
	position: absolute;
	top: -40px;
	right: -90px;
	width: 560px;
	height: 560px;
	color: var(--ink);
	opacity: .085;
	pointer-events: none;
}
html[data-theme="night"] .enso { opacity: .07; }
.enso path { stroke: currentColor; }

.hero-kicker {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--muted);
}
.hero-kicker::after {
	content: "";
	width: 64px;
	height: 1px;
	background: var(--line);
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	gap: 40px;
	align-items: end;
	margin-top: 34px;
}
.hero-grid--solo-aside { grid-template-columns: 1fr; }
.hero-grid--solo-aside .hero-aside {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 32px;
	padding-left: 0;
	border-left: 0;
}
.hero-grid--solo-aside .hero-vertical { height: auto; }
.hero-title {
	font-family: var(--serif);
	font-weight: 500;
	line-height: .86;
	letter-spacing: -.03em;
	white-space: nowrap;
}
.hero-title--short { font-size: clamp(148px, 19vw, 268px); }
.hero-title--medium { font-size: clamp(96px, 13vw, 184px); }
.hero-title--long {
	font-size: clamp(56px, 8.5vw, 118px);
	line-height: 1.02;
	white-space: normal;
	overflow-wrap: anywhere;
}
.hero-aside {
	padding: 0 0 18px 30px;
	border-left: 1px solid var(--line);
}
.hero-vertical {
	writing-mode: vertical-rl;
	font-family: var(--serif);
	font-size: 15px;
	line-height: 1.7;
	letter-spacing: .24em;
	color: var(--secondary);
	height: 270px;
	margin-left: auto;
}
.seal {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	background: var(--seal);
	color: var(--paper);
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
	transform: rotate(-2.5deg);
}
.hero-aside .seal { margin: 26px 0 0 auto; }

.hero-foot {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	margin-top: 54px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}
.tagline {
	font-family: var(--serif);
	font-size: 21px;
	line-height: 1.6;
	letter-spacing: .12em;
}
.hero-meta {
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ============================================================
   6. 首页目录 / 文章列表
   ============================================================ */
.index-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 26px 0 18px;
	border-bottom: 1px solid var(--ink);
}
.index-head .label,
.label {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--ink);
}
.index-head .count,
.count {
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted);
}

.entry-list { border-bottom: 1px solid var(--line); }
.entry {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 46px;
	gap: 26px;
	align-items: start;
	padding: 32px 0 34px;
	border-bottom: 1px solid var(--line);
	transition: background-color .25s ease;
}
.entry:last-child { border-bottom: 0; }
.entry:hover { background: var(--paper-soft); }
.entry-no {
	padding-top: 7px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .16em;
	color: var(--muted);
}
.entry-main { min-width: 0; }
.entry-meta {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 9px;
	font-family: var(--sans);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.entry-meta .entry-cat {
	color: var(--seal);
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
	transition: border-color .2s ease;
}
.entry-meta .entry-cat:hover { border-color: var(--seal); }
.entry-title {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.42;
	letter-spacing: .01em;
	transition: color .2s ease;
}
.entry-title a { display: inline; }
.entry-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.entry:hover .entry-title { color: var(--seal); }
.entry-excerpt {
	position: relative;
	z-index: 2;
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.8;
	color: var(--secondary);
}
.entry-arrow {
	padding-top: 8px;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1;
	color: var(--muted);
	text-align: right;
	transition: transform .25s ease, color .25s ease;
}
.entry:hover .entry-arrow {
	transform: translate(5px, -5px);
	color: var(--seal);
}

.entry--lead { padding: 46px 0 50px; }
.entry--lead .entry-no { color: var(--seal); }
/* 首篇不再放大标题，列表标题统一字号。 */
.entry--lead .entry-excerpt {
	margin-top: 16px;
	font-size: 16.5px;
}
.entry--lead .entry-arrow { padding-top: 16px; }

/* ============================================================
   7. 引言带
   ============================================================ */
.interlude {
	position: relative;
	margin-top: 92px;
	padding: 92px 0;
	background: var(--wash);
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	text-align: center;
	overflow: hidden;
	transition: background-color .4s ease;
}
.interlude::before,
.interlude::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--line);
}
.interlude::before { left: 72px; }
.interlude::after { right: 72px; }
.interlude-inner {
	position: relative;
	z-index: 1;
	max-width: 920px;
	margin-inline: auto;
	padding-inline: var(--pad);
}
.interlude-seal {
	width: 58px;
	height: 58px;
	margin: 0 auto 34px;
	display: grid;
	place-items: center;
	background: var(--seal);
	color: var(--paper);
	font-family: var(--serif);
	font-size: 30px;
	line-height: 1;
	transform: rotate(-3deg);
}
.interlude-label {
	margin: -8px 0 24px;
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--muted);
}
.interlude-quote {
	font-family: var(--serif);
	font-size: clamp(30px, 3.4vw, 50px);
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: .06em;
}
.interlude-quote p { margin: 0; }
.interlude-quote p + p { margin-top: .6em; }
.interlude-cite {
	display: block;
	margin-top: 30px;
	font-family: var(--mono);
	font-size: 9.5px;
	font-style: normal;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ============================================================
   8. 首页关于
   ============================================================ */
.about {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr) 210px;
	gap: 48px;
	align-items: start;
	padding: 88px 0 96px;
	border-bottom: 1px solid var(--ink);
}
.about--no-label { grid-template-columns: minmax(0, 1fr) 210px; }
.about--no-facts { grid-template-columns: 180px minmax(0, 1fr); }
.about--no-label.about--no-facts { grid-template-columns: 1fr; }
.about .label { padding-top: 12px; color: var(--muted); }
.about-body .lead {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.65;
	letter-spacing: .02em;
}
.about-body p + p {
	margin-top: 22px;
	font-size: 15.5px;
	line-height: 1.9;
	color: var(--secondary);
	max-width: 36em;
}
.about-link {
	display: inline-block;
	margin-top: 24px;
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--ink);
	padding-bottom: 4px;
	transition: color .2s ease, border-color .2s ease;
}
.about-link:hover { color: var(--seal); border-color: var(--seal); }
.facts { display: grid; gap: 18px; padding-top: 10px; }
.facts div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.facts dt {
	font-family: var(--sans);
	font-size: 10.5px;
	letter-spacing: .14em;
	color: var(--muted);
}
.facts dd {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
}

/* ============================================================
   9. 页脚
   ============================================================ */
.site-footer {
	padding-top: 34px;
	overflow: hidden;
}
.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 26px;
}
.footer-copy {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .1em;
	color: var(--muted);
}
.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .14em;
	color: var(--muted);
}
.footer-nav a { transition: color .2s ease; }
.footer-nav a:hover { color: var(--seal); }
.footer-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	padding: 0;
	margin: 0;
	list-style: none;
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .14em;
	color: var(--muted);
}
.footer-nav-list a { transition: color .2s ease; }
.footer-nav-list a:hover { color: var(--seal); }
.footer-mark {
	margin: 0 -8px;
	font-family: "Inter", sans-serif;
	font-size: clamp(84px, 11.4vw, 164px);
	font-weight: 900;
	line-height: .8;
	letter-spacing: -.045em;
	text-align: center;
	color: transparent;
	-webkit-text-stroke: 1px var(--line-strong);
	user-select: none;
	white-space: nowrap;
}
.footer-mark--long { font-size: clamp(52px, 8vw, 112px); letter-spacing: -.03em; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0 26px;
	border-top: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 8.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ============================================================
   10. 通用页面头 / 归档 / 搜索
   ============================================================ */
.page-shell { padding-block: 64px 96px; }
.page-head {
	padding: 26px 0 34px;
	border-bottom: 1px solid var(--ink);
	margin-bottom: 8px;
}
.page-kicker {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--muted);
}
.page-kicker::after {
	content: "";
	width: 64px;
	height: 1px;
	background: var(--line);
}
.page-title {
	font-family: var(--serif);
	font-size: clamp(26px, 2.6vw, 30px);
	font-weight: 500;
	line-height: 1.28;
	letter-spacing: -.01em;
}
.page-description {
	max-width: 38em;
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.9;
	color: var(--secondary);
}
.page-description p { margin: 0 0 1em; }
.page-description .search-form { margin-top: 24px; }
.page-count {
	margin-top: 18px;
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

.empty-state {
	padding: 80px 0;
	text-align: center;
}
.empty-state .seal { margin: 0 auto 30px; }
.empty-state h2 {
	font-family: var(--serif);
	font-size: 34px;
	font-weight: 500;
	line-height: 1.4;
}
.empty-state p {
	margin-top: 14px;
	font-size: 15px;
	color: var(--secondary);
}
.empty-state .search-form {
	max-width: 460px;
	margin: 32px auto 0;
}

/* ============================================================
   11. 分页
   ============================================================ */
.pagination { margin-top: 52px; }
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .1em;
}
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--line);
	color: var(--muted);
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.pagination .page-numbers:hover { color: var(--seal); border-color: var(--seal); }
.pagination .page-numbers.current {
	background: var(--seal);
	border-color: var(--seal);
	color: var(--paper);
}
.pagination .prev,
.pagination .next { padding-inline: 14px; }
.pagination .dots { border-color: transparent; }

/* ============================================================
   12. 单篇 / 页面正文
   ============================================================ */
.single-shell { padding-block: 76px 0; }
.single-head {
	max-width: 800px;
	margin-inline: auto;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--line);
}
.single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-family: var(--sans);
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.single-meta .single-cat { color: var(--seal); }
.single-meta .dot { color: var(--line-strong); }
.single-title {
	margin-top: 20px;
	font-family: var(--serif);
	font-size: clamp(26px, 2.6vw, 30px);
	font-weight: 500;
	line-height: 1.28;
	letter-spacing: -.01em;
}
.single-dek {
	max-width: 38em;
	margin-top: 22px;
	font-size: 18px;
	line-height: 1.9;
	color: var(--secondary);
}
.single-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 24px;
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
.single-byline a { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: color .2s ease, border-color .2s ease; }
.single-byline a:hover { color: var(--seal); border-color: var(--seal); }
.single-cover {
	max-width: 960px;
	margin: 48px auto 0;
}
.single-cover img {
	display: block;
	width: 100%;
	height: auto;
	filter: var(--image-filter);
	transition: filter .4s ease;
}
.single-cover figcaption {
	margin-top: 10px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .14em;
	color: var(--muted);
	text-align: right;
}

.prose {
	max-width: 720px;
	margin: 56px auto 0;
	font-family: var(--serif);
	font-size: 18px;
	line-height: 1.95;
	color: var(--ink);
	overflow-wrap: break-word;
}
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.55em; }
.prose a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--seal);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color .2s ease;
}
.prose a:hover { color: var(--seal); }
.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .01em;
}
.prose h2 { margin: 2.4em 0 .8em; font-size: 34px; }
.prose h3 { margin: 2em 0 .7em; font-size: 26px; }
.prose h4 { margin: 1.8em 0 .6em; font-size: 21px; }
.prose h5,
.prose h6 { margin: 1.6em 0 .6em; font-size: 18px; letter-spacing: .06em; }
.prose ul,
.prose ol { margin: 0 0 1.55em 1.4em; padding: 0; }
.prose li { margin: .35em 0; }
.prose li > ul,
.prose li > ol { margin-bottom: 0; }
.prose blockquote {
	position: relative;
	margin: 2em 0;
	padding: .2em 0 .2em 1.6em;
	border-left: 1px solid var(--seal);
	font-size: 21px;
	line-height: 1.8;
	color: var(--secondary);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite {
	display: block;
	margin-top: .8em;
	font-family: var(--mono);
	font-size: 9.5px;
	font-style: normal;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}
.prose hr {
	width: 80px;
	margin: 3em auto;
	border: 0;
	border-top: 1px solid var(--line-strong);
}
.prose code,
.prose kbd,
.prose samp {
	padding: .15em .4em;
	background: var(--code-bg);
	color: var(--code-fg);
	font-family: var(--mono);
	font-size: .82em;
}
.prose pre {
	margin: 2em 0;
	padding: 24px 26px;
	background: var(--code-bg);
	color: var(--code-fg);
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 13.5px;
	line-height: 1.7;
	tab-size: 4;
}
.prose pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.prose figure { margin: 2.2em 0; }
.prose figure img { display: block; margin-inline: auto; filter: var(--image-filter); }
.prose figcaption,
.prose .wp-element-caption {
	margin-top: .8em;
	font-family: var(--mono);
	font-size: 9.5px;
	line-height: 1.7;
	letter-spacing: .08em;
	color: var(--muted);
	text-align: center;
}
.prose img { max-width: 100%; height: auto; }
.prose table {
	width: 100%;
	margin: 2em 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.7;
}
.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.prose th { font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-quote { margin: 2em 0; padding-left: 1.6em; }
.prose .wp-block-pullquote {
	margin: 2.6em 0;
	padding: 1.6em 0;
	border-top: 1px solid var(--line-strong);
	border-bottom: 1px solid var(--line-strong);
	text-align: center;
}
.prose .wp-block-pullquote p { font-size: 26px; line-height: 1.6; }
.prose .wp-block-separator { border-color: var(--line-strong); }
.prose .wp-block-button__link {
	border-radius: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: .12em;
	padding: 12px 22px;
}
.prose .wp-block-image.alignwide,
.prose .wp-block-image.alignfull,
.prose .alignwide,
.prose .alignfull {
	max-width: none;
}
.prose .alignwide {
	width: min(960px, calc(100vw - 40px));
	margin-left: 50%;
	transform: translateX(-50%);
}
.prose .alignfull {
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}
.prose iframe,
.prose video,
.prose embed { max-width: 100%; }
.prose .wp-caption { max-width: 100%; }

.single-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	max-width: 720px;
	margin: 48px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .08em;
}
.single-tags a {
	padding: 4px 9px;
	border: 1px solid var(--line);
	color: var(--muted);
	transition: color .2s ease, border-color .2s ease;
}
.single-tags a:hover { color: var(--seal); border-color: var(--seal); }
.single-edit {
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}
.single-edit:hover { color: var(--seal); }

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	max-width: 960px;
	margin: 72px auto 0;
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}
.post-nav-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 24px;
	border-right: 1px solid var(--line);
	transition: background-color .25s ease;
}
.post-nav-item:last-child { border-right: 0; }
.post-nav-item:hover { background: var(--paper-soft); }
.post-nav--next { text-align: right; align-items: flex-end; }
.post-nav-label {
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}
.post-nav-title {
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.5;
}
.post-nav-item:hover .post-nav-title { color: var(--seal); }
.post-nav-item--empty { pointer-events: none; }
.post-nav > :only-child { grid-column: 1 / -1; border-right: 0; }
.post-nav > :only-child.post-nav--next { text-align: left; align-items: flex-start; }

/* ============================================================
   13. 评论
   ============================================================ */
.comments-area {
	max-width: 760px;
	margin: 72px auto 0;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}
.comments-title,
.comment-reply-title {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.4;
}
.comment-list {
	padding: 0;
	margin: 34px 0 0;
	list-style: none;
}
.comment-list .children {
	margin: 0 0 0 40px;
	padding: 0;
	list-style: none;
}
.comment-body {
	padding: 26px 0;
	border-top: 1px solid var(--line);
}
.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	font-family: var(--sans);
	font-size: 10.5px;
	letter-spacing: .08em;
	color: var(--muted);
}
.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
}
.comment-author .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	filter: grayscale(1);
}
.comment-author .avatar-initial {
	display: inline-grid;
	place-items: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wash);
	color: var(--seal);
	font-family: var(--serif);
	font-size: 14px;
	line-height: 1;
	filter: none;
}
.comment-author .fn {
	font-family: var(--serif);
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: .02em;
}
.comment-metadata { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.comment-metadata a { color: var(--muted); }
.comment-metadata a:hover { color: var(--seal); }
.comment-content {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.9;
	color: var(--secondary);
}
.comment-content p { margin: 0 0 1em; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-content a { text-decoration: underline; text-decoration-color: var(--seal); text-underline-offset: .2em; }
.reply {
	margin-top: 12px;
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.reply a { color: var(--muted); }
.reply a:hover { color: var(--seal); }
.comment-respond { margin-top: 44px; }
.comment-notes,
.logged-in-as {
	font-family: var(--sans);
	font-size: 12px;
	line-height: 1.8;
	color: var(--muted);
}
.comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
	margin-top: 24px;
}
.comment-form p { margin: 0; }
.comment-form .comment-form-comment,
.comment-form .comment-form-cookies-consent,
.comment-form .form-submit,
.comment-form .comment-notes,
.comment-form .logged-in-as,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url { grid-column: 1 / -1; }
.comment-form label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--sans);
	font-size: 10.5px;
	letter-spacing: .1em;
	color: var(--muted);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 16px;
	line-height: 1.7;
	transition: border-color .2s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--seal);
	outline: none;
}
.comment-form textarea { min-height: 160px; resize: vertical; }
.comment-form .submit,
.comment-form input[type="submit"] {
	appearance: none;
	padding: 11px 24px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .14em;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
	background: var(--seal);
	border-color: var(--seal);
	color: var(--paper);
}
.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.comment-form-cookies-consent input { margin-top: 5px; }
.comment-form-cookies-consent label { margin: 0; font-family: var(--sans); font-size: 11px; }
.comment-list .comment-respond { margin: 24px 0; }

/* ============================================================
   14. 搜索表单 / 404 / 归档页模板
   ============================================================ */
.search-form {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 560px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line-strong);
}
.search-field {
	flex: 1;
	min-width: 0;
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 22px;
	line-height: 1.5;
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { outline: none; }
.search-submit {
	flex: 0 0 auto;
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s ease;
}
.search-submit:hover { color: var(--seal); }

.error-shell {
	padding-block: 96px 120px;
	text-align: center;
}
.error-kicker {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--muted);
}
.error-code {
	margin-top: 12px;
	font-family: "Inter", sans-serif;
	font-size: clamp(120px, 22vw, 260px);
	font-weight: 900;
	line-height: .9;
	letter-spacing: -.04em;
	color: transparent;
	-webkit-text-stroke: 1px var(--line-strong);
	user-select: none;
}
.error-title {
	margin-top: 10px;
	font-family: var(--serif);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 500;
	line-height: 1.4;
}
.error-text {
	max-width: 34em;
	margin: 16px auto 0;
	font-size: 15.5px;
	line-height: 1.9;
	color: var(--secondary);
}
.error-shell .search-form { margin: 34px auto 0; }
.error-home {
	display: inline-block;
	margin-top: 30px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--ink);
	padding-bottom: 5px;
}
.error-home:hover { color: var(--seal); border-color: var(--seal); }

.archive-shell { padding-block: 64px 100px; }
.archive-year { border-top: 1px solid var(--line); }
.archive-year:first-child { border-top-color: var(--ink); }
.archive-year-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 0 16px;
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 500;
	letter-spacing: .04em;
}
.archive-year-count {
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
.archive-items {
	margin: 0;
	padding: 0;
	list-style: none;
}
.archive-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 20px;
	align-items: baseline;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}
.archive-date {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .1em;
	color: var(--muted);
}
.archive-title {
	font-family: var(--serif);
	font-size: 22px;
	line-height: 1.5;
	transition: color .2s ease;
}
.archive-title:hover { color: var(--seal); }

/* ============================================================
   15. 响应式
   ============================================================ */
@media (max-width: 1280px) {
	.rail { display: none; }
}

@media (max-width: 1080px) {
	:root { --pad: 36px; }
	.hero-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; }
	.hero-aside { padding-left: 24px; }
	.entry-title { font-size: 25px; }
	.about { grid-template-columns: 140px minmax(0, 1fr); }
	.about--no-label { grid-template-columns: minmax(0, 1fr) 210px; }
	.about--no-facts { grid-template-columns: 140px minmax(0, 1fr); }
	.about--no-label.about--no-facts { grid-template-columns: 1fr; }
	.facts { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.page-shell, .single-shell { padding-top: 56px; }
}

@media (max-width: 820px) {
	.top { padding: 22px 0; gap: 14px; flex-wrap: wrap; }
	.brand { flex: 1; }
	.top-right { width: 100%; gap: 16px; justify-content: space-between; }
	.site-nav { flex: 1; min-width: 0; }
	.site-nav-list { gap: 22px; }
	.hero { padding: 64px 0 44px; }
	.hero-grid { grid-template-columns: 1fr; gap: 34px; }
	.hero-title--short { font-size: clamp(112px, 27vw, 200px); }
	.hero-title--medium { font-size: clamp(76px, 17vw, 126px); }
	.hero-title--long { font-size: clamp(44px, 10vw, 78px); }
	.hero-aside {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20px 0 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}
	.hero-vertical {
		writing-mode: horizontal-tb;
		height: auto;
		margin-left: 0;
		letter-spacing: .18em;
	}
	.hero-aside .seal { margin: 0; width: 48px; height: 48px; font-size: 24px; }
	.enso { width: 420px; height: 420px; top: 10px; right: -120px; }
	.hero-foot { margin-top: 38px; gap: 10px; }
	.tagline { font-size: 17px; letter-spacing: .08em; }
	.hero-meta { font-size: 8.5px; }
	.index-head { padding: 20px 0 14px; }
	.entry { grid-template-columns: 52px minmax(0, 1fr) 34px; gap: 18px; }
	.entry-arrow { font-size: 15px; }
	.entry-title { font-size: 24px; }

	.entry--lead { padding: 34px 0 38px; }
	.interlude { padding: 72px 0; margin-top: 64px; }
	.interlude::before { left: 32px; }
	.interlude::after { right: 32px; }
	.about { grid-template-columns: 1fr; gap: 24px; padding: 64px 0 72px; }
	.about .label { padding-top: 0; }
	.about-body .lead { font-size: 25px; }
	.facts { grid-column: auto; grid-template-columns: 1fr; gap: 12px; }
	.page-shell, .single-shell { padding-top: 44px; }
	.page-shell { padding-bottom: 72px; }
	.single-head { padding-bottom: 30px; }
	.single-cover { margin-top: 34px; }
	.prose { margin-top: 40px; font-size: 17px; }
	.prose h2 { font-size: 29px; }
	.prose h3 { font-size: 23px; }
	.comment-form { grid-template-columns: 1fr; }
	.post-nav { margin-top: 52px; }
	.post-nav-title { font-size: 17px; }
	.archive-shell { padding-block: 44px 76px; }
	.footer-mark { font-size: clamp(72px, 15vw, 120px); }
	.site-footer { padding-top: 26px; }
}

@media (max-width: 560px) {
	:root { --pad: 20px; }
	body { font-size: 16px; }
	.top { padding: 18px 0; }
	.brand-title { font-size: 26px; letter-spacing: .04em; }
	.brand-latin { display: none; }
	.top-right { gap: 12px; }
	.site-nav-list { gap: 16px; font-size: 11px; letter-spacing: .1em; flex-wrap: wrap; }
	.theme-toggle { --size: 32px; }
	.hero { padding: 52px 0 40px; }
	.hero-kicker { font-size: 8.5px; letter-spacing: .2em; }
	.hero-kicker::after { width: 40px; }
	.hero-title--short { font-size: 132px; }
	.hero-title--medium { font-size: 82px; }
	.hero-title--long { font-size: 46px; }
	.hero-title { line-height: .92; }
	.hero-vertical { font-size: 13px; }
	.tagline { font-size: 16px; }
	.index-head { padding: 18px 0 12px; }
	.index-head .count { font-size: 8.5px; }
	.entry {
		grid-template-columns: 1fr 26px;
		gap: 8px 12px;
		padding: 26px 0 28px;
	}
	.entry-no {
		grid-column: 1 / -1;
		padding-top: 0;
		margin-bottom: 2px;
		font-size: 9px;
	}
	.entry-title { font-size: 21px; line-height: 1.45; }
	.entry-excerpt,
	.entry--lead .entry-excerpt {
		margin-top: 10px;
		font-size: 14px;
	}
	.entry--lead { padding: 28px 0 32px; }
	.entry-arrow { padding-top: 4px; }
	.interlude { padding: 56px 0; margin-top: 52px; }
	.interlude::before { left: 20px; }
	.interlude::after { right: 20px; }
	.interlude-quote { font-size: 26px; letter-spacing: .04em; }
	.interlude-seal { width: 48px; height: 48px; font-size: 24px; margin-bottom: 26px; }
	.interlude-cite { font-size: 8.5px; }
	.about { padding: 52px 0 60px; }
	.about-body .lead { font-size: 21px; }
	.about-body p + p { font-size: 14.5px; }
	.footer-top { display: block; }
	.footer-nav { margin-top: 12px; gap: 18px; }
	.footer-mark { font-size: 17vw; letter-spacing: -.05em; }
	.footer-mark--long { font-size: 12vw; }
	.footer-bottom { flex-direction: column; gap: 6px; }
	.page-shell, .single-shell { padding-top: 34px; }
	.page-kicker { margin-bottom: 16px; font-size: 9px; }
	.page-title { font-size: 24px; }
	.page-description { font-size: 15px; }
	.single-title { font-size: 24px; }
	.single-dek { font-size: 16px; }
	.single-meta { font-size: 9.5px; }
	.single-cover { margin-top: 28px; }
	.prose { font-size: 16.5px; line-height: 1.9; }
	.prose h2 { font-size: 27px; }
	.prose h3 { font-size: 22px; }
	.prose blockquote { padding-left: 1.1em; font-size: 19px; }
	.prose pre { padding: 18px 16px; font-size: 12.5px; }
	.single-foot { flex-direction: column; align-items: flex-start; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
	.post-nav-item:last-child { border-bottom: 0; }
	.post-nav--next { text-align: left; align-items: flex-start; }
	.comments-area { margin-top: 52px; }
	.comment-list .children { margin-left: 18px; }
	.search-field { font-size: 19px; }
	.error-shell { padding-block: 60px 80px; }
	.archive-year-title { font-size: 25px; }
	.archive-item { grid-template-columns: 50px minmax(0, 1fr); gap: 14px; }
	.archive-title { font-size: 19px; }
}

/* ============================================================
   16. 动效降级 / 打印
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
	}
	body { transition: none; }
}

@media print {
	.rail, .site-header .top-right, .theme-toggle, .site-footer, .post-nav, .comments-area, .pagination { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	body::before { display: none; }
	.wrap { max-width: none; padding: 0; }
	.single-shell { padding: 0; }
	.prose { max-width: none; margin: 0; }
	.prose a { text-decoration: underline; }
}
