:root {
    --sidebar-target-width: 248px;
    --content-max-width: 920px;
    --page-padding: 40px;
    --menu-bar-height: 76px;
    --journal-accent: #28634b;
    --journal-muted: #777b73;
    --journal-line: #e3e4db;
    --journal-soft: #eeefe7;
    --journal-heading: #252f29;
    --mono-font: Consolas, "SFMono-Regular", monospace;
}
.light, .rust {
    --bg: #fafbf7;
    --fg: #424a42;
    --sidebar-bg: #f0f2ea;
    --sidebar-fg: #697164;
    --sidebar-active: #28634b;
    --sidebar-spacer: #dce0d4;
    --links: #28634b;
    --inline-code-color: #28634b;
    --theme-popup-bg: #fafbf7;
    --theme-popup-border: #dce0d4;
    --theme-hover: #eeefe7;
    --table-border-color: #dce0d4;
    --table-header-bg: #eeefe7;
    --table-alternate-bg: #f3f4ee;
    --searchbar-bg: #fafbf7;
    --searchbar-fg: #252f29;
    --searchbar-border-color: #dce0d4;
    --searchresults-header-fg: #697164;
    --searchresults-border-color: #dce0d4;
    --searchresults-li-bg: #f0f2ea;
    --quote-bg: #eeefe7;
    --quote-border: #a5baa5;
    --icons: #697164;
    --icons-hover: #28634b;
}
.navy, .coal, .ayu {
    --journal-accent: #a9cfab;
    --journal-muted: #a0b0a4;
    --journal-line: #34473d;
    --journal-soft: #24362c;
    --journal-heading: #e6eee4;
    --bg: #19271f;
    --fg: #c6d0c6;
    --sidebar-bg: #142119;
    --sidebar-fg: #abbcac;
    --sidebar-active: #a9cfab;
    --sidebar-spacer: #34473d;
    --links: #a9cfab;
    --inline-code-color: #c4d8b6;
    --icons: #a0b0a4;
    --icons-hover: #e6eee4;
    --theme-popup-bg: #19271f;
    --theme-popup-border: #34473d;
    --theme-hover: #24362c;
    --table-border-color: #34473d;
    --table-header-bg: #24362c;
    --table-alternate-bg: #1d2e23;
    --searchbar-bg: #19271f;
    --searchbar-fg: #e6eee4;
    --searchbar-border-color: #34473d;
    --searchresults-header-fg: #a0b0a4;
    --searchresults-border-color: #34473d;
    --searchresults-li-bg: #24362c;
}
body { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; letter-spacing: .015em; }
/* Fill short pages while allowing long articles to grow and scroll naturally. */
.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; margin-block-start: 0; }
a { text-underline-offset: 4px; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--journal-accent); outline-offset: 5px; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 1000; background: var(--bg); color: var(--journal-accent); padding: 10px 20px; }
.skip-link:focus { top: 10px; }
.sidebar { border-right: 1px solid var(--journal-line); }
.sidebar .sidebar-scrollbox { top: 145px; bottom: 28px; padding: 0 22px 25px; }
.sidebar .chapter { margin: 0; font-size: 14px; line-height: 1.75; }
.sidebar .chapter li { margin: 5px 0; }
.sidebar .chapter li a { display: block; padding: 8px 13px; border-radius: 5px; }
.sidebar .chapter li a.active { background: var(--journal-soft); color: var(--journal-accent); font-weight: 650; }
.sidebar .chapter .part-title { margin: 30px 13px 10px; font-size: 11px; letter-spacing: .16em; font-weight: 500; color: var(--journal-muted); }
.sidebar .chapter .header-in-summary { font-size: 12px; line-height: 1.65; }
.sidebar .chapter .header-in-summary a { padding: 5px 8px; }
.brand { display: flex; align-items: center; gap: 12px; position: absolute; top: 38px; left: 30px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 44px; border-radius: 12px 12px 4px 12px; background: var(--journal-accent); color: var(--bg); font: 700 29px Georgia, serif; }
.brand strong { display: block; color: var(--journal-heading); font-size: 18px; font-weight: 650; letter-spacing: .12em; }
.brand small { display: block; color: var(--journal-muted); font-size: 10px; letter-spacing: .11em; margin-top: 5px; }
#mdbook-menu-bar { flex-shrink: 0; align-items: center; border-bottom: 1px solid var(--journal-line); padding: 0 25px; position: sticky; top: 0 !important; }
#mdbook-menu-bar-hover-placeholder { display: none; }
#mdbook-menu-bar .menu-title { font-size: 12px; font-weight: 400; color: var(--journal-muted); letter-spacing: .08em; margin: 0 auto 0 15px; text-align: left; opacity: 1; flex: 1; }
#mdbook-menu-bar .right-buttons { display: flex; align-items: center; gap: 23px; margin: 0 10px; }
#mdbook-menu-bar .right-buttons .top-link { font-size: 12px; color: var(--journal-muted); }
#mdbook-menu-bar .right-buttons .top-link[aria-current="page"] { color: var(--journal-accent); }
#mdbook-menu-bar .icon-button { width: 32px; height: 40px; padding: 0 5px; display: flex; align-items: center; justify-content: center; border-radius: 4px; box-sizing: border-box; line-height: 1; }
#mdbook-menu-bar .icon-button:hover { background: var(--journal-soft); }
#mdbook-menu-bar .icon-button .fa-svg { width: 14px; height: 14px; padding: 0; display: flex; align-items: center; line-height: 1; }
#mdbook-menu-bar .icon-button svg { display: block; width: 14px; height: 14px; }
.content { display: flex; flex-direction: column; flex: 1 0 auto; width: 100%; box-sizing: border-box; margin-inline: auto; padding-top: 48px; padding-bottom: 0; overflow-y: visible; }
.content main { flex: 1 0 auto; width: 100%; min-width: 0; line-height: 1.95; }
.content h1, .content h2, .content h3 { color: var(--journal-heading); font-weight: 650; }
.content h1 { font-size: 36px; line-height: 1.4; margin: 8px 0 20px; letter-spacing: -.03em; }
.content h2 { margin: 50px 0 18px; font-size: 23px; line-height: 1.5; }
.content h3 { font-size: 20px; }
.content h1 .header:link, .content h2 .header:link { color: inherit; }
.content p { margin: 18px 0; }
.content .eyebrow { color: var(--journal-accent); font-size: 10px; letter-spacing: .2em; font-weight: 600; margin: 0 0 22px; }
.content main > h1, .content main > h2 { scroll-margin-top: 104px; }
.content main > ul { padding-left: 25px; }
.content li { margin: 6px 0; }
.content code { font-size: .86em; border-radius: 3px; padding: 3px 5px; }
.content pre { border: 1px solid var(--journal-line); border-radius: 8px; margin: 25px 0; }
.content pre code { padding: 22px; line-height: 1.8; }
.content figure { margin: 30px 0 36px; }
.content figure img { display: block; max-width: 100%; width: 100%; height: auto; border: 1px solid var(--journal-line); border-radius: 6px; box-sizing: border-box; }
.content figcaption { text-align: center; color: var(--journal-muted); font-size: 12px; margin-top: 10px; }
.content hr { border: 0; border-top: 1px solid var(--journal-line); margin: 45px 0 24px; }
.content .article-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; color: var(--journal-muted); font-size: 11px; padding-bottom: 28px; border-bottom: 1px solid var(--journal-line); }
.content .article-lead { color: var(--journal-muted); font-size: 17px; line-height: 2; margin: 30px 0 38px; }
.content .article-source { font-size: 12px; color: var(--journal-muted); line-height: 2; }
.home-index { padding-top: 8px; }
.home-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.content .home-heading h1 { margin: 0; font-size: 32px; line-height: 1.4; letter-spacing: .02em; }
.content a.home-archive { flex-shrink: 0; padding: 8px 0; color: var(--journal-muted); font-size: 12px; }
.content .post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--journal-line); }
.content .post-list li { margin: 0; }
.content a.post-list-link { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; min-height: 72px; padding: 20px 0; box-sizing: border-box; border-bottom: 1px solid var(--journal-line); color: var(--journal-heading); text-decoration: none; }
.post-list-title { min-width: 0; font-size: 17px; }
.post-list-link time { flex-shrink: 0; color: var(--journal-muted); font: 12px var(--mono-font); white-space: nowrap; }
.post-list-link:hover .post-list-title { color: var(--journal-accent); text-decoration: underline; }
.content .page-description { color: var(--journal-muted); font-size: 16px; margin-bottom: 50px; }
.archive-year { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--journal-line); }
.content .archive-year h2 { font: 38px Georgia, serif; margin: 0 0 15px; }
.archive-year > span { font-size: 11px; color: var(--journal-muted); }
.content .archive-entry { display: flex; gap: 25px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--journal-line); text-decoration: none; }
.archive-entry time { color: var(--journal-muted); font: 11px var(--mono-font); }
.archive-entry strong { color: var(--journal-heading); font-size: 17px; }
.archive-category { margin-left: auto; font-size: 11px; color: var(--journal-muted); }
.site-footer { position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; gap: 8px; width: 100%; box-sizing: border-box; max-width: var(--content-max-width); margin: 64px auto 28px; padding-top: 26px; border-top: 1px solid var(--journal-line); font-size: 12px; line-height: 1.8; text-align: center; color: var(--sidebar-fg); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 50%; width: 32px; height: 2px; transform: translateX(-50%); background: var(--journal-accent); opacity: .45; }
.footer-copyright { letter-spacing: .04em; }
.footer-records { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; max-width: 100%; }
.content .site-footer .footer-record { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-height: 32px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; text-decoration: none; color: var(--sidebar-fg); transition: color .15s ease, background-color .15s ease; }
.content .site-footer .footer-record:hover, .content .site-footer .footer-record:focus-visible { background: var(--journal-soft); color: var(--journal-accent); }
.police-registration img { display: block; flex-shrink: 0; width: 14px; height: 15px; object-fit: contain; }
.page-wrapper .nav-wide-wrapper, .page-wrapper .nav-wrapper { display: none !important; }
.theme-popup { border-radius: 6px; box-shadow: 0 8px 25px #00000012; }
#mdbook-search-wrapper { flex-shrink: 0; width: 100%; box-sizing: border-box; max-width: var(--content-max-width); margin: 25px auto 0; }
#mdbook-searchbar { box-shadow: none; border-radius: 5px; padding: 13px; }
#mdbook-searchresults { font-size: 14px; }
#mdbook-searchresults .teaser { line-height: 1.8; }
@media (min-width: 1440px) { :root { --page-padding: 65px; } .content { padding-top: 65px; } }
@media (max-width: 1079px) { :root { --page-padding: 35px; } .content { max-width: 820px; } }
@media (max-width: 680px) {
    :root { --page-padding: 24px; --menu-bar-height: 64px; }
    #mdbook-menu-bar { padding: 0 15px; }
    #mdbook-menu-bar .menu-title { font-size: 12px; margin-left: 10px; }
    #mdbook-menu-bar .right-buttons { gap: 16px; margin: 0 5px 0 10px; }
    #mdbook-menu-bar .right-buttons .top-link { font-size: 11px; }
    .content { padding-top: 32px; }
    .content h1 { font-size: 31px; }
    .content h2 { font-size: 21px; }
    .content .home-heading h1 { font-size: 28px; }
    .content a.post-list-link { min-height: 68px; gap: 16px; }
    .post-list-title { font-size: 16px; }
    .post-list-link time { font-size: 11px; }
    .content .article-lead { font-size: 16px; }
    .content .article-meta { gap: 7px 13px; }
    .site-footer { margin-top: 44px; margin-bottom: 24px; padding-top: 22px; font-size: 11px; gap: 8px; }
    .footer-records { flex-direction: column; gap: 2px; }
    .archive-entry { gap: 16px; }
    .archive-category { display: none; }
}
@media (max-width: 400px) { #mdbook-menu-bar .right-buttons { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
