:root {
    --ink: #17251f;
    --green: #173f35;
    --green-2: #2f5b4c;
    --red: #a44634;
    --paper: #f4f0e7;
    --paper-2: #ebe4d6;
    --cream: #faf8f2;
    --line: rgba(23, 37, 31, .16);
    --muted: #6d746f;
    --shadow: 0 24px 70px rgba(20, 33, 27, .12);
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
    --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.7; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .2; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.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: 100; background: var(--ink); color: white; padding: 10px 16px; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 11px 20px; border: 1px solid var(--ink); background: transparent; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--green); border-color: var(--green); color: white; box-shadow: 0 10px 25px rgba(23,63,53,.2); }
.button.primary:hover { background: #0f342b; }
.button.ghost:hover { background: var(--paper); }
.button.danger { color: #8b2f22; border-color: #b65b4b; }
.button.danger:hover { color: white; background: #9b3e30; }
.button.wide { width: 100%; }
.button.disabled { opacity: .45; cursor: not-allowed; }

/* header */
.site-header { height: 86px; border-bottom: 1px solid var(--line); background: rgba(250,248,242,.88); backdrop-filter: blur(14px); position: relative; z-index: 20; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 6px); align-items: end; gap: 3px; height: 32px; padding: 5px 4px; border-bottom: 2px solid var(--red); }
.brand-mark i { display: block; background: var(--green); }
.brand-mark i:nth-child(1) { height: 20px; }.brand-mark i:nth-child(2) { height: 26px; background: var(--red); }.brand-mark i:nth-child(3) { height: 17px; }
.brand strong { display: block; font: 700 1.25rem/1.1 var(--serif); letter-spacing: .1em; }
.brand small { display: block; margin-top: 5px; font-size: .55rem; letter-spacing: .16em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: .9rem; font-weight: 650; }
.site-nav a { position: relative; padding: 28px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--red); transition: .2s; }
.site-nav a:hover::after { right: 0; }
.site-nav .nav-admin { padding: 8px 14px; color: white; background: var(--green); }
.site-nav .nav-admin::after { display: none; }
.site-nav .nav-language { display: inline-flex; border: 1px solid var(--line); }
.site-nav .nav-language a { padding: 5px 8px; font-size: .74rem; line-height: 1; }
.site-nav .nav-language a + a { border-left: 1px solid var(--line); }
.site-nav .nav-language a::after { display: none; }
.site-nav .nav-language a.is-active { background: var(--green); color: #fff; }
.nav-toggle { display: none; border: 0; background: transparent; font-weight: 700; }
.flash-stack { position: fixed; right: 24px; top: 104px; z-index: 50; width: min(380px, calc(100% - 48px)); }
.flash { padding: 14px 18px; background: white; border-left: 4px solid var(--green); box-shadow: var(--shadow); }
.flash-warning { border-color: #c48a2d; }.flash-error { border-color: var(--red); }

/* home */
.hero { min-height: 650px; padding: 82px 0 74px; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 90px; }
.hero h1 { margin: 0; font: 700 clamp(3.1rem, 6vw, 5.8rem)/1.08 var(--serif); letter-spacing: -.06em; }
.hero h1 em { color: var(--green-2); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 5px; opacity: .65; background: var(--red); }
.hero-lead { max-width: 620px; margin: 28px 0 32px; color: #56605b; font: 1.05rem/1.9 var(--serif); }
.hero-lead-spacer { height: 124px; }
.hero-search { display: flex; max-width: 610px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(25,35,30,.07); }
.hero-search input { flex: 1; min-width: 0; padding: 17px 20px; border: 0; outline: none; background: transparent; }
.hero-search button { border: 0; background: var(--green); color: white; padding: 0 22px; font-weight: 700; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 28px; font-size: .78rem; color: var(--muted); }
.hero-proof span { padding-right: 30px; border-right: 1px solid var(--line); }.hero-proof span:last-child { border: 0; }
.hero-proof b { display: block; color: var(--ink); font: 700 1.25rem var(--serif); }
.hero-shelf { position: relative; min-height: 440px; display: flex; flex-direction: column; justify-content: center; }
.hero-shelf::before { content: ""; position: absolute; width: 470px; height: 470px; border: 1px solid rgba(23,63,53,.13); border-radius: 50%; left: 50%; top: 45%; transform: translate(-50%,-50%); }
.sun-stamp { position: absolute; top: 6px; right: 15px; width: 82px; height: 82px; display: grid; place-items: center; text-align: center; color: var(--red); border: 2px solid var(--red); border-radius: 50%; font: 700 1.05rem/1.25 var(--serif); transform: rotate(8deg); }
.shelf-books { height: 260px; display: flex; align-items: flex-end; justify-content: center; gap: 12px; position: relative; z-index: 2; }
.spine { --spine-color: #304e43; position: relative; display: flex; align-items: center; justify-content: center; padding-top: 28px; color: #eee8dc; border: 1px solid rgba(20,30,25,.22); border-left-width: 3px; border-radius: 8px 2px 2px 6px; background: linear-gradient(90deg, rgba(255,255,255,.17) 0, rgba(255,255,255,.04) 10%, transparent 25%, transparent 76%, rgba(0,0,0,.2) 100%), var(--spine-color); box-shadow: inset 4px 0 0 rgba(255,255,255,.08), inset -3px 0 5px rgba(0,0,0,.16), 8px 9px 20px rgba(20,30,25,.17); font: 700 1.25rem/1.5 var(--serif); text-shadow: 0 1px 1px rgba(0,0,0,.22); transform-origin: center bottom; }
.spine::before { content: ""; position: absolute; inset: 14px 7px 13px; border-top: 3px double rgba(255,255,255,.3); border-bottom: 3px double rgba(255,255,255,.3); border-radius: 18% / 3%; box-shadow: inset 0 9px 0 -8px rgba(0,0,0,.18), inset 0 -9px 0 -8px rgba(0,0,0,.18); pointer-events: none; }
.spine::after { content: ""; position: absolute; z-index: -1; top: 7px; right: -6px; bottom: 3px; width: 7px; border-block: 1px solid #b9aa91; border-radius: 0 3px 3px 0; background: repeating-linear-gradient(90deg, #eadfca 0, #eadfca 1px, #cdbfa7 1px, #cdbfa7 2px); box-shadow: 2px 3px 5px rgba(20,30,25,.18); }
.spine-one { --spine-color: #304e43; width: 56px; height: 230px; transform: rotate(-.5deg); }.spine-two { --spine-color: #a24a37; width: 64px; height: 190px; transform: rotate(1deg); }.spine-three { --spine-color: #20382f; width: 72px; height: 248px; transform: rotate(-.35deg); }.spine-four { --spine-color: #c18d51; width: 58px; height: 210px; color: #23372f; text-shadow: 0 1px 0 rgba(255,255,255,.25); transform: rotate(.65deg); }.spine-five { --spine-color: #607366; width: 68px; height: 235px; transform: rotate(-.45deg); }
.shelf-line { height: 15px; background: #21382f; box-shadow: 0 12px 0 #ad8060; position: relative; z-index: 3; }
.hero-shelf > p { position: relative; z-index: 2; margin: 40px 0 0; text-align: center; font: italic 1rem/1.9 var(--serif); color: var(--muted); }
.section { padding-block: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font: 700 clamp(2rem,4vw,3.2rem) var(--serif); letter-spacing: -.03em; }
.text-link { padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-weight: 700; font-size: .9rem; }.text-link span { color: var(--red); margin-left: 10px; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 32px; }
.book-card { display: grid; grid-template-columns: 145px 1fr; align-items: end; gap: 22px; min-width: 0; }
.book-cover { --cover: #375548; position: relative; width: 145px; aspect-ratio: .68; display: flex; flex-direction: column; padding: 24px 18px; overflow: hidden; color: #f8f0df; background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 40%), var(--cover); box-shadow: 8px 14px 26px rgba(23,37,31,.18); transition: transform .25s, box-shadow .25s; }
.book-cover::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.24); pointer-events: none; }
.book-cover:hover { transform: translateY(-7px) rotate(-1deg); box-shadow: 12px 24px 35px rgba(23,37,31,.23); }
.book-cover .cover-rule { position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.22); }
.book-cover small { font-size: .62rem; letter-spacing: .2em; opacity: .75; }
.book-cover strong { margin: auto 0; writing-mode: vertical-rl; align-self: center; max-height: 125px; overflow: hidden; font: 700 1.35rem/1.3 var(--serif); letter-spacing: .12em; }
.book-cover > span:last-child { font: .72rem var(--serif); opacity: .8; }
.book-card-meta { min-width: 0; padding-bottom: 6px; }
.book-card-meta > p { margin: 0 0 5px; font-size: .75rem; color: var(--muted); }
.book-card-meta h3 { margin: 0 0 24px; font: 700 1.3rem/1.45 var(--serif); }
.book-card-meta h3 a:hover { color: var(--red); }
.book-card-meta div { display: flex; gap: 12px; font-size: .68rem; color: var(--muted); }.book-card-meta div span + span::before { content: "·"; margin-right: 12px; }
.empty-state { padding: 75px 30px; text-align: center; border: 1px dashed var(--line); background: var(--paper); }.empty-state > span { display: inline-grid; place-items: center; width: 64px; height: 64px; color: white; background: var(--green); border-radius: 50%; font: 1.4rem var(--serif); }.empty-state h3 { margin: 20px 0 5px; font: 700 1.5rem var(--serif); }.empty-state p { color: var(--muted); }.empty-state.small { padding: 45px; }
.category-section { background: #e9e2d5; border-block: 1px solid var(--line); }
.category-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.category-list a { display: grid; grid-template-columns: 44px 1fr auto 30px; align-items: center; gap: 15px; padding: 23px 14px; border-bottom: 1px solid var(--line); }.category-list a:nth-child(odd) { border-right: 1px solid var(--line); }
.category-list a:hover { background: rgba(255,255,255,.35); }.category-list span { color: var(--red); font: .75rem var(--serif); }.category-list strong { font: 700 1.1rem var(--serif); }.category-list small { color: var(--muted); }.category-list b { color: var(--red); }
.manifesto { padding: 74px 0; background: var(--green); color: white; }
.manifesto-inner { display: grid; grid-template-columns: 92px 1fr 1.25fr auto; gap: 38px; align-items: center; }.manifesto-mark { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid #c36b59; color: #d88875; font: 1.8rem var(--serif); }.manifesto .eyebrow { color: #d88875; }.manifesto h2 { margin: 0; font: 700 2rem var(--serif); }.manifesto p { color: rgba(255,255,255,.72); }.manifesto a { padding-bottom: 4px; border-bottom: 1px solid white; white-space: nowrap; font-weight: 700; }

/* library and detail */
.page-hero { padding: 90px 0; background: var(--paper); border-bottom: 1px solid var(--line); }.page-hero h1 { margin: 0; font: 700 clamp(3rem,6vw,5.5rem) var(--serif); }.page-hero > .container > p:last-child { max-width: 700px; color: var(--muted); font-family: var(--serif); }.compact-hero { padding: 58px 0; }
.library { padding-block: 55px 100px; }.library-toolbar { display: grid; grid-template-columns: 1fr 180px 220px; gap: 24px; padding: 25px; background: var(--paper); border: 1px solid var(--line); }.library-toolbar label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }.search-field > div { display: flex; }.library-toolbar input,.library-toolbar select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); background: white; outline: none; }.library-toolbar input:focus,.library-toolbar select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,63,53,.1); }.library-toolbar button { border: 0; background: var(--green); color: white; padding: 0 22px; font-weight: 700; }.result-summary { display: flex; justify-content: space-between; margin: 35px 0; border-bottom: 1px solid var(--line); }.result-summary strong { color: var(--red); }.result-summary a { font-size: .8rem; text-decoration: underline; }.library-grid { grid-template-columns: repeat(3, 1fr); }.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }.pagination a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); }.pagination a[aria-current] { background: var(--green); color: white; border-color: var(--green); }.language-switch { display: inline-flex; margin: 0 0 14px; border: 1px solid var(--green); }.language-switch a { padding: 8px 13px; color: var(--green); font-size: .82rem; font-weight: 700; }.language-switch a.is-active { background: var(--green); color: #fff; }
.search-field button { min-width: 76px; white-space: nowrap; word-break: keep-all; writing-mode: horizontal-tb; }
.book-detail { padding: 90px 0; background: var(--paper); border-bottom: 1px solid var(--line); }.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 100px; align-items: center; }.detail-cover-wrap { position: relative; justify-self: center; }.detail-cover { width: 270px; aspect-ratio: .68; padding: 38px 30px; box-shadow: 18px 24px 45px rgba(23,37,31,.28); }.detail-cover::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 3px double rgba(255,255,255,.25); }.detail-cover strong { max-height: 250px; font-size: 2.2rem; }.detail-cover em { position: absolute; right: 20px; bottom: 35px; font: .7rem var(--serif); opacity: .75; writing-mode: vertical-rl; }.cover-shadow { position: absolute; width: 220px; height: 32px; left: 45px; bottom: -20px; background: rgba(20,30,25,.2); filter: blur(18px); border-radius: 50%; }.detail-kicker { display: flex; gap: 8px; }.detail-kicker span { padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); font-size: .65rem; letter-spacing: .12em; }.detail-copy h1 { margin: 16px 0 0; font: 700 clamp(3rem,6vw,5.4rem)/1.15 var(--serif); letter-spacing: -.04em; }.detail-copy .subtitle { margin: 5px 0; font: 1.15rem var(--serif); color: var(--muted); }.byline { margin: 18px 0 30px; color: var(--red); font: 700 1.05rem var(--serif); }.byline small { color: var(--muted); font-weight: 400; }.book-description { max-width: 700px; color: #515a55; font: 1rem/2 var(--serif); }.detail-actions { display: flex; gap: 12px; margin: 34px 0; }.book-facts { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding-top: 25px; border-top: 1px solid var(--line); }.book-facts div { padding-right: 20px; }.book-facts dt { color: var(--muted); font-size: .68rem; }.book-facts dd { margin: 4px 0; font: 700 1rem var(--serif); }.provenance-section { padding-block: 70px 100px; }.provenance-card { display: grid; grid-template-columns: 72px 1.1fr 1fr; gap: 35px; padding: 38px; border: 1px solid var(--line); background: #f1eadc; }.seal { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid var(--red); color: var(--red); font: 700 .9rem/1.2 var(--serif); transform: rotate(-5deg); }.provenance-card h2 { margin: 0 0 10px; font: 700 1.5rem var(--serif); }.provenance-card p { margin: 0; color: var(--muted); font-size: .88rem; }.provenance-card dl { margin: 0; }.provenance-card dl div { display: grid; grid-template-columns: 80px 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }.provenance-card dt { color: var(--muted); font-size: .72rem; }.provenance-card dd { margin: 0; font-size: .8rem; }.provenance-card dd a { text-decoration: underline; }

/* principles */
.principles-hero { text-align: center; }.principles-hero .eyebrow { justify-content: center; }.principles { padding-block: 80px 110px; }.principle-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }.principle-grid article { position: relative; min-height: 320px; padding: 42px 34px; background: var(--cream); }.principle-grid span { color: var(--red); font: .8rem var(--serif); }.principle-grid h2 { margin: 70px 0 16px; font: 700 1.65rem var(--serif); }.principle-grid p { color: var(--muted); font-size: .9rem; }.legal-note { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; margin-top: 80px; padding: 60px; color: white; background: var(--green); }.legal-note h2 { margin: 0; font: 700 2.2rem/1.45 var(--serif); }.legal-note ul { margin: 0; padding: 0; list-style: none; }.legal-note li { padding: 12px 0 12px 26px; border-bottom: 1px solid rgba(255,255,255,.16); position: relative; }.legal-note li::before { content: "✓"; position: absolute; left: 0; color: #d88875; }.policy-callout { display: grid; grid-template-columns: 150px 1fr; gap: 25px; margin-top: 30px; padding: 24px 30px; border-left: 4px solid var(--red); background: var(--paper); }.policy-callout p { margin: 0; color: var(--muted); }

/* admin */
.admin-login { min-height: 680px; display: grid; place-items: center; padding: 60px 24px; background: var(--paper); }.login-card { width: min(440px,100%); padding: 50px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }.login-mark { float: right; width: 58px; height: 58px; display: grid; place-items: center; color: var(--red); border: 2px solid var(--red); font: 700 .9rem/1.25 var(--serif); transform: rotate(7deg); }.login-card h1 { margin: 0; font: 700 2.5rem var(--serif); }.login-card > p:not(.eyebrow) { color: var(--muted); }.login-card form { display: grid; gap: 18px; margin-top: 28px; }.login-card label,.form-card label { display: grid; gap: 7px; font-size: .78rem; font-weight: 700; }.login-card input,.form-card input,.form-card select,.form-card textarea,.panel-toolbar input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); background: white; outline: none; }.login-card input:focus,.form-card input:focus,.form-card select:focus,.form-card textarea:focus,.panel-toolbar input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,63,53,.1); }.form-alert { margin: 18px 0; padding: 13px 16px; color: #762b20; background: #f8e8e3; border-left: 3px solid var(--red); font-size: .85rem; }
.admin-shell { padding-block: 55px 100px; }.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 35px; }.admin-heading h1 { margin: 0; font: 700 clamp(2.4rem,5vw,4rem) var(--serif); }.admin-heading p:last-child { margin: 6px 0 0; color: var(--muted); }.admin-actions { display: flex; gap: 10px; }.admin-actions form { margin: 0; }.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 30px; }.metric-row article { display: flex; justify-content: space-between; align-items: end; padding: 24px; border: 1px solid var(--line); background: var(--paper); }.metric-row span { color: var(--muted); font-size: .8rem; }.metric-row strong { font: 700 2.2rem var(--serif); }.admin-panel { border: 1px solid var(--line); background: white; }.panel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }.panel-toolbar h2 { margin: 0; font: 700 1.3rem var(--serif); }.panel-toolbar p { margin: 0; color: var(--muted); font-size: .72rem; }.panel-toolbar form { display: flex; }.panel-toolbar button { border: 0; padding-inline: 18px; background: var(--green); color: white; }.table-wrap { overflow-x: auto; }.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; }.admin-table th { padding: 13px 18px; text-align: left; color: var(--muted); background: var(--paper); font-size: .68rem; letter-spacing: .08em; }.admin-table td { padding: 15px 18px; border-top: 1px solid var(--line); font-size: .78rem; }.admin-table td:first-child > a { display: flex; align-items: center; gap: 12px; }.admin-table td:first-child strong,.admin-table td:first-child small { display: block; }.admin-table td:first-child small { color: var(--muted); }.mini-cover { width: 34px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--cover); font: .85rem var(--serif); }.status { display: inline-block; padding: 4px 9px; border-radius: 20px; }.status-published { color: #226044; background: #e4f2e9; }.status-draft { color: #80621e; background: #f7efda; }.row-action { font-weight: 700; }.row-action:hover { color: var(--red); }
.back-link { display: inline-block; margin-bottom: 25px; color: var(--muted); font-size: .8rem; }.book-form { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; align-items: start; }.form-main { display: grid; gap: 24px; }.form-card { padding: 30px; border: 1px solid var(--line); background: white; }.form-card-heading { display: flex; gap: 18px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }.form-card-heading > span { color: var(--red); font: .75rem var(--serif); }.form-card h2 { margin: 0; font: 700 1.35rem var(--serif); }.form-card-heading p { margin: 2px 0 0; color: var(--muted); font-size: .72rem; }.form-grid { display: grid; gap: 18px; margin-bottom: 18px; }.form-grid.two { grid-template-columns: repeat(2,1fr); }.form-card label b { color: var(--red); }.form-card textarea { resize: vertical; line-height: 1.7; }.field-error { color: var(--red); font-weight: 500; }.rights-card { border-top: 4px solid var(--red); }.rights-reminder { margin-top: 17px; padding: 12px 15px; color: #77552e; background: #f8f0df; font-size: .78rem; }.content-field textarea { min-height: 460px; font-family: var(--serif); }.sticky-card { position: sticky; top: 20px; }.sticky-card > h2 { margin: 0 0 20px; }.cover-preview { width: 150px; margin: 0 auto 25px; }.sticky-card label { margin: 16px 0; }.sticky-card input[type=color] { height: 44px; padding: 4px; }.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }.check-label input { width: auto; }.save-note { color: var(--muted); font-size: .68rem; text-align: center; }.danger-card { margin-top: 20px; border-color: rgba(164,70,52,.35); }.danger-card p { color: var(--muted); font-size: .75rem; }

/* reader */
html[data-reader-theme=night] { background: #18201d; }.reader-body { --reader-bg: #f0eadc; --reader-ink: #2b302c; margin: 0; background: var(--reader-bg); color: var(--reader-ink); transition: background .2s,color .2s; }.reader-body::before { opacity: .28; }.reader-body.is-night { --reader-bg: #18201d; --reader-ink: #d8d6cb; }.reader-body.toc-open { overflow: hidden; }.reader-header { position: fixed; inset: 0 0 auto; z-index: 20; height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 26px; background: color-mix(in srgb, var(--reader-bg) 91%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(100,100,90,.18); }.reader-back { font-size: .8rem; }.reader-back span { margin-right: 8px; }.reader-title { max-width: 360px; text-align: center; }.reader-title strong,.reader-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.reader-title strong { font: 700 1rem var(--serif); }.reader-title small { color: #85877f; font-size: .66rem; }.reader-tools { justify-self: end; display: flex; gap: 6px; }.reader-tools button { width: 36px; height: 36px; padding: 0; border: 1px solid rgba(100,100,90,.25); background: transparent; border-radius: 50%; font-size: .72rem; }.reader-tools button:hover { border-color: var(--red); color: var(--red); }.reader-tools button:disabled { opacity: .28; cursor: not-allowed; }.reader-tools .reader-toc-toggle { width: auto; min-width: 72px; padding-inline: 12px; border-radius: 20px; font-weight: 700; }.reader-toc-toggle span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 3px; color: white; background: var(--red); border-radius: 20px; font-size: .58rem; }.reading-progress { position: fixed; z-index: 21; left: 0; right: 0; top: 69px; height: 2px; }.reading-progress span { display: block; width: 0; height: 100%; background: var(--red); }.reader-main { --reader-size: 20px; padding: 145px 24px 120px; }.reader-article { max-width: 740px; margin: auto; font: var(--reader-size)/2.15 var(--serif); letter-spacing: .03em; }.reader-article > header { margin-bottom: 80px; padding-bottom: 48px; text-align: center; border-bottom: 1px solid rgba(100,100,90,.22); }.reader-article > header p { color: var(--red); font: .7rem var(--sans); letter-spacing: .2em; }.reader-article > header h1 { margin: 14px 0 5px; font: 700 clamp(2.7rem,8vw,5rem)/1.2 var(--serif); }.reader-article > header h2 { margin: 0; font: 400 1rem var(--serif); color: #7e817a; }.reader-article > header div { margin-top: 22px; font-size: .8rem; color: #7e817a; }.reader-article > h2 { margin: 3.8em 0 1.5em; text-align: center; font-size: 1.35em; }.reader-article > p { margin: 0 0 1.25em; text-align: justify; }.reader-article > p::first-letter { margin-left: 2em; }.reader-article [data-reader-section] { scroll-margin-top: 105px; }.reader-article > footer { margin-top: 100px; padding-top: 40px; text-align: center; border-top: 1px solid rgba(100,100,90,.22); font-size: .8rem; }.reader-article > footer small { display: block; margin-top: 18px; color: #85877f; font: .62rem var(--sans); }.reader-empty { padding: 60px; text-align: center; border: 1px dashed rgba(100,100,90,.25); }.reader-top { position: fixed; right: 25px; bottom: 25px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--green); color: white; opacity: 0; pointer-events: none; transition: .2s; }.reader-top.is-visible { opacity: 1; pointer-events: auto; }
.reader-variant-switch { width: fit-content; display: inline-flex; margin: 28px auto 0; padding: 3px; border: 1px solid rgba(100,100,90,.28); border-radius: 999px; font: 700 .72rem var(--sans); }
.reader-variant-switch a { min-width: 64px; padding: 7px 16px; border-radius: 999px; color: #777b75; }
.reader-variant-switch a.is-active { color: white; background: var(--green); box-shadow: 0 5px 15px rgba(23,63,53,.18); }
.reader-body.is-night .reader-variant-switch a.is-active { color: #18201d; background: #d8d6cb; }
.reader-toc-layer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }.reader-toc-layer.is-open { visibility: visible; pointer-events: auto; }.reader-toc-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(13,24,20,.48); opacity: 0; transition: opacity .25s; }.reader-toc-layer.is-open .reader-toc-backdrop { opacity: 1; }.reader-toc { position: absolute; inset: 0 0 0 auto; width: min(410px,92vw); display: grid; grid-template-rows: auto 1fr auto; color: var(--ink); background: #f5f0e5; box-shadow: -20px 0 60px rgba(10,20,16,.25); transform: translateX(100%); transition: transform .28s ease; }.reader-toc-layer.is-open .reader-toc { transform: translateX(0); }.reader-toc > header { display: flex; align-items: center; justify-content: space-between; padding: 28px 24px 20px; border-bottom: 1px solid var(--line); }.reader-toc > header small { color: var(--red); font-size: .55rem; font-weight: 800; letter-spacing: .16em; }.reader-toc > header h2 { margin: 2px 0 0; font: 700 1.65rem var(--serif); }.reader-toc > header button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.35rem; }.reader-toc nav { overflow-y: auto; overscroll-behavior: contain; padding: 10px 15px 30px; }.reader-toc nav a { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start; padding: 14px 10px; border-bottom: 1px solid var(--line); }.reader-toc nav a:hover,.reader-toc nav a.is-active { color: var(--red); background: rgba(164,70,52,.06); }.reader-toc nav a span { padding-top: 2px; color: var(--red); font: .65rem var(--serif); }.reader-toc nav a strong { font: 600 .92rem/1.55 var(--serif); }.reader-toc > footer { display: flex; justify-content: space-between; padding: 15px 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: .65rem; }

/* footer */
.site-footer { padding: 60px 0 20px; color: rgba(255,255,255,.7); background: #142920; }.footer-grid { display: flex; justify-content: space-between; gap: 40px; }.footer-brand { color: white; font: 700 1.5rem var(--serif); }.site-footer p { font: .85rem var(--serif); }.footer-links { display: flex; gap: 28px; align-items: center; font-size: .8rem; }.footer-links a:hover { color: white; }.footer-bottom { margin-top: 35px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .65rem; }.error-page { min-height: 580px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.error-number { color: var(--paper-2); font: 700 9rem/1 var(--serif); }.error-page h1 { max-width: 620px; margin: 5px 0 30px; font: 700 2rem var(--serif); }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }.hero-shelf { display: none; }.book-grid,.library-grid { grid-template-columns: repeat(2,1fr); }.detail-grid { grid-template-columns: 300px 1fr; gap: 45px; }.manifesto-inner { grid-template-columns: 72px 1fr; }.manifesto-inner > p,.manifesto-inner > a { grid-column: 2; }.book-form { grid-template-columns: 1fr; }.sticky-card { position: static; }.form-sidebar .cover-preview { width: 170px; }.provenance-card { grid-template-columns: 60px 1fr; }.provenance-card dl { grid-column: 2; }.principle-grid { grid-template-columns: 1fr; }.principle-grid article { min-height: 0; }.principle-grid h2 { margin-top: 30px; }.legal-note { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 700px) {
    .container { width: min(100% - 28px,1180px); }.site-header { height: 70px; }.nav-toggle { display: block; }.site-nav { display: none; position: absolute; left: 0; right: 0; top: 69px; padding: 16px 24px 24px; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); }.site-nav.is-open { display: flex; }.site-nav a { padding: 12px 0; }.site-nav a::after { display: none; }.hero { min-height: 0; padding: 58px 0; }.hero h1 { font-size: 3.2rem; }.hero-search { display: grid; }.hero-search button { min-height: 50px; }.hero-proof { gap: 14px; }.hero-proof span { padding-right: 14px; }.section { padding-block: 60px; }.book-grid,.library-grid { grid-template-columns: 1fr; }.book-card { grid-template-columns: 130px 1fr; }.book-cover { width: 130px; }.category-list { grid-template-columns: 1fr; }.category-list a:nth-child(odd) { border-right: 0; }.manifesto-inner { grid-template-columns: 1fr; text-align: center; }.manifesto-mark { margin: auto; }.manifesto-inner > p,.manifesto-inner > a { grid-column: 1; }.library-toolbar { grid-template-columns: 1fr; }.detail-grid { grid-template-columns: 1fr; }.detail-cover { width: 220px; }.detail-copy h1 { font-size: 3.2rem; }.detail-actions { flex-direction: column; }.book-facts { gap: 8px; }.provenance-card { grid-template-columns: 1fr; }.provenance-card dl { grid-column: 1; }.seal { margin-bottom: 5px; }.principles { padding-block: 50px 80px; }.legal-note { padding: 35px 25px; }.policy-callout { grid-template-columns: 1fr; }.admin-heading { align-items: stretch; flex-direction: column; }.admin-actions { flex-wrap: wrap; }.metric-row { grid-template-columns: 1fr; }.panel-toolbar { align-items: stretch; flex-direction: column; }.form-grid.two { grid-template-columns: 1fr; }.form-card { padding: 22px 18px; }.login-card { padding: 35px 25px; }.reader-header { grid-template-columns: auto 1fr auto; padding: 0 10px; }.reader-title { display: none; }.reader-back { font-size: 0; }.reader-back span { margin: 0; font-size: 1rem; }.reader-tools .reader-size-button { display: none; }.reader-tools { gap: 4px; }.reader-tools button { width: 34px; height: 34px; }.reader-tools .reader-toc-toggle { min-width: 67px; padding-inline: 9px; }.reader-main { padding-inline: 18px; }.reader-article { line-height: 2; }.reader-toc { width: min(390px,100vw); }.footer-grid { flex-direction: column; }.footer-links { flex-wrap: wrap; }
}

@media (max-width: 700px) { .book-facts { grid-template-columns: repeat(2,1fr); gap: 18px 8px; } }

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