*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;font-family:'Atkinson Hyperlegible',system-ui,sans-serif;line-height:1.6;color:#FBF6EC;background:#2E2215}
a{color:#FFE27A}
:focus-visible{outline:3px solid #FFE27A;outline-offset:3px}
.ph{background:#4E3A1E;color:#FFE27A;padding:1px 6px;border-radius:4px}

/* homepage scenes (site.js) */
body.home{background:#1D1934}
.scene{position:relative}
.scene .stage{position:absolute;inset:0}
.scene .host{position:absolute;inset:0;overflow:hidden}
.scene .anchor{position:absolute;left:0;width:1px;height:1px}
/* portrait phones (and no script): each board scaled to the width, overlapping by its fade band */
html:not(.fit) .scene{aspect-ratio:var(--ar);width:100%}
html:not(.fit) .scene:not(.first){margin-top:calc(var(--band) * -100%)}
html:not(.fit) .scene:not(.first) .host{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 7.8125%);mask-image:linear-gradient(to bottom,transparent 0,#000 7.8125%)}
html:not(.fit) .scene.last .host{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 7.8125%,#000 92.1875%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 7.8125%,#000 92.1875%,transparent 100%)}
/* everything else: one full screen per scene, pinned while its story plays */
:root{--vh:100vh;--fade:14vh}
@supports (height:100svh){:root{--vh:100svh;--fade:14svh}}
html.fit .scene{height:calc((1 + var(--pan,0) + var(--pin,0)) * var(--vh))}
html.fit .scene .stage{position:sticky;top:0;height:var(--vh);overflow:hidden}
html.fit .scene:not(.first){margin-top:calc(var(--fade) * -1);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--fade));mask-image:linear-gradient(to bottom,transparent 0,#000 var(--fade))}
html.fit .scene.last{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--fade),#000 calc(100% - var(--fade)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--fade),#000 calc(100% - var(--fade)),transparent 100%)}
html.fit .scene .anchor{top:calc(var(--pan,0) * var(--vh))!important}
/* ?scroll=play: scenes snap into place */
html.snap{scroll-snap-type:y mandatory}
html.snap .scene,html.snap .scene .anchor{scroll-snap-align:start}
html.snap .foot{scroll-snap-align:end}
.nojs{padding:24px;background:#1E140A}

/* text pages */
.topbar{background:#1E140A;border-bottom:1px solid #4E3A1E;padding:12px 24px}
.topbar .in,.foot .in{max-width:1200px;margin:0 auto}
.topbar .in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.brand{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:26px;color:#FBF6EC;text-decoration:none}
.topbar nav{display:flex;gap:8px 24px;align-items:center;font-weight:700}
.topbar nav a{color:#FBF6EC;text-decoration:none;padding:10px 0}
.topbar nav a.dl{background:#FFE27A;color:#1E140A;padding:12px 22px;border-radius:999px}
body.page main{padding:56px 24px 96px;font-size:18px}
.prose{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.prose h1{margin:0 0 8px;font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:clamp(36px,7vw,56px);line-height:1.05}
.prose h2{margin:28px 0 0;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:28px;line-height:1.2;scroll-margin-top:24px}
.prose h3{margin:8px 0 0;font-size:20px}
.prose p{margin:0}
.prose ul,.prose ol{margin:0;padding-left:24px;display:flex;flex-direction:column;gap:8px}
.prose .lead{color:#E6D3A0}
.prose .toc{background:#1E140A;border:1px solid #4E3A1E;border-radius:16px;padding:20px 24px}
.prose .toc ul{gap:4px}
.prose section{display:flex;flex-direction:column;gap:14px;scroll-margin-top:24px}
.prose .note{background:#1E140A;border:1px solid #4E3A1E;border-radius:12px;padding:16px 20px;color:#E6D3A0}
.btn{display:inline-block;background:#FFE27A;color:#1E140A;font-weight:700;font-size:18px;text-decoration:none;padding:14px 28px;border-radius:999px;align-self:flex-start}
body.page main > style + div,body.page main > div{margin:0 auto}

/* footer */
.foot{background:#1E140A;color:#E6D3A0;font-size:15px;line-height:1.55;padding:56px 24px 40px;border-top:1px solid #4E3A1E}
.foot .in{display:flex;flex-direction:column;gap:28px}
.foot .row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px 40px}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 28px;font-weight:700;align-items:center}
.foot nav a{color:#FBF6EC;text-decoration:none;padding:10px 0}
.foot p{margin:0}
.foot .co{padding-top:24px;border-top:1px solid #4E3A1E}
.foot .tm{font-size:13px;color:#C9B48A;max-width:980px}
