/* One footer presentation, shared by every page. */
body:is(.subpage,.narrative-page) .site-footer{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;justify-content:space-between;isolation:isolate;background:var(--yellow);color:var(--ink);border:0;padding:26px 7% 0;gap:16px;height:clamp(320px,50svh,560px);overflow:hidden}
body:is(.subpage,.narrative-page) .site-footer nav{display:flex;flex-wrap:wrap;gap:28px;margin:0;position:relative;z-index:3;font-size:16px;line-height:1.5}
body:is(.subpage,.narrative-page) .site-footer>span{margin:4px 0 0 auto;position:relative;z-index:3;font-size:12px;line-height:1.5}
body:is(.subpage,.narrative-page) .site-footer .footer-wordmark{position:absolute;bottom:0;left:0;width:100%;margin:0;line-height:0;z-index:0}
body:is(.subpage,.narrative-page) .site-footer .footer-wordmark img{display:block;width:100%;height:auto;max-height:calc(50svh - 74px);object-fit:contain;object-position:center bottom}
.footer-playground{position:absolute;inset:76px 28px 28px;z-index:2;pointer-events:none;overflow:visible}
.footer-reaction{position:absolute;left:0;top:0;width:104px;height:104px;padding:0;border:0;background:none;pointer-events:auto;touch-action:none;cursor:grab;user-select:none;will-change:transform}
.footer-reaction:active{cursor:grabbing}.footer-reaction img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 8px 8px #60421b18)}
.subpage main{position:relative;z-index:1;background:#fff;border-radius:0 0 28px 28px}.subpage .site-footer{position:sticky;bottom:0;z-index:0}
@media(max-width:720px){body:is(.subpage,.narrative-page) .site-footer{padding:24px 7% 0;gap:10px}body:is(.subpage,.narrative-page) .site-footer nav{font-size:15px;gap:22px}body:is(.subpage,.narrative-page) .site-footer>span{width:100%;margin:0;font-size:11px}.footer-reaction{width:76px;height:76px}}
@media(prefers-reduced-motion:reduce){.footer-reaction{will-change:auto}}
@media(max-width:720px){.footer-playground{top:108px}}
/* Rounded page corners reveal the footer colour, never the header's black. */
body.subpage{background:var(--yellow)}
