:root {
    --paper: #f5f0e7;
    --paper-deep: #ebe3d6;
    --surface: #fbf8f2;
    --surface-raised: #fffdf9;
    --ink: #1f1e1b;
    --ink-soft: #5f5b54;
    --muted: #8a847a;
    --line: rgba(31, 30, 27, 0.16);
    --line-strong: rgba(31, 30, 27, 0.34);
    --shadow: 0 24px 70px rgba(63, 48, 33, 0.1);
    --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --content: 1180px;
    --reading: 760px;
    --radius: 3px;
}

[data-theme="dark"] {
    --paper: #171714;
    --paper-deep: #22211d;
    --surface: #1c1b18;
    --surface-raised: #24221e;
    --ink: #eee8dd;
    --ink-soft: #b8b0a4;
    --muted: #8f887e;
    --line: rgba(238, 232, 221, 0.14);
    --line-strong: rgba(238, 232, 221, 0.3);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    transition: background-color .25s ease, color .25s ease;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .24;
    background-image: radial-gradient(rgba(31, 30, 27, .1) .55px, transparent .55px);
    background-size: 6px 6px;
}
[data-theme="dark"] body::before { opacity: .08; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(var(--accent-rgb), .24); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link {
    position: fixed;
    z-index: 999;
    top: 1rem;
    left: 1rem;
    padding: .7rem 1rem;
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.reading-progress {
    position: fixed;
    z-index: 120;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
}
.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
}
.eyebrow {
    margin: 0 0 1.1rem;
    color: var(--accent);
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(18px);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 48px), var(--content));
    min-height: 82px;
    margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 220px; }
.brand__mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    object-fit: contain;
}
.brand__seal {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fffaf2;
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22);
}
.brand__copy { display: flex; flex-direction: column; gap: 1px; }
.brand__copy strong { font-family: var(--serif); font-size: 1.04rem; letter-spacing: .11em; }
.brand__copy small { color: var(--muted); font-size: .66rem; letter-spacing: .08em; }
.brand__image { width: auto; max-width: 190px; height: 48px; object-fit: contain; }
.site-navigation { display: flex; align-items: center; gap: 24px; }
.primary-nav > ul, .subnav { margin: 0; padding: 0; list-style: none; }
.primary-nav > ul { display: flex; align-items: center; gap: 28px; }
.primary-nav li { position: relative; }
.primary-nav a {
    display: block;
    padding: 10px 0;
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .05em;
}
.primary-nav > ul > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .2s ease;
}
.primary-nav > ul > li:hover > a::after, .primary-nav > ul > li:focus-within > a::after { transform: scaleX(1); transform-origin: left; }
.subnav {
    position: absolute;
    top: calc(100% + 6px);
    left: -18px;
    width: 180px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: .2s ease;
}
.has-children:hover .subnav, .has-children:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { color: var(--ink-soft); }
.subnav a:hover { color: var(--accent); }
.header-search { display: flex; align-items: center; border-bottom: 1px solid var(--line-strong); }
.header-search input { width: 70px; padding: 6px 2px; border: 0; outline: 0; background: transparent; font-size: .78rem; transition: width .2s ease; }
.header-search input:focus { width: 120px; }
.header-search button, .theme-toggle {
    display: grid;
    place-items: center;
    padding: 8px;
    border: 0;
    background: transparent;
}
.header-search svg, .theme-toggle svg, .back-to-top svg, .button svg, .read-link svg, .article-neighbor svg, .text-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; }
[data-theme="light"] .theme-toggle__sun, [data-theme="dark"] .theme-toggle__moon { display: none; }
.nav-toggle { display: none; width: 42px; padding: 8px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 6px 0; background: currentColor; transition: .2s ease; }

.site-main { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }
.hero {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 84px;
    gap: 48px;
    align-items: center;
    min-height: 455px;
    padding: 76px 0 64px;
    border-bottom: 1px solid var(--line-strong);
}
.hero__index { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0; border-right: 1px solid var(--line); }
.hero__index span { color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .25em; writing-mode: vertical-rl; }
.hero__index strong { font-family: var(--serif); font-size: 3rem; font-weight: 400; line-height: 1; writing-mode: vertical-rl; }
.hero__content { max-width: 790px; }
.hero__content h1 {
    max-width: 750px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.3vw, 5rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: 1.13;
}
.hero__content > p:last-child { max-width: 590px; margin: 2rem 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.07rem; line-height: 1.95; }
.hero__stamp { display: grid; place-items: center; width: 74px; height: 110px; border: 2px solid var(--accent); color: var(--accent); font-family: var(--serif); font-size: 1.3rem; line-height: 1.7; transform: rotate(3deg); }
.category-strip { display: flex; align-items: center; gap: 42px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.category-strip > span { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .15em; }
.category-strip > div { display: flex; flex-wrap: wrap; gap: 28px; }
.category-strip a { font-family: var(--serif); font-size: .96rem; }
.category-strip a:hover { color: var(--accent); }
.category-strip sup { margin-left: 4px; color: var(--muted); font-family: var(--sans); font-size: .6rem; }
.archive-heading { max-width: 860px; padding: 100px 0 68px; border-bottom: 1px solid var(--line-strong); }
.archive-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 500; line-height: 1.15; }
.archive-heading > p:last-child { max-width: 650px; margin: 1.4rem 0 0; color: var(--ink-soft); }

.post-feed { padding: 70px 0 100px; }
.post-feed__heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.post-feed__heading .eyebrow { margin: 0; }
.post-feed__heading > span { color: var(--muted); font-size: .72rem; }
.post-card { display: grid; grid-template-columns: minmax(250px, 36%) minmax(0, 1fr); min-height: 310px; border-top: 1px solid var(--line-strong); }
.post-card:last-of-type { border-bottom: 1px solid var(--line-strong); }
.post-card--featured { grid-template-columns: minmax(320px, 46%) minmax(0, 1fr); min-height: 440px; }
.post-card__visual { position: relative; overflow: hidden; min-height: 100%; border-right: 1px solid var(--line-strong); background: var(--paper-deep); isolation: isolate; }
.post-card__visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(var(--accent-rgb), .13), transparent 58%); }
.post-card__visual.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .12), transparent 45%); pointer-events: none; }
.post-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2, .65, .2, 1), filter .3s ease; }
.post-card:hover .post-card__visual img { transform: scale(1.025); }
.post-card__visual.is-broken::after { content: "图像未载入"; display: grid; place-items: center; color: var(--muted); font-family: var(--serif); background: transparent; }
.post-card__number { position: absolute; top: 30px; left: 32px; color: var(--accent); font-size: .72rem; font-weight: 750; letter-spacing: .18em; }
.post-card__glyph { position: absolute; right: 9%; bottom: 3%; color: rgba(var(--accent-rgb), .1); font-family: var(--serif); font-size: clamp(8rem, 18vw, 15rem); line-height: .8; }
.post-card__rule { position: absolute; top: 22%; bottom: 22%; left: 50%; width: 1px; background: rgba(var(--accent-rgb), .35); transform: rotate(18deg); }
.post-card__body { display: flex; flex-direction: column; justify-content: center; padding: 46px clamp(32px, 5vw, 74px); }
.post-card__topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.post-card__topline > span:first-child { color: var(--accent); }
.post-card h2 { max-width: 680px; margin: 0; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.65rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.3; }
.post-card h2 a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s ease; }
.post-card h2 a:hover { background-size: 100% 1px; }
.post-card__body > p { max-width: 670px; margin: 1.25rem 0 1.8rem; color: var(--ink-soft); font-family: var(--serif); font-size: .98rem; line-height: 1.9; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.post-card__tax { display: flex; flex-wrap: wrap; gap: 8px; }
.top-flag, .category-link { display: inline-block; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.top-flag { padding: 1px 6px; border: 1px solid rgba(var(--accent-rgb), .45); color: var(--accent); }
.category-link:hover { color: var(--accent); }
.read-link { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.read-link span { color: var(--muted); font-size: .65rem; font-weight: 400; }
.read-link svg { transition: transform .2s ease; }
.read-link:hover { color: var(--accent); }
.read-link:hover svg { transform: translateX(4px); }
.moyo-density-compact .post-card { min-height: 250px; }
.moyo-density-compact .post-card--featured { min-height: 330px; }
.moyo-density-compact .post-card__body { padding-top: 32px; padding-bottom: 32px; }
.empty-state { padding: 100px 20px; border: 1px solid var(--line); text-align: center; }
.empty-state > span { display: inline-grid; place-items: center; width: 68px; height: 68px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--serif); font-size: 1.8rem; }
.empty-state h2 { margin: 1.5rem 0 .4rem; font-family: var(--serif); font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); }
.pagination { padding: 34px 0 80px; text-align: center; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; margin: 0 3px; padding: 0 10px; border: 1px solid var(--line); font-size: .75rem; }
.pagination a:hover, .pagination .current { border-color: var(--accent); background: var(--accent); color: #fff; }

.article-main { width: 100%; }
.article-shell { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }
.article-header { max-width: 950px; margin: 0 auto; padding: 105px 0 68px; text-align: center; }
.article-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.65rem, 6vw, 5.3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.16; text-wrap: balance; }
.article-subtitle { max-width: 720px; margin: 1.6rem auto 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.18rem; }
.article-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 2rem; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.author-link:hover, .article-edit a:hover { color: var(--accent); }
.article-cover { width: min(100%, 1120px); max-height: 670px; margin: 0 auto 80px; overflow: hidden; background: var(--paper-deep); box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 670px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 150px minmax(0, var(--reading)); gap: 58px; justify-content: center; align-items: start; }
.article-rail { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; padding-top: 8px; color: var(--muted); font-size: .7rem; }
.article-rail::before { content: ""; width: 44px; height: 1px; background: var(--accent); }
.article-rail__number { color: var(--ink); font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.article-rail__tags { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.tag-link { color: var(--muted); font-size: .72rem; }
.tag-link:hover { color: var(--accent); }
.prose { min-width: 0; color: var(--ink); font-family: var(--serif); font-size: 1.08rem; line-height: 2; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.65em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 2em 0 .75em; font-family: var(--serif); font-weight: 650; line-height: 1.35; }
.prose h2 { padding-bottom: .5em; border-bottom: 1px solid var(--line); font-size: 1.75rem; }
.prose h3 { font-size: 1.35rem; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose img { height: auto; margin: 2.2rem auto; border-radius: var(--radius); }
.prose blockquote { position: relative; padding: .5rem 0 .5rem 2rem; border-left: 2px solid var(--accent); color: var(--ink-soft); font-size: 1.15em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { padding: .15em .35em; border: 1px solid var(--line); background: var(--paper-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84em; }
.prose pre { overflow-x: auto; padding: 1.35rem; border: 1px solid var(--line); background: var(--surface-raised); line-height: 1.65; }
.prose pre code { padding: 0; border: 0; background: transparent; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; }
.prose th, .prose td { padding: .7rem .9rem; border: 1px solid var(--line); text-align: left; }
.prose hr { height: 1px; margin: 3rem 0; border: 0; background: var(--line-strong); }
.article-footer { max-width: 968px; margin: 80px auto 0; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.article-footer__tags { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 48px 208px; }
.article-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.article-neighbor { display: flex; min-height: 160px; flex-direction: column; justify-content: center; padding: 30px; background: var(--surface); transition: background .2s ease; }
.article-neighbor:hover { background: var(--surface-raised); }
.article-neighbor > span { display: inline-flex; align-items: center; gap: 8px; margin-bottom: .8rem; color: var(--muted); font-size: .68rem; letter-spacing: .1em; }
.article-neighbor strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.article-neighbor--next { text-align: right; align-items: flex-end; }
.page-header { padding-bottom: 48px; }
.article-layout--page { padding-top: 30px; border-top: 1px solid var(--line-strong); }

.comments-area { max-width: 968px; margin: 105px auto 120px; }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.comment-form-wrap { margin-bottom: 64px; padding: 36px; border: 1px solid var(--line); background: var(--surface); }
.comment-form > label { display: block; margin-bottom: 12px; font-family: var(--serif); font-size: 1.1rem; font-weight: 650; }
.comment-form textarea, .comment-fields input, .password-card input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    outline: 0;
    background: transparent;
}
.comment-form textarea { resize: vertical; min-height: 145px; padding: 16px 0; }
.comment-form textarea:focus, .comment-fields input:focus, .password-card input:focus { border-color: var(--accent); }
.comment-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.comment-fields label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .7rem; }
.comment-fields input { padding: 9px 0; }
.comment-captcha { margin-top: 20px; }
.comment-actions { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 20px; border: 1px solid var(--line-strong); background: transparent; font-size: .76rem; font-weight: 700; letter-spacing: .05em; }
.button--primary { border-color: var(--accent); background: var(--accent); color: #fffaf2; }
.button--primary:hover { filter: brightness(.93); }
.button--ghost:hover { border-color: var(--accent); color: var(--accent); }
.reply-status { color: var(--muted); font-size: .72rem; }
.comments-empty, .comments-closed { color: var(--muted); }
.comment-list, .comment-children { margin: 0; padding: 0; list-style: none; }
.comment-item { margin-top: 28px; }
.comment-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; }
.comment-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }
.comment-body { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.comment-body header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 9px; }
.comment-body header strong { font-family: var(--serif); font-weight: 650; }
.comment-body time { color: var(--muted); font-size: .68rem; }
.comment-content { color: var(--ink-soft); font-family: var(--serif); font-size: .96rem; }
.comment-content p:first-child { margin-top: 0; }
.comment-reply-button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: .7rem; }
.comment-children { margin-left: 64px; }
.comment-pagination { margin-top: 28px; text-align: center; }

.site-footer { border-top: 1px solid var(--line-strong); background: var(--surface); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 2fr auto; gap: 48px; align-items: end; width: min(calc(100% - 48px), var(--content)); min-height: 230px; margin: 0 auto; padding: 55px 0; }
.footer-mark { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .63rem; font-weight: 700; letter-spacing: .16em; }
.footer-mark__line { width: 34px; height: 1px; background: var(--accent); }
.footer-copy p { margin: 0; }
.footer-note { color: var(--ink-soft); font-family: var(--serif); font-size: 1.05rem; }
.footer-note > * { margin: 0; }
.footer-note > * + * { margin-top: 4px; }
.footer-note strong { color: var(--ink); font-weight: 650; }
.footer-note small { color: var(--muted); font-family: var(--sans); font-size: .7rem; letter-spacing: .04em; }
.footer-note ul, .footer-note ol { padding-left: 1.25rem; }
.footer-note a { border-bottom: 1px solid var(--line-strong); }
.footer-note a:hover { border-color: var(--accent); color: var(--accent); }
.footer-meta, .footer-system { margin-top: 9px !important; color: var(--muted); font-size: .68rem; }
.footer-system a:hover, .footer-meta a:hover { color: var(--accent); }
.back-to-top { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

.error-page, .password-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.error-card, .password-card { position: relative; width: min(100%, 680px); padding: clamp(42px, 8vw, 90px); border: 1px solid var(--line-strong); background: var(--surface); text-align: center; box-shadow: var(--shadow); overflow: hidden; }
.error-card__code { position: absolute; top: -40px; right: -10px; color: rgba(var(--accent-rgb), .08); font-family: var(--serif); font-size: 13rem; line-height: 1; }
.error-card h1, .password-card h1 { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 500; }
.error-card > p:not(.eyebrow), .password-card > p:not(.eyebrow) { position: relative; max-width: 480px; margin: 1.1rem auto 2rem; color: var(--ink-soft); }
.error-card .button { position: relative; }
.password-card .brand__seal { margin: 0 auto 1.7rem; }
.password-card form { display: flex; gap: 10px; margin: 2rem auto 1.4rem; }
.password-card input { min-width: 0; padding: 10px 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .72rem; }
.text-link:hover { color: var(--accent); }

@media (max-width: 980px) {
    .site-navigation { gap: 14px; }
    .primary-nav > ul { gap: 18px; }
    .header-search { display: none; }
    .hero { grid-template-columns: 82px minmax(0, 1fr) 68px; gap: 32px; }
    .post-card, .post-card--featured { grid-template-columns: minmax(240px, 40%) minmax(0, 1fr); min-height: 330px; }
    .post-card__body { padding: 38px; }
    .article-layout { grid-template-columns: 110px minmax(0, var(--reading)); gap: 36px; }
    .article-footer__tags { margin-left: 146px; }
}

@media (max-width: 760px) {
    .site-header__inner, .site-main, .article-shell, .site-footer__inner { width: min(calc(100% - 32px), var(--content)); }
    .site-header__inner { min-height: 70px; }
    .brand { min-width: 0; }
    .brand__mark { width: 40px; height: 40px; }
    .brand__seal { width: 38px; height: 38px; font-size: 1.3rem; }
    .brand__copy small { display: none; }
    .nav-toggle { display: block; }
    .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .site-navigation {
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        display: flex;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 28px 24px 50px;
        background: var(--paper);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: .2s ease;
        overflow-y: auto;
    }
    .site-navigation.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .menu-open { overflow: hidden; }
    .primary-nav > ul { align-items: stretch; flex-direction: column; gap: 0; }
    .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; }
    .primary-nav > ul > li > a::after { display: none; }
    .subnav { position: static; width: auto; padding: 0 0 0 18px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
    .subnav a { font-family: var(--sans); font-size: .85rem; }
    .header-search { display: flex; }
    .header-search input, .header-search input:focus { width: 100%; }
    .theme-toggle { margin-left: auto; }

    .hero { display: block; min-height: auto; padding: 72px 0 58px; }
    .hero__index { display: none; }
    .hero__content h1 { font-size: clamp(2.6rem, 13vw, 4.2rem); }
    .hero__content > p:last-child { margin-top: 1.6rem; font-size: 1rem; }
    .hero__stamp { width: 54px; height: 70px; margin: 30px 0 0 auto; font-size: .9rem; }
    .category-strip { align-items: flex-start; flex-direction: column; gap: 14px; }
    .category-strip > div { gap: 12px 20px; }
    .archive-heading { padding: 72px 0 48px; }
    .post-feed { padding: 52px 0 75px; }
    .post-card, .post-card--featured { display: block; min-height: 0; padding: 26px 0; }
    .post-card__visual { display: block; min-height: 0; aspect-ratio: 16 / 10; border: 0; }
    .post-card__body { padding: 28px 0 0; }
    .post-card h2 { font-size: 1.85rem; }
    .post-card__meta { align-items: flex-start; flex-direction: column; }
    .read-link { width: 100%; justify-content: space-between; }
    .read-link span { margin-left: auto; }

    .article-header { padding: 72px 0 46px; text-align: left; }
    .article-header h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
    .article-byline { justify-content: flex-start; }
    .article-cover { margin-bottom: 50px; }
    .article-layout, .article-layout--page { display: block; }
    .article-rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
    .article-rail::before { display: none; }
    .article-rail__number { font-size: 1.7rem; }
    .article-rail__tags { flex-direction: row; flex-wrap: wrap; }
    .prose { font-size: 1.02rem; line-height: 1.95; }
    .article-footer { margin-top: 55px; }
    .article-footer__tags { margin: 0 0 30px; }
    .article-neighbors { display: block; background: transparent; }
    .article-neighbor { min-height: 130px; border-bottom: 1px solid var(--line); }
    .comments-area { margin: 80px auto; }
    .comment-form-wrap { padding: 24px 20px; }
    .comment-fields { grid-template-columns: 1fr; gap: 16px; }
    .comment-card { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
    .comment-avatar { width: 36px; height: 36px; }
    .comment-children { margin-left: 24px; }

    .site-footer__inner { grid-template-columns: 1fr auto; gap: 30px; min-height: 0; }
    .footer-mark { grid-column: 1 / -1; }
    .footer-note { font-size: .95rem; }
    .password-card form { flex-direction: column; }
}

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