/* Extend the Leon Blakk journal palette, typography and image treatment. */
html:has(.ysl-page) { color-scheme:dark; }
.ysl-page { --ysl-muted:#bfbfbf; }
.ysl-skip { position:fixed; top:1rem; left:1rem; z-index:10000; padding:1rem; background:#080808; color:#fff; transform:translateY(-200%); }
.ysl-skip:focus { transform:none; }
.ysl-page .article-title { font-size:clamp(2.6rem,4.8vw,4.9rem); text-wrap:balance; }
.ysl-page .article-cover { padding-bottom:2rem; }
.ysl-page .article-cover-media img { display:block; width:100%; height:auto; max-height:650px; object-fit:contain; border-radius:3px; }
.ysl-page .article-cover-media figcaption { color:var(--ysl-muted); font-size:.875rem; line-height:1.75; padding-top:.8rem; }
.ysl-meta { font-size:.875rem; color:var(--ysl-muted); margin:1.5rem 0; }
.ysl-nav { display:flex; flex-wrap:wrap; gap:.6rem 1.6rem; margin-top:1.5rem; font-size:.9375rem; }
.ysl-nav a { padding-block:.5rem; }
.ysl-prose { max-width:48rem; margin:3rem auto; }
.ysl-page .ysl-prose p { max-width:none; font-size:1.0625rem; line-height:1.9; margin:0 0 1.4rem; }
.ysl-page .ysl-lead { font-size:clamp(1.2rem,2vw,1.5rem); line-height:1.7; color:#eee; }
.ysl-page .ysl-prose h2 { font:400 clamp(2rem,3vw,2.8rem)/1.16 var(--font-title); margin:0 0 1.5rem; text-wrap:balance; }
.ysl-page .ysl-prose h3 { font-size:1rem; margin:2rem 0 .7rem; }
.ysl-chapter { border-top:1px solid #ffffff26; padding-top:2.5rem; margin-top:3rem; scroll-margin-top:8rem; }
.ysl-page .ysl-kicker { font-size:.875rem; color:var(--color-accent); margin-bottom:.9rem; }
.ysl-credits { margin:1.7rem 0; padding:1.2rem 1.4rem; background:#ffffff05; border-left:2px solid var(--color-accent); }
.ysl-credits dt { font-size:.875rem; font-weight:600; color:#eee; }
.ysl-credits dd { font-size:.9375rem; color:var(--ysl-muted); line-height:1.7; margin:.2rem 0 .9rem; }
.ysl-credits dd:last-child { margin-bottom:0; }
.ysl-page a { text-underline-offset:.2em; touch-action:manipulation; }
.ysl-page a:hover { color:var(--color-accent); }
.ysl-page a:focus-visible,.ysl-page summary:focus-visible,#ysl-viewer a:focus-visible,#ysl-viewer button:focus-visible { outline:2px solid var(--color-accent); outline-offset:4px; }
.ysl-page :is(h2,h3,section,figure) { scroll-margin-top:8rem; }
.ysl-source-list { font-size:.875rem; line-height:1.8; padding-left:1.2rem; }
.ysl-page .ysl-source-list li { list-style:disc; margin-bottom:.7rem; }
.ysl-sources summary { cursor:pointer; padding-block:1rem; font-size:.9375rem; color:var(--ysl-muted); }
.ysl-sources summary:hover { color:#fff; }
.ysl-source-list a { overflow-wrap:anywhere; }
.ysl-board-section { border-top:1px solid #ffffff26; margin-top:4rem; padding-top:3rem; }
.ysl-board-header { max-width:48rem; margin:0 auto 2.5rem; }
.ysl-page .ysl-board-header h2 { font:400 clamp(2rem,4vw,3.8rem)/1.1 var(--font-title); text-wrap:balance; margin:0 0 1rem; }
.ysl-page .ysl-board-header p { color:var(--ysl-muted); font-size:1rem; line-height:1.8; }
.ysl-board-links { display:flex; flex-wrap:wrap; gap:1rem 2rem; font-size:.9375rem; }
.ysl-board { columns:3; column-gap:1.5rem; }
.ysl-board figure { margin:0 0 2rem; break-inside:avoid; }
.ysl-photo { display:block; }
.ysl-photo img { width:100%; height:auto; display:block; border-radius:3px; }
.ysl-photo:hover img { opacity:.9; }
.ysl-page .ysl-board figcaption { font-size:.875rem; line-height:1.7; color:var(--ysl-muted); margin-top:.8rem; overflow-wrap:anywhere; }
.ysl-board figcaption strong { display:block; color:#eee; font-weight:500; }
.ysl-board figcaption a { text-decoration:underline; }
.ysl-board .ysl-number { color:var(--color-accent); font-variant-numeric:tabular-nums; }
.ysl-notes { color:var(--ysl-muted); font-size:.875rem; line-height:1.8; margin-top:2rem; }
.ysl-board-page { padding:8rem max(1.2rem,env(safe-area-inset-left)) 4rem; max-width:1728px; margin:auto; }
.ysl-board-page .ysl-board-header { max-width:none; }
.ysl-board-page h1 { font:400 clamp(2.5rem,5vw,4rem)/1.1 var(--font-title); text-wrap:balance; margin-bottom:1.5rem; }
#ysl-viewer { width:96vw; max-width:1500px; height:94dvh; max-height:94dvh; padding:1rem; color:#eee; background:#090909; border:1px solid #555; border-radius:3px; overscroll-behavior:contain; }
#ysl-viewer::backdrop { background:#000e; }
.ysl-viewer-toolbar { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.6rem; margin-bottom:1rem; }
.ysl-viewer-toolbar button { font:inherit; font-size:.9375rem; padding:.65rem .85rem; min-height:44px; background:#171717; border:1px solid #555; border-radius:3px; color:#fff; cursor:pointer; touch-action:manipulation; }
.ysl-viewer-toolbar button:hover { background:#333; }
#ysl-counter { margin-right:auto; font-size:.9375rem; font-variant-numeric:tabular-nums; }
#ysl-viewer-image { width:100%; height:calc(94dvh - 16rem); object-fit:contain; display:block; }
.ysl-viewer-caption { padding-top:1rem; font-size:.9375rem; line-height:1.7; }
.ysl-viewer-caption p { margin:0 0 .5rem; }
.ysl-viewer-caption a { display:inline-block; margin-right:1.5rem; padding-block:.4rem; text-decoration:underline; }
@media(max-width:1100px) { .ysl-board { columns:2; } }
@media(max-width:640px) {
 .ysl-board { columns:1; }
 .ysl-page .article-cover-media { max-width:100%; }
 .ysl-page .ysl-prose p { font-size:1rem; }
 .ysl-credits { padding:1rem; }
 .ysl-board-page { padding-top:7rem; }
 #ysl-viewer-image { height:calc(94dvh - 21rem); min-height:150px; }
 .ysl-viewer-toolbar { gap:.4rem; }
 .ysl-viewer-toolbar button { padding:.6rem; }
}
@media(prefers-reduced-motion:reduce) {
 html:has(.ysl-page) { scroll-behavior:auto; }
 .ysl-page *,#ysl-viewer * { animation:none!important; transition:none!important; }
}
