/* Design system for huoshi.org. */
:root {
  --bg: #f6f1e8; --surface: #fffdf9; --ink: #1f1b16; --ink-2: #4a433a; --muted: #7a7064;
  --rule: #e3dacb; --accent: #8a3b22; --accent-ink: #fff; --band: #2a2420; --band-ink: #f3ece1; --band-muted: #bfb3a2;
  --kicker-l: 38%; --kicker-s: 55%;
  --serif: 'Noto Serif SC', 'Songti SC', serif; --sans: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --radius: 14px; --wrap: 1200px; --narrow: 720px;
  --lh-body: 1.95; --track-h: 0;
  color-scheme: light;
}
[data-site="en"] {
  --bg: #f7f4ee; --surface: #fffefb; --ink: #1a1f1c; --ink-2: #3f4742; --muted: #6c746f;
  --rule: #e1ddd3; --accent: #2f4a3a; --band: #1d2822; --band-ink: #f2efe7; --band-muted: #aab5ad;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
  --lh-body: 1.75; --track-h: -0.01em;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120f; --surface: #1c1915; --ink: #ede6da; --ink-2: #cfc6b8; --muted: #988e80;
    --rule: #332e27; --accent: #e08a62; --accent-ink: #1a120d; --band: #221e19; --kicker-l: 72%; color-scheme: dark;
  }
  :root[data-site="en"]:not([data-theme="light"]) { --bg: #111513; --surface: #181d1a; --rule: #2a312d; --accent: #9cc7a9; --accent-ink: #0f1a13; --band: #1a221d; }
}
:root[data-theme="dark"] {
  --bg: #14120f; --surface: #1c1915; --ink: #ede6da; --ink-2: #cfc6b8; --muted: #988e80;
  --rule: #332e27; --accent: #e08a62; --accent-ink: #1a120d; --band: #221e19; --kicker-l: 72%; color-scheme: dark;
}
:root[data-site="en"][data-theme="dark"] { --bg: #111513; --surface: #181d1a; --rule: #2a312d; --accent: #9cc7a9; --accent-ink: #0f1a13; --band: #1a221d; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: var(--track-h); margin: 0; line-height: 1.3; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Top strip */
.strip { border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 38px; }
.strip-badge { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 99px; padding: 2px 10px; }
.strip-right { display: flex; align-items: center; gap: 14px; }
.strip-right a:hover { color: var(--ink); }
.theme { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: 6px; }
.theme:hover { color: var(--ink); background: var(--rule); }

/* Masthead */
.mast { text-align: center; padding: 34px 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.mark { width: 44px; height: 44px; fill: var(--accent); color: var(--accent); }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-name { font: 900 40px/1 var(--serif); letter-spacing: .04em; }
[data-site="en"] .brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 42px; }
.brand-latin { font: 600 10.5px/1 var(--sans); letter-spacing: .32em; color: var(--muted); margin-top: 8px; }
.tagline { margin: 14px auto 0; color: var(--ink-2); font: 400 15px/1.6 var(--serif); max-width: 640px; }
[data-site="en"] .tagline { font-style: italic; }
.tagline cite, .foot cite { font-style: normal; color: var(--muted); font-family: var(--sans); font-size: 12.5px; margin-left: 6px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; height: 50px; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 7px 12px; border-radius: 99px; }
.nav a:hover { color: var(--ink); background: var(--rule); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
.nav-search { margin-left: auto; display: grid !important; place-items: center; }

/* Building blocks */
.kicker { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--h, 20) var(--kicker-s) var(--kicker-l)); margin-bottom: 10px; }
[data-site="zh"] .kicker { letter-spacing: .12em; font-size: 12.5px; }
.meta { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }
.cover { display: block; overflow: hidden; border-radius: var(--radius); background: var(--rule); aspect-ratio: 16 / 9; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a:hover > img, .card:hover .cover img, .lead:hover .cover img, .row:hover .cover img { transform: scale(1.035); }
h2 a, h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
h2 a:hover, h3 a:hover { background-size: 100% 1px; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 99px; padding: 11px 20px; font: 600 14px/1 var(--sans); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }

/* Home: top */
.top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; padding: 36px 0 44px; }
.lead h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; margin-top: 2px; }
[data-site="zh"] .lead h2 { font-weight: 900; line-height: 1.35; }
.lead-body { padding-top: 22px; }
.lead p { font-size: 17px; color: var(--ink-2); margin: 14px 0 0; max-width: 60ch; }
.side { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: start; }
.row:first-child { border-top: 0; padding-top: 0; }
.row h3 { font-size: 18px; font-weight: 700; }
.cover-sm { border-radius: 10px; }

/* Daily band */
.band { background: var(--band); color: var(--band-ink); margin: 8px 0 20px; }
.band-in { display: grid; grid-template-columns: 180px minmax(0, 1fr) 280px; gap: 40px; padding: 52px 24px; align-items: center; }
.band-label { display: flex; flex-direction: column; gap: 8px; font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e9b78f; }
[data-site="en"] .band-label { color: #e8c37c; }
.band-date { color: var(--band-muted); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.band-verse p { font: 500 clamp(19px, 2.2vw, 25px)/1.6 var(--serif); margin: 0 0 12px; }
[data-site="en"] .band-verse p { font-style: italic; font-weight: 400; }
.band-verse p:last-child { font: 500 13px/1.4 var(--sans); color: var(--band-muted); font-style: normal; margin: 0; }
.band-cta h3 { font-size: 21px; margin-bottom: 18px; }
.band .btn { background: var(--band-ink); color: var(--band); }

/* Sections + grids */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.sec { padding: 28px 0 12px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 24px; }
.sec-head h2 { font-size: 22px; font-weight: 800; }
.sec-head a { font-size: 14px; color: var(--muted); } .sec-head a:hover { color: var(--accent); }
.grid { display: grid; gap: 32px 28px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.card-body { padding-top: 16px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card-sm h3 { font-size: 16px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Rail */
.rail { padding-top: 28px; display: flex; flex-direction: column; gap: 24px; }
.rail > .box:first-child { position: static; }
.box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.box-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.box p { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.box > a { font-size: 14px; color: var(--accent); font-weight: 600; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; border-top: 1px solid var(--rule); }
.ranked li:first-child { border-top: 0; padding-top: 0; }
.ranked li::before { content: counter(r); grid-row: span 2; font: 800 26px/1 var(--serif); color: var(--accent); opacity: .85; }
.ranked a { font: 600 15.5px/1.45 var(--serif); }
.ranked .meta { margin-top: 4px; font-size: 12px; }
.box-news { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.box-news .box-title, .box-news p { color: var(--accent-ink); }
.box-news p { opacity: .88; }
.news-form { display: flex; flex-direction: column; gap: 10px; }
.news-form input { font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 0; background: var(--surface); color: var(--ink); min-width: 0; }
.box-news .btn { background: var(--ink); color: var(--bg); justify-content: center; }
.news-done { font-weight: 600; }
.box-quiet { background: transparent; }
.news-wide { max-width: 760px; margin: 24px auto 40px; }
.news-wide .news-form { flex-direction: row; }

/* Article */
.post-head { padding: 52px 24px 28px; text-align: center; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; line-height: 1.2; }
[data-site="zh"] .post-head h1 { font-weight: 900; line-height: 1.32; }
.post-dek { font: 400 19px/1.6 var(--serif); color: var(--ink-2); margin: 18px auto 0; max-width: 34em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 22px; }
.post-meta .meta { margin: 0; }
.verse-chip { font-size: 12.5px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--rule); color: var(--ink-2); }
.copy { font: 500 12.5px var(--sans); background: none; border: 1px solid var(--rule); color: var(--ink-2); border-radius: 99px; padding: 4px 11px; cursor: pointer; }
.copy:hover { border-color: var(--ink-2); }
.post-cover { margin: 0 auto 8px; max-width: 1040px; }
.post-cover img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 18px; line-height: var(--lh-body); color: var(--ink); padding-top: 32px; padding-bottom: 24px; }
[data-site="zh"] .prose { font-size: 17.5px; text-align: justify; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { font-size: 1.45em; font-weight: 800; margin-top: 2em; line-height: 1.35; }
.prose > h3 { font-size: 1.18em; font-weight: 700; margin-top: 1.6em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose > blockquote { margin-top: 1.6em; margin-bottom: 1.6em; padding: 22px 26px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 4px var(--radius) var(--radius) 4px; font-family: var(--serif); font-size: 1.04em; }
[data-site="en"] .prose blockquote { font-style: italic; }
.prose blockquote p + p { margin-top: .5em; font: normal 14px var(--sans); color: var(--muted); }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; padding-bottom: 8px; }
.pager a { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; font: 600 15px/1.45 var(--serif); background: var(--surface); }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font: 500 12px var(--sans); color: var(--muted); margin-bottom: 6px; }
.pager-next { text-align: right; }

/* Category + archive */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 900; }
.top-cat { padding-top: 24px; grid-template-columns: minmax(0, 1fr); }
.top-cat .lead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.filter { margin-top: 20px; width: 100%; max-width: 520px; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.archive { padding: 24px 0 48px; }
.arch { display: grid; grid-template-columns: 150px minmax(0, 1fr) 160px; gap: 28px; padding: 22px 0; border-top: 1px solid var(--rule); align-items: start; }
.arch-date { font-size: 13px; color: var(--muted); padding-top: 2px; }
.arch h3 { font-size: 20px; font-weight: 700; }
.arch p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.arch[hidden] { display: none; }

/* Footer */
.foot { margin-top: 56px; border-top: 1px solid var(--ink); padding: 40px 0 48px; color: var(--ink-2); font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.brand-sm .mark { width: 28px; height: 28px; } .brand-sm .brand-name { font-size: 22px; }
.foot p { margin: 12px 0 0; }
.foot-links { display: flex; gap: 22px; align-items: flex-start; }
.foot-links a:hover { color: var(--accent); }
.foot-note { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--rule); padding-top: 18px; }

/* Responsive */
@media (max-width: 1080px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .band-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-cat .lead { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .arch { grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; }
  .arch-date { grid-column: 1 / -1; padding: 0; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .strip-badge { display: none; }
  .mast { padding: 24px 0 16px; }
  .brand-name { font-size: 32px !important; }
  .mark { width: 36px; height: 36px; }
  .tagline { font-size: 14px; padding: 0 8px; }
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 .card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; }
  .grid-4 .card-body { padding-top: 0; }
  .row { grid-template-columns: minmax(0, 1fr) 96px; }
  .band-in { padding: 36px 16px; }
  .post-head { padding: 32px 16px 20px; }
  .prose { font-size: 17px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .news-wide .news-form { flex-direction: column; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.post-cover figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; padding: 0 8px; }
.post-cover figcaption a { text-decoration: underline; text-underline-offset: 2px; }

/* 投稿 form */
.submit-form { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 64px; }
.submit-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.submit-form input, .submit-form select, .submit-form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.submit-form textarea { font-family: var(--serif); line-height: 1.9; resize: vertical; }
.submit-form input:focus, .submit-form select:focus, .submit-form textarea:focus { outline: none; border-color: var(--accent); }
.submit-form .check { flex-direction: row; align-items: flex-start; gap: 10px; }
.submit-form .check input { margin-top: 4px; }
.submit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-form .btn { align-self: flex-start; }
.submit-msg { margin: 0; min-height: 1.4em; font-size: 15px; }
.submit-msg.bad { color: #b3261e; }
.submit-done { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); font-size: 17px; margin: 28px 0 64px; }
@media (max-width: 640px) { .submit-row { grid-template-columns: 1fr; } }

/* Reviewer byline and editor pages */
.byline { margin: 14px auto 0; font-size: 13.5px; color: var(--ink-2); text-align: center; line-height: 1.6; }
.byline a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.byline a:hover { text-decoration-color: currentColor; }
.ed-list { display: grid; gap: 12px; margin: 8px 0 28px; }
.ed-card { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; color: inherit; text-decoration: none; }
.ed-card:hover { border-color: var(--ink-2); }
.ed-card > span { display: flex; flex-direction: column; gap: 2px; }
.ed-card b { font-size: 17px; }
.ed-photo { border-radius: 50%; object-fit: cover; flex: none; }
.ed-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--rule); color: var(--ink-2); font-size: 26px; font-weight: 700; }
.ed-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.ed-head h1 { margin: 6px 0 0; }

/* UI refresh 2026-10: readability, compact phone header, translations */
.meta { font-size: 14px; }
.byline { font-size: 14px; }
[data-site="en"] .byline { text-align: left; margin-left: 0; }
[data-site="zh"] { --narrow: 680px; }
[data-site="zh"] .prose { font-size: 18.5px; }
.post-cover img { max-height: min(62vh, 560px); }
.simple-head { margin-top: 32px; }
.simple-head h1 { font-size: 22px; }
.translated { font-size: 14.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; }
.translated a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .mast { padding: 16px 0 12px; }
  .mast .tagline { display: none; }
  .brand-name { font-size: 28px !important; }
  .mark { width: 30px; height: 30px; }
  [data-site="zh"] .prose { font-size: 17.5px; }
  /* show that the section menu scrolls sideways */
  .nav-in, .e-nav-in { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 32px; }
}

/* Media-site header (huoshi) */
.z-head { position: sticky; top: 0; z-index: 6; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.z-head-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.z-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.z-brand .mark { width: 34px; height: 34px; }
.z-name { font: 900 25px/1 var(--serif); letter-spacing: .04em; }
.z-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.z-nav::-webkit-scrollbar { display: none; }
.z-nav a { white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 11px; border-radius: 99px; }
.z-nav a:hover { color: var(--ink); background: var(--rule); }
.z-nav a[aria-current="page"] { color: var(--ink); background: var(--rule); font-weight: 700; }
.z-tools { display: flex; align-items: center; gap: 14px; flex: none; color: var(--ink-2); font-size: 15px; }
.z-submit { border: 1px solid var(--rule); border-radius: 99px; padding: 5px 14px; font-weight: 500; }
.z-submit:hover, .z-search:hover { color: var(--ink); border-color: var(--ink-2); }
.z-search { display: grid; place-items: center; }
@media (max-width: 860px) {
  .z-head { position: static; }
  .z-head-in { flex-wrap: wrap; height: auto; gap: 0; padding-top: 10px; }
  .z-brand { order: 1; height: 44px; }
  .z-tools { order: 2; margin-left: auto; }
  .z-nav { order: 3; flex-basis: 100%; height: 46px; align-items: center; margin: 0 -16px; padding: 0 16px; position: sticky; top: 0;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
}

/* Article header: left-aligned title, dek and an author row */
.post-head { text-align: left; padding: 48px 24px 26px; }
.post-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.22; margin-top: 12px; text-wrap: balance; }
[data-site="zh"] .post-head h1 { font-weight: 800; line-height: 1.32; letter-spacing: .01em; }
.post-dek { margin: 16px 0 0; max-width: none; font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.post-by { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.by-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--rule); color: var(--ink-2); font: 700 17px/1 var(--serif); }
.by-avatar img { width: 100%; height: 100%; object-fit: cover; }
img.by-logo { background: var(--surface); object-fit: contain; padding: 5px; border: 1px solid var(--rule); }
.post-by-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-by .byline { margin: 0; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); }
.post-by .byline a { text-decoration: none; }
.post-by .byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-by-meta { font-size: 13.5px; color: var(--muted); }
.post-by .copy { margin-left: auto; flex: none; }
@media (max-width: 560px) {
  .post-head { padding: 28px 16px 20px; }
  .post-dek { font-size: 17px; }
  .post-by .copy { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.simple-home { padding-top: 28px; }
/* Article lists without a cover (author pages): date + text only */
.arch:not(:has(.cover)) { grid-template-columns: 150px minmax(0, 1fr); }
@media (max-width: 860px) { .arch:not(:has(.cover)) { grid-template-columns: minmax(0, 1fr); } }
.submit-hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 400; }

/* Smaller article cover and title */
.post-cover { max-width: 860px; }
.post-cover img { max-height: 440px; }
.post-head h1 { font-size: clamp(26px, 3.2vw, 38px); }
[data-site="en"] .post-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
@media (max-width: 560px) { .post-cover img { max-height: 260px; } }

/* 十字架梦想家 XDreamers: 3D Bible Labs placements */
.z-labs, .e-labs { background: var(--accent); color: var(--accent-ink) !important; border-radius: 99px; padding: 5px 13px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.z-labs:hover, .e-labs:hover { filter: brightness(1.08); }
.xd-card { margin: 36px 0 8px; }
.xd-card a { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--rule)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.xd-card a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.xd-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--accent); }
.xd-card strong { font: 800 21px/1.35 var(--serif); }
.xd-text { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.xd-cta { justify-self: start; margin-top: 6px; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 7px 16px; font-weight: 600; font-size: 14px; }
.rail .xd-card, .e-rail .xd-card { margin: 0 0 20px; }
.rail .xd-card strong, .e-rail .xd-card strong { font-size: 18px; }
.xd-promo { margin: 28px 0; }
.xd-foot { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.xd-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .z-labs, .e-labs { padding: 4px 10px; font-size: 13px; }
  .xd-card a { padding: 16px 18px; }
}
