/* 2026-11 readability and first-load pass. Loaded last on purpose: remove this file to undo the visual changes. */
html{scroll-padding-top:0}
#gallery:focus,#playroom:focus,#workbench:focus,#about-feiqi:focus,#legacy:focus{outline:none}

/* Small labels: legible size and at least 4.5:1 against the paper. */
.gallery-caption small{font-size:12px;letter-spacing:1px;color:#6f5a52}
.gallery-caption p{font-size:14px;color:#6b5b52}
.gallery-feature-caption small{font-size:12px;letter-spacing:.3px;color:#6f5a52}
.gallery-feature-caption>span{font-size:13px}
.gallery-welcome-note{font-size:14px;color:#6b5b52}
#gallery-count{font-size:12px;color:#6b5b52}
#gallery-random{font-size:13px}
.gallery-kicker,#gallery .gallery-kicker,#gallery .gallery-home-intro .gallery-kicker{font-size:11px;letter-spacing:2px;color:#7d5660}
.footer-keep p,.footer-paths>span{font-size:12px;color:#6b5b52}
.footer-paths{font-size:13px}
.footer-keep button{font-size:12px}

/* Display setting lives in the footer instead of floating over the drawings. */
.gallery-footer .glass-dock{position:static;grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-start;width:auto;padding:0;gap:4px;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#8e6061}
.gallery-footer .glass-dock:before,.gallery-footer .glass-dock:after{display:none}
.gallery-footer .display-launcher{padding:0;font-size:12px!important;border-radius:2px}
.gallery-footer .dock-handle,.gallery-footer .dock-reset{display:none}
.gallery-footer .glass-dock .preview-material{font-size:12px;padding-inline:12px}

/* Touch screens have no hover, so the whole card is the affordance and the art stays uncovered. */
@media(max-width:700px),(hover:none){
 .gallery-expand{right:8px;bottom:8px;width:28px;height:28px;padding:0;display:grid;place-items:center;border-radius:50%;font-size:0;background:#fffaf2cc;box-shadow:none}
 .gallery-expand:after{content:'↗';font-size:13px;line-height:1}
}

@media(max-width:700px){
 .title-comma,.nav-extra,.gallery-nav a span[aria-hidden]{display:none}
 .gallery-brand small{font-size:10px;letter-spacing:1.2px}
 .gallery-nav a{font-size:14px!important}
 .gallery-kicker,#gallery .gallery-kicker,#gallery .gallery-home-intro .gallery-kicker{font-size:11px;letter-spacing:1.5px}
 #gallery .gallery-home-intro h1{font-size:36px}
 #gallery .gallery-home-intro h1 span{font-size:26px}
 .gallery-welcome-note{font-size:15px;line-height:1.8}
 .gallery-feature-caption small{font-size:12px}
 .gallery-feature-caption strong{font-size:15px}
 .gallery-feature-caption>span{font-size:13px}
 .gallery-filters button{font-size:13px!important;padding-inline:8px!important}
 #gallery-random{color:#7d3a48}
 #gallery-count{font-size:13px}
 #gallery-random{font-size:14px}
 .gallery-caption small{font-size:12px;letter-spacing:.5px}
 .gallery-caption h2{font-size:18px}
 .gallery-caption p{font-size:14px;line-height:1.75}
 .gallery-piece:nth-child(-n+2) .gallery-caption h2{font-size:21px}
 .gallery-piece:nth-child(-n+2) .gallery-caption p{font-size:15px}
}

/* Muted text across the other panels: readable on paper without changing the mood. */
body .gallery-intro>p:not(.gallery-kicker),body .section-number,body .section-top p,body .entry-meta span,body .entry-description,body .entry-bottom span,body .entry-bottom b,body .album-intro p,body .album-caption span,body .album-controls span,body .album-help,body .sketch-margin p,body .pencil-note,body .archive-heading p,body .archive-date small,body .archive-category,body .archive-arrow,body .archive-end,body .sleeping-fox-note span,body .closing-note p,body .closing-note span,body .legacy-heading p,body .toy-eyebrow,body .toy-help,body .wb-placeholder,body .wb-notice,body .world-drawer-link,body .world-drawer-link span,body .gallery-disclosure,body .gallery-disclosure strong,body .feiqi-about p,body .archive-toolbar span{color:#6b5b52}

@media(max-width:700px){
 .gallery-feature-caption{grid-template-columns:1fr;gap:2px}
 .gallery-feature-caption small,.gallery-feature-caption strong,.gallery-feature-caption>span{grid-column:1;justify-self:start}
 .gallery-intro>p:not(.gallery-kicker),.section-top p,.archive-heading p,.archive-end,.sketch-margin p,.entry-description{font-size:13px}
 .toy-eyebrow,.section-number,.tab small,.closing-note span{font-size:11px}
 .toy-help,.gallery-disclosure,.gallery-disclosure strong,.world-drawer-link,.world-drawer-link span,.entry-meta span,.entry-bottom span,.album-enlarge-label,.album-caption span,.album-help,.sketch-zoom,.loose-page figcaption,.loose-page figcaption span,.archive-date small,.archive-category{font-size:12px}
 .legacy-heading .button,.world-enter,.tab{font-size:13px}
}

@media(max-width:700px){
 .gallery-intro h1 .title-comma{display:none!important}
 .gallery-feature-caption small,.gallery-feature-caption strong,.gallery-feature-caption>span{grid-row:auto!important}
 .gallery-feature-caption>span{margin-top:2px}
}

/* Six categories no longer fit one row on a phone. */
@media(max-width:700px){
 .gallery-filters{display:grid!important;grid-template-columns:repeat(3,1fr);border-radius:24px!important}
 .gallery-filters button{width:100%}
}

/* The dark fairy tale pages are portrait sheets: frame them as drawn instead of letterboxing. */
.gallery-grid .gallery-piece .gallery-art[data-sketch^="tale-"] img{aspect-ratio:2/3!important}
@media(min-width:1001px){
 .gallery-piece:has(.gallery-art[data-sketch^="tale-"]){grid-column:span 4!important;margin-top:0!important}
}
