@font-face{font-family:Inter;src:url('assets/Inter-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Newsreader;src:url('assets/Newsreader.ttf') format('truetype');font-weight:200 800;font-display:swap}
@font-face{font-family:XM_LiuYe;src:url('assets/XM_LiuYe.ee385c138e6b.ttf') format('truetype');font-weight:400;font-display:swap}
:root{color-scheme:light;--bg:oklch(98% .005 260);--ink:oklch(15% .02 260);--card:oklch(99.5% .003 260);--primary:oklch(35% .12 260);--muted:oklch(50% .02 260);--line:oklch(88% .02 260);--soft:oklch(94% .01 260);font-family:Inter,system-ui,sans-serif;font-synthesis:none}
:root[data-theme=dark]{color-scheme:dark;--bg:oklch(14% .02 260);--ink:oklch(93% .01 260);--card:oklch(19% .025 260);--primary:oklch(74% .09 260);--muted:oklch(72% .02 260);--line:oklch(30% .02 260);--soft:oklch(25% .025 260)}
*{box-sizing:border-box}html,body{margin:0;min-width:280px}body{height:100vh;height:100svh;display:grid;grid-template-rows:76px minmax(0,1fr) 42px;background:var(--bg);color:var(--ink)}a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid var(--primary);outline-offset:4px}.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}.icon{width:22px;height:22px;flex-shrink:0;display:block}.header{display:flex;align-items:center;justify-content:space-between;padding:0 4%;gap:20px}.brand{font-size:25px;letter-spacing:-1.2px;font-weight:600}.brand span{color:var(--primary)}.header-note{font-size:12px;color:var(--muted);margin:0}.header button{width:40px;height:40px;display:grid;place-items:center;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:6px}.header button:hover{background:var(--soft)}.header .icon{width:18px;height:18px}.theme-sun{display:none}[data-theme=dark] .theme-moon{display:none}[data-theme=dark] .theme-sun{display:block}
.portals{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:0 24px;min-height:0;max-width:1800px;width:100%;margin:auto;height:100%}.portal{min-height:0;min-width:0;display:flex;flex-direction:column;padding:clamp(20px,3vw,46px);border:1px solid var(--line);border-radius:10px;position:relative;overflow:hidden;background:var(--card);isolation:isolate}.portal-top{display:flex;align-items:center;justify-content:space-between;color:var(--primary);gap:10px}.eyebrow{font-size:10px;font-weight:500;letter-spacing:.14em}.portal-heading{margin-top:clamp(16px,3vh,34px);position:relative;z-index:2}.portal h2{font-family:Newsreader,Georgia,serif;font-size:clamp(44px,6.6vw,94px);font-weight:400;line-height:1.04;letter-spacing:0;margin:0}.portal-heading p{font-size:clamp(12px,1.1vw,15px);line-height:1.65;color:var(--muted);margin:16px 0 0}.portal-art{position:relative;min-height:0;flex:1;margin:12px -5px 16px;display:flex;align-items:center;justify-content:center}.art-ring{position:absolute;width:70%;aspect-ratio:1;max-height:100%;border:1px solid var(--line);border-radius:50%;opacity:.55}.manchu{position:absolute;right:2%;top:50%;transform:translateY(-50%);font-family:XM_LiuYe,serif;writing-mode:vertical-lr;text-orientation:mixed;font-size:clamp(30px,4vw,58px);line-height:1.2;max-height:100%;overflow:hidden;color:var(--primary);opacity:.38}.manuscript{height:85%;max-width:75%;aspect-ratio:1500/1358;position:relative;transform:rotate(-7deg);box-shadow:0 20px 35px -18px #0b183666;transition:transform .6s;overflow:hidden}.manuscript img{display:block;width:100%;height:100%;object-fit:contain}.scan-line{position:absolute;left:0;right:0;top:5%;height:1px;background:#a5c5ff;box-shadow:0 0 14px 3px #80afff75;animation:scan 7s ease-in-out infinite}.archive-stack{height:76%;max-width:76%;aspect-ratio:1280/840;position:relative;transform:rotate(5deg);transition:transform .6s}.archive-stack img{display:block;position:relative;width:100%;height:100%;object-fit:cover;box-shadow:0 20px 35px -18px #0b183666}.stack-sheet{position:absolute;inset:0;background:#c7cbd2;border:1px solid #dee2e9}.back-sheet{transform:rotate(-10deg) translate(-4%,2%);opacity:.35}.middle-sheet{transform:rotate(-5deg) translate(-2%,1%);opacity:.65}.portal-bottom{position:relative;z-index:2;display:flex;flex-direction:column;gap:16px}.detail{font-size:11px;color:var(--muted)}.portal:hover .manuscript{transform:rotate(-3deg) translateY(-3px)}.portal:hover .archive-stack{transform:rotate(2deg) translateY(-3px)}footer{display:flex;align-items:center;justify-content:space-between;padding:0 26px;font-size:10px;color:var(--muted)}
@keyframes scan{0%,100%{top:5%;opacity:0}15%,85%{opacity:.8}50%{top:95%}}
@media(max-width:600px){body{grid-template-rows:62px minmax(0,1fr) 34px}.header{padding:0 16px;gap:10px}.brand{font-size:22px}.header-note{font-size:9px;max-width:100px;text-align:center;line-height:1.5}.header button{height:34px;width:34px}.portals{gap:8px;padding:0 10px}.portal{padding:18px 13px;border-radius:8px}.eyebrow{font-size:8px;letter-spacing:.05em}.portal-top>.icon{width:17px;height:17px}.portal-heading{margin-top:24px}.portal h2{font-size:clamp(34px,8.5vw,50px)}.portal-heading p{font-size:11px;line-height:1.7;margin-top:12px}.portal-art{margin:10px -4px;max-height:none}.manuscript{width:86%;height:auto;max-height:75%;max-width:86%}.archive-stack{width:85%;height:auto;max-height:75%;max-width:85%}.manchu{top:25%;right:0;font-size:32px;opacity:.25}.portal-bottom{gap:12px}.detail{font-size:9px;line-height:1.6;min-height:29px}footer{padding-inline:12px;font-size:8px}}
@media(max-height:650px){body{grid-template-rows:56px minmax(0,1fr) 28px}.portal{padding-top:16px;padding-bottom:16px}.portal-heading{margin-top:12px}.portal-heading p{margin-top:8px}.portal h2{font-size:clamp(32px,5vw,62px)}.portal-bottom{gap:8px}.detail{display:none}.portal-art{margin-block:8px}}
@media(max-height:440px){.portal{padding:12px 20px}.portal-top{display:none}.portal-heading{margin-top:0}.portal-heading p{font-size:10px;line-height:1.4}.portal h2{font-size:34px}.portal-art{position:absolute;top:15%;bottom:25%;left:48%;right:8%;margin:0;z-index:-1;opacity:.65}.portal-heading{flex:1}.manchu{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.scan-line{display:none}}

/* Minimal front page with independent destination and source links. */
body{grid-template-rows:76px minmax(0,1fr)}.portals{padding-bottom:24px}.portal-heading{margin-top:0}.portal-art{margin-top:24px;margin-bottom:14px}.portal-bottom{gap:0}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:16px}.header #about-open{width:auto;border:0;background:transparent;font-size:13px;padding:8px 2px;min-height:40px}.header #about-open:hover{color:var(--primary)}
.image-credit{position:relative;z-index:2;font-size:10px;line-height:1.6;color:var(--muted);margin:0 0 18px;text-align:center;min-height:16px}.image-credit a{text-decoration:underline;text-underline-offset:3px}.image-credit a:hover{color:var(--ink)}
#about-dialog{width:min(440px,calc(100vw - 32px));padding:28px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);box-shadow:0 24px 80px #0b183644;max-height:calc(100svh - 32px)}#about-dialog::backdrop{background:#0b183677;backdrop-filter:blur(5px)}.about-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.about-header h2{font-family:Newsreader,Georgia,serif;font-size:38px;font-weight:400;margin:0}.about-header form{margin:0}.dialog-close{width:40px;height:40px;display:grid;place-items:center;background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:6px}.dialog-close:hover{background:var(--soft)}#about-placeholder{font-size:14px;line-height:1.7;color:var(--muted);margin:24px 0 4px}
@media(max-width:600px){body{grid-template-rows:62px minmax(0,1fr)}.portals{padding-bottom:10px}.header-actions{gap:12px}.header #about-open{font-size:12px}.portal-heading{margin-top:0}.portal-art{margin-top:18px}.image-credit{font-size:8px;margin-bottom:12px;min-height:27px}}
@media(max-height:650px){body{grid-template-rows:56px minmax(0,1fr)}.portal-heading{margin-top:0}.portal-art{margin-top:10px;margin-bottom:10px}.image-credit{margin-bottom:10px}}
@media(max-height:440px){.portal-heading{flex:1}.portal-art{top:20%;bottom:30%;left:45%;right:8%;margin:0}.image-credit{text-align:left;margin-bottom:8px;font-size:9px;min-height:0}}

/* Warm manuscript accent and a stacked layout for narrower windows. */
:root{--brand-accent:#b7773b}:root[data-theme=dark]{--brand-accent:#e7b674}.brand span{color:var(--brand-accent)}
@media(max-width:760px){
 .portals{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;padding:0 12px 12px}
 .portal{padding:16px 20px;border-radius:9px}
 .portal-heading{margin:0;flex:0 0 auto}.portal h2{font-size:clamp(34px,5.6vw,44px)}
 .portal-art{position:relative;inset:auto;flex:1;min-height:0;margin:8px 0 10px;opacity:1;z-index:auto}
 .manuscript{height:85%;width:auto;max-width:64%;max-height:none}.archive-stack{height:76%;width:auto;max-width:64%;max-height:none}
 .art-ring{width:48%;max-height:100%}.manchu{display:block;right:7%;top:50%;font-size:32px;opacity:.3}
 .image-credit{text-align:center;font-size:9px;min-height:14px;margin:0 0 10px}
 
}
@media(max-width:760px) and (max-height:560px){
 body{height:auto;min-height:100svh;grid-template-rows:56px minmax(0,1fr)}
 .portals{height:auto;min-height:520px;grid-template-rows:repeat(2,minmax(248px,1fr))}
}

/* Compact editorial actions: quiet outline, warm arrow accent. */
.portal-bottom{align-items:center}
.entry{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;min-height:44px;gap:18px;padding:7px 9px 7px 18px;border:1px solid color-mix(in oklch,var(--line),var(--ink) 12%);border-radius:999px;background:transparent;color:var(--ink);font-size:13px;font-weight:500;line-height:1.4;box-shadow:none;transition:border-color .2s,background .2s}
.entry .icon{display:block;flex-shrink:0;width:28px;height:28px;padding:7px;border-radius:50%;background:color-mix(in srgb,var(--brand-accent),transparent 89%);color:var(--brand-accent);transition:transform .2s,background .2s}
.entry:focus-visible{outline:2px solid var(--brand-accent);outline-offset:4px}
@media(hover:hover){.entry:hover{border-color:var(--brand-accent);background:color-mix(in srgb,var(--brand-accent),transparent 97%)}.entry:hover .icon{transform:translate(1px,-1px);background:color-mix(in srgb,var(--brand-accent),transparent 80%)}}
@media(max-width:760px){.entry{font-size:12px;gap:14px;padding-left:16px}}
