/* Poppins remains the typeface; sizes, tracking and leading follow their role. */
html { font-size:100%; }
body { line-height:1.5; font-optical-sizing:auto; }
button,input,select { touch-action:manipulation; }
header nav a { font-size:.875rem; line-height:1.4; min-height:44px; display:inline-flex; align-items:center; }
.scene-copy h1 { font-size:clamp(1.75rem,3vw,3rem); letter-spacing:-.03em; line-height:1.12; font-weight:700; }
.scene-copy p { font-size:.9375rem; line-height:1.7; letter-spacing:0; max-width:40ch; }
.category-toolbar h2,.section-head h2,.about > h2 { font-size:1.625rem; line-height:1.25; letter-spacing:-.025em; font-weight:600; }
.categories .category-name { font-size:.9375rem; line-height:1.4; font-weight:600; }
.categories .category-count,#rack-count,.topic-count { font-size:.75rem; line-height:1.5; color:#526459; font-variant-numeric:tabular-nums; }
#topic-index h3 { font-size:.8125rem; line-height:1.5; letter-spacing:.01em; }
#topic-buttons button { font-size:.875rem; line-height:1.45; min-height:44px; padding:10px; }
.category-toolbar form { min-height:46px; width:min(100%,22rem); }
.category-toolbar input { font-size:1rem; line-height:1.5; padding:10px 0; }
.category-toolbar form button,.views button,.rack-controls button { font-size:.8125rem; min-height:44px; }
.topic-filter label { font-size:.8125rem; }
.topic-filter select { font-size:1rem; min-height:44px; }
.recent-grid.rack-view .publication-shelf .material h3 { font-size:1.25rem; line-height:1.35; letter-spacing:-.02em; font-weight:600; overflow-wrap:anywhere; }
.recent-grid.rack-view .publication-shelf .material .meta { font-size:.75rem; line-height:1.5; letter-spacing:.01em; }
.catalog-view .material { grid-template-columns:3rem minmax(0,1fr) 2rem; gap:5px 16px; padding:20px 0; }
.catalog-view .material .cover-art { width:3rem; height:3rem; }
.catalog-view .material h3 { font-size:1.0625rem; line-height:1.4; letter-spacing:-.015em; font-weight:600; margin:0; overflow-wrap:anywhere; }
.catalog-view .material .meta { font-size:.75rem; line-height:1.5; letter-spacing:.01em; color:#526459; }
.catalog-view .material p { font-size:.875rem; line-height:1.6; color:#405648; }
.catalog-view .material.picked { opacity:1; background:#f1f6f2; box-shadow:inset 3px 0 #b44d22; padding-left:12px; padding-right:8px; }
.course img { width:100%; max-width:100%; height:auto; }
.course > div { min-width:0; }
.course h3 { font-size:1.0625rem; line-height:1.4; letter-spacing:-.015em; }
.course p,.about p { font-size:.9375rem; line-height:1.65; letter-spacing:0; }
.resource-reader { --reader-padding:1.75rem; scroll-padding-top:5rem; }
.resource-reader:not([hidden]) { animation:none; }
.paper-sheet { padding:0 var(--reader-padding) var(--reader-padding); }
.dialog-top { position:sticky; top:0; z-index:5; margin:0 calc(-1 * var(--reader-padding)) 1.5rem; padding:.5rem var(--reader-padding); min-height:64px; background:#fff; border-bottom:1px solid #e1e9e3; font-size:.75rem; line-height:1.5; letter-spacing:.01em; gap:12px; }
#close-detail { min-height:44px; padding:8px 0 8px 16px; font-size:.875rem; }
#detail-title { font-size:1.5rem; line-height:1.3; font-weight:600; letter-spacing:-.025em; overflow-wrap:anywhere; }
#detail-title:focus { outline:none; }
#detail-description { font-size:1rem; line-height:1.65; letter-spacing:0; }
.detail-toolbar { position:static; }
#detail-actions { flex-wrap:wrap; gap:12px 20px; }
#detail-actions button,#detail-actions a { font-size:.875rem; line-height:1.5; min-height:44px; }
#detail-body h3 { font-size:1.0625rem; line-height:1.4; font-weight:600; letter-spacing:-.015em; margin:1.75rem 0 .625rem; }
#detail-body p { font-size:1rem; line-height:1.7; letter-spacing:0; overflow-wrap:anywhere; }
#copy-status { font-size:.8125rem; line-height:1.5; }
:where(button,a,input,select):focus-visible { outline:2px solid #9e431d; outline-offset:4px; }
:where(.categories button,.views button,#topic-buttons button):active { background:#e8efe9; }
#detail-actions button:active,.scene-enter:active { filter:brightness(.92); }
@media(min-width:1250px) {
 body.reader-open .scene-copy h1 { font-size:clamp(1.375rem,2.1vw,2.125rem); letter-spacing:-.03em; }
 body.reader-open .scene-copy p { font-size:.8125rem; line-height:1.6; }
}
@container library-page (max-width:980px) {
 header nav { flex-wrap:wrap; }
 .categories .category-name { font-size:.8125rem; }
 .categories .category-count { font-size:.75rem; }
 .category-toolbar form { width:min(100%,22rem); }
}
@media(max-width:1249px) {
 body.reader-open .page { padding-bottom:calc(65dvh + 2rem); }
 .resource-reader { padding-bottom:env(safe-area-inset-bottom); }
}
@media(max-width:767px) {
 header nav { justify-content:flex-start; flex-wrap:wrap; column-gap:18px; row-gap:0; }
 header nav a { font-size:.8125rem; }
 .scene-copy h1 { font-size:clamp(1.25rem,6vw,2rem); letter-spacing:-.025em; white-space:normal; }
 .scene-copy p { font-size:1rem; line-height:1.65; }
 .category-toolbar form { width:100%; }
 .topic-filter select { max-width:none; min-width:0; }
 .catalog-view .material { grid-template-columns:2.5rem minmax(0,1fr) 1.5rem; gap:4px 12px; }
 .catalog-view .material .cover-art { width:2.5rem; height:2.5rem; }
 .catalog-view .material .pick-label { grid-column:3; grid-row:1 / span 3; width:24px; height:24px; }
 .resource-reader { --reader-padding:1.25rem; }
 #detail-title { font-size:1.375rem; }
 #detail-art { width:56px; height:56px; margin-right:12px; }
}
@media(prefers-reduced-motion:reduce) {
 .scene-world,.scene-copy,.wall-copy-plane,.stand-sign::before { animation:none !important; }
 .stand-publication:hover .publication-face,.stand-publication:focus-visible .publication-face,.stand-publication.picked .publication-face { transform:none; }
}
@media(prefers-contrast:more) {
 .category-count,.topic-count,#rack-count,.catalog-view .material .meta { color:#17201b; }
 .resource-reader { border:2px solid #17201b; }
}
