:root{
  --paper:#FFF8F2;--white:#FFFFFF;--soft:#F3EBE3;--ink:#1A1230;--body:#2C2440;
  --muted:#5A5270;--subtle:#8A8298;--pink:#E11D8F;--indigo:#6366F1;
  --cyan:#0891B2;--amber:#D97706;--mint:#059669;--stroke:rgba(26,18,48,.10);
  --shadow:0 14px 34px rgba(26,18,48,.08);--radius:20px;--header-h:72px;--chapters-h:46px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:140px;min-width:0}
body{margin:0;min-width:0;background:var(--paper);color:var(--body);font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;font-size:16px;line-height:1.79;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;vertical-align:middle}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
h1,h2,h3,h4,p,figure{margin:0}
h1,h2,h3,h4{color:var(--ink);letter-spacing:-.025em;line-height:1.36}
p{overflow-wrap:anywhere}
[hidden]{display:none!important}
::selection{background:#FAD5EB;color:var(--ink)}
:focus-visible{outline:3px solid var(--pink);outline-offset:3px}
.site-width{width:100%;max-width:1160px;margin-inline:auto;padding-inline:20px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.skip-link{position:fixed;z-index:150;top:-80px;left:12px;background:var(--ink);color:#fff;padding:9px 16px;border-radius:10px}
.skip-link:focus{top:8px}

/* Fixed magazine masthead */
.masthead{position:fixed;inset:0 0 auto;z-index:50;height:var(--header-h);background:var(--paper);border-bottom:1px solid var(--stroke)}
.masthead-inner{height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,250px) minmax(0,1fr);align-items:center;gap:6px}
.masthead-left,.masthead-right{display:flex;align-items:center;gap:13px;min-width:0}
.masthead-right{justify-content:flex-end}
.masthead-brand{justify-self:center;display:flex;align-items:center;justify-content:center;min-width:0;max-width:100%;height:60px;padding:4px 0}
.brand-lockup{display:inline-flex;justify-content:center;align-items:center;min-width:0;max-width:100%}
.brand-lockup img{display:block;max-height:38px;max-width:210px;width:auto;height:auto;object-fit:contain}
.brand-fallback{font-size:25px;line-height:1.1;letter-spacing:.08em;font-weight:900;color:var(--ink);white-space:nowrap}
.masthead-caption{color:var(--subtle);font-size:11px;letter-spacing:.11em;white-space:nowrap}
.square-button{width:44px;min-width:44px;height:44px;border:1px solid var(--stroke);border-radius:13px;background:var(--white);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;transition:background .18s,transform .18s,border-color .18s}
.square-button:hover{background:#FCEAF5;border-color:#E11D8F55;transform:translateY(-1px)}
.glyph{width:23px;height:23px;display:block;flex:none}
.app-link{min-height:44px;border-radius:999px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#6366F1 0%,#E11D8F 55%,#D97706 100%);color:#FFFFFF;font-size:13px;font-weight:800;white-space:nowrap;box-shadow:0 8px 18px rgba(225,29,143,.13)}
.app-link:hover{filter:brightness(1.08);transform:translateY(-1px)}
.chapter-bar{position:fixed;top:var(--header-h);left:0;right:0;height:var(--chapters-h);z-index:49;background:var(--white);border-bottom:1px solid var(--stroke)}
.chapter-inner{height:100%;display:flex;align-items:stretch;justify-content:center;gap:clamp(18px,4vw,52px)}
.chapter-link{display:flex;align-items:center;padding:0 3px;position:relative;color:var(--muted);font-weight:750;font-size:13px;white-space:nowrap}
.chapter-link::after{content:"";position:absolute;bottom:0;left:3px;right:3px;height:3px;background:var(--pink);border-radius:3px 3px 0 0;transform:scaleX(0);transition:transform .18s}
.chapter-link:hover,.chapter-link.is-current{color:var(--ink)}
.chapter-link:hover::after,.chapter-link.is-current::after{transform:scaleX(1)}
.site-main{padding-top:calc(var(--header-h) + var(--chapters-h));min-height:60vh}

/* Shared editorial language */
.page-shell{padding-top:36px;padding-bottom:70px}
.eyebrow,.micro-label{font-size:11px;letter-spacing:.18em;font-weight:850;color:var(--pink);text-transform:uppercase}
.eyebrow{display:flex;gap:10px;align-items:center;margin-bottom:16px}
.eyebrow::before{content:"";width:19px;height:3px;border-radius:3px;background:var(--pink)}
h1{font-size:clamp(28px,3.35vw,34px);font-weight:900}
h2{font-size:clamp(22px,2.5vw,28px);font-weight:850}
h3{font-size:clamp(18px,2vw,21px);font-weight:800}
.lead-copy{font-size:16px;color:var(--muted);line-height:1.92;max-width:770px;margin-top:15px}
.body-copy{color:var(--body);line-height:1.98}
.body-copy+p,.body-copy + .body-copy{margin-top:15px}
.mini-copy{font-size:13px;color:var(--muted);line-height:1.77}
.folio-label{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:850;color:var(--pink)}
.section-block{margin-top:58px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;border-top:1px solid var(--stroke);padding-top:18px;margin-bottom:22px}
.section-heading>div{min-width:0}
.section-heading h2{margin-top:6px}
.section-heading p{color:var(--muted);font-size:13px;margin-top:8px;max-width:630px}
.text-link{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:var(--ink);font-size:13px;font-weight:800;min-height:44px}
.text-link:hover{color:var(--pink)}
.text-link span{font-size:20px;color:var(--pink)}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:23px}
.btn{min-height:46px;padding:11px 22px;border-radius:999px;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;text-align:center;transition:transform .16s,box-shadow .16s;line-height:1.35}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(26,18,48,.12)}
.btn-primary{color:#FFF;background:linear-gradient(135deg,#6366F1 0%,#E11D8F 55%,#D97706 100%)}
.btn-secondary{color:var(--ink);background:var(--white);border:1px solid var(--stroke)}
.pill,.status-pill{font-weight:800;font-size:12px;display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:4px 11px;color:var(--ink);background:#F2E7F0}
.pill.cyan{background:#D9F5FA}.pill.amber{background:#FFE9CE}.pill.mint{background:#DAF4E7}.pill.indigo{background:#E7E6FF}
.tagline{font-weight:800;color:var(--pink);font-size:12px}
.paper-card{border-radius:var(--radius);border:1px solid var(--stroke);background:var(--white);padding:24px;min-width:0;box-shadow:0 7px 23px rgba(26,18,48,.035)}
.paper-card p{margin-top:13px}
.paper-card h3+p{margin-top:12px}
.card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.card-topline .numeral{font-family:Georgia,serif;font-size:29px;line-height:1;font-weight:800;color:var(--pink)}
.card-topline .numeral.indigo{color:var(--indigo)}.card-topline .numeral.cyan{color:var(--cyan)}.card-topline .numeral.amber{color:var(--amber)}.card-topline .numeral.mint{color:var(--mint)}
.paper-card p,.story-card p,.step-card p,.theme-card p,.shelf-entry p,.editor-entry p{font-size:15px;line-height:1.91}
.muted{color:var(--muted)}
.rule{height:1px;background:var(--stroke);border:0;margin:28px 0}
.link-note{font-weight:800;display:inline-block;color:var(--pink);font-size:13px;margin-top:14px}
.link-note:hover{text-decoration:underline;text-underline-offset:4px}

/* Image files remain optional; CSS fallback is purely decorative */
.media-frame{width:100%;margin:0;background:linear-gradient(144deg,#FFF1E2,#EDEAFF 62%,#DFF8F6);border:1px solid var(--stroke);border-radius:20px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;min-width:0}
.media-frame img{position:relative;z-index:1;width:auto;max-width:100%;height:auto;max-height:340px;object-fit:contain;display:block}
.media-frame.media-cover img{max-height:360px}
.media-frame.media-cover{min-height:280px;max-height:360px;aspect-ratio:1.3/1}
.media-frame.media-landscape{min-height:190px;aspect-ratio:1.75/1}
.media-frame.media-square{min-height:180px;aspect-ratio:1/1}
.media-frame.media-wide{min-height:160px;aspect-ratio:2.1/1}
.media-frame.media-portrait{min-height:200px;aspect-ratio:.83/1}
.media-frame.media-phone{aspect-ratio:1/1;min-height:220px}
.media-art{position:absolute;inset:0;display:block;overflow:hidden}
.media-art>*{position:absolute;display:block;box-shadow:0 13px 38px rgba(99,102,241,.12)}
.art-halo{width:48%;aspect-ratio:1;top:-21%;left:-15%;border-radius:50%;background:radial-gradient(circle at 65% 60%,#FFF5C9 10%,#F9B7D7 68%,#FCE1E2)}
.art-page{width:36%;height:95%;top:23%;left:36%;transform:rotate(-24deg);border-radius:18px;background:linear-gradient(140deg,#6B67EC,#AA8FEB 56%,#E8B4D1)}
.art-circle{width:28%;aspect-ratio:1;right:2%;bottom:-10%;border-radius:50%;background:linear-gradient(125deg,#F6BD70,#E888B4)}
.art-arc{width:37%;height:47%;border:13px solid rgba(255,255,255,.53);border-radius:50%;top:7%;right:1%;transform:rotate(-24deg);box-shadow:none}
.media-frame.media-square .art-page{width:42%;left:29%}
.media-frame.media-wide .art-halo{width:25%;top:-60%;left:4%}
.media-frame.media-portrait .art-page{height:64%;top:27%;width:62%;left:28%}

/* Home cover and editorial components */
.cover{background:var(--white);border-bottom:1px solid var(--stroke)}
.cover-inner{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:45px;align-items:center;padding-block:36px 38px}
.cover-copy{max-width:570px}
.vertical-kicker{display:inline-flex;gap:10px;align-items:center;color:var(--pink);font-size:12px;letter-spacing:.2em;font-weight:900;margin-bottom:16px}
.vertical-kicker::before{content:"";height:30px;width:3px;border-radius:3px;background:var(--pink)}
.cover h1{font-size:clamp(29px,3.25vw,40px);max-width:550px;line-height:1.36}
.cover .lead-copy{max-width:540px}
.cover .media-frame{box-shadow:var(--shadow)}
.cover-folio{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:22px;color:var(--subtle);font-size:11px;letter-spacing:.13em;font-weight:800}
.cover-folio::before{content:"";width:48px;height:1px;background:var(--stroke)}
.topic-ribbon{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--stroke);border-radius:20px;overflow:hidden;background:var(--white)}
.topic-tile{padding:20px 18px;min-width:0;border-right:1px solid var(--stroke);border-bottom:1px solid var(--stroke);transition:background .16s}
.topic-tile:nth-child(4n){border-right:0}.topic-tile:nth-last-child(-n+4){border-bottom:0}
.topic-tile:hover{background:#FFF2F8}
.topic-tile h3{display:flex;gap:10px;align-items:center;font-size:17px}
.topic-tile h3::before{content:"";width:10px;height:10px;flex:none;border-radius:50%;background:var(--pink)}
.topic-tile:nth-child(4n+2) h3::before{background:var(--indigo)}
.topic-tile:nth-child(4n+3) h3::before{background:var(--cyan)}
.topic-tile:nth-child(4n+4) h3::before{background:var(--amber)}
.topic-tile p{font-size:13px;margin-top:9px;color:var(--muted);line-height:1.8}
.today-feature{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:27px;align-items:stretch}
.feature-copy{background:var(--white);border:1px solid var(--stroke);border-radius:var(--radius);padding:28px}
.feature-copy h3{font-size:24px;margin-bottom:16px}
.feature-copy p{line-height:1.96}
.chapter-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}
.chapter-items a{background:var(--paper);border-radius:14px;padding:13px;min-height:76px;display:flex;gap:10px;align-items:center;font-size:13px;font-weight:800;transition:background .15s}
.chapter-items a span{font-family:Georgia,serif;color:var(--pink);font-size:19px}
.chapter-items a:hover{background:#FFE8F3}
.today-feature .media-frame{height:100%;min-height:370px}
.story-grid{display:grid;grid-template-columns:1.12fr .88fr .93fr;align-items:start;gap:17px}
.story-card{overflow:hidden;border:1px solid var(--stroke);border-radius:var(--radius);background:var(--white)}
.story-card .media-frame{border:0;border-bottom:1px solid var(--stroke);border-radius:0;min-height:165px}
.story-card .story-body{padding:22px}
.story-card h3{margin-bottom:10px}
.story-card p{color:var(--muted)}
.story-card:nth-child(2){margin-top:25px}.story-card:nth-child(3){margin-top:48px}
.process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.step-card{padding:23px;background:var(--white);border:1px solid var(--stroke);border-radius:17px;min-width:0}
.step-no{font-family:Georgia,serif;font-size:31px;font-weight:800;color:var(--pink);line-height:1;display:block;margin-bottom:18px}
.step-card:nth-child(2) .step-no{color:var(--indigo)}.step-card:nth-child(3) .step-no{color:var(--cyan)}.step-card:nth-child(4) .step-no{color:var(--amber)}.step-card:nth-child(5) .step-no{color:var(--mint)}
.step-card h3{margin-bottom:10px}.step-card p{color:var(--muted)}
.split-feature{display:grid;grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr);gap:20px;align-items:center;margin-bottom:20px}
.split-feature.reverse{grid-template-columns:minmax(0,1.28fr) minmax(0,.72fr)}
.split-feature .paper-card{height:100%;display:flex;flex-direction:column;justify-content:center}
.split-feature .media-frame{min-height:260px}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.theme-card{background:var(--white);border-radius:18px;border:1px solid var(--stroke);padding:23px;min-width:0}
.theme-card:nth-child(2){background:#F1F0FF}.theme-card:nth-child(3){background:#EAF8FC}.theme-card:nth-child(5){background:#FFF3E4}
.theme-card:nth-child(4){grid-row:span 2;background:#F8ECF4}
.theme-card h3{margin-top:12px;margin-bottom:12px}
.theme-card p{color:var(--muted)}
.shelf-list{display:grid;grid-template-columns:1fr;gap:0;background:var(--white);border:1px solid var(--stroke);border-radius:20px;overflow:hidden}
.shelf-entry{padding:20px 23px;display:grid;grid-template-columns:64px minmax(145px,.45fr) minmax(0,1fr) auto;gap:15px;align-items:center;border-bottom:1px solid var(--stroke);min-width:0}
.shelf-entry:last-child{border-bottom:0}
.shelf-id{font-family:Georgia,serif;font-weight:800;color:var(--indigo);font-size:28px}
.shelf-entry h3{font-size:18px}
.shelf-entry p{color:var(--muted);margin:0}
.shelf-entry:hover{background:#FFFAFE}
.editor-list{display:grid;gap:13px}
.editor-entry{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:20px;border:1px solid var(--stroke);border-radius:17px;padding:19px 23px;background:var(--white)}
.editor-id{font-family:Georgia,serif;font-size:40px;line-height:1;font-weight:800;color:var(--pink)}
.editor-entry:nth-child(2) .editor-id{color:var(--indigo)}.editor-entry:nth-child(3) .editor-id{color:var(--cyan)}.editor-entry:nth-child(4) .editor-id{color:var(--amber)}.editor-entry:nth-child(5) .editor-id{color:var(--mint)}
.editor-entry p{color:var(--muted);margin-top:5px}
.vertical-timeline{border-left:2px solid #D5CDE5;margin-left:11px;display:grid;gap:26px}
.timeline-entry{position:relative;padding:0 0 4px 30px}
.timeline-entry::before{content:"";position:absolute;left:-9px;top:10px;width:16px;height:16px;border-radius:50%;border:4px solid var(--paper);background:var(--pink);box-shadow:0 0 0 1px var(--pink)}
.timeline-entry:nth-child(2)::before{background:var(--indigo);box-shadow:0 0 0 1px var(--indigo)}
.timeline-entry:nth-child(3)::before{background:var(--amber);box-shadow:0 0 0 1px var(--amber)}
.timeline-entry h3{margin:10px 0 9px}
.timeline-entry p{max-width:770px;color:var(--muted)}
.app-feature{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:22px;align-items:stretch}
.app-feature .media-frame{height:100%;min-height:300px}
.app-info{padding:26px 28px;border-radius:var(--radius);background:var(--white);border:1px solid var(--stroke)}
.app-mark-row{display:flex;align-items:center;gap:13px;margin-bottom:19px}
.app-brand-icon{width:54px;height:54px;object-fit:contain;border-radius:14px;flex:none}
.icon-fallback{display:inline-flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;background:linear-gradient(135deg,#6366F1,#E11D8F);color:#fff}
.app-feature p{margin-top:12px}
.home-bottom-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
.home-bottom-grid .paper-card h3{margin-bottom:15px}
.home-bottom-grid .paper-card p+p{margin-top:13px}
.quote-line{border-left:3px solid var(--pink);padding-left:18px;margin:22px 0;color:var(--ink);font-weight:750}

/* Interior chapters */
.page-hero{border-bottom:1px solid var(--stroke);background:var(--white)}
.page-hero-inner{padding-top:40px;padding-bottom:38px;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.58fr);gap:43px;align-items:center}
.page-hero-copy{min-width:0}
.page-hero .media-frame{min-height:195px;max-height:290px}
.page-hero .media-frame img{max-height:280px}
.page-hero .lead-copy{max-width:755px}
.page-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:20px}
.page-body{padding-top:8px;padding-bottom:78px}
.prose-intro{padding:29px;border:1px solid var(--stroke);border-radius:20px;background:var(--white);margin-top:28px;max-width:940px}
.prose-intro p+p{margin-top:14px}
.chapter-stack{display:grid;gap:22px;margin-top:30px}
.chapter-article{border-radius:20px;background:var(--white);border:1px solid var(--stroke);padding:28px}
.chapter-article-head{display:flex;align-items:center;gap:17px;margin-bottom:14px}
.chapter-article-head .counter{font-family:Georgia,serif;font-size:31px;color:var(--pink);line-height:1;flex:none;font-weight:800}
.chapter-article:nth-child(4n+2) .counter{color:var(--indigo)}
.chapter-article:nth-child(4n+3) .counter{color:var(--cyan)}
.chapter-article:nth-child(4n+4) .counter{color:var(--amber)}
.chapter-article p+p{margin-top:14px}
.chapter-article .link-note{margin-top:16px}
.page-aside{background:#F1EFFF;border-radius:20px;padding:26px;border:1px solid var(--stroke);margin-top:23px}
.page-aside h3{margin-bottom:11px}
.page-aside p+p{margin-top:12px}
.page-aside a{font-weight:800;text-decoration:underline;text-underline-offset:4px}
.page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:27px}
.page-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.page-grid .paper-card{height:100%}
.page-grid .paper-card p+p{margin-top:14px}
.page-grid .paper-card h3{margin:12px 0}
.index-strip{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}
.index-strip a{min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid var(--stroke);background:var(--white);font-size:13px;font-weight:800;display:inline-flex;align-items:center}
.index-strip a:hover{border-color:var(--pink);color:var(--pink)}
.editorial-essay{background:var(--white);border:1px solid var(--stroke);border-radius:20px;padding:clamp(24px,5vw,50px);margin-top:27px;max-width:970px}
.editorial-essay h2{font-size:23px;margin-bottom:15px}
.editorial-essay h3{margin:28px 0 12px}
.editorial-essay p+p{margin-top:16px}
.editorial-essay .quote-line{margin:28px 0}
.terms-grid{display:grid;gap:18px;margin-top:27px}
.term-entry{background:var(--white);border:1px solid var(--stroke);border-radius:18px;padding:25px 28px}
.term-entry h2{font-size:21px;margin-bottom:13px}
.term-entry p+p{margin-top:14px}
.term-entry ul{margin:12px 0 0;padding-left:1.2em}
.term-entry li+li{margin-top:7px}
.faq-list{display:grid;gap:15px;margin-top:28px}
.faq-item{padding:24px 28px;background:var(--white);border:1px solid var(--stroke);border-radius:18px}
.faq-item h2{display:flex;align-items:start;gap:16px;font-size:18px;line-height:1.55}
.faq-item h2 span{font-family:Georgia,serif;color:var(--pink);font-size:21px;line-height:1.4}
.faq-item p{padding-left:41px;margin-top:13px;color:var(--body)}
.bottom-cta{background:linear-gradient(120deg,#F2F0FF,#FFEFF6);border:1px solid var(--stroke);border-radius:20px;padding:27px;margin-top:36px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.bottom-cta h2{font-size:21px}.bottom-cta p{color:var(--muted);margin-top:7px;font-size:14px}

/* Deep ink footer */
.site-footer{background:var(--ink);color:#F7EFE6;padding:46px 0 28px}
.footer-brand-row{display:flex;align-items:center;gap:18px;padding-bottom:31px;border-bottom:1px solid rgba(255,255,255,.16)}
.footer-logo{min-width:0;max-width:210px;display:flex;align-items:center}
.footer-logo .brand-fallback{color:#FFF}
.footer-logo .brand-lockup img{max-height:38px}
.footer-brand-copy{display:flex;flex-direction:column;line-height:1.4}
.footer-brand-copy strong{font-size:16px}.footer-brand-copy>span{font-size:11px;letter-spacing:.18em;margin-top:3px;color:#D2C5DA}
.footer-brand-copy p{font-size:12px;margin-top:7px;color:#D2C5DA}
.footer-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;padding:30px 0 28px}
.footer-column{display:flex;flex-direction:column;align-items:start;gap:8px}
.footer-column h2{color:#FFF;font-size:15px;margin-bottom:10px}
.footer-column a{font-size:13px;color:#E3D9E8;min-height:29px;display:inline-flex;align-items:center}
.footer-column a:hover{color:#FFF;text-decoration:underline;text-underline-offset:4px}
.footer-notice{padding:18px 0 19px;border-top:1px solid rgba(255,255,255,.15);color:#D2C5DA;font-size:12px}
.footer-bottom{display:flex;flex-wrap:wrap;gap:16px;color:#C5B9CF;font-size:11px;border-top:1px solid rgba(255,255,255,.1);padding-top:19px}
.footer-bottom span{margin-right:auto}.footer-bottom a:hover{color:#FFF}

/* Book spread and search overlay */
html.is-locked,html.is-locked body{overflow:hidden}
.layer{position:fixed;inset:0;z-index:100;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease;display:flex;align-items:center;justify-content:center;padding:20px}
.layer.is-open{opacity:1;visibility:visible;pointer-events:auto}
.layer-backdrop{position:absolute;inset:0;background:rgba(25,17,45,.61);backdrop-filter:blur(3px)}
.dialog{position:relative;z-index:1;background:var(--paper);box-shadow:0 25px 85px rgba(10,4,21,.3);width:100%;max-height:min(90dvh,840px);overflow-y:auto;overscroll-behavior:contain;border-radius:20px;color:var(--body)}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:21px 25px;border-bottom:1px solid var(--stroke)}
.dialog-close{font-size:31px;line-height:1;flex:none;font-weight:300}
.dialog-brand{display:flex;align-items:center;gap:15px;min-width:0}
.dialog-brand .brand-lockup img{max-height:32px;max-width:160px}
.dialog-brand .brand-fallback{font-size:19px}
.dialog-brand>div{display:flex;flex-direction:column;line-height:1.3}
.dialog-brand strong{color:var(--ink);font-size:13px}.dialog-brand small{color:var(--subtle);letter-spacing:.12em;font-size:10px;margin-top:5px}
.book-dialog{max-width:840px}
.book-spread{display:grid;grid-template-columns:1fr 1fr}
.book-page{padding:24px 27px 30px;min-width:0}
.book-page-left{border-right:1px solid var(--stroke);box-shadow:inset -10px 0 15px -15px #1A123044}
.book-page-right{box-shadow:inset 10px 0 15px -15px #1A123044}
.book-group+.book-group{margin-top:24px}
.book-group h3{color:var(--pink);letter-spacing:.13em;font-size:14px;margin-bottom:7px;padding-bottom:10px;border-bottom:1px solid var(--stroke)}
.book-entry{display:block;padding:10px 9px;border-radius:11px;transition:background .16s}
.book-entry:hover{background:#FFE8F2}
.book-entry-name{display:block;color:var(--ink);font-size:14px;font-weight:850;line-height:1.4}
.book-entry-desc{display:block;font-size:11px;color:var(--muted);line-height:1.65;margin-top:3px}
.search-dialog{max-width:570px;padding-bottom:25px}
.search-dialog .dialog-heading h2{font-size:21px;margin-top:5px}
.search-box{margin:25px 25px 0;background:var(--white);border:1px solid #CFBFD9;border-radius:14px;display:flex;align-items:center;gap:11px;padding:7px 15px;color:var(--pink);min-height:58px}
.search-box:focus-within{outline:3px solid #E11D8F33}
.search-box input{flex:1;width:0;min-width:0;border:0;background:transparent;outline:none;color:var(--ink);font-size:15px}
.search-box input::placeholder{color:var(--subtle)}
.search-hint{font-size:11px;color:var(--subtle);white-space:nowrap}
.search-explain{margin:12px 25px 18px;color:var(--muted);font-size:12px}
.search-presets{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 25px}
.search-presets a{background:var(--white);border:1px solid var(--stroke);min-height:69px;border-radius:13px;padding:12px;display:grid;grid-template-columns:1fr auto;align-items:center}
.search-presets a:hover{border-color:#E11D8F77;background:#FFF2F9}
.search-presets strong{font-size:14px;color:var(--ink)}
.search-presets small{grid-column:1;color:var(--muted);font-size:11px}
.search-presets a>span{grid-column:2;grid-row:1 / span 2;color:var(--pink);font-size:17px}
.search-empty{margin:10px 25px;color:var(--muted);font-size:13px}
.text-button{background:transparent;border:0;color:var(--pink);font-size:13px;font-weight:800;margin:17px 25px 0;min-height:44px;padding:7px 3px}
.text-button:hover{text-decoration:underline}
.mobile-tabs{display:none}

@media (max-width:900px){
  .masthead-caption{display:none}
  .cover-inner{gap:23px}
  .story-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .story-card .story-body{padding:17px}
  .step-card{padding:17px}
  .shelf-entry{grid-template-columns:45px minmax(112px,.46fr) minmax(0,1fr) auto}
}
@media (max-width:700px){
  :root{--chapters-h:0px}
  .site-width{padding-inline:16px}
  .masthead{width:100%;left:0;right:0}
  .masthead-inner{grid-template-columns:60px minmax(0,1fr) 60px;gap:4px}
  .masthead-left{justify-content:flex-start;gap:0}
  .masthead-right{justify-content:flex-end;gap:0}
  .masthead-brand{width:100%;min-width:0}
  .masthead-brand .brand-lockup{max-width:100%}
  .masthead-brand .brand-lockup img{max-width:100%;max-height:38px}
  .masthead-brand .brand-fallback{font-size:clamp(17px,5.3vw,23px);letter-spacing:.045em}
  .search-toggle,.chapter-bar{display:none}
  .app-link{width:60px;min-width:60px;padding:0 4px;font-size:12px;white-space:nowrap}
  .app-link span{display:none}
  .square-button{border-radius:12px}
  .site-main{padding-top:72px}
  .page-shell{padding-top:24px;padding-bottom:38px}
  .cover-inner{grid-template-columns:1fr;gap:24px;padding-block:27px 29px}
  .cover h1{font-size:30px}
  .cover .media-frame{max-height:350px;min-height:205px}
  .cover-folio{margin-top:15px}
  .section-block{margin-top:42px}
  .section-heading{align-items:start;gap:8px}
  .section-heading h2{font-size:23px}
  .section-heading .text-link{font-size:12px}
  .topic-ribbon{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topic-tile:nth-child(4n){border-right:1px solid var(--stroke)}
  .topic-tile:nth-child(2n){border-right:0}
  .topic-tile:nth-last-child(-n+4){border-bottom:1px solid var(--stroke)}
  .topic-tile:nth-last-child(-n+2){border-bottom:0}
  .topic-tile{padding:16px 13px}
  .topic-tile h3{font-size:15px}
  .today-feature{grid-template-columns:1fr}
  .today-feature .media-frame{height:auto;min-height:210px}
  .feature-copy{padding:21px}
  .story-grid{grid-template-columns:1fr;gap:15px}
  .story-card:nth-child(2),.story-card:nth-child(3){margin-top:0}
  .story-card{display:grid;grid-template-columns:minmax(0,.36fr) minmax(0,.64fr)}
  .story-card .media-frame{min-height:170px;height:100%;border:0;border-right:1px solid var(--stroke)}
  .story-card .story-body{padding:18px}
  .process-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .split-feature,.split-feature.reverse{grid-template-columns:1fr}
  .split-feature .media-frame{min-height:205px}
  .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .theme-card:nth-child(4){grid-row:auto}
  .theme-card{padding:19px}
  .shelf-entry{grid-template-columns:34px minmax(0,1fr) auto;gap:10px;padding:16px}
  .shelf-entry p{grid-column:2 / -1}
  .shelf-entry .shelf-id{font-size:25px}
  .editor-entry{grid-template-columns:48px minmax(0,1fr) auto;gap:12px;padding:16px}
  .editor-id{font-size:30px}
  .editor-entry p{font-size:13px}
  .app-feature,.home-bottom-grid{grid-template-columns:1fr}
  .app-feature .media-frame{min-height:215px}
  .page-hero-inner{grid-template-columns:1fr;gap:20px;padding-top:29px;padding-bottom:25px}
  .page-hero .media-frame{max-height:245px;min-height:170px}
  .page-body{padding-bottom:45px}
  .page-grid,.page-grid.cols-3{grid-template-columns:1fr}
  .chapter-article,.paper-card,.prose-intro{padding:21px}
  .footer-directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 20px}
  .footer-bottom span{flex:1 0 100%}
  .site-footer{padding-bottom:calc(87px + env(safe-area-inset-bottom))}
  .mobile-tabs{position:fixed;bottom:0;left:0;right:0;width:100%;z-index:48;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#FFFFFF;border-top:1px solid var(--stroke);height:calc(50px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -4px 20px rgba(26,18,48,.05)}
  .mobile-tab{color:var(--muted);min-width:0;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:800;line-height:1.1}
  .mobile-tab.is-current{color:var(--pink)}
  .mobile-tab:hover{background:#FFF1F9}
  .tab-symbol{display:block;width:17px;height:17px;border:2px solid currentColor;border-radius:4px;position:relative}
  .tab-home{transform:rotate(45deg);width:14px;height:14px;border-radius:3px 3px 2px 2px;margin-top:2px;margin-bottom:1px}
  .tab-spark{border-radius:50%;width:16px;height:16px}
  .tab-spark::after{content:"";position:absolute;width:4px;height:4px;top:4px;left:4px;background:currentColor;border-radius:50%}
  .tab-grid::before,.tab-grid::after{content:"";position:absolute;background:currentColor}
  .tab-grid::before{width:2px;top:0;bottom:0;left:6px}.tab-grid::after{height:2px;left:0;right:0;top:6px}
  .tab-shelf{border-radius:2px;border-left-width:4px;border-right-width:4px}
  .tab-app{border-radius:6px}
  .layer{padding:12px}
  .dialog{max-height:calc(100dvh - 24px);border-radius:16px}
  .book-spread{grid-template-columns:1fr}
  .book-page{padding:16px 20px 6px}
  .book-page-left{border-right:0;box-shadow:none}
  .book-page-right{box-shadow:none;padding-bottom:22px}
  .book-group+.book-group{margin-top:18px}
  .book-entry{padding:8px 7px}
  .dialog-heading{padding:14px 17px}
  .dialog-brand .brand-lockup img{max-width:112px;max-height:26px}
  .dialog-brand .brand-fallback{font-size:16px}
  .dialog-brand{gap:9px}
  .search-dialog .dialog-heading h2{font-size:18px}
  .search-box{margin:17px 16px 0}
  .search-explain{margin:10px 16px 13px}
  .search-presets{margin:0 16px;gap:8px}
  .text-button{margin:12px 16px 0}
  .bottom-cta{display:block;padding:22px}
  .bottom-cta .btn{margin-top:16px}
}
@media (max-width:370px){
  .story-card{display:block}
  .story-card .media-frame{height:165px;min-height:165px;border-right:0;border-bottom:1px solid var(--stroke)}
  .topic-tile{padding:14px 11px}
  .feature-copy h3{font-size:21px}
  .chapter-items a{font-size:12px}
  .shelf-entry{grid-template-columns:30px minmax(0,1fr) 20px}
  .editor-entry{grid-template-columns:38px minmax(0,1fr) 16px;gap:8px}
  .editor-id{font-size:26px}
  .editor-entry .text-link{font-size:0}
  .editor-entry .text-link span{font-size:18px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
.home-shelf-list{margin-top:16px}

.cover h1 .title-line{display:block}
.dialog-actions{display:flex;align-items:center;gap:7px;flex:none}
/* Comfortable navigation targets, including the closing pages. */
.link-note{display:inline-flex;align-items:center;min-height:44px;padding:7px 0}
.footer-column a{min-height:44px}
.footer-bottom a{display:inline-flex;align-items:center;min-height:44px}
.footer-logo{min-height:44px}
@media (max-width:700px){.search-hint{display:none}}
