@font-face{font-family:KuoSong;src:url(assets/song.woff) format('woff');font-weight:400 580;font-display:swap}@font-face{font-family:KuoSong;src:url(assets/song-bold.woff) format('woff');font-weight:600 900;font-display:swap}
:root{--paper:#f6f0e4;--ink:#302d23;--muted:#777160;--gold:#94703a;--line:#c9b48c;--red:#9b4135}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper) url(assets/paper.svg);color:var(--ink);font-family:KuoSong,'Noto Serif CJK TC','Songti TC',serif;font-size:16px}button,input,select{font:inherit}a{color:inherit;text-decoration:none}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #97713b;outline-offset:4px}button{color:inherit}button:disabled{opacity:.35;cursor:default}.skip{position:absolute;top:-80px;background:var(--paper);padding:15px;z-index:30}.skip:focus{top:0}.topbar{height:85px;display:flex;align-items:center;gap:32px;max-width:1600px;margin:auto;padding:0 4%;border-bottom:1px solid #c4af895e}.brand{display:flex;align-items:center;gap:17px;white-space:nowrap}.brand img{width:91px;height:auto;mix-blend-mode:multiply}.brand>span{padding-left:17px;border-left:1px solid #b7a281;font-size:16px;letter-spacing:.08em}.brand small{display:block;font-family:Georgia,serif;font-size:9px;letter-spacing:.21em;margin-top:5px;color:var(--muted)}nav{display:flex;gap:25px;margin-left:auto;white-space:nowrap;font-size:15px}nav a{position:relative;padding:32px 0}nav .current{color:#8c652f}nav .current:after{content:'';position:absolute;width:20px;height:1px;bottom:19px;background:var(--gold);left:calc(50% - 10px)}.aboutbtn{border:1px solid #b39a75;border-radius:3px;background:transparent;padding:8px 15px;font-size:14px;white-space:nowrap}main{max-width:1600px;margin:auto;padding:0 4%}.opening{padding:35px 0 27px;display:flex;justify-content:space-between;gap:35px;align-items:flex-end}.eyebrow{font-size:13px;letter-spacing:.16em;color:#8c7047;font-weight:600}h1{font-size:clamp(36px,4.3vw,63px);letter-spacing:.12em;margin:8px 0 10px;font-weight:700;line-height:1.2;display:flex;align-items:center;gap:13px}.seal{writing-mode:vertical-rl;font-size:13px;letter-spacing:.18em;border:1px solid var(--red);color:var(--red);padding:5px 3px;line-height:1.1;transform:rotate(-4deg);font-weight:400}.opening p{font-size:16px;color:#6c6454;letter-spacing:.09em;margin:12px 0 0;line-height:1.8}.mobile{display:none}.searchbox{width:305px;position:relative;padding-bottom:2px;flex-shrink:0}.searchbox label{font-size:13px;color:#7c705b;letter-spacing:.09em}form{display:flex;align-items:center;border-bottom:1px solid #ac9265;padding:8px 0 5px;margin-top:5px;gap:11px}form>span{font-family:Georgia;font-size:29px;color:#887045;line-height:1}form input{background:none;border:none;width:100%;min-width:0;outline:none;font-size:15px;color:#403a2e;padding:4px 0}form button{border:1px solid #a98d61;border-radius:2px;background:#e4d6bc7d;font-size:14px;padding:3px 7px}.try{display:flex;gap:14px;align-items:center;margin-top:10px;font-size:13px;color:#8b7a5e}.try button{border:none;border-bottom:1px solid #b7a17c;background:none;padding:0 0 1px;font-size:13px}.results{position:absolute;background:#fffbef;box-shadow:0 8px 28px #5e4e382e;border:1px solid #c6b08e;z-index:15;left:0;right:0;top:71px;max-height:330px;overflow:auto}.results button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;padding:13px 16px;border:0;border-bottom:1px solid #dacbb4;background:transparent;font-size:16px}.results button:hover,.results button:focus{background:#ebdec6}.results small{font-size:12px;color:var(--muted)}.empty{padding:16px;font-size:14px;line-height:1.8}.atlas{display:grid;grid-template-columns:minmax(0,1fr) 273px;gap:23px;align-items:stretch}.map-shell{position:relative;min-width:0;min-height:552px;aspect-ratio:1.52;border:1px solid #ae8e57;box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 6px #d4c198,0 5px 20px #624d2610;background:#efe2c8;overflow:hidden}.map-shell:after{content:'';position:absolute;inset:8px;border:1px solid #9f80434d;pointer-events:none;z-index:4}.map-top{position:absolute;top:22px;left:24px;right:24px;display:flex;gap:12px;justify-content:space-between;align-items:center;z-index:5}.map-caption{font-size:13px;color:#76603d;background:#f9efd9b8;padding:6px 8px;letter-spacing:.06em}.map-caption i{display:inline-block;width:5px;height:5px;background:#9a7334;transform:rotate(45deg);margin-right:7px}.filter{position:relative;background:#faf4e5dd;border:1px solid #aa905f;border-radius:2px;display:flex;align-items:center}.filter select{background:none;border:0;appearance:none;padding:7px 30px 7px 12px;font-size:14px;color:#5c4a2a;max-width:150px}.filter>span{position:absolute;right:9px;pointer-events:none}#stage{height:100%;width:100%;position:absolute;inset:0;touch-action:none;cursor:grab;user-select:none}#stage.dragging{cursor:grabbing}#chart{display:block;width:100%;height:100%;overflow:hidden}.map-poem{position:absolute;left:29px;bottom:40px;writing-mode:vertical-rl;line-height:2;letter-spacing:.23em;color:#76684b;font-size:17px;pointer-events:none;text-shadow:0 1px 8px #f8ebcd}.compass{position:absolute;bottom:94px;right:29px;width:52px;pointer-events:none;text-align:center;color:#705b39;font-size:11px;opacity:.8}.compass svg{width:52px;height:52px;display:block;fill:none;stroke:currentColor;stroke-width:1}.map-bottom{position:absolute;left:25px;right:25px;bottom:23px;display:flex;justify-content:space-between;align-items:center;z-index:5}.tiny-note{font-size:11px;letter-spacing:.07em;color:#655d48;background:#f8eddaab;padding:3px}.zoom{display:flex;align-items:center;border:1px solid #9c835c;background:#fbf4e5e0;border-radius:2px;height:33px}.zoom button{width:30px;height:31px;border:0;background:none;font:18px Georgia;color:#6d5430}.zoom #fit{border-left:1px solid #bcaa88;margin-left:4px;width:35px}.zoom output{font:12px Georgia;min-width:40px;text-align:center;color:#6e5837}.folio{position:relative;padding:22px 22px 20px;background:linear-gradient(120deg,#fcf8eddb,#f0e6d3c2);border-top:2px solid #a88c5c;border-bottom:1px solid #bca781;box-shadow:0 3px 16px #5943290a}.folio:before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:linear-gradient(transparent,#d6c7ac,transparent)}.folio-top{display:flex;gap:10px;justify-content:space-between;align-items:center;color:#927448;font-size:14px;letter-spacing:.1em}.folio-en{font:8px Georgia;letter-spacing:.15em}.person-head{border-bottom:1px solid #d1c0a0;margin:20px 0 17px;padding-bottom:17px}.generation{font-size:13px;color:#807158;letter-spacing:.06em}.person-head h2{font-size:35px;letter-spacing:.1em;font-weight:600;margin:9px 0}.person-head p{font-size:12px;color:#928167;margin:0;line-height:1.8}.family h3{font-size:13px;font-weight:400;color:#8b795b;margin:0 0 12px;letter-spacing:.04em}.ancestry{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;font-size:14px;line-height:1.8}.ancestry button{border:0;background:none;font-size:14px;padding:0;color:#6c552f}.ancestry button:hover{text-decoration:underline}.ancestry i{font-size:11px;font-style:normal;color:#b9a77e}.ancestry strong{color:#88602c}.kin{font-size:14px;margin-top:16px;line-height:1.9}.kin dl{display:flex;gap:13px;margin:7px 0;align-items:baseline}.kin dt{color:#918064;font-size:12px;flex-shrink:0;min-width:25px}.kin dd{margin:0;display:flex;gap:5px 13px;flex-wrap:wrap}.kin button{border:none;background:none;border-bottom:1px solid #cdb790;padding:0;color:#594b34;font-size:14px}.source{margin-top:21px;border-top:1px solid #d1c0a0;padding-top:18px}.source .eyebrow{font-size:12px;font-weight:400}.source strong{font-size:14px;line-height:1.75;font-weight:500;display:block;margin:9px 0 4px}.source p{font-size:12px;line-height:1.7;color:#91816a;margin:0 0 12px}.source button{background:none;border:1px solid #ad9161;border-radius:2px;padding:7px 10px;font-size:12px;color:#7a5c2e}.to-tree{margin-top:19px;font-size:12px;color:#92754b;text-align:right;text-decoration:underline;text-underline-offset:4px}.under-map{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:17px 0;color:#8c795c;font-size:12px}.legend{display:flex;gap:23px;color:#7e6d50}.legend span{display:flex;align-items:center;gap:7px;white-space:nowrap}.star-key{width:6px;height:6px;background:#c38d31;border:1px solid #fff4c8;box-shadow:0 0 4px #b5842e;transform:rotate(45deg)}.line-key,.adopt-key,.gold-key{display:inline-block;width:22px;border-top:1px solid #8e875d}.adopt-key{border-top:1px dashed #8e875d}.gold-key{border-top:2px solid #c08a2c}.closing{display:flex;align-items:center;justify-content:center;gap:36px;margin:37px 0 25px;text-align:center}.closing-quote{font-size:23px;letter-spacing:.12em;margin:0;line-height:1.85}.closing-quote br{display:none}.line-orn{width:70px;height:1px;background:#b9a47b;position:relative}.line-orn:after{content:'';position:absolute;right:0;top:-2px;width:5px;height:5px;transform:rotate(45deg);background:#ac9059}.line-orn:last-child{transform:rotate(180deg)}.data-line{font-size:13px;color:#938168;letter-spacing:.05em;margin-top:15px}.data-line b{font-family:Georgia;font-size:19px;font-weight:400;color:#8c6b37;margin-right:4px}.data-line i{margin:0 11px;font-style:normal;color:#baaa8c}.provenance{font-size:11px;color:#958670;text-align:center;margin:0 auto 35px;line-height:1.9;max-width:780px}footer{max-width:1600px;margin:auto;padding:20px 4%;display:flex;justify-content:space-between;border-top:1px solid #c4af895e;font-size:12px;color:#948267;letter-spacing:.1em}footer a{text-decoration:underline;text-underline-offset:3px}.star{cursor:pointer;outline:none}.point{fill:#fff4cb;stroke:#b58a38;stroke-width:.8}.corona{fill:#e5c279;opacity:.2}.person-hit{fill:transparent;stroke:none}.stargroup .line{fill:none;stroke:#a0874a;stroke-width:1;opacity:.52}.stargroup .line.adopted{stroke-dasharray:4 5}.stargroup .lit{fill:none;stroke:#d79d32;stroke-width:2;filter:url(#lineGlow)}.stargroup .lit.adopted{stroke-dasharray:4 5}.selring{fill:none;stroke:#bd852c;stroke-width:1.1}.star-label{fill:#58482a;font-family:KuoSong,serif;font-size:18px;paint-order:stroke;stroke:#f9edd3;stroke-width:4;stroke-linejoin:round;pointer-events:none}.star-label.selected{font-size:23px;font-weight:700;fill:#77501c}.star-label.root{font-size:23px;font-weight:600}.spark{fill:#fff5cd;stroke:#c29347;stroke-width:.3;opacity:.65}.travelling{fill:none;stroke:#fff1b2;stroke-width:2;stroke-linecap:round;stroke-dasharray:.13 .87;filter:url(#lineGlow);animation:flow 2.5s ease-out both;pointer-events:none}@keyframes flow{0%{stroke-dashoffset:.15;opacity:0}15%{opacity:1}100%{stroke-dashoffset:-.86;opacity:0}}.breath{animation:breathe 4s ease-in-out infinite;transform-box:fill-box;transform-origin:center}@keyframes breathe{0%,100%{opacity:.14;transform:scale(.8)}50%{opacity:.35;transform:scale(1.25)}}.star:focus-visible .selring{stroke:#63452a;stroke-width:2.3}dialog{width:min(580px,calc(100% - 34px));border:1px solid #b79c6d;background:#fbf5e8 url(assets/paper.svg);padding:35px;color:var(--ink);box-shadow:0 15px 80px #33261735;max-height:83vh;overflow:auto}dialog::backdrop{background:#2e281c62;backdrop-filter:blur(3px)}dialog h2{font-size:26px;font-weight:500;letter-spacing:.08em;margin:0 20px 25px 0}dialog p,dialog li{font-size:15px;line-height:1.9}dialog ul{padding-left:21px}dialog .sourceitem{border-top:1px solid #d3c3a4;margin-top:20px;padding-top:15px}dialog small{font-size:13px;line-height:1.8;color:#8a785d}#closeDialog{position:absolute;right:16px;top:13px;background:none;border:none;font-size:25px;color:#8c7450}.embedded .topbar,.embedded footer,.embedded .skip{display:none}.embedded main{padding:0 3%}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:1550px){.map-shell{min-height:625px}}@media(max-width:1100px){.topbar{gap:20px}.brand>span{font-size:13px}nav{gap:17px;font-size:13px}.aboutbtn{padding:7px 9px}.atlas{grid-template-columns:minmax(0,1fr) 245px;gap:16px}.folio{padding:19px}.map-shell{min-height:520px}.folio-en{display:none}.closing-quote{font-size:20px}.under-map{flex-wrap:wrap;gap:11px}.under-map>span{font-size:11px}}
@media(max-width:800px){.topbar{height:72px;padding:0 5%;gap:12px}.brand img{width:75px}.brand>span{font-size:12px;padding-left:12px}.brand{gap:12px}.brand small{font-size:7px}nav{gap:15px;margin-left:auto}nav a{padding:25px 0}nav a:first-child,nav a:last-child,.aboutbtn{display:none}nav .current:after{bottom:14px}main{padding:0 5%}.opening{padding:27px 0 20px;gap:20px;align-items:flex-start}.opening h1{font-size:40px}.opening p{font-size:14px;letter-spacing:.04em}.opening .eyebrow{font-size:11px}.searchbox{width:240px;padding-top:10px}.atlas{grid-template-columns:1fr}.map-shell{min-height:480px;aspect-ratio:1.4}.folio{padding:20px 23px;display:grid;grid-template-columns:1fr 1.3fr;gap:0 25px}.folio-top{grid-column:1/-1;margin-bottom:13px}.folio-en{display:block}.person-head{grid-column:1;margin:4px 0 15px;border-bottom:0;padding:0}.person-head h2{font-size:31px}.family{grid-column:2;grid-row:2 / 4;padding-top:4px}.kin{grid-column:1;margin-top:0}.source{grid-column:2;grid-row:4;margin-top:8px;padding-top:12px}.to-tree{grid-column:1;grid-row:4;text-align:left;align-self:end;font-size:13px}.closing{margin:29px 0 20px;gap:20px}.closing-quote{font-size:18px}.line-orn{width:32px}.provenance{font-size:11px}.embedded main{padding:0 4%}}
@media(max-width:550px){.brand>span{display:none}nav{font-size:13px}.topbar{height:65px}.opening{display:block;padding-top:25px}.opening h1{font-size:40px;margin:9px 0 12px}.opening p{font-size:14px}.searchbox{width:100%;padding-top:19px}.searchbox label{font-size:12px}form input{font-size:16px}.try{margin-top:9px}.map-shell{min-height:445px;aspect-ratio:auto}.map-top{left:15px;right:15px;top:16px}.map-caption{font-size:11px;letter-spacing:0;padding:5px}.filter select{font-size:12px;padding:5px 25px 5px 8px;max-width:116px}.map-poem{font-size:13px;left:17px;bottom:55px}.map-bottom{left:17px;right:17px;bottom:18px}.tiny-note{font-size:9px;max-width:110px;line-height:1.5}.compass{right:19px;bottom:68px;width:38px;font-size:10px}.compass svg{width:38px;height:38px}.folio{gap:0 18px;padding:20px 18px}.family h3{font-size:12px}.ancestry{font-size:13px}.ancestry button{font-size:13px}.generation{font-size:12px}.person-head h2{font-size:30px}.person-head p{font-size:11px}.source strong{font-size:13px}.kin button{font-size:13px}.kin dt{font-size:11px}.kin dl{gap:8px}.source .eyebrow{font-size:11px}.source button{font-size:12px}.legend{gap:16px;font-size:11px}.under-map{font-size:11px;line-height:1.8;padding:12px 0}.under-map>span{font-size:11px}.closing-quote{font-size:18px}.closing-quote br{display:block}.closing{gap:17px}.data-line{font-size:11px}.data-line b{font-size:17px}.provenance{font-size:10px}.to-tree{font-size:11px}.line-orn{width:26px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
.map-shell{background:#efe2c8 url(assets/map-landscape.png) center / cover no-repeat}
.map-tools{display:flex;gap:9px;align-items:center}.map-tools>button{border:1px solid #ab9062;background:#faf4e5dd;border-radius:2px;font-size:13px;color:#68502b;padding:8px 10px;white-space:nowrap}.map-shell:before{content:'';position:absolute;inset:5px;pointer-events:none;transition:background .7s}.map-poem,.compass{z-index:3}#stage{z-index:1}.night .map-shell:before{background:linear-gradient(150deg,#123937ba,#233f449f 60%,#183d43ba)}.night .map-poem{color:#eee1b8;text-shadow:0 1px 5px #253d38}.night .compass{color:#e3ce97}.night .stargroup .line{stroke:#d2bb7b;opacity:.48}.night .stargroup .lit{stroke:#ffe6a4;stroke-width:2.35}.night .point{fill:#ffefb5;stroke:#edd28f;stroke-width:.65}.night .corona{fill:#ffda7b;opacity:.27}.night .spark{fill:#fff0af;stroke:#fff0af;opacity:.7}.night .star-label{fill:#e9ddb5;stroke:#24413dc2;stroke-width:4}.night .star-label.selected,.night .star-label.root{fill:#fff0c0}.night .selring{stroke:#ffde86}.night .travelling{stroke:#fff8c3}.night .tiny-note{color:#e2d6b7;background:#183a37a3}
@media(max-width:550px){.map-caption{max-width:112px;line-height:1.6}.map-tools{gap:6px}.map-tools>button{font-size:11px;padding:7px}.filter select{font-size:11px;max-width:106px}}
.corona,.night .corona{fill:url(#starHalo);opacity:.9}
