:root {
    --paper: #f8f8f5;
    --surface: #ffffff;
    --ink: #171916;
    --muted: #6d726d;
    --line: #dfe2dc;
    --green: #0d5a3a;
    --green-soft: #e9f1ec;
    --amber: #c77909;
    --content: 1160px;
    --narrow: 780px;
    --shadow: 0 8px 28px rgba(22, 32, 25, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: #111; font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif; line-height: 1.28; }
h1, h2, h3, p { margin-top: 0; }
input, textarea { border: 1px solid #cdd1ca; border-radius: 4px; background: var(--surface); }
input:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(13, 90, 58, .12); }
.sr-only { position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); width: 1px; height: 1px; white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 8px 12px; color: #fff; background: var(--green); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--line); background: rgba(248, 248, 245, .96); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; width: min(var(--content), calc(100% - 64px)); height: 74px; margin: 0 auto; }
.site-brand { display: inline-flex; align-items: center; flex: 0 0 auto; font: 700 23px/1.1 "Noto Serif SC", "Songti SC", serif; letter-spacing: 1px; }
.site-brand img { max-width: 180px; max-height: 36px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; flex: 1 1 auto; gap: 28px; align-items: stretch; min-width: 0; height: 100%; margin: 0 32px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { position: relative; display: flex; flex: 0 0 auto; align-items: center; font-size: 15px; font-weight: 600; white-space: nowrap; }
.site-nav a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: transparent; }
.site-nav a:hover, .site-nav a.is-active { color: var(--green); }
.site-nav a.is-active::after { background: var(--green); }
.site-actions { display: flex; gap: 10px; align-items: center; }
.icon-button { display: inline-grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 4px; background: transparent; }
.icon-button svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.icon-button:hover { background: var(--green-soft); color: var(--green); }
.site-actions__menu { display: none; font-size: 24px; }
.search-panel { position: fixed; z-index: 9; top: 74px; right: 0; left: 0; padding: 24px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.search-panel__form { display: flex; gap: 8px; width: min(660px, 100%); margin: 0 auto; }
.search-panel input { flex: 1; min-width: 0; padding: 11px 14px; }
.search-panel button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid #bfc4bc; border-radius: 4px; background: transparent; font-weight: 700; }
.search-panel button:hover, .button:hover { border-color: var(--green); color: var(--green); }
.button--primary { border-color: var(--green); color: #fff; background: var(--green); }
.button--primary:hover { color: #fff; background: #07452c; }

.site-main { width: min(var(--content), calc(100% - 64px)); min-height: calc(100vh - 220px); margin: 0 auto; }
.page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: 36px 0 82px; }
.content-column { min-width: 0; }
.section-heading { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; }
.section-heading span { display: block; width: 3px; height: 20px; background: var(--green); }
.section-heading h2 { margin: 0; font-size: 20px; }
.featured-post { padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.featured-post__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 38px; align-items: center; }
.featured-post__cover, .post-card__cover { overflow: hidden; border: 1px solid #d3d7d1; border-radius: 4px; background: #e9ece6; }
.featured-post__cover { aspect-ratio: 1.45; }
.featured-post__cover img, .post-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.featured-post__cover:hover img, .post-card__cover:hover img { transform: scale(1.025); }
.post-card__cover--empty { display: grid; padding: 20px; place-items: center; color: var(--green); background: #e8efe9; font: 700 28px/1.32 "Noto Serif SC", serif; overflow-wrap: anywhere; text-align: center; }
.featured-post__body { align-self: center; }
.category-label { display: inline-block; color: var(--green); font-size: 13px; font-weight: 700; }
.category-label::before { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; content: ""; background: var(--green); }
.featured-post__title { margin: 15px 0 15px; font-size: 30px; }
.featured-post__title a:hover, .post-card__title a:hover { color: var(--green); }
.featured-post__body > p { margin-bottom: 24px; color: #4e544e; font-size: 16px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 13px; }
.post-card__metrics, .sidebar-post__metrics { display: inline-flex; flex-wrap: wrap; gap: 9px; }
.post-card__metrics span, .sidebar-post__metrics span { white-space: nowrap; }
.post-stream { margin-top: 46px; }
.post-card { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-card__cover { align-self: start; aspect-ratio: 1.37; }
.post-card__body { align-self: center; min-width: 0; }
.post-card__title { margin: 8px 0 10px; font-size: 20px; }
.featured-post__title, .post-card__title, .post-article > h1, .page-article h1, .archive-hero h1, .search-hero h1, .archive-page__hero h1, .special-page__hero h1, .work-card h2 { overflow-wrap: anywhere; }
.post-card__summary { display: -webkit-box; overflow: hidden; margin-bottom: 15px; color: #555b55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-keyword-highlight { padding: 0 .05em; background: #fff1d6; color: inherit; }
.sidebar { padding-top: 0; }
.sidebar-section { padding: 0 0 28px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.sidebar-section h2 { margin-bottom: 15px; font-size: 21px; }
.sidebar-section h2::after { display: block; width: 26px; height: 1px; margin-top: 13px; content: ""; background: #a9afa8; }
.sidebar-section ol { padding: 0; margin: 0; list-style: none; counter-reset: popular; }
.sidebar-section ol li { position: relative; padding: 11px 0 11px 43px; border-bottom: 1px solid #eceeea; counter-increment: popular; font-size: 14px; line-height: 1.55; }
.sidebar-section ol li::before { position: absolute; top: 11px; left: 0; color: var(--green); content: counter(popular, decimal-leading-zero); font: 700 18px/1 "Noto Serif SC", serif; }
.sidebar-section ol a:hover, .sidebar-section > a:hover { color: var(--green); }
.sidebar-post__metrics { display: flex; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.sidebar-section > a { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #eceeea; font-size: 14px; }
.sidebar-section > a b { color: var(--muted); font-weight: 500; }
.sidebar-section--subscribe { border: 0; }
.sidebar-section--subscribe p { color: var(--muted); font-size: 14px; }
.sidebar-section--subscribe .button { display: flex; box-sizing: border-box; width: 100%; min-height: 42px; align-items: center; justify-content: center; border-color: var(--green); color: #fff; background: var(--green); text-align: center; }
.sidebar-section--subscribe .button:hover, .sidebar-section--subscribe .button:focus-visible { border-color: #07452c; color: #fff; background: #07452c; }
.sidebar-section--subscribe .button:focus-visible { outline: 3px solid rgba(13, 90, 58, .22); outline-offset: 3px; }

.archive-hero { padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.archive-hero h1, .search-hero h1 { margin: 0 0 16px; font-size: 40px; }
.archive-hero p { max-width: 680px; color: #505650; font: 19px/1.75 "Noto Serif SC", serif; }
.archive-hero span { color: var(--green); font-weight: 700; }
.post-stream--archive { margin-top: 24px; }
.empty-state { padding: 68px 20px; text-align: center; }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--muted); }

.search-hero { padding: 10px 0 32px; border-bottom: 1px solid var(--line); text-align: center; }
.search-hero form { display: flex; gap: 8px; max-width: 680px; margin: 0 auto 18px; }
.search-hero input { flex: 1; min-width: 0; padding: 14px 16px; }
.search-hero button { padding: 0 20px; border: 1px solid var(--green); border-radius: 4px; color: #fff; background: var(--green); font-weight: 700; }
.search-hero p { color: var(--muted); }
.search-hero strong { color: var(--ink); }
.search-hero span { color: var(--amber); font-weight: 700; }
.search-results .post-card { grid-template-columns: 190px minmax(0, 1fr); }
.search-aside { align-self: start; padding: 150px 0 0 26px; border-left: 1px solid var(--line); }
.search-aside section { margin-bottom: 38px; }
.search-aside h2 { margin-bottom: 15px; font-size: 19px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 4px 10px; border: 1px solid #cad2ca; border-radius: 999px; color: var(--green); font-size: 13px; }
.tag-list a:hover { color: #fff; background: var(--green); }
.plain-link-list { padding: 0; margin: 0; list-style: none; }
.plain-link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-link-list a:hover { color: var(--green); }

.post-layout { display: grid; grid-template-columns: minmax(0, var(--narrow)) 250px; gap: 60px; align-items: start; width: min(1090px, 100%); padding: 32px 0 82px; }
.post-article { min-width: 0; }
.breadcrumbs { display: flex; gap: 8px; overflow: hidden; margin-bottom: 18px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.breadcrumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs__category::before { display: none; }
.post-article > h1 { margin: 12px 0 12px; font-size: 36px; }
.post-article__summary { margin-bottom: 22px; color: #505650; font: 18px/1.7 "Noto Serif SC", serif; }
.post-article__meta { display: flex; flex-wrap: wrap; gap: 12px 15px; align-items: center; padding: 0 0 22px; color: var(--muted); font-size: 13px; }
.post-article__meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.post-article__author { color: var(--ink); font-weight: 700; }
.post-article__cover { width: 100%; max-height: 460px; margin: 0 0 38px; border: 1px solid var(--line); border-radius: 4px; object-fit: cover; }
.post-toc { position: sticky; top: 103px; padding-top: 16px; }
.post-toc__inner, .page-toc { padding-left: 22px; border-left: 1px solid var(--line); }
.post-toc span, .page-toc > span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.post-toc ol, .page-toc ol { padding: 0; margin: 0; list-style: none; }
.post-toc li, .page-toc li { margin: 8px 0; font-size: 13px; line-height: 1.45; }
.post-toc li.toc-h3, .page-toc li.toc-h3 { padding-left: 12px; }
.post-toc a:hover, .page-toc a:hover { color: var(--green); }
.post-content { color: #242723; font-size: 16px; line-height: 1.95; }
.post-content::after { display: table; clear: both; content: ""; }
.post-content h2 { padding-top: 16px; margin: 42px 0 16px; font-size: 26px; }
.post-content h3 { margin: 30px 0 12px; font-size: 20px; }
.post-content h4 { margin: 24px 0 10px; font-size: 18px; }
.post-content p { margin: 0 0 20px; }
.post-content a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(13, 90, 58, .35); text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 25px; margin: 0 0 20px; }
.post-content li { margin: 5px 0; }
.post-content blockquote { padding: 15px 22px; margin: 28px 0; border-left: 4px solid var(--green); background: #f0f5f1; color: #394239; font-family: "Noto Serif SC", serif; }
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content pre { position: relative; overflow: auto; padding: 22px; margin: 24px 0; border-radius: 4px; background: #18201c; color: #e9f5ed; font: 13px/1.7 Consolas, "Courier New", monospace; }
.post-content code { padding: 2px 5px; border-radius: 3px; background: #edf0ec; font: .88em Consolas, monospace; }
.post-content pre code { padding: 0; background: transparent; }
.post-content table { display: block; overflow-x: auto; width: 100%; margin: 25px 0; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.post-content th, .post-content td { padding: 9px 13px; border: 1px solid #d7dcd6; text-align: left; }
.post-content th { background: #f1f3ef; }
.post-content img { height: auto; margin: 26px auto; border: 1px solid var(--line); border-radius: 4px; }
.post-article__footer { padding-top: 26px; margin-top: 42px; border-top: 1px solid var(--line); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags > span { margin-right: 5px; color: var(--muted); font-size: 13px; }
.post-tags a { padding: 2px 10px; border: 1px solid #ced5ce; border-radius: 999px; color: var(--green); font-size: 13px; }
.post-license { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 15px; margin-top: 20px; border: 1px solid var(--line); background: #f2f5f1; color: #4d544d; font-size: 13px; }
.post-license strong { color: var(--green); }
.post-license a { color: var(--green); font-weight: 700; }
.post-near { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-near div { min-width: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 4px; }
.post-near div:last-child { text-align: right; }
.post-near span, .post-near strong { display: block; }
.post-near span { margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.post-near strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.post-near div:hover { border-color: var(--green); color: var(--green); }
.related-posts { margin-top: 48px; }
.related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card--related { display: block; padding: 0; border: 0; }
.post-card--related .post-card__cover { margin-bottom: 12px; }
.post-card--related .post-card__title { font-size: 16px; }
.post-card--related .post-card__summary { display: none; }
.post-card--related .post-card__meta { font-size: 12px; }

.page-layout { display: grid; grid-template-columns: minmax(0, var(--narrow)) 220px; gap: 70px; width: min(1070px, 100%); padding: 70px 0 82px; }
.page-article > header { padding-bottom: 24px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.page-article h1 { margin: 0 0 14px; font-size: 40px; }
.page-article header time { color: var(--muted); font-size: 13px; }
.page-toc { position: sticky; top: 105px; height: max-content; margin-top: 18px; }

.comments { padding-top: 40px; margin-top: 52px; border-top: 1px solid var(--line); }
.comments__header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 20px; }
.comments__header h2 { margin: 0; font-size: 25px; }
.comments__header span { color: var(--green); font-weight: 700; }
.comment-form-wrap { padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: #fafbf8; }
.comment-form__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.comment-form__fields input, .comment-form-wrap textarea { width: 100%; padding: 10px 12px; }
.comment-form-wrap textarea { display: block; margin-bottom: 12px; resize: vertical; }
.comment-form__logged { margin-bottom: 10px; font-size: 14px; }
.comment-form__logged a { color: var(--green); }
.comment-list, .comment-children { padding: 0; margin: 26px 0 0; list-style: none; }
.comment-item { display: flex; gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-item > img { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; }
.comment-item__body { flex: 1; min-width: 0; }
.comment-item__head { display: flex; gap: 12px; align-items: baseline; }
.comment-item__head time { color: var(--muted); font-size: 12px; }
.comment-item__text { padding: 6px 0; font-size: 14px; }
.comment-item__text p:last-child { margin-bottom: 0; }
.comment-item__action a { color: var(--green); font-size: 13px; }
.comment-children { margin: 4px 0 0 16px; border-left: 2px solid var(--green-soft); }
.comment-children .comment-item { padding-left: 13px; }
.comments__empty { color: var(--muted); font-size: 14px; }

.pagination { margin: 32px 0 0; }
.pagination__list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pagination li { display: grid; min-width: 37px; height: 37px; padding: 0 10px; place-items: center; border: 1px solid #cbd1ca; border-radius: 4px; font-size: 14px; }
.pagination li a { display: grid; width: 100%; height: 100%; place-items: center; }
.pagination li:hover, .pagination li.is-current { border-color: var(--green); color: #fff; background: var(--green); }

.archive-page { padding: 70px 0 86px; }
.archive-page__hero { padding-bottom: 54px; }
.archive-page__hero h1, .special-page__hero h1 { margin: 0 0 16px; font-size: 42px; }
.archive-page__hero p, .special-page__hero > .post-content { max-width: 700px; margin-bottom: 14px; color: #454c45; font: 19px/1.7 "Noto Serif SC", serif; }
.archive-page__hero span { color: var(--green); font-weight: 700; }
.archive-page__layout { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 90px; }
.archive-year { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.archive-year h2 { margin: 0 0 14px; font-size: 28px; }
.archive-year ol { padding: 0 0 0 24px; margin: 0; border-left: 1px solid #cfd6cf; list-style: none; }
.archive-year li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 8px 0; }
.archive-year li::before { position: absolute; left: -29px; width: 9px; height: 9px; border: 2px solid var(--paper); border-radius: 50%; content: ""; background: var(--green); }
.archive-year time { color: var(--muted); font-size: 14px; }
.archive-year a:hover { color: var(--green); }
.archive-years { position: sticky; top: 106px; align-self: start; padding-left: 26px; border-left: 1px solid var(--line); }
.archive-years h2 { margin: 0 0 14px; font-size: 18px; }
.archive-years a { display: flex; justify-content: space-between; padding: 8px 0; }
.archive-years a.is-active, .archive-years a:hover { color: var(--green); font-weight: 700; }
.archive-years span { color: var(--muted); font-weight: 400; }

.special-page { padding: 70px 0 84px; }
.special-page__hero { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.special-page__hero .post-content > :last-child { margin-bottom: 0; }
.special-page__content { padding: 40px 0; }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; padding: 34px 0 44px; }
.friend-link { display: grid; grid-template-columns: 84px minmax(0, 1fr) 24px; gap: 18px; align-items: center; min-height: 136px; border-bottom: 1px solid var(--line); }
.friend-link img, .friend-link__placeholder { width: 80px; height: 80px; border: 1px solid #d6dbd5; border-radius: 12px; object-fit: cover; }
.friend-link__placeholder { display: grid; place-items: center; color: var(--green); background: #f0f4ef; font: 700 31px "Noto Serif SC", serif; }
.friend-link span { min-width: 0; }
.friend-link strong, .friend-link em, .friend-link small { display: block; }
.friend-link strong { font: 700 20px/1.3 "Noto Serif SC", serif; }
.friend-link em { overflow: hidden; margin: 4px 0 7px; color: #555b55; font-size: 14px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.friend-link small { color: var(--green); font-size: 12px; }
.friend-link b { font-size: 19px; font-weight: 400; }
.friend-link:hover strong, .friend-link:hover b { color: var(--green); }
.link-application { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 42px; border-top: 1px solid var(--line); }
.link-application h2 { margin-bottom: 18px; font-size: 27px; }
.link-application ul { padding: 0; margin: 0; list-style: none; }
.link-application li { position: relative; padding: 7px 0 7px 25px; }
.link-application li::before { position: absolute; left: 0; color: var(--green); content: "✓"; }
.link-application a { color: var(--green); font-weight: 700; }
.friend-link-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.friend-link-form p { margin: 0 0 12px; }
.friend-link-form p:nth-child(3) { grid-column: 1 / -1; }
.friend-link-form label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.friend-link-form input, .friend-link-form textarea { box-sizing: border-box; width: 100%; padding: 9px 10px; border: 1px solid #cbd1ca; border-radius: 4px; background: #fff; }
.friend-link-form textarea { display: block; resize: vertical; }
.friend-link-form button { width: max-content; }
.friend-link-form__honeypot { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); }
.link-application__notice { padding: 10px 12px; margin-bottom: 14px; border-left: 3px solid var(--green); background: var(--green-soft); color: #174d34; font-size: 14px; }
.link-application__notice--error { border-left-color: #b34747; background: #fff1f0; color: #7d2929; }

.works-filter { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.works-filter button { padding: 6px 13px; border: 1px solid transparent; border-radius: 4px; background: transparent; font-weight: 700; }
.works-filter button:hover, .works-filter button.is-active { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 28px; padding-top: 40px; }
.work-card > a:first-child { display: block; overflow: hidden; aspect-ratio: 1.36; border: 1px solid var(--line); border-radius: 4px; background: #edf0eb; }
.work-card > a:first-child img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.work-card > a:first-child:hover img { transform: scale(1.03); }
.work-card__placeholder { display: grid; width: 100%; height: 100%; padding: 16px; place-items: center; color: var(--green); background: #e7eee8; font: 700 20px/1.32 "Noto Serif SC", serif; overflow-wrap: anywhere; text-align: center; }
.work-card h2 { margin: 16px 0 4px; font-size: 20px; }
.work-card h2 a:hover { color: var(--green); }
.work-card__meta { margin: 0 0 10px; color: var(--green); font-size: 13px; font-weight: 700; }
.work-card > div > p:not(.work-card__meta) { min-height: 76px; margin-bottom: 16px; color: #4b524b; font-size: 14px; }
.work-card__result { display: block; padding-top: 13px; border-top: 1px solid var(--line); color: var(--green); font-size: 13px; }

.activity-page { max-width: 1020px; padding: 72px 0 88px; }
.activity-profile { display: flex; gap: 38px; align-items: center; padding: 0 0 50px; border-bottom: 1px solid var(--line); }
.activity-profile > img { width: 160px; height: 160px; border: 1px solid #d4d8d2; border-radius: 50%; object-fit: cover; }
.activity-profile h1 { margin: 0 0 8px; font-size: 36px; }
.activity-profile p { margin-bottom: 16px; color: var(--muted); font-size: 19px; }
.activity-profile__social { display: flex; gap: 18px; }
.activity-profile__social a:hover { color: var(--green); }
.activity-stream { padding-top: 52px; }
.activity-stream > h2 { margin-bottom: 25px; font-size: 32px; }
.activity-stream > ol { padding: 0; margin: 0; list-style: none; }
.activity-stream > ol > li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; padding: 0 0 42px; }
.activity-stream > ol > li > time { color: var(--ink); font: 700 19px/1.3 "Noto Serif SC", serif; }
.activity-stream > ol > li > div { position: relative; min-height: 85px; padding-left: 32px; border-left: 1px solid #cbd3cb; }
.activity-stream > ol > li > div::before { position: absolute; top: 5px; left: -6px; width: 10px; height: 10px; border: 2px solid var(--paper); border-radius: 50%; content: ""; background: var(--green); }
.activity-stream__type { color: var(--green); font-size: 13px; font-weight: 700; }
.activity-stream h3 { margin: 8px 0; font-size: 23px; }
.activity-stream small { display: block; margin-top: 10px; color: var(--muted); }

.not-found { max-width: 700px; padding: 110px 0 130px; margin: 0 auto; text-align: center; }
.not-found__code { margin: 0; color: var(--green); font: 700 180px/1 "Noto Serif SC", serif; }
.not-found h1 { margin: 10px 0 14px; font-size: 35px; }
.not-found > p { color: var(--muted); }
.not-found form { display: flex; gap: 8px; max-width: 520px; margin: 32px auto 16px; }
.not-found input { flex: 1; min-width: 0; padding: 10px 12px; }
.redirect-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; }
.redirect-page section { width: min(510px, 100%); padding: 45px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.redirect-page__mark { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 29px; }
.redirect-page h1 { margin: 6px 0 13px; font-size: 31px; }
.redirect-page section > p:first-of-type { margin: 0; color: var(--green); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.redirect-page section > p:last-of-type { color: var(--muted); }
.redirect-page section > div { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner, .site-footer__legal { display: flex; justify-content: space-between; width: min(var(--content), calc(100% - 64px)); margin: 0 auto; }
.site-footer__inner { gap: 40px; padding: 34px 0; }
.site-footer__brand { font: 700 20px "Noto Serif SC", serif; }
.site-footer p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; font-size: 13px; }
.site-footer nav a:hover, .site-footer__legal a:hover { color: var(--green); }
.site-footer__legal { padding: 15px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer__powered a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__powered { white-space: nowrap; }

.back-to-top { position: fixed; z-index: 7; right: max(24px, env(safe-area-inset-right)); bottom: max(26px, env(safe-area-inset-bottom)); display: grid; width: 60px; height: 60px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #aeb8c2; box-shadow: 0 5px 16px rgba(32, 43, 52, .18); transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.back-to-top:hover { background: #929eaa; box-shadow: 0 7px 18px rgba(32, 43, 52, .24); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid rgba(13, 90, 58, .35); outline-offset: 3px; }
.back-to-top svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

@media (min-width: 901px) {
    .search-keyword-highlight { padding: 0; background: transparent; color: #e87900; }
}

@media (max-width: 900px) {
    .site-header__inner, .site-main, .site-footer__inner, .site-footer__legal { width: min(100% - 40px, var(--content)); }
    .site-nav { gap: 20px; margin: 0 20px; }
    .page-shell { grid-template-columns: minmax(0, 1fr) 250px; gap: 34px; }
    .post-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 34px; }
    .archive-page__layout { gap: 42px; }
    .works-grid { gap: 32px 18px; }
}

@media (max-width: 720px) {
    body { font-size: 15px; line-height: 1.7; }
    .site-header__inner { width: 100%; height: 58px; padding: 0 20px; }
    .site-brand { font-size: 25px; }
    .site-nav { position: fixed; z-index: 8; top: 58px; right: 0; left: 0; display: none; height: auto; padding: 14px 20px 20px; margin: 0; overflow: visible; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
    .menu-open .site-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
    .site-nav a { min-height: 46px; border-bottom: 1px solid #e9ece7; }
    .site-nav a::after { display: none; }
    .site-actions { margin-left: auto; }
    .site-actions__rss { display: none; }
    .site-actions__menu { display: grid; }
    .icon-button { width: 42px; height: 42px; }
    .search-panel { top: 58px; padding: 14px 20px; }
    .search-panel__form button { padding: 0 13px; }
    .site-main { width: calc(100% - 40px); min-height: calc(100vh - 190px); }
    .page-shell, .page-shell--home { display: block; padding: 36px 0 56px; }
    .section-heading { margin-bottom: 14px; }
    .section-heading h2 { font-size: 19px; }
    .featured-post { padding-bottom: 30px; }
    .featured-post__grid { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
    .featured-post__cover { aspect-ratio: 1.58; margin: 0; border: 0; border-radius: 0; }
    .featured-post__body { padding: 20px; }
    .featured-post__title { margin: 10px 0; font-size: 26px; }
    .featured-post__body > p { margin-bottom: 14px; font-size: 15px; }
    .post-stream { margin-top: 30px; }
    .post-card { grid-template-columns: 40% minmax(0, 1fr); gap: 14px; padding: 16px 0; }
    .post-card__cover { aspect-ratio: 1.2; }
    .post-card__title { display: -webkit-box; margin: 3px 0 6px; overflow: hidden; font-size: 17px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .post-card__summary { margin-bottom: 7px; font-size: 13px; line-height: 1.55; }
    .post-card__meta { gap: 6px; font-size: 12px; }
    .post-card__metrics { gap: 6px; }
    .category-label { font-size: 12px; }
    .category-label::before { width: 6px; height: 6px; margin-right: 6px; }
    .sidebar { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
    .page-shell:not(.page-shell--home) .sidebar { padding-top: 34px; }
    .sidebar-section { padding-bottom: 24px; margin-bottom: 26px; }
    .sidebar-section h2 { font-size: 20px; }
    .sidebar > .sidebar-section:not(.sidebar-section--popular):not(.sidebar-section--subscribe), .search-aside section:nth-child(2) { display: none; }
    .search-aside { padding: 34px 0 0; margin-top: 34px; border-top: 1px solid var(--line); border-left: 0; }
    .archive-hero { padding: 0 0 22px; }
    .archive-hero h1, .search-hero h1 { margin-bottom: 10px; font-size: 32px; }
    .archive-hero p { margin-bottom: 10px; font-size: 16px; }
    .search-hero { padding: 0 0 24px; text-align: left; }
    .search-hero h1 { display: none; }
    .search-hero form { margin-bottom: 18px; }
    .search-hero input { padding: 11px 12px; }
    .search-hero button { padding: 0 12px; }
    .search-results .post-card { position: relative; grid-template-columns: 1fr; gap: 0; padding: 20px 34px 20px 0; }
    .search-results .post-card::after { position: absolute; top: 50%; right: 2px; width: 11px; height: 11px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); content: ""; transform: translateY(-50%) rotate(45deg); }
    .search-results .post-card__cover { display: none; }
    .search-results .post-card__title { display: block; font-size: 19px; }
    .search-results .post-card__summary { display: -webkit-box; font-size: 15px; }
    .post-layout { display: block; padding: 20px 0 56px; }
    .breadcrumbs { margin-bottom: 13px; }
    .post-article > h1 { font-size: 29px; line-height: 1.32; }
    .post-article__summary { margin-bottom: 16px; font-size: 16px; }
    .post-article__meta { gap: 8px 12px; padding-bottom: 17px; font-size: 12px; }
    .post-article__cover { margin-bottom: 26px; }
    .post-toc, .page-toc { display: none; }
    .post-content { font-size: 16px; line-height: 1.9; }
    .post-content h2 { margin: 34px 0 14px; font-size: 23px; }
    .post-content h3 { font-size: 19px; }
    .post-content pre { padding: 15px; margin-right: -3px; margin-left: -3px; font-size: 12px; }
    .post-license { grid-template-columns: 1fr; gap: 5px; }
    .post-near { gap: 10px; }
    .post-near div { padding: 10px; }
    .related-posts { margin-top: 40px; }
    .related-posts__grid { grid-template-columns: 1fr; gap: 14px; }
    .post-card--related { display: grid; grid-template-columns: 120px 1fr; gap: 13px; }
    .post-card--related .post-card__cover { margin: 0; }
    .post-card--related .post-card__title { font-size: 16px; }
    .page-layout { display: block; padding: 42px 0 56px; }
    .page-article > header { padding-bottom: 18px; margin-bottom: 28px; }
    .page-article h1 { font-size: 32px; }
    .comments { padding-top: 30px; margin-top: 40px; }
    .comment-form-wrap { padding: 13px; }
    .comment-form__fields { grid-template-columns: 1fr; gap: 8px; }
    .comment-item { gap: 10px; }
    .comment-item > img { flex-basis: 34px; width: 34px; height: 34px; }
    .comment-item__head { display: block; }
    .comment-item__head time { display: block; }
    .pagination__list { justify-content: center; }
    .archive-page { padding: 42px 0 56px; }
    .archive-page__hero { padding-bottom: 34px; }
    .archive-page__hero h1, .special-page__hero h1 { font-size: 34px; }
    .archive-page__hero p, .special-page__hero > .post-content { font-size: 17px; }
    .archive-page__layout { display: block; }
    .archive-years { position: relative; top: 0; display: flex; gap: 20px; overflow-x: auto; padding: 0 0 12px; margin-bottom: 22px; border-bottom: 1px solid var(--line); border-left: 0; white-space: nowrap; }
    .archive-years h2 { display: none; }
    .archive-years a { flex: 0 0 auto; padding: 0; }
    .archive-year { padding: 20px 0; }
    .archive-year h2 { font-size: 27px; }
    .archive-year li { grid-template-columns: 52px 1fr; gap: 10px; }
    .archive-year time { font-size: 12px; }
    .special-page { padding: 42px 0 56px; }
    .special-page__hero { padding-bottom: 26px; }
    .link-grid { display: block; padding: 16px 0 28px; }
    .friend-link { grid-template-columns: 62px minmax(0, 1fr) 20px; gap: 14px; min-height: 108px; }
    .friend-link img, .friend-link__placeholder { width: 60px; height: 60px; border-radius: 10px; }
    .friend-link strong { font-size: 18px; }
    .friend-link em { font-size: 13px; }
    .link-application { display: block; padding-top: 30px; }
    .link-application > div + div { margin-top: 34px; }
    .link-application h2 { font-size: 25px; }
    .friend-link-form { grid-template-columns: 1fr; }
    .works-filter { flex-wrap: nowrap; overflow-x: auto; padding: 20px 0; }
    .works-filter button { flex: 0 0 auto; }
    .works-grid { display: block; padding-top: 25px; }
    .work-card { padding: 0 0 30px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
    .work-card h2 { font-size: 21px; }
    .work-card > div > p:not(.work-card__meta) { min-height: 0; }
    .activity-page { padding: 42px 0 55px; }
    .activity-profile { gap: 20px; padding-bottom: 33px; }
    .activity-profile > img { width: 90px; height: 90px; }
    .activity-profile h1 { font-size: 30px; }
    .activity-profile p { margin-bottom: 9px; font-size: 15px; }
    .activity-profile__social { gap: 12px; font-size: 13px; }
    .activity-stream { padding-top: 35px; }
    .activity-stream > ol > li { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding-bottom: 28px; }
    .activity-stream > ol > li > time { font-size: 13px; }
    .activity-stream > ol > li > div { padding-left: 17px; }
    .activity-stream h3 { font-size: 20px; }
    .not-found { padding: 70px 0 85px; }
    .not-found__code { font-size: 116px; }
    .not-found form { display: grid; grid-template-columns: 1fr; }
    .not-found .button { width: 100%; }
    .redirect-page { padding: 20px; }
    .redirect-page section { padding: 32px 22px; }
    .site-footer__inner { display: block; padding: 28px 0; }
    .site-footer nav { gap: 8px 20px; padding-top: 20px; }
    .site-footer__legal { display: block; padding: 13px 0; }
    .site-footer__legal > a, .site-footer__powered { display: block; margin-top: 4px; }
    .site-footer__powered a { display: inline; margin-top: 0; }
    .back-to-top { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 52px; height: 52px; }
    .back-to-top svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .back-to-top { transition: none; }
}
