/*
Theme Name: Qing Journal
Description: A quiet, considered journal for code, ideas and everyday discoveries.
Template: kratos-pjax-master
Version: 1.0.0
Text Domain: qing-journal
*/

:root {
  --paper: #f6f5ef;
  --white: #fffefa;
  --forest: #183e35;
  --forest-deep: #123229;
  --ink: #273a32;
  --muted: #66735f;
  --sage: #dce4d9;
  --sage-light: #edf0e8;
  --gold: #b29462;
  --line: #dddfd5;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body.qing-site { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
.qing-site ::selection { color: var(--forest-deep); background: #dce2ca; }
.qing-site h1, .qing-site h2, .qing-site h3, .qing-site h4, .qing-site h5, .qing-site h6, .qing-site p { margin: 0; }
.qing-site a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.qing-site a, .qing-site button { -webkit-tap-highlight-color: transparent; }
.qing-site img { max-width: 100%; height: auto; vertical-align: middle; }
.qing-site svg { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.qing-site button, .qing-site input, .qing-site textarea, .qing-site select { font: inherit; }
.qing-site button, .qing-site input[type="submit"] { cursor: pointer; }
.qing-site button { color: inherit; }
.qing-site button:disabled, .qing-site input:disabled { cursor: not-allowed; opacity: .6; }
.qing-site :focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.qing-site [hidden] { display: none !important; }
.site-shell { width: min(100% - 80px, 1240px); margin-inline: auto; }
.screen-reader-text, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10001; padding: 9px 20px; border-radius: 2px; background: var(--forest); color: var(--white) !important; }
.skip-link:focus { top: 16px; }

/* A compact masthead lets the journal breathe. */
.site-header { position: relative; z-index: 50; background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 112px; border-bottom: 1px solid var(--line); }
.site-brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark { position: relative; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--forest); border-radius: 3px; background: var(--forest); color: #f6f1df; font-family: var(--serif); font-size: 25px; line-height: 1; }
.brand-mark > span { position: absolute; right: 3px; bottom: 1px; color: #c9b883; font-size: 17px; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-copy strong { color: var(--forest); font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.3; letter-spacing: .13em; }
.brand-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; letter-spacing: .24em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; padding: 0; margin: 0; }
.primary-nav ul.menu { display: flex; align-items: center; gap: 33px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a { display: block; position: relative; padding: 14px 0; color: #5a665c; font-size: 14px; letter-spacing: .03em; transition: color var(--ease); }
.primary-nav .menu > li > a::after { position: absolute; bottom: 7px; left: 0; width: 100%; height: 1px; background: var(--gold); content: ""; opacity: 0; transform: scaleX(.5); transition: opacity var(--ease), transform var(--ease); }
.primary-nav .menu > li > a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--forest); }
.primary-nav .menu > li > a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { opacity: 1; transform: scaleX(1); }
.primary-nav ul.sub-menu { position: absolute; top: 100%; left: -20px; min-width: 176px; padding: 12px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--white); box-shadow: 0 10px 30px #183e350c; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease); }
.primary-nav ul.sub-menu a { display: block; padding: 7px 20px; font-size: 13px; white-space: nowrap; }
.primary-nav ul.sub-menu a:hover { background: var(--sage-light); color: var(--forest); }
.primary-nav li:hover > ul.sub-menu, .primary-nav li:focus-within > ul.sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.primary-nav ul.sub-menu ul.sub-menu { top: -13px; left: calc(100% - 1px); }
.header-actions { display: flex; align-items: center; gap: 10px; padding-left: 3px; }
.icon-button, .menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; background: transparent; border-radius: 50%; transition: color var(--ease), background var(--ease); }
.icon-button:hover, .menu-toggle:hover { color: var(--forest); background: #e8eade; }
.icon-button svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.search-panel { border-bottom: 1px solid var(--line); padding-block: 22px; }
.search-form { display: flex; width: 100%; gap: 10px; }
.search-form label { flex: 1; min-width: 0; }
.search-form input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 3px; }
.search-form button { min-width: 85px; padding: 10px 20px; border: 1px solid var(--forest); border-radius: 3px; color: var(--white); background: var(--forest); }
.search-form button:hover { background: var(--forest-deep); }

/* The opening spread. */
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 76px; padding-block: 68px 58px; }
.hero-copy { padding-bottom: 4px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 12px; color: #76846f; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { width: 26px; height: 1px; background: var(--gold); content: ""; }
.eyebrow > span:empty { display: none; }
.hero-title { margin-top: 25px !important; color: var(--forest); font-family: var(--serif); font-size: clamp(44px, 4.5vw, 65px); font-weight: 500; line-height: 1.46; letter-spacing: .045em; }
.hero-title em { position: relative; font-weight: inherit; font-style: normal; white-space: nowrap; }
.hero-title em::after { position: absolute; right: 0; bottom: -.04em; left: 0; height: 1px; background: var(--gold); content: ""; }
.hero-description { max-width: 390px; margin-top: 26px !important; color: #6b756a; font-size: 14px; line-height: 2.1; letter-spacing: .035em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 47px; padding: 11px 23px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 500; line-height: 1.8; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--forest); color: var(--white) !important; }
.button-primary:hover { border-color: var(--forest-deep); background: var(--forest-deep); }
.button-text { padding-inline: 0; color: #62705f; }
.button-text:hover { color: var(--forest); }
.hero-notes { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; color: #66735f; font-size: 11px; letter-spacing: .07em; }
.hero-notes span + span::before { display: inline-block; width: 3px; height: 3px; margin-right: 12px; border-radius: 50%; background: var(--gold); vertical-align: middle; content: ""; }
.hero-art { position: relative; margin: 0 0 6px; padding: 12px 12px 32px; border: 1px solid #d8ddcd; border-radius: 190px 190px 5px 5px; }
.hero-art::before { position: absolute; width: 65px; height: 65px; top: -16px; right: -23px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); border-radius: 0 18px 0 0; content: ""; }
.hero-art > img { display: block; width: 100%; height: 421px; object-fit: cover; object-position: center 50%; border-radius: 180px 180px 2px 2px; }
.art-caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 17px; color: #69745f; font-size: 9px; line-height: 1.5; letter-spacing: .14em; }
.art-label { position: absolute; left: -29px; bottom: 76px; padding: 12px 17px; border: 1px solid #e1e2d7; background: #fbfaf4f5; color: #61715d; font-size: 10px; letter-spacing: .2em; writing-mode: vertical-rl; }
.art-star { position: absolute; bottom: 8px; right: -20px; display: grid; place-items: center; width: 48px; height: 48px; background: var(--paper); color: var(--gold); font-family: Georgia, serif; font-size: 44px; line-height: 1; }

/* A restrained category index and article listing. */
.category-ribbon { display: flex; align-items: stretch; gap: 0; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-link { display: flex; align-items: center; justify-content: center; flex: 1; gap: 11px; min-width: 0; padding: 2px 20px; color: #52644f !important; font-size: 12px; transition: color var(--ease); }
.category-link + .category-link { border-left: 1px solid var(--line); }
.category-link:hover { color: var(--forest-deep) !important; }
.category-icon { color: #84947b; }
.category-icon svg { width: 18px; height: 18px; }
.category-count { margin-left: auto; padding-left: 7px; color: #87907f; font-family: Georgia, serif; font-size: 12px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 64px; align-items: start; margin-top: 57px; margin-bottom: 78px; }
.posts-column, .article-column { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading > div { min-width: 0; }
.section-kicker { margin-bottom: 7px; color: #8a927f; font-size: 9px; letter-spacing: .2em; }
.section-title { color: var(--forest); font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.5; letter-spacing: .06em; }
.section-title > span { margin-left: 8px; color: #a9ad91; font-family: Georgia, serif; font-size: .6em; font-weight: 400; }
.section-link { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding-bottom: 2px; color: #7c866f !important; font-size: 11px; }
.section-link svg { width: 13px; height: 13px; }
.section-link:hover { color: var(--forest) !important; }
.post-card { display: flex; align-items: center; gap: 25px; min-width: 0; padding: 29px 0; border-bottom: 1px solid var(--line); }
.post-image { display: block; width: 168px; height: 122px; flex: 0 0 168px; overflow: hidden; border-radius: 4px; background: #e5e8db; }
.post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.post-image:hover img { transform: scale(1.035); }
.post-image-fallback { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: linear-gradient(135deg, #dfe6d8 0%, #c8d3bd 100%); color: #6f8665; }
.post-image-fallback svg { width: 47px; height: 47px; stroke-width: 1; }
.post-image-fallback > span { color: #435638; font-size: 8px; line-height: 1.4; letter-spacing: .12em; }
.post-copy { flex: 1; min-width: 0; }
.post-category { display: inline-block; margin-bottom: 5px; color: #73673f !important; font-size: 11px; letter-spacing: .06em; }
.post-title { color: var(--forest); font-size: 17px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.post-title a { transition: color var(--ease); }
.post-title a:hover { color: #628061; }
.post-excerpt { display: -webkit-box; margin-top: 8px !important; overflow: hidden; color: #66735f; font-size: 13px; line-height: 1.9; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 11px; color: #66735f; font-size: 11px; line-height: 1.7; }
.post-meta svg { width: 12px; height: 12px; margin-right: 3px; }
.post-meta > span, .post-meta > a { display: inline-flex; align-items: center; gap: 3px; }
.post-meta .meta-divider { width: 2px; height: 2px; border-radius: 50%; background: #a9ad9b; }
.post-arrow { display: grid; place-items: center; flex-shrink: 0; width: 27px; height: 35px; color: #899477 !important; transition: color var(--ease), transform var(--ease); }
.post-arrow svg { width: 18px; height: 18px; }
.post-arrow:hover { color: var(--forest) !important; transform: translateX(3px); }
.protected-label { display: inline-flex; align-items: center; gap: 5px; color: #927448; font-size: 10px; }
.protected-label svg { width: 12px; height: 12px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; padding-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 3px; color: #77816d !important; font-size: 12px; transition: background var(--ease), color var(--ease); }
.page-numbers.current { border-color: var(--forest); background: var(--forest); color: var(--white) !important; }
a.page-numbers:hover { background: #e7eadf; color: var(--forest) !important; }
.page-numbers.dots { min-width: 22px; padding: 0; }

/* Marginal notes. */
.journal-sidebar { min-width: 0; padding-top: 0; }
.about-panel { position: relative; overflow: hidden; padding: 30px 26px 27px; border-radius: 5px; background: var(--forest); color: #eff2e5; }
.about-panel::after { position: absolute; width: 130px; height: 130px; top: -54px; right: -50px; border: 1px solid #ffffff15; border-radius: 50%; content: ""; }
.avatar-mark { position: relative; display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 19px; border: 1px solid #b0bda777; border-radius: 50%; color: #d5d2a9; font-family: var(--serif); font-size: 23px; }
.avatar-mark > span { position: absolute; right: 7px; bottom: 4px; color: #d5d2a9; font-size: 17px; line-height: 1; }
.avatar-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about-panel .eyebrow { gap: 9px; margin-bottom: 10px; color: #b6c7a8; font-size: 8px; letter-spacing: .13em; }
.about-panel .eyebrow::before { width: 15px; background: #b7b187; }
.about-title { margin-bottom: 11px !important; color: #f1f2e5; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .07em; }
.about-copy { color: #bfccbc; font-size: 12px; line-height: 2.05; }
.about-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 17px; border-top: 1px solid #a4b59e38; color: #b9c5a8; font-size: 10px; letter-spacing: .08em; }
.about-meta strong { margin-right: 3px; color: #ebe9d1; font-family: Georgia, serif; font-size: 15px; font-weight: 400; }
.sidebar-section { margin-top: 33px; }
.sidebar-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px !important; color: var(--forest); font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .08em; }
.sidebar-heading::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { border-bottom: 1px solid #e4e5db; }
.category-list li:last-child { border-bottom: 0; }
.category-list li a { display: flex; align-items: center; gap: 9px; padding: 10px 0; color: #6e7b64; font-size: 12px; transition: color var(--ease); }
.category-list li a::before { width: 4px; height: 4px; border: 1px solid #a6b08d; border-radius: 50%; content: ""; }
.category-list li a:hover { color: var(--forest); }
.category-list .count { margin-left: auto; color: #8c947d; font-family: Georgia, serif; font-size: 12px; }
.small-post-list { display: flex; flex-direction: column; gap: 17px; }
.small-post { display: block; }
.small-post-title { color: #506446; font-size: 12px; font-weight: 400; line-height: 1.8; transition: color var(--ease); overflow-wrap: anywhere; }
.small-post:hover .small-post-title { color: var(--forest); }
.small-post-date { display: block; margin-top: 5px; color: #66735f; font-size: 11px; }
.small-post-date svg { width: 12px; height: 12px; float: right; }
.sidebar-note { margin-top: 29px; padding: 20px; border-left: 1px solid var(--gold); background: #eceee3; color: #748167; font-family: var(--serif); font-size: 13px; line-height: 2.1; }
.sidebar-note small, .sidebar-note > span { display: block; margin-top: 7px; font-family: var(--sans); font-size: 9px; letter-spacing: .12em; }

/* The colophon. */
.site-footer { padding-top: 35px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 30px; }
.footer-brand { color: var(--forest); font-family: var(--serif); font-size: 21px; letter-spacing: .13em; }
.footer-brand > a > span { margin-left: 7px; color: #7c886c; font-family: var(--sans); font-size: 9px; letter-spacing: .13em; white-space: nowrap; }
.footer-note { margin-top: 7px !important; color: #8b917e; font-size: 11px; letter-spacing: .05em; }
.footer-links { display: flex; align-items: center; gap: 25px; color: #768169; font-size: 11px; }
.footer-links a:hover { color: var(--forest); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 19px 23px; border-top: 1px solid #e2e4d8; color: #949a89; font-size: 10px; line-height: 1.9; }
.footer-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer > .site-shell > .footer-legal { padding-bottom: 22px; color: var(--muted); font-size: 10px; }
.footer-legal-icp { display: inline-flex; align-items: center; gap: 4px; }
.footer-legal .footer-legal-logo { display: block; width: auto; height: 12px; max-width: none; vertical-align: baseline; }
.footer-bottom a:hover { color: var(--forest); }

/* Archives and search keep the same editorial rhythm. */
.page-intro { padding-block: 48px 32px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; color: #939985; font-size: 11px; }
.breadcrumbs a:hover { color: var(--forest); }
.breadcrumbs svg { width: 12px; height: 12px; }
main.site-shell > .breadcrumbs { margin-top: 31px; }
.page-intro h1 { color: var(--forest); font-family: var(--serif); font-size: clamp(30px, 3.5vw, 45px); font-weight: 500; letter-spacing: .06em; line-height: 1.6; overflow-wrap: anywhere; }
.archive-description { max-width: 680px; margin-top: 15px; color: #7b8571; font-size: 13px; }
.archive-description p + p { margin-top: 8px; }
.search-result-count { margin-top: 13px !important; color: #7b8571; font-size: 12px; }
.page-intro + .content-layout { margin-top: 34px; }
.empty-state { padding: 80px 20px 90px; text-align: center; }
.empty-state h1, .empty-state h2 { color: var(--forest); font-family: var(--serif); font-size: 30px; font-weight: 500; }
.empty-state p { max-width: 480px; margin: 18px auto 25px; color: var(--muted); font-size: 13px; }
.empty-state .search-form { max-width: 440px; margin: 25px auto; }
.error-code { display: block; margin-bottom: 20px; color: #c8cfb8; font-family: var(--serif); font-size: clamp(72px, 13vw, 150px); line-height: 1.2; }

/* A calm reading surface. */
.reading-layout { display: grid; grid-template-columns: minmax(0, 840px) 232px; align-items: start; gap: 64px; margin-top: 38px; margin-bottom: 76px; }
.article-column { min-width: 0; }
.article-header { padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.article-header > .eyebrow { margin-bottom: 17px; }
.article-header .post-category { margin-bottom: 14px; font-size: 11px; }
.article-title { color: var(--forest); font-family: var(--serif); font-size: clamp(28px, 3.1vw, 42px); font-weight: 600; line-height: 1.6; letter-spacing: .025em; overflow-wrap: anywhere; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: #88917d; font-size: 11px; }
.article-meta > span, .article-meta > a { display: inline-flex; align-items: center; gap: 5px; }
.article-meta svg { width: 13px; height: 13px; }
.article-body{ margin-top: 32px; color: #4a5949; font-size: 15px; line-height: 2.05; overflow-wrap: anywhere; }
.article-body > :first-child{ margin-top: 0; }
.article-body p{ margin-block: 0 1.4em; }
.article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6{ margin-block: 1.9em .8em; color: var(--forest); font-family: var(--serif); font-weight: 600; line-height: 1.65; scroll-margin-top: 32px; }
.article-body h2{ padding-bottom: .45em; border-bottom: 1px solid var(--line); font-size: 25px; }
.article-body h3{ font-size: 21px; }
.article-body h4{ font-size: 18px; }
.article-body a{ color: #4d7657; text-decoration: underline; text-decoration-color: #c0c9b2; overflow-wrap: anywhere; }
.article-body a:hover{ color: var(--forest-deep); text-decoration-color: var(--gold); }
.article-body strong{ color: #354d36; font-weight: 600; }
.article-body ul, .article-body ol{ margin-block: 1em 1.5em; padding-left: 1.6em; }
.article-body li + li{ margin-top: .45em; }
.article-body li::marker{ color: #91a07e; }
.article-body blockquote{ margin: 1.8em 0; padding: 19px 24px; border-left: 2px solid var(--gold); background: #eceee3; color: #6c7d5f; font-family: var(--serif); font-size: 17px; }
.article-body blockquote p:last-child{ margin-bottom: 0; }
.article-body blockquote cite { display: block; margin-top: 10px; color: #869175; font-family: var(--sans); font-size: 12px; }
.article-body hr{ height: 1px; margin-block: 35px; border: 0; background: var(--line); }
.article-body img{ max-width: 100%; height: auto; border-radius: 4px; }
.article-body .wp-smiley{ width: 22px; max-height: 22px; border-radius: 0; }
.article-body figure{ max-width: 100%; margin: 1.8em 0; }
.article-body figcaption, .article-body .wp-caption-text { margin-top: 10px; color: #8a947e; font-size: 11px; text-align: center; }
.article-body iframe, .article-body video, .article-body audio{ max-width: 100%; }
.article-body .video-container { margin-block: 25px; }
.article-body .aligncenter { display: block; margin-inline: auto; }
.article-body .alignleft { float: left; margin: 8px 25px 14px 0; }
.article-body .alignright { float: right; margin: 8px 0 14px 25px; }
.article-body::after { display: block; clear: both; content: ""; }
.article-body .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.article-body .wp-block-gallery figure { flex: 1 1 180px; margin: 0; }
.article-body .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; }
.article-body .wp-block-button__link { padding: 10px 22px; border-radius: 3px; background: var(--forest); color: var(--white); text-decoration: none; }
.article-body .wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.article-body code{ padding: .2em .4em; border: 1px solid #e0e3d6; border-radius: 3px; background: #eeefe5; color: #58724a; font-family: var(--mono); font-size: .86em; word-break: break-word; }
.article-body pre{ max-width: 100%; margin-block: 24px; padding: 23px 25px; overflow-x: auto; border: 1px solid #2b4a3c; border-radius: 4px; background: #1f382d; color: #e0e6d5; font-family: var(--mono); font-size: 12px; line-height: 1.9; tab-size: 4; white-space: pre; overflow-wrap: normal; }
.article-body pre code{ padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; word-break: normal; white-space: inherit; }
.article-body kbd{ display: inline-block; padding: 0 6px; border: 1px solid #ced4c2; border-bottom-width: 2px; border-radius: 3px; background: var(--white); color: #5b6c50; font-family: var(--mono); font-size: .85em; line-height: 1.8; }
.article-body mark { padding: 1px 3px; background: #e6e4bb; color: #4a4e30; }
.article-body table{ display: block; width: 100%; max-width: 100%; margin-block: 25px; overflow-x: auto; border-collapse: collapse; font-size: 13px; }
.article-body th, .article-body td{ padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.article-body th{ background: #e9ecdf; color: var(--forest); font-weight: 500; }
.article-body tbody tr:nth-child(even){ background: #f0f1e9; }
.article-footer { margin-top: 38px; padding-top: 23px; border-top: 1px solid var(--line); }
.tag-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #889279; font-size: 11px; }
.tag-links a { padding: 3px 11px; border: 1px solid #dce1d1; border-radius: 3px; color: #748462; }
.tag-links a:hover { border-color: #b5c0a6; background: #eef0e7; color: var(--forest); }
.article-actions { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 30px; }
.like-button, .copy-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 20px; border: 1px solid #cbd4bd; border-radius: 3px; background: transparent; color: #637c53 !important; font-size: 12px; transition: color var(--ease), border-color var(--ease), background var(--ease); }
.like-button svg, .copy-link svg { width: 15px; height: 15px; }
.like-button:hover, .copy-link:hover { border-color: var(--forest); background: var(--forest); color: var(--white) !important; }
.like-button.is-liked { border-color: #80916d; background: #e5eadc; color: #46633c !important; }
.post-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 35px; padding-block: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-pagination > a, .post-pagination > div { min-width: 0; }
.post-pagination > :last-child { text-align: right; }
.post-pagination > div > span { display: block; margin-bottom: 6px; color: #7b886c; font-size: 10px; }
.post-pagination > div > a { display: block; color: #5a7350; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.post-pagination > div > a:hover { color: var(--forest); }
.post-pagination small { display: block; margin-bottom: 6px; color: #929c82; font-size: 10px; }
.post-pagination span, .post-pagination strong { color: #5a7350; font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.post-pagination a:hover span, .post-pagination a:hover strong { color: var(--forest); }
.reading-sidebar { position: sticky; top: 35px; min-width: 0; }
.toc-panel { padding: 23px 0 23px 23px; border-left: 1px solid var(--line); }
.toc-panel .sidebar-heading { margin-bottom: 17px !important; }
.toc-panel .sidebar-heading::after { display: none; }
.toc-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.toc-link { position: relative; display: block; color: #8a957d !important; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; transition: color var(--ease); }
.toc-link.is-subheading { padding-left: 11px; font-size: 10px; }
.toc-link.is-active, .toc-link:hover { color: var(--forest) !important; }
.toc-link.is-active::before { position: absolute; top: 3px; left: -24px; width: 2px; height: calc(100% - 6px); background: var(--gold); content: ""; }
.toc-empty { color: #929b85; font-size: 11px; }
.reading-sidebar .sidebar-note { margin-top: 25px; font-size: 12px; }
.reading-sidebar .about-panel { margin-top: 28px; }
.reading-sidebar .about-title { font-size: 20px; }

/* WordPress comments and the existing verification fields. */
.comments-section { margin-top: 45px; }
.comments-section > .section-heading { padding-bottom: 20px; }
.comments-section .section-title { font-size: 25px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list > li { margin-top: 0; }
.comment-body { position: relative; padding: 25px 0 24px 51px; border-bottom: 1px solid var(--line); font-size: 13px; }
.comment-author { color: #506b45; font-size: 12px; }
.comment-author .avatar { position: absolute; top: 28px; left: 0; width: 36px; height: 36px; border: 1px solid #e0e5d5; border-radius: 50%; }
.comment-author .fn { font-style: normal; font-weight: 500; }
.comment-author .says { display: none; }
.comment-metadata { margin-top: 3px; color: #939d86; font-size: 10px; }
.comment-metadata a:hover { color: var(--forest); }
.comment-content { margin-top: 12px; color: #6d7e60; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.comment-content p + p { margin-top: 10px; }
.comment-content a { color: #567c4a; text-decoration: underline; }
.comment-content .wp-smiley { max-height: 22px; width: auto; }
.comment-awaiting-moderation { margin-top: 10px; color: #a0874c; font-size: 11px; font-style: normal; }
.reply { margin-top: 8px; color: #9aa18c; font-size: 10px; }
.reply a:hover { color: var(--forest); }
.comment-list .children { list-style: none; margin: 0; padding-left: 38px; }
.comment-list .children .children { padding-left: 20px; }
.bypostauthor > .comment-body .fn::after { display: inline-block; margin-left: 7px; padding: 0 5px; border: 1px solid #d4dcc6; border-radius: 2px; color: #879776; font-size: 9px; font-weight: 400; content: "作者"; }
.comment-respond { margin-top: 32px; }
.comment-reply-title { color: var(--forest); font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: .05em; }
.comment-reply-title small { margin-left: 10px; color: #8f9a7f; font-family: var(--sans); font-size: 10px; letter-spacing: 0; }
.comment-notes, .logged-in-as, .must-log-in { margin-top: 12px !important; color: #929b83; font-size: 11px; }
.logged-in-as a, .must-log-in a { color: #56784c; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 17px; }
.comment-form p, .comment-form > div { margin: 0; min-width: 0; }
.comment-form .comment-notes, .comment-form .logged-in-as, .comment-form .must-log-in, .comment-form-comment, .comment-form > .comment, .comment-form-cookies-consent, .form-submit { grid-column: 1 / -1; }
.comment-form label { display: block; margin-bottom: 5px; color: #7c8c6b; font-size: 11px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]), .comment-form textarea { display: block; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #d8dfcc; border-radius: 3px; background: #fbfbf5; color: #4b6440; font-size: 12px; line-height: 1.8; transition: border-color var(--ease); }
.comment-form textarea { min-height: 142px; resize: vertical; }
.comment-form input::placeholder, .comment-form textarea::placeholder { color: #a0a991; opacity: 1; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #9fac8d; }
.comment-form .input-group { position: relative; }
.comment-form .input-group-addon { display: none; }
.comment-form .form-control-feedback { position: absolute; right: 11px; top: 10px; color: #aa956f; font-size: 10px; }
.comment-form .required { color: #a69065; }
.comment-form-cookies-consent { display: flex; align-items: start; gap: 8px; color: #929b83; }
.comment-form-cookies-consent input { margin: 4px 0 0; accent-color: var(--forest); }
.comment-form-cookies-consent label { margin: 0; color: #929b83; font-size: 10px; }
.comment-form .submit, .comment-form .btn-primary { min-height: 43px; padding: 9px 25px; border: 1px solid var(--forest); border-radius: 3px; background: var(--forest); color: var(--white); font-size: 12px; transition: background var(--ease); }
.comment-form .submit:hover, .comment-form .btn-primary:hover { background: var(--forest-deep); }
.form-submit { margin-top: 2px !important; }
#comments-nav { display: flex; justify-content: center; gap: 7px; margin-top: 20px; }

/* Retain the parent theme's useful post shortcodes. */
.article-body .alert{ margin-block: 20px; padding: 15px 19px; border: 1px solid #d0ddbf; border-left-width: 3px; border-radius: 3px; background: #eaf0e1; color: #667f52; font-size: 13px; }
.article-body .alert-info{ border-color: #c7d8d7; background: #e8efec; color: #557c71; }
.article-body .alert-warning{ border-color: #e2d8b6; background: #f2efdf; color: #8b7749; }
.article-body .alert-danger{ border-color: #dfc6b6; background: #f4eae0; color: #987451; }
.article-body .panel{ margin-block: 24px; overflow: hidden; border: 1px solid #d2ddc5; border-radius: 3px; }
.article-body .panel-heading{ padding: 11px 18px; border-bottom: 1px solid #d2ddc5; background: #e9efdf; }
.article-body .panel-heading h3{ margin: 0; padding: 0; border: 0; color: #627d4d; font-family: var(--sans); font-size: 14px; }
.article-body .panel-body{ padding: 20px; }
.article-body .panel-body > :last-child { margin-bottom: 0; }
.article-body .panel-info, .article-body .panel-info .panel-heading { border-color: #c8d8d4; }
.article-body .panel-info .panel-heading { background: #e7eeea; }
.article-body .panel-info .panel-heading h3 { color: #5d7b6c; }
.article-body .panel-warning, .article-body .panel-warning .panel-heading { border-color: #e0d6b4; }
.article-body .panel-warning .panel-heading { background: #f1eedd; }
.article-body .panel-warning .panel-heading h3 { color: #8b7a4f; }
.article-body .panel-danger, .article-body .panel-danger .panel-heading { border-color: #dfcbb9; }
.article-body .panel-danger .panel-heading { background: #f1e8dd; }
.article-body .panel-danger .panel-heading h3 { color: #997955; }
.article-body .downbtn{ display: inline-flex; align-items: center; gap: 8px; padding: 8px 19px; margin: 4px 8px 4px 0; border: 1px solid var(--forest); border-radius: 3px; background: var(--forest); color: var(--white); font-size: 12px; text-decoration: none; }
.article-body .downbtn:hover{ background: var(--forest-deep); color: var(--white); }
.article-body .downcloud { border-color: #859b6d; background: #7e9465; }
.article-body .xControl { margin-block: 22px; border: 1px solid #d6dfca; border-radius: 3px; }
.article-body .xHeading { display: flex; align-items: center; gap: 11px; padding: 11px 16px; background: #ebefe3; cursor: pointer; }
.article-body .xHeading h5 { flex: 1; margin: 0; color: #647e51; font-family: var(--sans); font-size: 13px; font-weight: 500; }
.article-body .xIcon { color: #95a67d; font-size: 11px; }
.article-body .xContent { display: none; }
.article-body .xControl.active > .xContent, .article-body .xContent.active, .article-body .xHeading.active + .xContent, .article-body .xControl.is-open > .xContent { display: block; }
.article-body .xContent .inner { padding: 20px; border-top: 1px solid #d6dfca; }
.article-body .xContent .inner > :last-child { margin-bottom: 0; }
.article-body .heimu{ border-radius: 2px; background: #42503b; color: #42503b; transition: color var(--ease); cursor: help; }
.article-body .heimu:hover, .article-body .heimu:focus{ color: #edf1df; }
.article-body .hide_notice, .article-body .unhide { margin-block: 20px; padding: 18px 21px; border: 1px dashed #c1ceb0; border-radius: 3px; background: #eef1e6; color: #7f946a; font-size: 13px; }
.article-body .unhide .info { margin-bottom: 13px; color: #9aa887; font-size: 11px; }
.article-body .progress { height: 9px; margin-block: 20px; overflow: hidden; border-radius: 9px; background: #e1e8d5; }
.article-body .progress-bar { height: 100%; background: #8caa6d; }
.protected-post-form { margin-top: 30px; padding: 27px; border: 1px solid #d8dfcb; border-radius: 4px; background: #eef1e6; color: #6e825b; font-size: 13px; }
.protected-post-form p { margin: 0 0 16px; }
.protected-post-form .panel { margin: 0; border: 0; background: none; }
.protected-post-form .panel-body { padding: 0; }
.protected-post-form .input-group, .protected-post-form form > p:last-child { display: flex; gap: 10px; align-items: end; }
.protected-post-form input[type="password"] { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #cad6b8; border-radius: 3px; background: var(--white); color: var(--forest); }
.protected-post-form label { flex: 1; min-width: 0; }
.protected-post-form input[type="submit"], .protected-post-form button { min-height: 44px; flex-shrink: 0; padding: 9px 20px; border: 1px solid var(--forest); border-radius: 3px; background: var(--forest); color: var(--white); font-size: 12px; }
.protected-post-form .input-group-addon { display: none; }
.protected-post-form .input-group-btn { display: flex; }

/* Small utilities are deliberately unobtrusive. */
.reading-progress { position: fixed; top: 0; left: 0; z-index: 9999; width: 0; height: 2px; background: var(--gold); pointer-events: none; }
.admin-bar .reading-progress { top: 32px; }
.back-to-top { position: fixed; z-index: 45; right: 25px; bottom: 25px; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #d6deca; border-radius: 3px; background: #f6f5eff2; color: #758969 !important; box-shadow: 0 3px 15px #183e3507; }
.back-to-top:hover { border-color: #839b71; color: var(--forest) !important; }
.back-to-top svg { width: 15px; height: 15px; }
.toast { position: fixed; z-index: 10000; bottom: 28px; left: 50%; max-width: min(440px, calc(100% - 40px)); padding: 11px 23px; transform: translateX(-50%); border: 1px solid #365c47; border-radius: 3px; background: var(--forest); color: var(--white); font-size: 12px; text-align: center; box-shadow: 0 5px 24px #183e351a; }

/* Secondary text remains readable against the warm paper (minimum 4.5:1). */
.brand-copy small, .hero-description, .eyebrow, .section-kicker, .section-link,
.art-caption, .art-label, .category-count, .category-list .count,
.sidebar-note, .sidebar-note small, .sidebar-note > span, .footer-note,
.footer-links, .footer-bottom, .footer-brand > a > span, .breadcrumbs,
.archive-description, .search-result-count, .article-meta, .toc-link,
.toc-empty, .comment-metadata, .reply, .comment-notes, .logged-in-as,
.must-log-in, .comment-form-cookies-consent, .comment-form-cookies-consent label,
.article-body figcaption, .article-body .wp-caption-text { color: var(--muted); }
.section-link, .toc-link, .page-numbers { color: var(--muted) !important; }
.page-numbers.current { color: var(--white) !important; }
.about-panel .eyebrow { color: #b6c7a8; }
.category-list li a { color: #627256; }
.small-post-title { font-size: 13px; }
.protected-label { color: #806030; }
.footer-note { font-size: 11px; }
.comment-notes, .logged-in-as, .must-log-in { font-size: 12px; }
.comment-form label { color: #657854; font-size: 12px; }
.comment-form input::placeholder, .comment-form textarea::placeholder { color: #6e7e61; }
.footer-legal a:hover, .footer-links a:hover { color: var(--forest); }
.sidebar-note, .sidebar-note small, .sidebar-note > span { color: #606e59; }
.article-body blockquote{ color: #566d49; }
.comment-content { color: #5d714f; }
.tag-links, .tag-links a { color: #5f754d; }
.article-body .alert-success{ color: #506b3d; }
.article-body .alert-info{ color: #456c61; }
.article-body .alert-warning{ color: #776239; }
.article-body .alert-danger{ color: #7e5939; }
.article-body .panel-heading h3, .article-body .xHeading h5 { color: #526d3f; }
.article-body .hide_notice, .article-body .unhide { color: #5e7549; }
.protected-post-form { color: #5f7350; }

@media (min-width: 1500px) {
  .hero { gap: 92px; padding-block: 76px 65px; }
  .hero-art > img { height: 448px; }
}

@media (max-width: 1120px) {
  .site-shell { width: calc(100% - 64px); }
  .header-inner { gap: 24px; min-height: 98px; }
  .primary-nav ul.menu { gap: 22px; }
  .brand-copy strong { font-size: 23px; }
  .hero { gap: 44px; padding-block: 55px 47px; }
  .hero-title { font-size: clamp(40px, 4.8vw, 54px); }
  .hero-art > img { height: 367px; }
  .hero-description { font-size: 13px; }
  .hero-notes { margin-top: 26px; }
  .art-label { left: -19px; }
  .art-star { right: -14px; }
  .category-link { gap: 8px; padding-inline: 15px; font-size: 11px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 38px; }
  .post-card { gap: 19px; }
  .post-image { width: 145px; height: 112px; flex-basis: 145px; }
  .post-arrow { width: 20px; }
  .post-title { font-size: 16px; }
  .post-excerpt { font-size: 13px; }
  .about-panel { padding: 26px 23px; }
  .reading-layout { grid-template-columns: minmax(0, 1fr) 195px; gap: 38px; }
}

@media (max-width: 900px) {
  .site-shell { width: calc(100% - 48px); }
  .header-inner { gap: 16px; min-height: 90px; }
  .primary-nav ul.menu { gap: 19px; }
  .primary-nav .menu > li > a { font-size: 12px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { font-size: 8px; }
  .brand-mark { width: 37px; height: 37px; font-size: 22px; }
  .header-actions { padding-left: 0; gap: 2px; }
  .icon-button { width: 32px; height: 36px; }
  .hero { gap: 35px; padding-block: 45px 40px; }
  .hero-title { margin-top: 21px !important; font-size: 40px; line-height: 1.48; }
  .hero-description { margin-top: 21px !important; font-size: 13px; }
  .hero-art { padding: 9px 9px 24px; border-radius: 150px 150px 4px 4px; }
  .hero-art > img { height: 326px; border-radius: 145px 145px 2px 2px; }
  .hero-art::before { right: -13px; width: 46px; height: 46px; }
  .art-caption { margin-top: 13px; font-size: 8px; letter-spacing: .09em; }
  .art-label { bottom: 65px; left: -17px; padding: 10px; font-size: 9px; }
  .hero-actions { margin-top: 24px; gap: 18px; }
  .hero-actions .button { padding: 9px 18px; min-height: 42px; font-size: 11px; gap: 10px; }
  .hero-actions .button-text { padding-inline: 0; }
  .hero-notes { margin-top: 24px; font-size: 10px; gap: 8px; letter-spacing: .03em; }
  .hero-notes span + span::before { margin-right: 8px; }
  .eyebrow { font-size: 8px; letter-spacing: .14em; }
  .category-ribbon { padding-block: 20px; }
  .category-link { padding-inline: 13px; gap: 7px; }
  .category-count { display: none; }
  .category-icon svg { width: 16px; height: 16px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 218px; gap: 30px; margin-top: 43px; }
  .post-card { flex-wrap: wrap; gap: 0; padding-block: 24px; position: relative; align-items: start; }
  .post-image { width: 116px; height: 90px; flex-basis: 116px; margin-right: 17px; margin-top: 5px; }
  .post-copy { flex-basis: calc(100% - 133px); }
  .post-title { font-size: 15px; }
  .post-excerpt { -webkit-line-clamp: 2; margin-top: 7px !important; }
  .post-arrow { display: none; }
  .post-meta { gap: 7px; margin-top: 8px; font-size: 11px; }
  .section-title { font-size: 25px; }
  .section-heading { padding-bottom: 21px; }
  .section-link { font-size: 10px; }
  .about-panel { padding: 24px 20px; }
  .about-title { font-size: 20px; }
  .about-copy { font-size: 12px; }
  .about-meta { font-size: 9px; }
  .about-meta strong { font-size: 13px; }
  .sidebar-heading { font-size: 15px; }
  .category-list li a, .small-post-title { font-size: 12px; }
  .sidebar-note { padding: 16px; font-size: 12px; }
  .reading-layout { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .reading-sidebar { display: none; }
  .article-title { font-size: 34px; }
  .article-body { font-size: 14px; }
}

@media (max-width: 680px) {
  .site-shell { width: calc(100% - 44px); }
  .header-inner { min-height: 83px; gap: 12px; }
  .site-brand { gap: 10px; }
  .brand-mark { width: 35px; height: 36px; font-size: 21px; }
  .brand-copy { gap: 3px; }
  .brand-copy strong { font-size: 21px; letter-spacing: .12em; }
  .brand-copy small { font-size: 8px; letter-spacing: .19em; }
  .header-actions { margin-left: auto; gap: 4px; }
  .icon-button, .menu-toggle { width: 34px; height: 36px; }
  .menu-toggle { display: inline-grid; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; max-height: calc(100dvh - 84px); margin: 0; overflow-y: auto; padding: 17px 22px 22px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 18px #183e3508; }
  .primary-nav.is-open, .menu-open .primary-nav { display: block; }
  .primary-nav ul.menu { display: block; }
  .primary-nav .menu > li > a { padding: 11px 0; font-size: 13px; }
  .primary-nav .menu > li > a::after { display: none; }
  .primary-nav .menu > li + li { border-top: 1px solid #e1e4d8; }
  .primary-nav ul.sub-menu, .primary-nav ul.sub-menu ul.sub-menu { position: static; display: block; min-width: 0; padding: 0 0 10px 13px; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul.sub-menu a { padding: 7px 0; font-size: 11px; white-space: normal; }
  .search-panel { padding-block: 17px; }
  .search-form { gap: 8px; }
  .search-form input { min-height: 43px; padding: 9px 12px; font-size: 16px; }
  .search-form button { min-width: 65px; padding: 8px 14px; font-size: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 37px 33px; }
  .hero-copy { padding-bottom: 0; }
  .eyebrow { gap: 9px; font-size: 8px; letter-spacing: .15em; }
  .eyebrow::before { width: 22px; }
  .hero-title { margin-top: 19px !important; font-size: clamp(37px, 10.4vw, 52px); line-height: 1.45; letter-spacing: .035em; }
  .hero-description { max-width: 375px; margin-top: 20px !important; font-size: 13px; line-height: 2; letter-spacing: .015em; }
  .hero-actions { gap: 23px; margin-top: 25px; }
  .hero-actions .button { min-height: 44px; padding: 10px 20px; font-size: 12px; }
  .hero-actions .button-text { padding-inline: 0; }
  .hero-notes { margin-top: 24px; gap: 10px; font-size: 10px; }
  .hero-art { width: calc(100% - 17px); max-width: 450px; margin: 0 auto; padding: 9px 9px 22px; border-radius: 170px 170px 4px 4px; }
  .hero-art > img { height: 290px; border-radius: 160px 160px 2px 2px; object-position: center 50%; }
  .hero-art::before { top: -10px; right: -12px; width: 42px; height: 42px; border-radius: 0 13px 0 0; }
  .art-caption { margin-top: 13px; font-size: 8px; letter-spacing: .12em; }
  .art-label { left: -17px; bottom: 57px; padding: 11px 10px; }
  .art-star { bottom: 5px; right: -18px; width: 39px; height: 39px; font-size: 35px; }
  .category-ribbon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 13px; }
  .category-link { flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 10px 7px; font-size: 11px; line-height: 1.4; }
  .category-link + .category-link { border-left: 1px solid var(--line); }
  .category-link:nth-child(n + 3) { border-top: 0; }
  .category-link:nth-child(odd) { padding-left: 7px; }
  .category-link > span:nth-child(2) { white-space: nowrap; }
  .category-link > svg:last-child { display: none; }
  .category-count { display: block; margin-left: 0; padding-left: 0; font-size: 11px; line-height: 1.2; }
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 43px; margin-top: 35px; margin-bottom: 47px; }
  .section-heading { gap: 12px; padding-bottom: 20px; }
  .section-kicker { margin-bottom: 5px; font-size: 8px; }
  .section-title { font-size: 26px; }
  .section-link { padding-bottom: 3px; font-size: 10px; }
  .post-card { align-items: start; padding-block: 24px; }
  .post-image { width: 103px; height: 94px; flex-basis: 103px; margin-right: 16px; margin-top: 4px; border-radius: 3px; }
  .post-copy { flex-basis: calc(100% - 119px); }
  .post-category { margin-bottom: 3px; font-size: 10px; }
  .post-title { font-size: 16px; line-height: 1.7; }
  .post-excerpt { font-size: 12px; line-height: 1.85; -webkit-line-clamp: 2; }
  .post-meta { gap: 7px; margin-top: 8px; font-size: 11px; }
  .post-meta svg { width: 10px; height: 10px; }
  .post-image-fallback svg { width: 35px; height: 35px; }
  .pagination { padding-top: 25px; }
  .page-numbers { height: 33px; min-width: 31px; font-size: 11px; }
  .journal-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .about-panel { padding: 28px; }
  .about-copy { max-width: 350px; font-size: 13px; }
  .about-title { font-size: 23px; }
  .about-meta { justify-content: start; gap: 28px; font-size: 10px; }
  .about-meta strong { font-size: 15px; }
  .sidebar-section { margin-top: 28px; }
  .sidebar-heading { font-size: 17px; }
  .category-list li a { padding-block: 11px; font-size: 12px; }
  .small-post-title { font-size: 13px; }
  .sidebar-note { margin-top: 26px; padding: 18px 21px; font-size: 13px; }
  .footer-top { display: block; padding-bottom: 26px; }
  .footer-brand { font-size: 22px; }
  .footer-note { font-size: 11px; }
  .footer-links { gap: 24px; margin-top: 23px; font-size: 11px; }
  .footer-bottom { display: block; padding-block: 18px 23px; font-size: 10px; }
  .footer-legal { gap: 12px; margin-top: 7px; }
  .site-footer { padding-top: 27px; }
  .page-intro { padding-block: 29px 25px; }
  .breadcrumbs { gap: 7px; margin-bottom: 21px; font-size: 10px; }
  .page-intro h1 { font-size: 30px; }
  .archive-description { margin-top: 13px; font-size: 12px; }
  .page-intro + .content-layout { margin-top: 28px; }
  .search-result-count { font-size: 11px; }
  .reading-layout { margin-top: 27px; margin-bottom: 45px; gap: 30px; }
  .article-header { padding-bottom: 23px; }
  .article-header .post-category { margin-bottom: 12px; }
  .article-title { font-size: 28px; line-height: 1.65; }
  .article-meta { gap: 10px; margin-top: 16px; font-size: 11px; }
  .article-body{ margin-top: 26px; font-size: 16px; line-height: 2; }
  .article-body h2{ font-size: 22px; }
  .article-body h3{ font-size: 19px; }
  .article-body h4{ font-size: 17px; }
  .article-body pre{ margin-block: 22px; padding: 17px; font-size: 11px; }
  .article-body blockquote{ padding: 16px 18px; font-size: 15px; }
  .article-body .alignleft, .article-body .alignright { float: none; display: block; margin: 1.5em auto; }
  .article-body th, .article-body td { padding: 10px 12px; }
  .article-footer { margin-top: 30px; padding-top: 20px; }
  .tag-links { gap: 7px; font-size: 10px; }
  .article-actions { margin-top: 25px; }
  .like-button, .copy-link { min-height: 40px; padding: 8px 16px; font-size: 11px; }
  .post-pagination { gap: 20px; margin-top: 28px; padding-block: 20px; }
  .post-pagination span, .post-pagination strong { font-size: 11px; }
  .comments-section { margin-top: 34px; }
  .comments-section .section-title { font-size: 23px; }
  .comment-body { padding-left: 43px; }
  .comment-author .avatar { width: 30px; height: 30px; }
  .comment-content { font-size: 13px; }
  .comment-list .children { padding-left: 17px; }
  .comment-list .children .children { padding-left: 10px; }
  .comment-reply-title { font-size: 22px; }
  .comment-form { gap: 13px; }
  .comment-form-author, .comment-form-email, .comment-form-url, .comment-form-code { grid-column: 1 / -1; }
  .comment-form input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]), .comment-form textarea { font-size: 16px; }
  .protected-post-form { padding: 20px; font-size: 12px; }
  .protected-post-form .input-group { gap: 8px; }
  .protected-post-form button { padding-inline: 13px; }
  .protected-post-form input[type="password"] { font-size: 16px; }
  .empty-state { padding: 55px 0 65px; }
  .empty-state h1, .empty-state h2 { font-size: 25px; }
  .empty-state p { font-size: 12px; }
  .back-to-top { right: 13px; bottom: 16px; width: 34px; height: 34px; }
  .toast { bottom: 21px; font-size: 11px; }
  .admin-bar .reading-progress { top: 46px; }
}

@media (max-width: 360px) {
  .site-shell { width: calc(100% - 36px); }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 7px; }
  .header-actions { gap: 0; }
  .icon-button, .menu-toggle { width: 30px; }
  .hero-title { font-size: 35px; }
  .hero-art > img { height: 255px; }
  .hero-notes { font-size: 10px; gap: 7px; }
  .post-image { width: 86px; height: 89px; flex-basis: 86px; margin-right: 13px; }
  .post-copy { flex-basis: calc(100% - 99px); }
  .post-title { font-size: 15px; }
  .post-meta { font-size: 11px; gap: 5px; }
}

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

@media print {
  body.qing-site { background: #fff; color: #111; }
  .site-shell { width: 100%; }
  .header-inner { min-height: 70px; }
  .primary-nav, .header-actions, .hero, .category-ribbon, .journal-sidebar, .reading-sidebar, .comments-section, .article-actions, .back-to-top, .reading-progress, .toast, .footer-links { display: none !important; }
  .reading-layout, .content-layout { display: block; margin-block: 20px; }
  .article-title, .article-body h2, .article-body h3 { color: #111; }
  .article-body { color: #222; font-size: 11pt; }
  .article-body pre { white-space: pre-wrap; border-color: #ddd; background: #f5f5f5; color: #222; }
  .article-body a { color: #222; }
  .post-pagination, .article-footer { break-inside: avoid; }
  .site-footer { margin-top: 30px; }
}
