:root{color-scheme:light;--paper:#f6f2e9;--paper-2:#efe9dc;--paper-3:#e7dfcf;--ink:#22201c;--ink-2:#6b6459;--ink-3:#9a9284;--rule:#ddd4c3;--gold:#a9772f;font-family:"Songti SC","Source Han Serif SC","Noto Serif CJK SC",SimSun,serif;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}body{margin:0;min-height:100dvh;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.8}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:400;letter-spacing:.08em;line-height:1.45}h1{font-size:clamp(28px,4vw,38px)}h2{font-size:21px}p{overflow-wrap:anywhere}small,.muted{color:var(--ink-3)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:var(--ink)}button,input,select{min-height:44px}button,.primary-link,.text-link,.download-links a,.topnav a,.admin-nav a,.wordmark{touch-action:manipulation;transition:background .18s,border-color .18s,color .18s,transform .15s}button,.primary-link,.text-link,.download-links a{display:inline-flex;align-items:center;justify-content:center;background:var(--paper);border:1px solid var(--rule);border-radius:999px;padding:8px 17px;cursor:pointer;font-size:14px;line-height:1.5}button:hover,.primary-link:hover,.text-link:hover,.download-links a:hover{background:var(--paper-2);border-color:#cbbda6}button:active,.primary-link:active,.text-link:active,.download-links a:active{transform:scale(.97)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}input:not([type=checkbox]):not([type=file]),textarea,select{border:1px solid var(--rule);border-radius:10px;padding:10px 13px;background:var(--paper);min-width:0;transition:border-color .18s,background .18s}input:hover,textarea:hover,select:hover{border-color:#c9b48a}input:focus,textarea:focus,select:focus{border-color:#a9772f}input::placeholder,textarea::placeholder{color:var(--ink-3)}textarea{width:100%;min-height:150px;resize:vertical;line-height:1.75}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--gold)}input[type=file]{max-width:100%;font-size:14px}input[type=file]::file-selector-button{font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:999px;padding:8px 14px;cursor:pointer;transition:background .18s}input[type=file]::file-selector-button:hover{background:var(--paper-2)}
.appbar{position:sticky;top:0;z-index:30;background:rgba(246,242,233,.95);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--rule)}.appbar-inner{min-height:70px;max-width:1200px;margin:auto;padding:10px 32px;display:flex;align-items:center;gap:35px}.wordmark{display:inline-flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid transparent;border-radius:999px;white-space:nowrap;letter-spacing:.15em}.wordmark:hover{background:var(--paper-2);border-color:var(--rule)}.wordmark-symbol{width:22px;height:22px;border:1px solid var(--gold);border-radius:50%;position:relative;overflow:hidden}.wordmark-symbol:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:var(--paper);left:7px;top:-5px}.topnav{display:flex;align-items:center;gap:7px;flex:1}.topnav a,.admin-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 14px;border:1px solid var(--rule);border-radius:999px;color:var(--ink-2);font-size:14px;white-space:nowrap}.topnav a:hover,.admin-nav a:hover{background:var(--paper-2);color:var(--ink)}.topnav a[aria-current=page]{background:var(--paper-3);color:var(--ink)}.topnav .logout{margin-left:auto}
.layout{max-width:1180px;margin:auto;padding:48px 32px 90px}.page-intro{margin-bottom:30px}.page-intro h1{margin-bottom:8px}.page-intro p{max-width:620px;color:var(--ink-2);margin-bottom:0}.eyebrow,.hero-kicker,.tiny-label{font-size:12px;letter-spacing:.12em;color:var(--ink-3)}.eyebrow{margin-bottom:12px}.panel{background:var(--paper);border:1px solid var(--rule);border-radius:18px}.panel-head{padding:24px 26px 0}.panel-head h2{margin:0 0 5px}.panel-head p{font-size:14px;color:var(--ink-2);margin:0}.panel-body{padding:22px 26px 26px}.home-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.hero-cover{min-height:380px;padding:36px;display:flex;flex-direction:column;justify-content:space-between;background:var(--paper-2)}.hero-title h2,.auth-cover h1{font-size:clamp(35px,5vw,52px);letter-spacing:.18em;margin:0 0 10px}.hero-title p,.auth-cover p{color:var(--ink-2);margin:5px 0}.home-side{display:grid;gap:18px}.home-card{padding:26px 28px;display:flex;flex-direction:column;justify-content:space-between}.home-card h2{margin:5px 0}.home-card p{color:var(--ink-2);margin:0 0 18px}.home-card .text-link{align-self:flex-start}.auth-wrap{min-height:calc(100dvh - 70px);display:grid;place-items:center;padding:36px 20px 70px}.auth-layout{width:min(890px,100%);display:grid;grid-template-columns:1.05fr .95fr;min-height:480px;overflow:hidden}.auth-cover{padding:38px;display:flex;flex-direction:column;justify-content:space-between;background:var(--paper-2);border-right:1px solid var(--rule)}.auth-form{padding:45px 40px;display:flex;flex-direction:column;justify-content:center}.auth-form h2{font-size:27px;margin-bottom:8px}.auth-form p{color:var(--ink-2)}.auth-form form{display:grid;gap:10px;margin-top:12px}.auth-form input,.auth-form button{width:100%}.status{color:#9e4231;min-height:1.5em;font-size:13px}.form-label{display:block;margin-bottom:5px;font-size:14px;color:var(--ink-2)}
.forum-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.forum-list,.forum-compose{min-width:0}.forum-compose{position:sticky;top:90px}.forum-form{display:grid;gap:13px}.forum-form input:not([type=checkbox]),.forum-form select{width:100%}.checkline{display:flex;align-items:center;gap:9px;color:var(--ink-2);font-size:14px}.feed-tools{padding:20px 24px;border-bottom:1px solid var(--rule)}.feed-tools input{width:100%}.post-list{padding:4px 24px 20px}.post-list article{padding:20px 0;border-bottom:1px solid var(--rule);overflow-wrap:anywhere}.post-list article:last-child{border-bottom:0}.post-list article p{margin:10px 0 12px;line-height:1.8}.post-list article button{min-height:36px;padding:6px 13px;font-size:13px;margin:4px 5px 0 0}.post-list .empty{padding:45px 0;color:var(--ink-3);text-align:center}.post-meta{display:flex;align-items:center;gap:10px}.post-meta strong{display:block;font-size:14px;font-weight:400}.post-meta small{display:block;font-size:12px;line-height:1.4}.post-avatar{width:34px;height:34px;border:1px solid var(--rule);border-radius:50%;display:grid;place-items:center;background:var(--paper-2);color:var(--ink-2);font-size:13px}.post-spoiler,.post-tags span{padding:3px 9px;border:1px solid var(--rule);border-radius:999px;color:var(--ink-2);font-size:12px}.post-spoiler{margin-left:auto}.post-list article h3{font-size:18px;margin:15px 0 0}.post-tags{display:flex;gap:6px;flex-wrap:wrap}.post-reply{margin-left:36px;padding-left:15px!important;border-left:1px solid var(--rule)}.post-actions{margin-top:12px}
.admin-layout{display:grid;grid-template-columns:170px minmax(0,1fr);gap:24px;align-items:start}.admin-nav{position:sticky;top:90px;display:grid;gap:8px}.admin-nav a{justify-content:flex-start}.admin-content{display:grid;gap:18px;min-width:0}.admin-section{scroll-margin-top:90px}.admin-section form{display:flex;flex-wrap:wrap;gap:10px}.admin-section form input:not([type=file]),.admin-section form select{flex:1}.admin-section form textarea{flex-basis:100%;min-height:260px}.admin-section form input[type=file]{width:100%}.admin-section form .file-row{width:100%;color:var(--ink-2);font-size:14px}.action-row,.download-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.download-links{margin-bottom:18px}.feedback-list article{padding:18px 0;border-top:1px solid var(--rule)}.feedback-list article p{margin:8px 0}.feedback-list article select,.feedback-list article input{margin:4px 6px 0 0}.feedback-list article input{max-width:240px}.section-status{min-height:1.5em;color:var(--ink-2);font-size:14px;overflow-wrap:anywhere}.admin-section details{padding:10px;border-bottom:1px solid var(--rule)}.admin-section summary{cursor:pointer;padding:8px 12px;border:1px solid var(--rule);border-radius:999px;transition:background .18s}.admin-section summary:hover{background:var(--paper-2)}.reader-list p{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;margin:0;border-top:1px solid var(--rule)}.reader-list button{min-height:36px;padding:5px 13px;font-size:13px}
@media(max-width:760px){.appbar-inner{padding:10px 16px;gap:7px;flex-wrap:wrap}.topnav{order:2;flex-basis:100%;gap:6px;overflow-x:auto;padding-bottom:3px}.topnav a{min-height:38px;padding:5px 12px;font-size:13px}.topnav .logout{margin-left:0}.layout{padding:30px 16px 75px}.home-grid,.forum-layout,.admin-layout,.auth-layout{grid-template-columns:1fr}.hero-cover{min-height:280px;padding:27px}.auth-wrap{min-height:calc(100dvh - 60px);padding:20px 16px 50px}.auth-layout{min-height:0}.auth-cover{min-height:205px;padding:28px;border-right:0;border-bottom:1px solid var(--rule)}.auth-form{padding:30px 24px}.forum-compose,.admin-nav{position:static}.admin-nav{display:flex;overflow-x:auto;white-space:nowrap;padding:2px}.admin-layout{gap:14px}.panel-head{padding:21px 20px 0}.panel-body{padding:18px 20px 22px}.admin-section form input:not([type=file]){flex-basis:100%}.feedback-list article input{max-width:none;width:100%}input:not([type=checkbox]),textarea,select{font-size:16px}.page-intro{margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Home, profile and reading navigation */
.wordmark-symbol{border:0;background:var(--gold);box-shadow:none;transform:rotate(-20deg)}
.wordmark-symbol:after{display:block;position:absolute;content:"";width:19px;height:19px;left:8px;top:-4px;border-radius:50%;background:var(--paper)}
.welcome h1{font-size:clamp(23px,3vw,32px);line-height:1.6;overflow-wrap:anywhere}.setup-name{display:inline-flex;padding:6px 15px;border:1px solid var(--rule);border-radius:999px;color:var(--ink-2);transition:background .18s}.setup-name:hover{background:var(--paper-2)}
.home-side{align-content:stretch}.profile-layout{max-width:760px}.profile-form{display:grid;justify-items:start;gap:12px}.profile-form #profileName{width:min(100%,420px)}.profile-form .form-label{margin:4px 0 -8px}.profile-help{max-width:32em;color:var(--ink-2);font-size:14px;margin:0}.profile-avatar{width:88px;height:88px;display:grid;place-items:center;overflow:hidden;background:var(--paper-2);border:1px solid var(--rule);border-radius:50%;font-size:30px;color:var(--ink-2)}.profile-avatar img,.post-avatar img{width:100%;height:100%;object-fit:cover}.post-avatar{overflow:hidden;flex:none}.avatar-picker{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:8px 17px;border:1px solid var(--rule);border-radius:999px;cursor:pointer;font-size:14px;overflow:hidden}.avatar-picker:hover{background:var(--paper-2)}.avatar-picker:focus-within{outline:2px solid var(--gold);outline-offset:3px}.avatar-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
@media(max-width:760px){.home-card .text-link{align-self:flex-end}.hero-actions{display:flex;justify-content:flex-end}.welcome h1{font-size:24px}}
.is-home .topnav{margin-left:auto}.is-home .topnav .logout{margin-left:auto}.wordmark-symbol{transform:rotate(0deg)}
.reader-entry{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--rule)}.reader-name{min-width:90px}.reader-code{max-width:100%;overflow-wrap:anywhere;font-size:12px;color:var(--ink-2);user-select:all}.reader-entry button{min-height:36px;font-size:13px}.volume-tools{margin-bottom:3px}
@media(max-width:760px){.is-home .appbar-inner{flex-wrap:nowrap}.is-home .topnav{order:0;flex-basis:auto;padding:0}.is-home .topnav .logout{margin-left:auto}.reader-entry{align-items:flex-start}.reader-name,.reader-code{flex-basis:100%}}
