/* Home V3.15: an illustrated opening, two clear doors, one compact topic index.
   Existing SVG artwork and controls stay local and keep their original behavior. */
#home{--home-ink:#f0e8db;--home-muted:#b6bccb;--home-gold:#dec18b;--home-rule:#65708a59;--home-surface:#1c2438;--home-hover:#2c3448;max-width:none}
body.light #home{--home-ink:#3d3540;--home-muted:#786b78;--home-gold:#876b43;--home-rule:#bba58070;--home-surface:#fff9ef;--home-hover:#efe4d3}
#home .home-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);min-height:270px;padding:30px 38px;border-radius:21px;border-color:#656579;background:radial-gradient(ellipse at 79% 44%,#41435766,transparent 55%),linear-gradient(125deg,#22293e,#181f34 68%,#242b42);color:#f3e9d8;box-shadow:0 14px 35px #080d1c17}
#home .home-hero::before{inset:9px;border:1px solid #d6bc832c;border-radius:13px;background:radial-gradient(circle at 16% 15%,#f2dab0 0 .7px,transparent 1.5px),radial-gradient(circle at 50% 81%,#f2dab0 0 .6px,transparent 1.3px),radial-gradient(circle at 87% 17%,#f2dab0 0 .8px,transparent 1.6px)}
#home .home-hero::after{left:59%;top:-5%;height:160%;width:54%;border-color:#ddc49022;box-shadow:0 0 0 13px #ddc49006,0 0 0 30px #ddc49006;transform:rotate(24deg)}
#home .hero-copy .eyebrow{color:#d8be8c;font-size:10px;letter-spacing:1.7px;line-height:1.6}#home .hero-copy .eyebrow::before{width:21px;background:#baa273}
#home .hero-copy h1{font:500 clamp(34px,4vw,47px)/1.35 "Songti SC","STSong",Georgia,serif;letter-spacing:3px;margin:17px 0 15px;color:#f6ecdb}#home .hero-copy h1 em{color:#edd19d}#home .hero-copy p{font-size:14px;line-height:1.9;color:#c7cbd7;margin:0;max-width:none;width:auto}#home .hero-label{font-size:10px;letter-spacing:1.4px;margin-top:21px;color:#aeb8ca}
#home .celestial-art{width:100%;max-width:258px;margin:0 auto;color:#dfc390;filter:drop-shadow(0 12px 22px #070b2142)}
#home .home-room-section,#home .home-topic-section,#home .home-explore-section{min-width:0;scroll-margin-top:24px}
#home .section-heading{gap:14px;margin:30px 0 16px;align-items:center}#home .section-heading h2{font:500 25px/1.5 "Songti SC","STSong",Georgia,serif;letter-spacing:1px;color:var(--home-ink)}#home .section-heading small{font-size:11px;letter-spacing:.9px;line-height:1.7;color:var(--home-muted)}
#home .home-room-section>.section-heading>small{margin-left:auto;letter-spacing:1.5px;font-size:9px}
#home .home-topic-jump{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:96px;padding:8px 2px 8px 12px;font-size:13px;line-height:1.5;color:var(--home-gold);text-decoration:none;border-left:1px solid var(--home-rule);white-space:nowrap;text-underline-offset:4px}
#home .home-topic-jump:hover{text-decoration:underline}
#home .portal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0}
#home .portal{min-width:0;min-height:235px;grid-template-columns:minmax(0,1fr) minmax(138px,43%);padding:25px;gap:0 10px;border-radius:15px;align-content:center;isolation:isolate;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
#home .portal::before{inset:7px;border:1px solid #d8bc8330;border-radius:10px}
#home .western-portal{border-color:#626b83;background:radial-gradient(ellipse at 100% 17%,#4b435e70,transparent 60%),linear-gradient(125deg,#2b314a,#1c2842 77%);color:#f0e5d0;box-shadow:0 8px 22px #060c1e1c}
#home .eastern-portal{border-color:#c4a87d;background:radial-gradient(ellipse at 0% 0%,#fff8e94f,transparent 70%),linear-gradient(125deg,#f3e6cc,#e8d7b6);color:#3d3226;box-shadow:0 8px 22px #060c1e13}
#home .eastern-portal::before{border-color:#97744b42}
#home .portal-kicker{grid-column:1;grid-row:1;font-size:10px;line-height:1.7;letter-spacing:1.7px}#home .western-portal .portal-kicker{color:#cdb78e}#home .eastern-portal .portal-kicker{color:#985238}
#home .portal-title{grid-column:1;grid-row:2;font:500 29px/1.5 "Songti SC","STSong",Georgia,serif;letter-spacing:2px;margin:10px 0 7px;color:inherit}
#home .portal-description{grid-column:1;grid-row:3;font-size:13px;line-height:1.85;margin:0 0 17px}#home .western-portal .portal-description{color:#c8cedc}#home .eastern-portal .portal-description{color:#725e45}
#home .portal .portal-art{grid-column:2;grid-row:1/5;align-self:center;justify-self:end;width:100%;max-width:187px;height:auto;aspect-ratio:184/157;margin:0 -5px 0 0;filter:drop-shadow(0 5px 7px #0b14221a)}
#home .portal-enter{grid-column:1;grid-row:4;width:100%;font-size:13px;line-height:1.7;letter-spacing:.7px;margin:0;padding-top:12px;border-top:1px solid #bda47d55}#home .western-portal .portal-enter{color:#ecd1a1}#home .eastern-portal .portal-enter{color:#965238;border-color:#9e7b4c44}
#home .portal:focus-visible{outline:3px solid var(--home-gold);outline-offset:5px}
@media(hover:hover){#home .portal:hover{transform:translateY(-3px);box-shadow:0 12px 30px #070b1b26}#home .western-portal:hover{border-color:#b39d79}#home .eastern-portal:hover{border-color:#a1764c}}

/* A single, private continuation line. It contains counts only, never a reading excerpt. */
#home .home-resume{display:flex;align-items:center;gap:14px;width:100%;min-height:74px;padding:16px 4px;margin:8px 0 2px;text-align:left;border-bottom:1px solid var(--home-rule);color:var(--home-ink);background:none;line-height:1.6}
#home .home-resume-icon{flex:0 0 30px;text-align:center;font:26px/1 Georgia,serif;color:var(--home-gold)}#home .home-resume-copy{display:grid;gap:4px;min-width:0;flex:1}#home .home-resume-copy strong{font-size:15px;font-weight:500}#home .home-resume-meta{font-size:12px;line-height:1.7;color:var(--home-muted);overflow-wrap:anywhere}#home .home-resume-arrow{font-size:12px;color:var(--home-gold);white-space:nowrap}
#home .home-resume:focus-visible{outline-offset:3px;border-radius:6px}

/* Nine topics form an index, rather than nine competing feature cards. */
#home .home-topic-section{margin-top:32px;padding-top:8px;border-top:1px solid var(--home-rule)}
#home .home-topic-section>.section-heading{align-items:baseline;margin:19px 0 17px}
#home .discovery-settings{margin:0 0 17px;gap:14px;color:var(--home-muted);font-size:13px;line-height:1.7}
#home .discovery-settings>div{border:1px solid var(--home-rule);background:var(--home-surface);padding:4px;border-radius:10px;gap:4px}
#home .discovery-settings button{min-height:44px;padding:9px 16px;border-radius:6px;font-size:13px;line-height:1.6;color:var(--home-muted)}#home .discovery-settings [aria-pressed=true]{background:#d5be91;color:#25283a;box-shadow:0 2px 8px #080b1614}body.light #home .discovery-settings [aria-pressed=true]{background:#65566b;color:#fff7e8}
#home .topic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--home-rule);border-radius:13px;overflow:hidden;background:var(--home-surface)}
#home .topic-card{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:15px;grid-column:auto;min-height:106px;min-width:0;padding:19px 20px;text-align:left;color:var(--home-ink);background:none;border:0;border-right:1px solid var(--home-rule);border-bottom:1px solid var(--home-rule);border-radius:0;box-shadow:none}
#home .topic-card:nth-child(3n){border-right:0}#home .topic-card:nth-child(n+7){border-bottom:0}#home .topic-card:hover{background:var(--home-hover)}#home .topic-card:focus-visible{outline:2px solid var(--home-gold);outline-offset:-5px;background:var(--home-hover)}
#home .topic-symbol{font:26px/1.2 Georgia,serif;color:var(--home-gold);min-width:29px;text-align:center}#home .topic-card strong{font-size:15px;line-height:1.6;font-weight:500;letter-spacing:.4px}#home .topic-card small{font-size:12px;line-height:1.7;letter-spacing:.2px;color:var(--home-muted);margin-top:3px}#home .topic-arrow{display:none}

/* The existing library and habitat controls move into a quiet directory. */
#home .home-explore-section{margin-top:34px}#home .home-explore-section>.section-heading{margin:0 0 14px;align-items:baseline}
#home .home-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--home-rule);gap:0}
#home .home-directory-entry{display:flex;align-items:flex-start;gap:13px;text-align:left;min-width:0;min-height:130px;max-width:none;margin:0;padding:22px 17px;color:var(--home-ink);background:none;border:0;border-radius:0;border-right:1px solid var(--home-rule);box-shadow:none}
#home .home-directory-entry:last-child{border-right:0}#home .home-directory-entry:hover{background:color-mix(in srgb,var(--home-hover) 60%,transparent)}#home .home-directory-entry:focus-visible{outline:2px solid var(--home-gold);outline-offset:-4px}
#home .home-directory-entry>span{flex:0 0 27px;font:25px/1.3 Georgia,serif;color:var(--home-gold);text-align:center}#home .home-directory-entry>div{flex:1;min-width:0}#home .home-directory-entry strong{font:500 17px/1.6 "Songti SC","STSong",Georgia,serif;color:var(--home-ink);display:block;margin:0}
#home .home-directory-entry :is(p,small){display:block;font-size:12px;line-height:1.85;color:var(--home-muted);margin:6px 0 0}#home .home-directory-entry>em{font-size:14px;font-style:normal;color:var(--home-gold);margin-left:auto}
#home .journey-link::after{content:'↗';color:var(--home-gold);font-size:14px;line-height:1.8;margin-left:auto}
#home .home-bottom{display:block;grid-template-columns:none;gap:0;margin:33px 0 0;padding:0;border:0}
#home .daily-letter{position:relative;padding:4px 0 0 50px;max-width:810px}#home .daily-letter::before{content:'☾';position:absolute;left:1px;top:24px;font:32px Georgia,serif;color:var(--home-gold);opacity:.8}#home .daily-letter .eyebrow{font-size:9px;letter-spacing:1.4px;color:var(--home-muted)}#home .daily-letter h3{font:500 23px/1.6 "Songti SC","STSong",Georgia,serif;letter-spacing:.5px;color:var(--home-ink);margin:10px 0}#home .daily-letter p{font-size:13px;line-height:1.95;color:var(--home-muted);margin:0;max-width:700px}
#home .share-invite{display:flex;align-items:center;justify-content:space-between;gap:22px;text-align:left;margin:30px 0 0;padding:24px 0 20px;border-top:1px solid var(--home-rule)}#home #shareSite{min-height:48px;flex:0 0 auto;padding:12px 17px;font-size:13px;line-height:1.6;color:var(--home-gold);border:1px solid var(--home-rule);background:var(--home-surface);border-radius:8px}#home .share-invite p{font-size:12px;line-height:1.8;color:var(--home-muted);margin:0;max-width:380px}
#home .v2-stamp{font-size:9px;letter-spacing:1.4px;padding:15px 0 0;color:var(--home-muted)}#home>.footnote{font-size:11px;line-height:1.85;margin-top:12px;color:var(--home-muted)}

@media(max-width:1099px){
 #home .home-hero{padding:26px 29px;min-height:250px}#home .hero-copy h1{font-size:39px}#home .celestial-art{max-width:223px}
 #home .portal-grid{gap:14px}#home .portal{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;padding:20px;min-height:0;align-content:start}
 #home .portal-kicker{grid-column:1;grid-row:1}#home .portal-title{grid-column:1;grid-row:2;margin:6px 0 0;font-size:27px}#home .portal .portal-art{grid-column:1;grid-row:3;justify-self:center;align-self:center;width:min(100%,153px);height:auto;max-width:153px;margin:7px auto 5px}#home .portal-description{grid-column:1;grid-row:4;font-size:13px;line-height:1.8;margin:0 0 12px}#home .portal-enter{grid-column:1;grid-row:5;align-self:end;margin:0;padding-top:10px;font-size:13px;text-align:center}
 #home .topic-card{padding:16px 14px;gap:11px}#home .topic-symbol{font-size:23px;min-width:25px}#home .topic-card strong{font-size:14px}#home .topic-card small{font-size:11px}
 #home .home-directory{grid-template-columns:1fr}#home .home-directory-entry{align-items:center;min-height:85px;padding:17px 8px;border-right:0;border-bottom:1px solid var(--home-rule);gap:16px}#home .home-directory-entry:last-child{border-bottom:0}#home .home-directory-entry>span{flex-basis:33px;font-size:27px}#home .home-directory-entry strong{font-size:17px}#home .home-directory-entry :is(p,small){font-size:12px;line-height:1.8;margin-top:4px}
}
@media(max-width:750px){
 #home .home-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:0;padding:22px 21px;min-height:0;border-radius:17px}
 #home .home-hero::before{inset:7px;border-radius:11px}#home .hero-copy .eyebrow{font-size:10px;letter-spacing:.6px;line-height:1.6;display:block}#home .hero-copy .eyebrow::before{display:none}#home .hero-copy h1{font-size:32px;line-height:1.35;letter-spacing:1px;margin:12px 0}#home .hero-copy p{font-size:13px;line-height:1.85;max-width:none;width:auto}#home .hero-label{display:none}#home .celestial-art{max-width:180px;width:110%;margin-left:-4%;filter:drop-shadow(0 8px 15px #06091c40)}
 #home .section-heading h2{font-size:23px}#home .home-room-section>.section-heading{margin:20px 0 12px;gap:12px}#home .home-room-section>.section-heading>small{display:none}#home .home-topic-jump{margin-left:auto;min-width:96px;padding-left:12px;font-size:12px}
 #home .portal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#home .portal{padding:18px 15px 16px;border-radius:13px}#home .portal::before{inset:6px;border-radius:8px}#home .portal-kicker{font-size:10px;letter-spacing:1.2px}#home .portal-title{font-size:26px;letter-spacing:1px;line-height:1.5;margin-top:4px}#home .portal .portal-art{width:min(100%,142px);max-width:142px;margin:6px auto 4px}#home .portal-description{font-size:12px;line-height:1.8;margin-bottom:12px}#home .portal-enter{font-size:12px;line-height:1.6;letter-spacing:.4px;padding-top:10px}
 #home .home-resume{padding:14px 2px;gap:10px;margin-top:7px;min-height:76px}#home .home-resume-icon{flex-basis:25px;font-size:24px}#home .home-resume-copy strong{font-size:14px}#home .home-resume-meta{font-size:11px;line-height:1.7}#home .home-resume-arrow{font-size:11px}
 #home .home-topic-section{margin-top:25px;padding-top:2px}#home .home-topic-section>.section-heading{display:block;margin:21px 0 16px}#home .home-topic-section>.section-heading small{display:block;font-size:12px;letter-spacing:.3px;margin-top:5px}
 #home .discovery-settings{display:block;margin-bottom:16px;font-size:12px}#home .discovery-settings>span{display:block;font-size:12px;margin-bottom:9px}#home .discovery-settings>div{display:flex;width:100%;border-radius:9px}#home .discovery-settings button{flex:1;min-height:44px;padding:9px 8px;font-size:13px;border-radius:6px}
 #home .topic-grid{grid-template-columns:repeat(3,minmax(0,1fr));border-radius:11px}#home .topic-card,#home .topic-card:last-child{display:flex;flex-direction:column;grid-column:auto;justify-content:center;align-items:center;text-align:center;min-height:107px;padding:15px 6px;gap:7px}#home .topic-symbol{font-size:24px;line-height:1.1;min-width:0}#home .topic-card strong{font-size:14px;line-height:1.6;letter-spacing:0}#home .topic-card small{font-size:11px;line-height:1.65;letter-spacing:0;margin-top:2px;white-space:nowrap}
 #home .home-explore-section{margin-top:29px}#home .home-explore-section>.section-heading{display:block;margin-bottom:14px}#home .home-explore-section>.section-heading small{display:block;font-size:12px;letter-spacing:.3px;margin-top:5px}
 #home .home-directory-entry{min-height:93px;padding:17px 3px;gap:13px}#home .home-directory-entry strong{font-size:17px}#home .home-directory-entry :is(p,small){font-size:12px;line-height:1.85;margin-top:4px}#home .home-directory-entry>span{flex-basis:29px;font-size:26px}#home .home-directory-entry>em,#home .journey-link::after{font-size:13px}
 #home .home-bottom{margin-top:27px}#home .daily-letter{padding-left:40px}#home .daily-letter::before{font-size:29px;top:24px}#home .daily-letter h3{font-size:21px;line-height:1.65;margin:9px 0}#home .daily-letter p{font-size:13px;line-height:1.9}#home .daily-letter .eyebrow{font-size:8px;letter-spacing:.9px}
 #home .share-invite{display:block;margin-top:25px;padding-top:22px;text-align:center}#home #shareSite{width:100%;min-height:48px;font-size:13px}#home .share-invite p{font-size:11px;line-height:1.8;margin:11px auto 0;max-width:330px}#home .v2-stamp{padding-top:7px;font-size:8px;letter-spacing:1px}#home>.footnote{font-size:10px}
}
@media(max-width:360px){
 #home .home-hero{padding:19px 17px;border-radius:15px}#home .hero-copy .eyebrow{font-size:9px;letter-spacing:.3px}#home .hero-copy h1{font-size:27px;line-height:1.38;margin:10px 0}#home .hero-copy p{font-size:12px;line-height:1.8}#home .celestial-art{width:112%;margin-left:-5%}
 #home .home-room-section>.section-heading h2{font-size:21px}#home .home-topic-jump{font-size:12px;min-width:92px;padding-left:10px}#home .portal-grid{gap:10px}#home .portal{padding:16px 12px 14px}#home .portal-title{font-size:23px;letter-spacing:.5px}#home .portal-kicker{font-size:9px;letter-spacing:.8px}#home .portal-description{font-size:11.5px;line-height:1.85;margin-bottom:11px}#home .portal .portal-art{margin-block:5px}#home .portal-enter{font-size:12px;padding-top:9px}
 #home .section-heading h2{font-size:22px}#home .topic-card,#home .topic-card:last-child{min-height:102px;padding:14px 4px;gap:7px}#home .topic-symbol{font-size:22px}#home .topic-card strong{font-size:13px}#home .topic-card small{font-size:10.5px}#home .home-resume-arrow{font-size:10px}#home .home-resume-meta{font-size:11px}#home .home-directory-entry{gap:11px}#home .home-directory-entry>span{flex-basis:27px;font-size:24px}#home .home-directory-entry strong{font-size:16px}#home .daily-letter h3{font-size:20px}
}
@media(prefers-reduced-motion:reduce){#home *,#home *::before,#home *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
