/* David 11/25: the audit report as paper (cream stock, ink, an ochre pen) and the reader that opens a page big. Used by the audit
   page (the row of four pages) and, from draft 46, the homepage (See what's in the audit opens the cover and the four pages).
   Behaviour: report-2026-11.js. Moved here from audit.html unchanged, plus the cover sheet, the homepage sources and the reader's
   link to the whole audit page. */
/* paper: the report is a real object on the page (cream stock, ink, an ochre pen) */
:root{--paper:#F7F4EC;--paper2:#EFE9DB;--ink:#1C1A22;--ink2:#55505E;--rule:#D9D2C2;--pen:#8A6A00}
.cover{display:flex;flex-direction:column;padding:8% 9%}
.lh{display:flex;align-items:center;gap:.7em;padding-bottom:1em;border-bottom:2px solid var(--ink);font-family:var(--mono);font-size:.7em;letter-spacing:.12em;text-transform:uppercase;color:var(--ink2)}
.lh svg{width:2.6em;height:2.4em;flex:none}
.lh .nm{margin-right:auto;font:600 1.55em/1 var(--sans);letter-spacing:0;text-transform:none;color:var(--ink)}
.cover .ttl{margin:auto 0 .15em;font:400 clamp(38px,3.6vw,112px)/.95 "Geist Pixel",var(--sans);letter-spacing:-.04em;color:var(--ink)}
.cover .for{margin:0 0 1.6em;color:var(--ink2)}
.toc{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.toc li{display:flex;gap:.8em;align-items:baseline;padding:.62em 0;border-bottom:1px solid var(--rule);font-size:.95em}
.toc li i{font-style:normal;font-family:var(--mono);font-size:.8em;color:var(--pen);width:1.6em}
.toc li span{flex:1}
.toc li b{font-family:var(--mono);font-weight:500;font-size:.78em;color:var(--ink2)}
.cover .ft{display:flex;justify-content:space-between;align-items:end;gap:1em;margin-top:1.6em;font-size:.8em;color:var(--ink2)}
.cover .ft b{font:400 1.7em/1 "Geist Pixel",var(--sans);color:var(--ink);letter-spacing:-.02em}
.tag{display:inline-block;padding:.3em .7em;border:1.5px solid #B4432F;border-radius:5px;color:#B4432F;font-family:var(--mono);font-size:.66em;letter-spacing:.14em;text-transform:uppercase}
.lanes{display:grid;gap:.5em;margin:1.2em 0 1.3em}
.lane{display:grid;grid-template-columns:9.5em minmax(0,1fr) 5.6em;gap:.8em;align-items:center;font-size:.9em}
.lane i{display:block;height:9px;border-radius:5px;background:linear-gradient(90deg,#E7C766,#C99A12);width:var(--w,0%);transition:width .5s cubic-bezier(.2,.8,.2,1)}
.lane b{text-align:right;font-weight:600}
.page{position:relative;display:flex;flex-direction:column;aspect-ratio:.86;padding:1.7em 1.7em 1.6em;border-radius:6px;background:var(--paper);color:var(--ink);box-shadow:0 40px 80px -40px rgba(0,0,0,.85),0 0 0 1px rgba(0,0,0,.05);}
.page .pn{display:flex;justify-content:space-between;font-family:var(--mono);font-size:.62em;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2);padding-bottom:.8em;border-bottom:1.5px solid var(--ink)}
.page h3{margin:.9em 0 .25em;font:600 1.4em/1.15 var(--sans);color:var(--ink)}
.page .sub{margin:0;color:var(--ink2);font-size:.9em}
.page .body{margin-top:auto}
.page .big{margin:0;font:400 clamp(44px,3.5vw,120px)/1 "Geist Pixel",var(--sans);letter-spacing:-.04em;white-space:nowrap}
.page .big small{font-size:.28em;color:var(--ink2);letter-spacing:0}
.page .pnote{margin:.7em 0 0;font-size:.9em;color:var(--ink2)}
.page .lanes{margin:auto 0 0;gap:.75em}.page .lane{grid-template-columns:8em minmax(0,1fr) 1.6em;font-size:.95em}.page .lane i{height:12px;border-radius:6px}
.page .lane i{width:var(--w)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:.5em}
.grid2 div{padding:.8em .85em;border-radius:8px;font-size:.92em;line-height:1.3;min-height:6.4em}
.grid2 b{display:block;font-family:var(--mono);font-weight:500;font-size:.82em;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.25em}
.grid2 .q{background:#E9F2DF}.grid2 .q b{color:#3F6B1E}
.grid2 .g{background:#FBEFC8}.grid2 .g b{color:var(--pen)}
.grid2 .n{background:var(--paper2)}.grid2 .n b{color:var(--ink2)}
.grid2 .s{background:#F6E1DC}.grid2 .s b{color:#9A3524}
.months{display:grid;gap:.45em}
.months{gap:.6em}.months div{display:grid;grid-template-columns:5em minmax(0,1fr);gap:.7em;align-items:baseline;padding:.85em .9em;border-radius:8px;background:var(--paper2);font-size:.95em;line-height:1.3}
.months b{font-family:var(--mono);font-weight:500;font-size:.85em;letter-spacing:.08em;text-transform:uppercase;color:var(--pen)}
/* David 11/25 "interactive and animate the pages": each page plays when it comes in (and again when you point at it): the cost counts
   up and gets circled in red pen, the bars grow, the ideas land one by one, the months tick off. Click a page and it lifts off the
   desk and opens big; turn with the arrows, the keys or a swipe. Without the script (or with animations off) the pages just show. */
.pg-open{position:absolute;inset:0;z-index:2;margin:0;padding:0;border:0;border-radius:6px;background:none;cursor:zoom-in}
.pg-open:focus-visible{outline:2px solid var(--sun);outline-offset:5px}
.page .circ{position:relative;display:inline-block}
.page [data-to]{display:inline-block}
.page .pen{position:absolute;left:-9%;top:-24%;width:118%;height:150%;overflow:visible;fill:none;stroke:#B4432F;stroke-width:2.4;stroke-linecap:round;pointer-events:none}
.page .tick{width:1.1em;height:1.1em;fill:none;stroke:var(--pen);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.months div{grid-template-columns:5em minmax(0,1fr) 1.1em!important}
.armed .page .pen path,.armed .page .tick path{stroke-dasharray:1;stroke-dashoffset:1}
.armed .page.play .pen path{stroke-dashoffset:0;transition:stroke-dashoffset .9s cubic-bezier(.6,0,.3,1) 1.15s}
.armed .page .pnote{opacity:0}
.armed .page.play .pnote{opacity:1;transition:opacity .6s 1.5s}
.armed .page .lane i{width:0;transition:none}
.armed .page.play .lane i{width:var(--w);transition:width 1.1s cubic-bezier(.2,.8,.2,1)}
.armed .page.play .lane:nth-child(2) i{transition-delay:.15s}.armed .page.play .lane:nth-child(3) i{transition-delay:.3s}.armed .page.play .lane:nth-child(4) i{transition-delay:.45s}
.armed .page .grid2 div{opacity:0;transform:translateY(-16px) rotate(-4deg) scale(.94)}
.armed .page.play .grid2 div{opacity:1;transform:none;transition:opacity .35s,transform .7s cubic-bezier(.3,1.5,.5,1)}
.armed .page.play .grid2 div:nth-child(2){transition-delay:.2s}.armed .page.play .grid2 div:nth-child(3){transition-delay:.4s}.armed .page.play .grid2 div:nth-child(4){transition-delay:.6s}
.armed .page .months div{opacity:0;transform:translateX(-18px)}
.armed .page.play .months div{opacity:1;transform:none;transition:opacity .5s,transform .7s cubic-bezier(.2,.8,.2,1)}
.armed .page.play .months div:nth-child(2){transition-delay:.3s}.armed .page.play .months div:nth-child(3){transition-delay:.6s}
.armed .page.play .months div .tick path{stroke-dashoffset:0;transition:stroke-dashoffset .45s ease .55s}
.armed .page.play .months div:nth-child(2) .tick path{transition-delay:.85s}.armed .page.play .months div:nth-child(3) .tick path{transition-delay:1.15s}
/* the reader: the page you clicked, big, on a dimmed desk */
.rd{position:fixed;inset:0;z-index:2147481000}
.rd[hidden]{display:none}
.rd-bg{position:absolute;inset:0;background:rgba(8,5,14,.8);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;transition:opacity .45s}
.rd.open .rd-bg{opacity:1}
.rd .rd-page{position:fixed;z-index:1;margin:0;opacity:1;transition:transform .65s cubic-bezier(.2,.8,.2,1),opacity .5s;cursor:pointer;box-shadow:0 60px 120px -40px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.05)}
.rd button{position:absolute;z-index:2;display:grid;place-items:center;width:54px;height:54px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.26);background:rgba(14,9,24,.75);color:#fff;cursor:pointer;opacity:0;transition:opacity .35s .2s,border-color .2s,color .2s}
.rd.open button{opacity:1}
.rd button:hover,.rd button:focus-visible{border-color:var(--sun);color:var(--sun);outline:none}
.rd button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rd-x{top:22px;right:22px}
.rd-prev,.rd-next{top:50%;margin-top:-27px}.rd-prev{left:max(16px,3vw)}.rd-next{right:max(16px,3vw)}
.rd-count{position:absolute;left:0;right:0;bottom:24px;margin:0;text-align:center;font:500 13px/1 "DM Mono",monospace;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.72);opacity:0;transition:opacity .35s .2s;pointer-events:none}
.rd.open .rd-count{opacity:1}
@media (max-width:899px){.rd-prev,.rd-next{top:auto;bottom:16px;margin:0}.rd-count{bottom:36px}}
/* the reader's made up numbers note */
.rd-note{position:absolute;left:0;right:0;bottom:48px;margin:0;text-align:center;font:500 11px/1 "DM Mono",monospace;letter-spacing:.16em;text-transform:uppercase;color:#E07A62;opacity:0;transition:opacity .35s .2s;pointer-events:none}
.rd.open .rd-note{opacity:1}
@media (max-width:899px){.rd-note{bottom:86px}}
@media (prefers-reduced-motion:reduce){.rd-bg,.rd .rd-page,.rd button,.rd-count,.rd-note{transition:none!important}}
