/*
Theme Name: 千诩 · 个人文集
Author: 千诩的世界
Description: 米白纸页与墨色文字的个人诗词、文章和随笔博客。支持站内阅读、会员账户与写作工作台，不附带示例作品。
Version: 1.1.1
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qianxu
Tags: blog, two-columns, custom-menu, editor-style, featured-images, translation-ready
*/

/* A quiet reading room: warm paper, restrained ink, generous margins. */
:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --paper-light: #fbf9f3;
  --ink: #2b2c27;
  --muted: #68695d;
  --faint: #6f7063;
  --line: #dbd9ce;
  --line-strong: #c7c5b8;
  --red: #a34c3d;
  --red-soft: #eee1d8;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --page-width: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #dfd4c2; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, input { border-radius: 0; }
svg { display: block; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
}
input:focus-visible { outline-offset: 3px; }
button, a { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
[hidden] { display: none !important; }
.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; z-index: 200; top: 15px; left: 20px; padding: 8px 15px; color: var(--paper-light); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
#app:focus { outline: none; }

.site-header {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 29px 0 25px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 42px;
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-seal {
  display: grid;
  place-items: center;
  width: 39px;
  height: 42px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--red);
}
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.5;
}
.brand-copy small { font-size: 9px; letter-spacing: .17em; color: var(--muted); line-height: 1.7; }
.main-nav { display: flex; gap: 34px; margin-left: auto; align-items: center; }
.main-nav a { position: relative; padding: 8px 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  position: absolute;
  content: "";
  left: calc(50% - 2px);
  bottom: 0;
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}
.header-actions { display: flex; align-items: center; gap: 12px; padding-left: 27px; border-left: 1px solid var(--line); }
.icon-button {
  width: 30px;
  height: 34px;
  padding: 6px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.icon-button:hover { color: var(--red); }
.icon-button svg { width: 18px; height: 18px; }

.preview-notice {
  max-width: var(--page-width);
  margin: 17px auto 0;
  padding: 7px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .035em;
}
.preview-notice::before { content: "◦"; padding-right: 8px; color: var(--red); font-size: 15px; }
#app { max-width: var(--page-width); margin: 0 auto; min-height: 56vh; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 90px;
  align-items: center;
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: var(--red); font-size: 10px; letter-spacing: .21em; font-weight: 500; line-height: 1.6; }
.hero-title {
  margin-top: 23px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.25vw, 55px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: .035em;
}
.hero-title span { display: block; }
.hero-title br { display: none; }
.hero-title span:last-child { color: var(--red); }
.hero-description { margin-top: 25px; font-size: 13px; line-height: 2.05; letter-spacing: .015em; color: var(--muted); max-width: 400px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 3px 0 8px;
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  letter-spacing: .035em;
}
.text-link:hover { color: var(--red); border-color: var(--red); }
.text-link svg { width: 14px; height: 14px; }
.hero-actions .text-link + .text-link { color: var(--muted); border-color: transparent; }
.hero-actions .small-link { margin-top: 0; color: var(--muted); }
.hero-actions .small-link:hover { color: var(--red); }
.hero-aside { position: relative; align-self: stretch; display: flex; justify-content: center; flex-direction: column; padding: 6px 0 4px; }
.landscape { max-width: 410px; width: 100%; margin: 0 auto; aspect-ratio: 1.58; color: #8b8e7e; }
.landscape svg { width: 100%; height: 100%; }
.aside-quote { margin: 21px 0 0; text-align: center; font-family: var(--serif); font-size: 15px; letter-spacing: .12em; line-height: 2; }
.aside-label { display: block; margin-top: 9px; text-align: center; color: var(--faint); font-size: 10px; letter-spacing: .16em; }

.content-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 75px; padding: 47px 0 75px; }
.writing-column, .post-main, .side-column { min-width: 0; }
.section-heading { display: flex; align-items: baseline; gap: 14px; }
.section-heading h2 { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: .05em; line-height: 1.6; }
.section-heading small { margin-left: 14px; color: var(--faint); font-family: var(--sans); font-size: 9px; letter-spacing: .12em; font-weight: 400; vertical-align: middle; }
.all-link { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.all-link:hover { color: var(--red); }
.category-tabs { display: flex; gap: 24px; flex-wrap: wrap; margin: 22px 0 3px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.category-tabs button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  position: relative;
}
.category-tabs button:hover { color: var(--ink); }
.category-tabs button.active { color: var(--red); }
.category-tabs button.active::after { content: ""; position: absolute; bottom: -19px; left: 0; right: 0; height: 1px; background: var(--red); }
.category-tabs button span { color: var(--faint); margin-left: 5px; font-size: 9px; }
.post-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) 23px; column-gap: 21px; padding: 29px 0 28px; border-bottom: 1px solid var(--line); }
.post-number { padding-top: 1px; color: var(--faint); font-family: Georgia, serif; font-size: 12px; font-style: italic; line-height: 1.6; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 10px; line-height: 1.6; letter-spacing: .02em; }
.category-label { color: var(--red); font-size: 10px; letter-spacing: .07em; }
.sample-label { font-size: 9px; color: var(--muted); border: 1px solid var(--line); padding: 0 5px; line-height: 1.7; }
.post-title { margin: 10px 0 9px; font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: .035em; line-height: 1.65; }
.post-title a:hover { color: var(--red); }
.post-excerpt { font-family: var(--serif); color: #6e6e63; font-size: 14px; line-height: 2; letter-spacing: .025em; }
.post-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--faint); font-size: 10px; line-height: 1.8; }
.post-foot span + span::before { content: "·"; margin-right: 14px; color: var(--line-strong); }
.arrow-link { display: grid; place-items: center; align-self: center; width: 23px; height: 32px; border: 0; padding: 0; background: none; color: #838276; font-size: 20px; line-height: 1; }
.arrow-link:hover { color: var(--red); }
.arrow-link svg { width: 17px; height: 17px; }
.side-column { border-left: 1px solid var(--line); padding-left: 32px; padding-top: 6px; }
.margin-section { padding-bottom: 29px; margin-bottom: 29px; border-bottom: 1px solid var(--line); }
.margin-section:last-child { margin-bottom: 0; border-bottom: 0; }
.margin-section h3 { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; font-weight: 500; margin-bottom: 15px; line-height: 1.8; }
.margin-section p { font-size: 11px; color: var(--muted); line-height: 2.1; letter-spacing: .025em; }
.margin-label { display: block; font-size: 9px; letter-spacing: .18em; color: var(--faint); margin-bottom: 15px; line-height: 1.8; }
.margin-section .quote-text { font-family: var(--serif); font-size: 17px; color: var(--ink); letter-spacing: .08em; line-height: 2.05; }
.vertical-note { font-family: var(--serif); writing-mode: vertical-rl; font-size: 16px; line-height: 2; letter-spacing: .18em; margin: 7px 0 5px; max-height: 185px; }
.small-link { display: inline-flex; gap: 10px; margin-top: 15px; color: var(--red); font-size: 10px; letter-spacing: .04em; }
.small-link:hover { color: var(--ink); }

.site-footer { max-width: var(--page-width); margin: 0 auto; padding: 25px 0 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); }
.footer-brand { font-family: var(--serif); font-size: 15px; letter-spacing: .06em; }
.footer-brand strong { font-weight: 500; }
.footer-brand span { font-family: var(--sans); display: block; font-size: 10px; color: var(--faint); margin-top: 3px; letter-spacing: .02em; }
.footer-brand small { font-family: var(--sans); display: block; font-size: 10px; color: var(--faint); margin-top: 3px; letter-spacing: .02em; }
.footer-meta { display: flex; align-items: center; gap: 22px; font-size: 9px; text-align: right; color: var(--faint); letter-spacing: .025em; }
.footer-meta small { font-size: inherit; }
.footer-meta a:hover { color: var(--red); }

.page-heading { padding: 66px 0 40px; border-bottom: 1px solid var(--line); }
.page-heading .eyebrow { margin-bottom: 16px; }
.page-heading h1 { font-family: var(--serif); font-size: clamp(31px, 4vw, 43px); line-height: 1.7; font-weight: 500; letter-spacing: .055em; }
.page-heading p { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 2; max-width: 540px; }
.page-heading + .category-tabs { margin-top: 30px; }
.archive-group { padding: 36px 0 19px; }
.archive-group h2 { font-family: Georgia, var(--serif); color: var(--muted); font-size: 24px; font-weight: 400; margin-bottom: 20px; line-height: 1.5; }
.archive-group h2 small { margin-left: 12px; font-family: var(--sans); font-size: 10px; color: var(--faint); font-weight: 400; }
.archive-row { display: flex; align-items: baseline; gap: 28px; border-bottom: 1px solid var(--line); padding: 17px 0; }
.archive-row:hover .archive-title { color: var(--red); }
.archive-date { flex: 0 0 75px; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.archive-title, .archive-row > span:not([aria-hidden]) { font-family: var(--serif); font-size: 19px; letter-spacing: .03em; line-height: 1.8; min-width: 0; }
.archive-row > span[aria-hidden] { font-size: 16px; color: var(--muted); }
.archive-row:hover > span:not([aria-hidden]) { color: var(--red); }
.archive-row .category-label { margin-left: auto; flex: 0 0 auto; }
.archive-group:last-child { padding-bottom: 80px; }
.about-layout { display: grid; grid-template-columns: .8fr 1.5fr; gap: 95px; padding: 83px 0 95px; }
.about-lead .eyebrow { margin-bottom: 23px; }
.about-lead h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 500; line-height: 1.85; letter-spacing: .06em; }
.about-lead p { margin-top: 20px; font-family: var(--serif); color: var(--muted); font-size: 16px; line-height: 2.1; }
.about-copy { max-width: 590px; padding-top: 5px; }
.about-copy h2 { margin: 36px 0 18px; font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: .04em; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { font-family: var(--serif); margin: 0 0 18px; font-size: 17px; line-height: 2.15; letter-spacing: .025em; color: #5e6055; }
.about-copy a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.about-copy .small-link { font-family: var(--sans); font-size: 12px; }

.reading-progress { position: fixed; z-index: 100; top: 0; left: 0; height: 2px; background: var(--red); width: 0; pointer-events: none; }
.reader { max-width: 760px; margin: 0 auto; padding: 37px 0 80px; }
.reader-back { display: inline-flex; align-items: center; gap: 11px; padding: 4px 0; color: var(--muted); font-size: 11px; letter-spacing: .025em; }
.reader-back:hover { color: var(--red); }
.reader-header { margin-top: 45px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.reader-category { display: inline-block; color: var(--red); font-size: 11px; letter-spacing: .1em; }
.reader-header h1 { margin-top: 16px; font-family: var(--serif); font-size: clamp(32px, 4vw, 43px); font-weight: 500; line-height: 1.6; letter-spacing: .045em; overflow-wrap: anywhere; }
.reader-deck { margin-top: 15px; font-family: var(--serif); font-size: 18px; line-height: 1.9; color: var(--muted); letter-spacing: .025em; }
.reader-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 25px; color: var(--faint); font-size: 11px; }
.reader-tools { display: flex; align-items: center; gap: 14px; margin-top: 17px; margin-left: auto; }
.reader-tools > span { font-size: 10px; color: var(--faint); }
.reader-tools button { border: 0; padding: 2px 0; background: transparent; font-size: 11px; color: var(--muted); }
.reader-tools button:hover { color: var(--red); }
.reader-tools button[aria-pressed="true"] { color: var(--red); text-decoration: underline; text-underline-offset: 5px; }
.article-content { margin-top: 40px; font-family: var(--serif); font-size: 19px; line-height: 2.1; letter-spacing: .025em; overflow-wrap: break-word; }
.article-content p { margin: 0 0 23px; }
.article-content h2 { margin: 42px 0 21px; font-size: 26px; line-height: 1.75; font-weight: 500; letter-spacing: .025em; }
.article-content h3 { margin: 34px 0 18px; font-size: 22px; line-height: 1.8; font-weight: 500; }
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.article-content blockquote { margin: 30px 0; padding: 8px 0 8px 25px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: 18px; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content ul, .article-content ol { margin: 22px 0; padding-left: 1.5em; }
.article-content li { padding-left: .2em; margin-bottom: 8px; }
.article-content pre { margin: 28px 0; padding: 20px; background: #ece9e0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.8; overflow-x: auto; letter-spacing: 0; }
.article-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8em; }
.article-content hr { border: 0; height: 1px; background: var(--line); margin: 37px 0; }
.article-content .poem, .poem { white-space: pre-wrap; font-family: var(--serif); font-size: 21px; line-height: 2.3; letter-spacing: .055em; overflow-wrap: break-word; }
.article-content.poem { font-size: 21px; line-height: 2.3; }
.article-content.large-type, .article-content.large-type .poem { font-size: 22px; }
.reader-end { margin-top: 44px; padding: 24px 0; color: var(--faint); font-size: 11px; border-top: 1px solid var(--line); }
.reader-end p { margin-bottom: 8px; }
.reader-pagination { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-top: 26px; }
.reader-pagination a { max-width: 45%; font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.reader-pagination a:hover { color: var(--red); }
.reader-pagination a:last-child { text-align: right; margin-left: auto; }
.reader-pagination small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .05em; color: var(--faint); margin-bottom: 4px; }

.search-dialog { width: min(650px, calc(100% - 40px)); max-height: min(70vh, 600px); margin: 15vh auto auto; padding: 0 30px 25px; border: 1px solid var(--line-strong); background: var(--paper-light); color: var(--ink); box-shadow: 0 20px 80px #2b2c271c; }
.search-dialog::backdrop { background: #27292155; backdrop-filter: blur(2px); }
.search-dialog h2 { margin-top: 22px; font-family: var(--serif); font-size: 18px; line-height: 1.8; font-weight: 500; letter-spacing: .04em; }
.search-top { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 23px 0 20px; }
.search-top input { min-width: 0; width: 100%; padding: 5px 0; color: var(--ink); background: none; border: 0; font-family: var(--serif); font-size: 21px; line-height: 1.8; outline-offset: 3px; }
.search-top input::placeholder { color: var(--faint); }
.search-top button { flex: 0 0 28px; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; padding: 5px; }
.search-top button:hover { color: var(--red); }
.search-results { padding-top: 8px; }
.search-results a { display: block; border-bottom: 1px solid var(--line); padding: 17px 0; }
.search-results a:hover { color: var(--red); }
.search-results a:last-child { border-bottom: 0; }
.search-results strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.75; }
.search-results small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.search-empty { padding: 31px 0 15px; color: var(--muted); font-size: 13px; }
.empty-state { padding: 55px 0 65px; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 2; text-align: center; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 150; max-width: calc(100% - 40px); padding: 10px 20px; background: var(--ink); color: var(--paper-light); font-size: 12px; box-shadow: 0 4px 20px #2b2c2726; }

@media (max-width: 1220px) {
  .site-header, .preview-notice, #app, .site-footer { margin-right: 40px; margin-left: 40px; }
  .home-hero { gap: 45px; }
  .content-layout { gap: 45px; }
  .side-column { padding-left: 27px; }
}

@media (max-width: 900px) {
  .site-header { gap: 27px; }
  .main-nav { gap: 24px; }
  .header-actions { padding-left: 20px; }
  .home-hero { padding-top: 52px; padding-bottom: 56px; gap: 25px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero-title { font-size: 40px; }
  .hero-description { max-width: 330px; }
  .aside-quote { font-size: 13px; letter-spacing: .05em; }
  .content-layout { gap: 30px; grid-template-columns: minmax(0, 2.8fr) minmax(0, 1fr); }
  .side-column { padding-left: 23px; }
  .post-row { column-gap: 15px; }
  .post-title { font-size: 21px; }
  .section-heading small { display: none; }
  .margin-section .quote-text { font-size: 15px; }
  .footer-meta { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .about-layout { gap: 50px; grid-template-columns: .8fr 1.3fr; }
}

@media (max-width: 680px) {
  .site-header, .preview-notice, #app, .site-footer { margin-right: 24px; margin-left: 24px; }
  .site-header { padding-top: 21px; padding-bottom: 14px; flex-wrap: wrap; column-gap: 15px; row-gap: 17px; }
  .brand { gap: 11px; }
  .brand-seal { width: 34px; height: 38px; font-size: 21px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 8px; letter-spacing: .12em; }
  .header-actions { margin-left: auto; padding-left: 13px; gap: 5px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; gap: 30px; }
  .main-nav a { font-size: 12px; padding: 4px 0 7px; }
  .main-nav a.active::after { bottom: 0; }
  .preview-notice { margin-top: 10px; padding-top: 5px; font-size: 10px; line-height: 1.8; }
  .home-hero { padding-top: 37px; padding-bottom: 34px; grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-title { margin-top: 18px; font-size: clamp(34px, 7.9vw, 46px); line-height: 1.6; letter-spacing: .04em; }
  .eyebrow { font-size: 9px; }
  .hero-description { margin-top: 19px; max-width: 100%; font-size: 12px; }
  .hero-actions { margin-top: 25px; gap: 27px; }
  .hero-aside { padding: 0; }
  .landscape { max-width: 350px; aspect-ratio: 1.8; }
  .aside-quote { margin-top: 5px; font-size: 13px; letter-spacing: .1em; }
  .aside-label { margin-top: 5px; font-size: 9px; }
  .content-layout { display: block; padding-top: 31px; padding-bottom: 45px; }
  .section-heading h2 { font-size: 23px; }
  .all-link { font-size: 10px; }
  .category-tabs { margin-top: 19px; gap: 24px; padding-bottom: 14px; }
  .category-tabs button.active::after { bottom: -18px; }
  .post-row { grid-template-columns: 18px minmax(0, 1fr) 18px; column-gap: 11px; padding: 24px 0; }
  .post-number { font-size: 10px; }
  .post-meta { font-size: 9px; gap: 9px; }
  .category-label { font-size: 9px; }
  .post-title { font-size: 21px; margin-top: 10px; margin-bottom: 8px; letter-spacing: .02em; }
  .post-excerpt { font-size: 13px; line-height: 2; }
  .post-foot { font-size: 9px; margin-top: 11px; gap: 10px; }
  .post-foot span + span::before { margin-right: 10px; }
  .arrow-link { width: 18px; }
  .side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 36px; padding: 29px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .margin-section { margin: 0; padding: 0; border-bottom: 0; }
  .margin-section h3 { font-size: 16px; margin-bottom: 12px; }
  .margin-section p { font-size: 10px; }
  .margin-section .quote-text { font-size: 15px; }
  .margin-label { font-size: 8px; margin-bottom: 11px; }
  .vertical-note { writing-mode: horizontal-tb; font-size: 14px; letter-spacing: .1em; }
  .site-footer { padding: 22px 0; display: block; }
  .footer-brand { font-size: 14px; }
  .footer-brand small { font-size: 9px; }
  .footer-meta { justify-content: flex-start; text-align: left; margin-top: 14px; gap: 4px 16px; line-height: 1.9; font-size: 9px; }
  .page-heading { padding-top: 38px; padding-bottom: 28px; }
  .page-heading .eyebrow { margin-bottom: 12px; }
  .page-heading h1 { font-size: 33px; }
  .page-heading p { font-size: 12px; margin-top: 9px; }
  .archive-group { padding-top: 29px; }
  .archive-group h2 { font-size: 22px; margin-bottom: 13px; }
  .archive-row { gap: 16px; padding: 15px 0; }
  .archive-date { flex-basis: 48px; font-size: 10px; }
  .archive-title, .archive-row > span:not([aria-hidden]) { font-size: 17px; }
  .archive-row .category-label { font-size: 8px; }
  .archive-group:last-child { padding-bottom: 50px; }
  .about-layout { display: block; padding: 42px 0 50px; }
  .about-lead h1 { font-size: 35px; line-height: 1.7; }
  .about-lead .eyebrow { margin-bottom: 16px; }
  .about-lead p { margin-top: 14px; font-size: 15px; }
  .about-copy { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
  .about-copy h2 { font-size: 22px; margin-top: 29px; margin-bottom: 15px; }
  .about-copy p { font-size: 16px; line-height: 2.1; }
  .reader { padding-top: 24px; padding-bottom: 50px; }
  .reader-header { margin-top: 31px; padding-bottom: 24px; }
  .reader-header h1 { font-size: 32px; margin-top: 13px; letter-spacing: .025em; }
  .reader-deck { margin-top: 12px; font-size: 16px; }
  .reader-meta { gap: 10px 14px; margin-top: 18px; font-size: 10px; }
  .reader-tools { margin-left: 0; flex: 0 0 100%; margin-top: 4px; }
  .reader-tools button { font-size: 10px; }
  .article-content { margin-top: 28px; font-size: 17px; line-height: 2.15; letter-spacing: .025em; }
  .article-content p { margin-bottom: 20px; }
  .article-content h2 { margin-top: 34px; font-size: 23px; }
  .article-content h3 { font-size: 20px; }
  .article-content blockquote { font-size: 16px; padding-left: 18px; margin: 25px 0; }
  .article-content .poem, .article-content.poem, .poem { font-size: 18px; line-height: 2.3; letter-spacing: .03em; }
  .reader-end { margin-top: 32px; font-size: 10px; }
  .reader-pagination { gap: 20px; padding-top: 21px; }
  .reader-pagination a { font-size: 14px; }
  .search-dialog { width: calc(100% - 32px); margin-top: 12vh; max-height: 76vh; padding: 0 22px 18px; }
  .search-top { padding: 18px 0 15px; gap: 12px; }
  .search-top input { font-size: 18px; }
  .search-results strong { font-size: 18px; }
  .toast { bottom: 20px; font-size: 11px; }
}

@media (max-width: 360px) {
  .site-header, .preview-notice, #app, .site-footer { margin-right: 18px; margin-left: 18px; }
  .brand-copy strong { font-size: 17px; }
  .main-nav { gap: 25px; }
  .hero-title { font-size: 31px; }
  .post-row { grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; }
  .post-row > .arrow-link { display: none; }
  .post-title { font-size: 20px; }
  .side-column { gap: 20px; }
  .reader-header h1 { font-size: 29px; }
  .article-content { font-size: 16px; }
  .article-content .poem, .article-content.poem, .poem { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  body { background: white; color: #111; font-size: 11pt; }
  .site-header, .preview-notice, .site-footer, .reader-back, .reader-tools, .reader-pagination, .reading-progress, .toast, .search-dialog { display: none; }
  #app { max-width: none; margin: 0; }
  .reader { max-width: none; padding: 0; }
  .reader-header { margin-top: 0; }
  .reader-header h1 { font-size: 25pt; }
  .article-content, .article-content .poem, .article-content.poem { font-size: 12pt; }
  .article-content p { orphans: 3; widows: 3; }
  .article-content h2, .article-content h3 { break-after: avoid; }
  .article-content blockquote { break-inside: avoid; }
}


/* WordPress templates: native menus, block content and server-rendered forms. */
textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.about-copy.article-content { margin-top: 0; }
.brand-copy small { max-width: 260px; letter-spacing: .025em; }
.primary-menu { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 34px; }
.main-nav { gap: 0; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--ink); }
.main-nav .current-menu-item > a::after { content: ""; position: absolute; left: calc(50% - 2px); bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.category-tabs a { position: relative; font-size: 11px; letter-spacing: .06em; padding: 2px 0; color: var(--muted); }
.category-tabs a:hover, .category-tabs a.active { color: var(--red); }
.category-tabs a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 1px; background: var(--red); }
.page-introduction, .archive-description { color: var(--muted); font-size: 13px; margin-top: 13px; line-height: 2; max-width: 620px; }
.page-introduction p, .archive-description p { margin-bottom: 10px; }
.page-reader .reader-header { margin-top: 18px; }
.empty-state .empty-hint { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 11px; }
.search-dialog:not([open]) { display: none; }
.search-form { display: flex; gap: 17px; align-items: center; width: 100%; }
.search-field { width: 100%; min-width: 0; border: 0; background: transparent; font-family: var(--serif); color: var(--ink); }
.search-submit { flex-shrink: 0; border: 0; background: transparent; padding: 5px 0; color: var(--red); font-size: 11px; letter-spacing: .04em; }
.search-submit:hover { color: var(--ink); }
.search-hint { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.search-top { padding-top: 18px; }
.search-top .search-submit { flex-basis: auto; font-size: 11px; }
.search-top .search-submit span { display: none; }
.search-page-form { margin-top: 27px; max-width: 530px; border-bottom: 1px solid var(--line-strong); padding: 9px 0; }
.search-page-form input { padding: 5px 0; font-size: 18px; line-height: 1.8; }
.posts-pagination { padding-top: 29px; }
.posts-pagination ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 19px; flex-wrap: wrap; }
.posts-pagination a, .posts-pagination span { display: block; padding: 3px 2px; color: var(--muted); font-size: 11px; }
.posts-pagination .current { color: var(--red); border-bottom: 1px solid var(--red); }
.posts-pagination a:hover { color: var(--red); }
.reader-category a:hover { color: var(--ink); }
.reader-navigation { border-top: 1px solid var(--line); padding-top: 26px; }
.reader-navigation .nav-links { display: flex; gap: 30px; justify-content: space-between; }
.reader-navigation .nav-previous, .reader-navigation .nav-next { max-width: 45%; font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.reader-navigation .nav-next { margin-left: auto; text-align: right; }
.reader-navigation a:hover { color: var(--red); }
.reader-navigation small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .05em; color: var(--faint); margin-bottom: 4px; }
.reader-navigation .screen-reader-text, .comments-area .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.article-content .wp-block-verse { padding: 0; margin: 0 0 28px; background: transparent; white-space: pre-wrap; overflow-wrap: break-word; overflow-x: visible; font-family: var(--serif); font-size: 21px; line-height: 2.3; letter-spacing: .055em; }
.article-content.large-type .wp-block-verse { font-size: 22px; }
.article-content .wp-block-image { margin: 30px 0; }
.article-content .wp-block-image img { height: auto; margin: 0 auto; }
.article-content figure { max-width: 100%; }
.article-content figcaption, .wp-caption-text { margin-top: 9px; font-family: var(--sans); font-size: 11px; color: var(--muted); line-height: 1.8; text-align: center; }
.article-content .wp-block-embed { margin: 30px 0; }
.article-content iframe, .article-content video, .article-content audio { max-width: 100%; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.article-content td, .article-content th { border: 1px solid var(--line-strong); padding: 8px 12px; }
.article-content .aligncenter { margin-left: auto; margin-right: auto; }
.article-content .alignleft { float: left; margin: 0 24px 16px 0; }
.article-content .alignright { float: right; margin: 0 0 16px 24px; }
.article-content::after { content: ""; display: table; clear: both; }
.article-content .alignwide, .article-content .alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.article-content .wp-block-pullquote { border: 0; padding: 15px 0; }
.article-content .wp-block-pullquote blockquote { border: 0; padding: 0; text-align: center; }
.article-content .wp-block-button__link { background: var(--ink); color: var(--paper-light); border-radius: 0; font-family: var(--sans); font-size: 13px; text-decoration: none; }
.page-links { font-family: var(--sans); font-size: 12px; display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 0; }
.post-password-form label { display: block; font-family: var(--sans); font-size: 13px; }
.post-password-form input[type=password] { display: block; background: var(--paper-light); border: 1px solid var(--line-strong); padding: 7px 10px; max-width: 100%; }
.post-password-form input[type=submit] { border: 0; padding: 8px 17px; background: var(--ink); color: var(--paper-light); font-size: 13px; margin-top: 13px; cursor: pointer; }
.comments-area { margin-top: 42px; padding-top: 31px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 13px; }
.comments-area h2, .comments-area h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.8; margin-bottom: 19px; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: 24px; }
.comment-body { padding: 21px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .fn { font-weight: 500; }
.comment-metadata { font-size: 10px; color: var(--muted); margin-top: 5px; }
.comment-content { font-family: var(--serif); font-size: 16px; line-height: 2; margin-top: 12px; overflow-wrap: anywhere; }
.comment-content p { margin-bottom: 10px; }
.comment-reply-link { font-size: 11px; color: var(--red); }
.comment-respond { margin-top: 28px; }
.comment-form p { margin-bottom: 15px; }
.comment-form label { display: block; font-size: 12px; margin-bottom: 6px; }
.comment-form input:not([type=checkbox]):not([type=submit]), .comment-form textarea { display: block; width: 100%; max-width: 100%; border: 1px solid var(--line-strong); padding: 9px 12px; color: var(--ink); background: var(--paper-light); font: inherit; border-radius: 0; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input[type=submit] { border: 0; background: var(--ink); color: var(--paper-light); padding: 10px 23px; font-size: 12px; cursor: pointer; }
.comment-form-cookies-consent { display: flex; gap: 9px; align-items: baseline; }
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as, .no-comments { color: var(--muted); font-size: 11px; }
.comments-area a:hover { color: var(--red); }
.comments-area .nav-links { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; font-size: 11px; }
body.admin-bar .reading-progress { top: 32px; }
@media (max-width: 900px) { .primary-menu { gap: 24px; } }
@media (max-width: 782px) { body.admin-bar .reading-progress { top: 46px; } }
@media (max-width: 680px) {
  .primary-menu { gap: 30px; flex-wrap: wrap; }
  .brand-copy small { max-width: 190px; }
  .category-tabs a { font-size: 11px; }
  .category-tabs a.active::after { bottom: -18px; }
  .page-introduction, .archive-description { font-size: 12px; }
  .about-copy.article-content { margin-top: 34px; }
  .article-content .wp-block-verse { font-size: 18px; line-height: 2.3; letter-spacing: .03em; }
  .article-content.large-type .wp-block-verse { font-size: 22px; }
  .reader-navigation .nav-links { gap: 20px; }
  .reader-navigation .nav-previous, .reader-navigation .nav-next { font-size: 14px; }
  .search-form { gap: 11px; }
  .search-hint { font-size: 10px; }
  .article-content .alignleft, .article-content .alignright { float: none; margin: 24px auto; }
  .comment-list .children { padding-left: 15px; }
}
@media (max-width: 360px) { .primary-menu { gap: 24px; } .article-content .wp-block-verse { font-size: 17px; } }
@media print { .reader-navigation, .comments-area { display: none; } .article-content .wp-block-verse { font-size: 12pt; } }

/* Reading, accounts and the owner's writing desk share the same paper palette. */
.site-header { gap: 28px; flex-wrap: wrap; }
.primary-menu { gap: 25px; }
.header-actions { padding-left: 20px; flex-shrink: 0; }
.header-account { white-space: nowrap; font-size: 11px; color: var(--muted); letter-spacing: .025em; }
.header-account:hover { color: var(--red); }
.header-register { color: var(--red); }
.police-record { display: inline-flex; align-items: center; gap: 5px; }
.police-record img { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.access-label { padding: 1px 6px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.post-access-link { color: var(--red); }
.post-access-link:hover { color: var(--ink); }
.reader-access-gate { margin-top: 32px; }
.qianxu-workbench { max-width: none; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; padding: 40px 0 70px; }
.module-card { display: block; padding: 30px; border: 1px solid var(--line); background: var(--paper-light); }
.module-card:hover { border-color: var(--line-strong); }
.module-card h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0 0 12px; }
.module-card p { color: var(--muted); font-family: var(--serif); font-size: 16px; }
.module-card .small-link { margin-top: 22px; }
.qx-members-page { max-width: 760px; margin: 0 auto; padding: 52px 0 76px; font-family: var(--sans); font-size: 14px; line-height: 1.8; letter-spacing: 0; }
.qx-route-write .qx-members-page, .qx-route-access-codes .qx-members-page { max-width: none; }
.qx-page-heading { margin-bottom: 32px; }
.qx-page-heading h1 { margin: 14px 0 15px; font-size: clamp(31px, 4vw, 43px); }
.qx-page-heading > p:last-child { max-width: 660px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.qx-page-heading .section-kicker { color: var(--red); font-size: 10px; letter-spacing: .18em; }
.qx-members-page h1, .qx-members-page h2, .qx-members-page h3, .qx-panel h2, .qx-card h2 { font-family: var(--serif); font-weight: 500; letter-spacing: .035em; line-height: 1.6; }
.qx-members-page h2, .qx-panel h2, .qx-card h2 { margin: 0 0 18px; font-size: 24px; }
.qx-members-page h3 { margin: 0 0 12px; font-size: 20px; }
.qx-members-page p, .qx-panel p, .qx-card p { margin: 0 0 16px; }
.qx-members-page a { text-decoration: none; }
.qx-panel, .qx-card { min-width: 0; padding: 28px; border: 1px solid var(--line); background: var(--paper-light); margin-bottom: 24px; font-family: var(--sans); font-size: 14px; line-height: 1.8; letter-spacing: 0; }
.qx-panel > :last-child, .qx-card > :last-child { margin-bottom: 0; }
.qx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.qx-grid > .qx-panel, .qx-grid > .qx-card { margin-bottom: 0; }
.qx-form { margin: 22px 0 0; }
.qx-field { display: block; margin-bottom: 20px; }
.qx-field label, .qx-form > label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 500; }
.qx-form input:not([type=checkbox]):not([type=radio]):not([type=submit]), .qx-form select, .qx-form textarea, .qx-field input:not([type=checkbox]):not([type=radio]):not([type=submit]), .qx-field select, .qx-field textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--line-strong); padding: 10px 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; border-radius: 0; line-height: 1.65;
}
.qx-form input[type=file] { font-size: 12px; }
.qx-form input[type=checkbox], .qx-form input[type=radio] { accent-color: var(--red); }
.qx-form textarea { min-height: 130px; resize: vertical; }
.qx-form input:focus-visible, .qx-form select:focus-visible, .qx-form textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.qx-actions, .qx-account-links { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin: 21px 0 0; }
.qx-actions form { margin: 0; }
.qx-button, .article-content .qx-button, .qx-form input[type=submit], .qx-form button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); padding: 10px 20px; background: var(--ink); color: var(--paper-light); font: inherit; font-size: 13px; line-height: 1.7; letter-spacing: .025em; cursor: pointer; text-decoration: none;
}
.qx-button:hover, .article-content .qx-button:hover, .qx-form input[type=submit]:hover, .qx-form button[type=submit]:hover { background: var(--red); border-color: var(--red); color: var(--paper-light); }
.qx-button-secondary, .article-content .qx-button-secondary, .qx-form .qx-button-secondary[type=submit] { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.qx-button-secondary:hover, .article-content .qx-button-secondary:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.qx-muted, .qx-field small, .qx-field .description, .qx-form .description { display: block; color: var(--muted); font-size: 12px; line-height: 1.85; }
.qx-field small, .qx-field .description { margin-top: 7px; }
.qx-checkbox { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.qx-form-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.qx-account-tabs { display: flex; gap: 25px; margin: 28px 0; font-size: 13px; }
.qx-account-tabs a { padding: 7px 2px; border-bottom: 1px solid transparent; }
.qx-account-tabs [aria-current] { border-color: var(--red); color: var(--red); }
.qx-logout-form { margin-top: 25px; }
.qx-grant-status { color: var(--red); font-size: 12px; }
.qx-room-actions { margin: 25px 0; }
.qx-notice { padding: 15px 18px; border-left: 2px solid var(--red); background: var(--red-soft); color: var(--ink); margin: 0 0 24px; font-family: var(--sans); font-size: 13px; line-height: 1.9; letter-spacing: 0; overflow-wrap: anywhere; }
.qx-notice p:last-child { margin-bottom: 0; }
.qx-table, .article-content .qx-table { display: table; width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 12px; line-height: 1.8; }
.qx-table th, .qx-table td, .article-content .qx-table th, .article-content .qx-table td { border: 0; border-bottom: 1px solid var(--line); text-align: left; padding: 12px 8px; vertical-align: top; overflow-wrap: anywhere; }
.qx-table th { color: var(--muted); font-weight: 500; }
.qx-code-value { display: block; padding: 18px; margin: 16px 0; background: var(--paper); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; user-select: all; }
.qx-code-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.qx-code-row p { margin: 6px 0; }
.qx-code-row small, .qx-post-meta { color: var(--muted); font-size: 12px; }
.qx-code-row strong { font-weight: 500; }
.qx-post-meta { display: flex; gap: 18px; margin-bottom: 18px; }
.qx-code-row code { padding: 3px 7px; background: var(--paper); letter-spacing: .03em; }
.qx-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 25px; align-items: start; }
.qx-editor-layout > *, .qx-editor-sidebar { min-width: 0; }
.qx-editor-sidebar .qx-card, .qx-editor-sidebar .qx-panel { padding: 20px; }
.qx-editor-list, .article-content .qx-editor-list { list-style: none; padding: 0; margin: 0; }
.qx-editor-list > li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.qx-editor-list > li:first-child { padding-top: 0; }
.qx-editor-list h3 { margin-bottom: 7px; font-size: 19px; overflow-wrap: anywhere; }
.qx-editor-list .qx-actions { margin-top: 10px; }
.qx-editor-preview { overflow-wrap: anywhere; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.qx-editor-preview .reading-content { font-family: var(--serif); font-size: 19px; line-height: 2.1; letter-spacing: .025em; }
.single-post .article-content pre:not(.wp-block-code), .qx-editor-preview pre { padding: 0; margin: 0 0 28px; background: transparent; white-space: pre-wrap; overflow-wrap: break-word; overflow-x: visible; font-family: var(--serif); font-size: 21px; line-height: 2.3; letter-spacing: .055em; }
.single-post .article-content.large-type pre:not(.wp-block-code) { font-size: 22px; }
.qx-radio-options { display: flex; gap: 12px 20px; flex-wrap: wrap; }
.qx-radio-options label { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; font-size: 13px; font-weight: 400; }
.qx-form .qx-radio-options input[type=radio] { width: 16px; min-width: 16px; flex: 0 0 16px; margin: 0 3px 0 0; }
.qx-form fieldset.qx-field { border: 1px solid var(--line-strong); padding: 14px 18px; }
#wp-qx_editor_content-wrap { font-family: var(--sans); letter-spacing: 0; }
.qx-form #qx_editor_content { min-height: 22rem; font-family: var(--serif); line-height: 2; }
.qx-form .wp-editor-container { border: 1px solid var(--line-strong); }
.qx-form .wp-editor-container textarea { border: 0; background: var(--paper-light); }
.qx-form .wp-editor-tools { padding-bottom: 0; }
.qx-form .wp-editor-tools button { font-size: 12px; }

@media (min-width: 901px) and (max-width: 1120px) {
  .site-header { gap: 20px; }
  .main-nav { order: 3; width: 100%; }
  .header-actions { margin-left: auto; }
  .primary-menu { gap: 32px; }
}
@media (max-width: 900px) {
  .site-header { gap: 18px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; }
  .primary-menu { gap: 28px; flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .qx-editor-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .site-header { column-gap: 12px; row-gap: 17px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { max-width: 160px; }
  .header-actions { padding-left: 10px; gap: 11px; }
  .header-account { font-size: 10px; }
  .header-actions .icon-button { width: 22px; padding: 3px; }
  .primary-menu { gap: 12px 24px; }
  .main-nav a { display: inline-block; font-size: 12px; }
  .police-record { gap: 4px; }
  .module-grid { grid-template-columns: minmax(0, 1fr); padding: 28px 0 45px; gap: 18px; }
  .module-card { padding: 24px; }
  .module-card h2 { font-size: 25px; }
  .module-card p { font-size: 15px; }
  .qx-panel, .qx-card { padding: 21px; margin-bottom: 20px; }
  .qx-members-page { padding: 35px 0 50px; }
  .qx-page-heading { margin-bottom: 25px; }
  .qx-page-heading h1 { font-size: 32px; }
  .qx-page-heading > p:last-child { font-size: 12px; }
  .qx-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .qx-members-page h2, .qx-panel h2, .qx-card h2 { font-size: 22px; }
  .qx-field { margin-bottom: 17px; }
  .qx-actions { gap: 11px; }
  .qx-button, .article-content .qx-button, .qx-form input[type=submit], .qx-form button[type=submit] { padding: 10px 15px; font-size: 12px; }
  .qx-table, .article-content .qx-table { display: block; overflow-x: auto; }
  .qx-table th, .qx-table td { min-width: 90px; }
  .qx-notice { padding: 13px 15px; font-size: 12px; }
  .qx-code-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .qx-code-value { padding: 14px; font-size: 15px; }
  .qx-editor-preview .reading-content { font-size: 17px; }
  .single-post .article-content pre:not(.wp-block-code), .qx-editor-preview pre { font-size: 18px; line-height: 2.3; letter-spacing: .03em; }
}
@media (max-width: 380px) {
  .site-header .brand-copy strong { font-size: 16px; }
  .site-header .brand-seal { width: 29px; height: 34px; font-size: 19px; }
  .site-header .brand { gap: 7px; }
  .site-header .header-actions { gap: 8px; padding-left: 8px; }
  .primary-menu { gap: 10px 21px; }
}
