:root{
  --ink:#121010; --ink-2:#1b1716; --ink-3:#262020;
  --paper:#f6f0e4; --paper-2:#efe6d4; --paper-ink:#231d1a;
  --red:#a3191c; --red-2:#7c1114; --gold:#c9a24b; --gold-2:#e6c77a;
  --muted:#8b8076;
  --f-display:"Playfair Display", Georgia, serif;
  --f-serif:"Source Serif 4", Georgia, serif;
  --f-sans:"Inter", system-ui, -apple-system, sans-serif;
}
html{scroll-behavior:smooth}
body{background:var(--ink);color:#eae3d6;font-family:var(--f-serif);font-size:1.06rem;line-height:1.7}
section{scroll-margin-top:68px}
.font-display,h1,h2,h3,.section-title,.modal-title{font-family:var(--f-display)}
.text-gold{color:var(--gold)!important}.text-red{color:var(--red)!important}
.link-gold{color:var(--gold);text-decoration:none}.link-gold:hover{color:var(--gold-2)}
.kicker{font-family:var(--f-sans);text-transform:uppercase;letter-spacing:.18em;font-size:.75rem;font-weight:700;margin-bottom:.5rem}
.section{padding:6rem 0}
.section-title{font-size:clamp(2rem,3.6vw,3rem);font-weight:700;line-height:1.1;margin-bottom:1rem}
.lede{font-size:1.2rem;color:inherit;opacity:.9}
.paper{background:var(--paper);color:var(--paper-ink)}
.paper-alt{background:var(--paper-2);color:var(--paper-ink)}
.ink{background:radial-gradient(1200px 500px at 10% 0%,#2a1616 0%,transparent 60%),var(--ink)}
.paper .text-body-secondary,.paper-alt .text-body-secondary{color:#6d625a!important}

/* Nav */
.site-nav{background:rgba(18,16,16,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(201,162,75,.18);transition:background .3s}
.site-nav.scrolled{background:rgba(18,16,16,.95)}
.site-nav .nav-link{font-family:var(--f-sans);font-size:.85rem;font-weight:500;color:#cfc6b8;letter-spacing:.02em}
.site-nav .nav-link.active,.site-nav .nav-link:hover{color:var(--gold-2)}
.brand{font-family:var(--f-display);font-weight:700;color:#f3ead9!important;letter-spacing:.01em}
.brand-seal{display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;background:var(--red);color:#fff;border-radius:.3rem;font-family:serif;font-size:1rem;margin-right:.4rem;box-shadow:inset 0 0 0 2px rgba(255,255,255,.15)}
.brand-seal.sm{width:1.4rem;height:1.4rem;font-size:.8rem}

/* Hero */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;overflow:hidden;color:#fff}
.hero-bg{position:absolute;inset:-4%;background-size:cover;background-position:center 35%;transform:scale(1.05);animation:slowzoom 30s ease-in-out infinite alternate;filter:saturate(.85) contrast(1.05)}
@keyframes slowzoom{to{transform:scale(1.14) translateY(-1%)}}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(14,10,10,.94) 0%,rgba(14,10,10,.78) 45%,rgba(90,10,10,.35) 100%),linear-gradient(0deg,rgba(18,16,16,1) 0%,transparent 30%)}
.hero-inner{position:relative;z-index:2;padding-top:6rem;padding-bottom:4rem}
.hero-title{font-size:clamp(3rem,8vw,6.5rem);font-weight:900;line-height:.95;letter-spacing:-.01em;margin-bottom:1.2rem}
.hero-sub{font-size:clamp(1.1rem,1.6vw,1.35rem);max-width:44rem;color:#e9dfcf;margin-bottom:2rem}
.hero-stats{display:flex;flex-wrap:wrap;gap:2.5rem;margin-top:3rem;font-family:var(--f-sans)}
.hero-stats .n{font-family:var(--f-display);font-size:2.4rem;color:var(--gold-2);line-height:1}
.hero-stats .l{font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;color:#bfb4a5}
.hero-credit{position:absolute;right:1rem;bottom:.8rem;z-index:2;font-family:var(--f-sans);font-size:.7rem;color:#a99d8e;max-width:40rem;text-align:right}
.hero-credit a{color:#c9bca9}
.btn-gold{background:var(--gold);border-color:var(--gold);color:#1a1310;font-family:var(--f-sans);font-weight:600}
.btn-gold:hover{background:var(--gold-2);border-color:var(--gold-2);color:#1a1310}
.btn-outline-gold{border-color:var(--gold);color:var(--gold)}.btn-outline-gold:hover{background:var(--gold);color:#1a1310}
.btn-lg{font-family:var(--f-sans);font-size:1rem}

/* Intro */
.dropcap p:first-child::first-letter{float:left;font-family:var(--f-display);font-size:4.6rem;line-height:.8;padding:.35rem .6rem 0 0;color:var(--red);font-weight:900}
.legend{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.5rem}
.take-chip{display:inline-flex;align-items:center;gap:.3rem;font-family:var(--f-sans);font-size:.78rem;font-weight:600;background:var(--red);color:#fff;padding:.1rem .5rem;border-radius:2rem;white-space:nowrap}

/* Status badges */
.st{font-family:var(--f-sans);font-size:.68rem;font-weight:600;letter-spacing:.03em;padding:.25rem .55rem;border-radius:2rem;display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap;border:1px solid transparent}
.st::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:currentColor}
.st-history{background:#e9e1d1;color:#5a4b3c;border-color:#d2c4ab}
.st-official{background:#dfe7f1;color:#22446e;border-color:#b9cbe0}
.st-convicted{background:#f6dcdc;color:#8b1518;border-color:#e7b2b2}
.st-mixed{background:#f4e6cf;color:#7a4e10;border-color:#e3c897}
.st-cleared{background:#dcefe2;color:#1d6a3a;border-color:#b4dbc1}
.st-alleged{background:#ece3f3;color:#5c2f80;border-color:#d4c0e5}
.st-pending{background:#fff1c9;color:#7a5a00;border-color:#efd88a}
.st-debated{background:#e7e4df;color:#4e4740;border-color:#cfc8bf}

/* Long March section */
.longmarch{background:linear-gradient(135deg,#2a0d0d 0%,#140f0f 55%,#1d1712 100%);position:relative;overflow:hidden}
.longmarch::before{content:"長征";position:absolute;right:-2rem;top:-3rem;font-size:18rem;font-family:serif;color:rgba(201,162,75,.05);line-height:1;pointer-events:none}
.lm-portraits{display:grid;grid-template-columns:1.2fr 1fr;grid-template-rows:1fr 1fr;gap:.75rem;height:460px}
.lm-portraits figure{margin:0;position:relative;overflow:hidden;border-radius:.4rem;cursor:pointer}
.lm-portraits figure:first-child{grid-row:span 2}
.lm-portraits img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.05);transition:filter .4s,transform .6s}
.lm-portraits figure:hover img{filter:grayscale(0);transform:scale(1.04)}
.lm-portraits figcaption{position:absolute;left:0;right:0;bottom:0;padding:.5rem .7rem;background:linear-gradient(0deg,rgba(0,0,0,.85),transparent);font-family:var(--f-sans);font-size:.75rem;color:#eee}
.lm-origin{font-style:italic;color:#d8cbb6;border-left:3px solid var(--gold);padding-left:1rem}
.lm-chip{font-family:var(--f-sans);font-size:.8rem;border:1px solid rgba(201,162,75,.5);color:var(--gold-2);background:transparent;border-radius:2rem;padding:.3rem .8rem;transition:all .2s}
.lm-chip:hover{background:var(--gold);color:#1a1310}

/* Take boxes */
.take-box{border-left:4px solid var(--red);background:#fbf3e6;color:#2a211c;padding:1rem 1.2rem;border-radius:0 .4rem .4rem 0;position:relative}
.take-box p:last-child{margin-bottom:0}
.take-dark{background:rgba(163,25,28,.12);color:#eadfcd;border-left-color:var(--gold)}
.take-label{font-family:var(--f-sans);text-transform:uppercase;letter-spacing:.14em;font-size:.68rem;font-weight:700;color:var(--red);margin-bottom:.4rem}
.take-dark .take-label{color:var(--gold-2)}
.record-label{font-family:var(--f-sans);text-transform:uppercase;letter-spacing:.14em;font-size:.68rem;font-weight:700;color:#6b7c8f;margin-bottom:.4rem;display:flex;align-items:center;gap:.4rem}

/* Timeline */
.tl-wrap{position:relative;margin-bottom:2.5rem}
.tl-line{position:absolute;left:0;right:0;top:46px;height:2px;background:linear-gradient(90deg,transparent,var(--gold) 6%,var(--gold) 94%,transparent);opacity:.5}
.tl-track{list-style:none;padding:0 0 1rem;margin:0;display:flex;gap:.5rem;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--gold) transparent}
.tl-track li{flex:1 0 128px;scroll-snap-align:center}
.tl-node{background:none;border:0;width:100%;color:#cfc4b3;text-align:center;padding:0;cursor:pointer}
.tl-node .dot{width:92px;height:92px;border-radius:50%;margin:0 auto .6rem;background-size:cover;background-position:center;border:3px solid #3a302a;box-shadow:0 0 0 4px var(--ink);filter:grayscale(.85) brightness(.75);transition:all .35s cubic-bezier(.2,.8,.2,1)}
.tl-node .yr{font-family:var(--f-sans);font-size:.72rem;letter-spacing:.08em;color:var(--gold)}
.tl-node .nm{font-family:var(--f-display);font-size:.98rem;line-height:1.2;display:block;margin-top:.15rem}
.tl-node:hover .dot{filter:none;transform:translateY(-3px)}
.tl-node[aria-selected="true"] .dot{filter:none;border-color:var(--gold);transform:scale(1.12);box-shadow:0 0 0 4px var(--ink),0 0 28px rgba(201,162,75,.45)}
.tl-node[aria-selected="true"] .nm{color:#fff}
.tl-node:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:.5rem}

.era-panel{animation:fadeUp .5s ease both}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.era-hero{position:relative;border-radius:.6rem;overflow:hidden;min-height:300px;display:flex;align-items:flex-end;margin-bottom:2rem;background:#000}
.era-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55;filter:sepia(.25)}
.era-hero .ov{position:relative;padding:2rem;background:linear-gradient(0deg,rgba(10,8,8,.95),rgba(10,8,8,.2) 80%,transparent);width:100%}
.era-hero h3{font-size:clamp(1.8rem,3.5vw,2.8rem);color:#fff;margin:0}
.era-hero .yrs{font-family:var(--f-sans);letter-spacing:.2em;color:var(--gold-2);font-size:.8rem;text-transform:uppercase}
.era-hero p{max-width:52rem;color:#e2d8c8;margin:.6rem 0 0}
.era-hero .credit{position:absolute;top:.6rem;right:.8rem;font-family:var(--f-sans);font-size:.65rem;color:#bbb;background:rgba(0,0,0,.5);padding:.1rem .45rem;border-radius:.3rem}
.group-title{font-family:var(--f-sans);text-transform:uppercase;letter-spacing:.16em;font-size:.78rem;color:var(--gold);border-bottom:1px solid rgba(201,162,75,.25);padding-bottom:.5rem;margin:1.6rem 0 1rem;display:flex;align-items:center;gap:.5rem}
.group-title .cnt{color:#8f8476}

/* Entry cards */
.ecard{display:flex;flex-direction:column;height:100%;background:var(--ink-2);border:1px solid #2f2725;border-radius:.5rem;overflow:hidden;cursor:pointer;transition:transform .25s,box-shadow .25s,border-color .25s;text-align:left;color:inherit;padding:0;width:100%}
.ecard:hover,.ecard:focus-visible{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.45);border-color:var(--gold)}
.ecard .thumb{aspect-ratio:16/10;background:#000;overflow:hidden;position:relative}
.ecard .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s;filter:sepia(.15)}
.ecard:hover .thumb img{transform:scale(1.06)}
.ecard .thumb .typ{position:absolute;left:.5rem;top:.5rem;font-family:var(--f-sans);font-size:.65rem;background:rgba(0,0,0,.7);color:var(--gold-2);padding:.15rem .5rem;border-radius:2rem}
.ecard .body{padding:.9rem 1rem 1rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.ecard h4{font-family:var(--f-display);font-size:1.12rem;line-height:1.25;margin:0;color:#f5ecdc}
.ecard .dt{font-family:var(--f-sans);font-size:.72rem;color:var(--gold)}
.ecard .sm{font-size:.9rem;color:#bfb3a2;line-height:1.5;margin:0}
.ecard .foot{margin-top:auto;padding-top:.4rem}
.paper .ecard,.paper-alt .ecard{background:#fffaf1;border-color:#e3d7c2}
.paper .ecard h4,.paper-alt .ecard h4{color:var(--paper-ink)}
.paper-alt .ecard .sm{color:#5d534b}
.paper-alt .ecard .dt{color:var(--red)}

/* Themes */
.tcard{height:100%;background:#fffaf1;border:1px solid #e3d7c2;border-radius:.5rem;padding:1.3rem;cursor:pointer;transition:all .25s;text-align:left;width:100%;color:inherit}
.tcard:hover,.tcard:focus-visible{border-color:var(--red);transform:translateY(-3px);box-shadow:0 10px 24px rgba(60,30,10,.12)}
.tcard i.ic{font-size:1.6rem;color:var(--red)}
.tcard h3{font-size:1.2rem;margin:.6rem 0 .3rem}
.tcard p{font-size:.92rem;color:#5d534b;margin:0 0 .6rem}
.tcard .cnt{font-family:var(--f-sans);font-size:.75rem;color:var(--red);font-weight:600}
.tcard.featured{background:linear-gradient(135deg,#7c1114,#a3191c);color:#fff;border-color:#7c1114}
.tcard.featured i.ic,.tcard.featured .cnt{color:var(--gold-2)}
.tcard.featured p{color:#f2dcd0}

/* Filter */
.filter-bar{background:#fffaf1;border:1px solid #e3d7c2;border-radius:.6rem;padding:1rem;position:sticky;top:64px;z-index:5;box-shadow:0 6px 18px rgba(60,30,10,.06)}
.filter-bar .form-control,.filter-bar .form-select,.filter-bar .input-group-text{background:#fff;color:#222;border-color:#d8cbb4}
mark{background:#f4d77f;padding:0 .1em;color:inherit}

/* Sources */
.method-text{color:#d7ccbb}
.source-list{list-style:none;padding:0}
.source-list li{padding:.45rem 0;border-bottom:1px dashed rgba(201,162,75,.2)}
.source-list a{color:#e6c77a;text-decoration:none}.source-list a:hover{text-decoration:underline}

/* Credits */
.ccard{display:flex;gap:.8rem;background:#fffaf1;border:1px solid #e3d7c2;border-radius:.45rem;padding:.6rem;height:100%;font-family:var(--f-sans);font-size:.75rem;color:#4b423b}
.ccard img{width:72px;height:72px;object-fit:cover;border-radius:.3rem;flex-shrink:0;background:#ddd}
.ccard a{color:var(--red)}

/* Modal */
.entry-modal{background:#f8f2e7;color:var(--paper-ink);border:0}
.entry-modal .modal-header{border-bottom:1px solid #e1d4bd;align-items:flex-start}
.entry-modal .modal-title{font-size:clamp(1.5rem,2.6vw,2.2rem);line-height:1.15}
.entry-modal .modal-footer{border-top:1px solid #e1d4bd}
.entry-modal .btn-close{filter:none}
.m-figure{margin:0 0 1rem;background:#111;border-radius:.4rem;overflow:hidden}
.m-figure img{width:100%;max-height:440px;object-fit:contain;background:#111;display:block}
.m-figure figcaption{background:#1c1817;color:#d8cdbd;font-family:var(--f-sans);font-size:.75rem;padding:.55rem .8rem}
.m-figure figcaption a{color:var(--gold-2)}
.carousel-indicators [data-bs-target]{background-color:var(--gold)}
.m-body p{font-size:1.07rem}
.m-side{background:#fffaf1;border:1px solid #e6dac6;border-radius:.45rem;padding:1rem}
.m-side h6{font-family:var(--f-sans);text-transform:uppercase;letter-spacing:.14em;font-size:.7rem;color:var(--red);font-weight:700}
.kd{list-style:none;padding:0;margin:0;border-left:2px solid var(--gold);padding-left:.9rem}
.kd li{position:relative;margin-bottom:.6rem;font-size:.9rem;line-height:1.4}
.kd li::before{content:"";position:absolute;left:-1.27rem;top:.35rem;width:.6rem;height:.6rem;border-radius:50%;background:var(--red);border:2px solid #fffaf1}
.kd b{font-family:var(--f-sans);font-size:.75rem;display:block;color:#7a5a20}
.srcs{padding-left:1.1rem;font-size:.9rem}
.srcs a{color:var(--red-2);word-break:break-word}
.chip{font-family:var(--f-sans);font-size:.7rem;background:#efe4d0;color:#5b4a3a;padding:.2rem .55rem;border-radius:2rem;border:0;cursor:pointer}
.chip:hover{background:var(--gold)}

/* Footer */
.site-footer{background:#0c0a0a;color:#9b9082;font-family:var(--f-sans);font-size:.8rem;padding:2rem 0;border-top:1px solid #2a2220}

/* Reveal */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .8s ease,transform .8s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}.hero-bg{animation:none}html{scroll-behavior:auto}}
@media (max-width:991px){.section{padding:4rem 0}.lm-portraits{height:340px}.filter-bar{position:static}}
.paper,.paper-alt,.entry-modal{--bs-body-color:#231d1a;--bs-secondary-color:#6d625a;--bs-emphasis-color:#000;--bs-border-color:#d8cbb4;--bs-body-bg:#fffaf1;--bs-secondary-bg:#efe6d4;--bs-tertiary-bg:#f3ead9}
.paper .btn-outline-secondary,.paper-alt .btn-outline-secondary,.entry-modal .btn-outline-secondary{--bs-btn-color:#5b4a3a;--bs-btn-border-color:#bfae93;--bs-btn-hover-bg:#5b4a3a;--bs-btn-hover-color:#fff;--bs-btn-hover-border-color:#5b4a3a}
.legend-dark .st{opacity:.95}
.tl-node .dot{display:block;flex-shrink:0}
.tl-node .yr{display:block}
.m-figure + .carousel-indicators,.carousel .carousel-indicators{bottom:auto;top:.4rem;margin-bottom:0}
.carousel-control-prev,.carousel-control-next{width:10%}
.rel-link{background:none;border:0;padding:.2rem 0;text-align:left;color:var(--red-2);font-size:.88rem;line-height:1.35;cursor:pointer}
.rel-link:hover{text-decoration:underline}
/* Named Spies */
.tcard.featured[data-theme="spies"]{background:linear-gradient(135deg,#17110e,#3b2a1f);border-color:#c9a24b}
.tgroups{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 .8rem}
.tgroup{font-family:var(--f-sans);font-size:.72rem;letter-spacing:.02em;padding:.25rem .55rem;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(201,162,75,.45);color:#f3e6c8}
.tgroup b{color:var(--gold-2);margin-left:.2rem}
.tcard:not(.featured) .tgroup{background:#f5ecdc;color:#5d534b}
.sg-tag{display:inline-block;font-family:var(--f-sans);font-size:.68rem;padding:.15rem .45rem;border-radius:.25rem;background:rgba(201,162,75,.16);color:#8a6a24;margin-left:.25rem;vertical-align:middle}
