/* Launch page. Colours, type sizes and shared parts are in site.css. Order: opening, facts, story, result, watching, unknown, advice, onward, smaller screens */

/* opening: the name holds the object, and two fields say the rest */
.first{min-height:max(100svh,640px);height:100svh;display:grid;grid-template-rows:var(--bar) minmax(0,1fr) auto;overflow:hidden}
.foot{padding:9px var(--edge) 0;display:grid;grid-template-columns:1fr 33%;gap:9px}
.card{background:var(--l);color:var(--g);padding:18px 24px 22px}
.news{border-radius:0 0 0 var(--bite-s)}.do{border-radius:0 0 var(--bite-s) 0}
.meta{display:flex;flex-wrap:wrap;gap:0 1.4em;font-size:max(17px,1.25vw);line-height:1.3}
.news h1{font-size:max(34px,3.2vw);line-height:1;letter-spacing:-.03em;margin-top:10px}
.do p{font-size:max(17px,1.25vw);line-height:1.3;text-wrap:pretty}.do b{display:block}
.foot .credit{grid-column:1/-1;padding:1px 2px 11px;text-align:right}
/* no art: the headline alone */
.alone{padding:2vw var(--side);display:flex;align-items:center}.alone h1{font-size:min(var(--t-h1),13svh);line-height:.92}
.few h1{font-size:min(var(--t-giant),17svh);line-height:.9}
.alone+.foot{padding-bottom:var(--edge)}.alone+.foot .meta{flex-direction:column;font-size:var(--t-deck);line-height:1.2;justify-content:center;height:100%}

/* the plain opening: a name and the news on one flat colour. No drawn letters, no object, no motion */
.quiet{grid-row:2/-1;align-self:end;padding:0 var(--side) var(--side)}
.quiet .who{font-size:var(--t-h2);font-weight:700;line-height:.94;letter-spacing:var(--tight);text-wrap:balance}
.quiet h1{font-size:var(--t-name);line-height:1.04;letter-spacing:-.03em;margin:2.6vw 0;max-width:24em}
/* a cover with no art has no credit */
.card:last-child{margin-bottom:var(--edge)}.card.news:has(+.do:last-child){margin-bottom:var(--edge)}

/* facts: label, answer. The answers are large, so they can be read from a chair away */
.record{padding:5.4vw var(--side) 5vw}
.answers>div{display:grid;grid-template-columns:15vw 1fr;gap:0 2vw;align-items:baseline;padding:1.05vw 0}
.answers dt{font-size:var(--t-facts);line-height:1.2}
.answers dd{font-weight:700;letter-spacing:-.02em;text-wrap:balance}
.answers .big{font-size:var(--t-name);line-height:1;letter-spacing:var(--tight)}
.answers .long{font-size:var(--t-deck);font-weight:500;line-height:1.16;letter-spacing:-.015em;max-width:40ch}
.answers small{display:block;font-size:var(--t-facts);font-weight:500;line-height:1.3;letter-spacing:0;margin-top:.5em;text-wrap:pretty;max-width:44ch}
.answers .none{font-size:var(--t-deck);font-weight:500;line-height:1.16;letter-spacing:-.015em}
.with .answers{width:60vw}.with>.credit{margin:2vw 0 0 17vw;max-width:40vw}
.record{z-index:2;overflow:clip}.record .obj{width:60vw;right:-27vw;top:auto;bottom:-12vw;--from:translate(34%,6%) rotate(12deg)}
.bare .answers>div{grid-template-columns:27vw 1fr}.bare .answers dd{max-width:60vw}

/* the art beside the facts, once more and very large. launch.py draws the edge of the field, see there. Everything is a part of the width, so nothing meets the text on any screen: the text keeps to 52vw, the field to the rest */
.beside{display:grid;align-items:center;min-height:62vw;padding:4.4vw var(--side) 4vw}
.beside .answers{width:calc(53.5vw - var(--side));position:relative;z-index:2}.beside .answers>div{grid-template-columns:11vw 1fr}
.beside .answers>div:first-child{display:block;padding-bottom:1.6vw}.beside div:first-child>.big{font-size:var(--t-h3);line-height:.94;margin-top:.1em}
.beside>.credit{position:relative;z-index:2;width:38vw;margin:1.4vw 0 0 13vw}
.held{position:absolute;width:0;height:0;left:calc(var(--x)*1vw);top:calc(var(--y)*1%);pointer-events:none;--from:translateX(34vw)}
.held svg{position:absolute;left:-100vw;top:-65vw;width:200vw;height:130vw;overflow:visible}.held path{fill:var(--l)}.held .phone-only{display:none}
.held img{position:absolute;display:block;width:calc(var(--w)*1vw);height:auto;left:0;top:0;translate:-50% -50%;rotate:calc(var(--turn)*1deg)}.held span{position:absolute;left:0;top:0;filter:var(--shadow)}
.record .ten{position:absolute;width:62vw;height:auto;right:-21vw;top:-7vw;--from:translateY(-22%)}
.record .part-of{position:absolute;right:0;top:0;width:41vw;height:100%;object-fit:cover;border-left:var(--edge) solid var(--l);--from:translateX(30%)}

/* the story: the section name stays beside its text */
.story{padding:3vw 0 5vw}
.part{display:grid;grid-template-columns:36vw minmax(0,1fr);gap:4vw;padding:4.4vw var(--side) 0;align-items:start}
.part h2,.watch h2,.open h2{font-size:var(--t-h4);line-height:.96}
.part h2{position:sticky;top:calc(var(--bar) + 24px)}
.text{font-size:var(--t-read);line-height:1.42}.text p{max-width:62ch;text-wrap:pretty}.text>*+*{margin-top:1.1em}
.first-part .text p:first-child{font-size:var(--t-name);line-height:1.04;letter-spacing:-.03em;font-weight:700;max-width:none}
.list li{padding:.5em 0 .5em 1.5em;position:relative;max-width:62ch}.list li::before{content:"";position:absolute;left:0;top:1em;width:.62em;height:.62em;background:currentColor;rotate:12deg}
.counts li{font-size:var(--t-name);font-weight:700;letter-spacing:var(--tight);line-height:1;padding:.28em 0;text-wrap:balance}
.wide{grid-template-columns:1fr;gap:2vw}.wide h2{position:static}.wide .text>p{margin-left:40vw}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{vertical-align:top;padding:1.1vw 0;border-top:3px solid}thead th{border:0;font-size:var(--t-facts);font-weight:500;padding:0 0 .6em}
tbody th{width:40vw;padding-right:4vw;font-size:var(--t-deck);line-height:1.1;letter-spacing:-.02em;text-wrap:balance}td{font-size:var(--t-read);line-height:1.36}

/* a result: our number, and one bar for each case. The ones that failed lean, as the block in the logo does */
.result{padding:9vw var(--side) 5vw;overflow-x:clip}
.found{display:grid;grid-template-columns:54vw 1fr;gap:3.4vw;align-items:end}.num{display:block;width:100%;height:auto}
.found p{font-size:var(--t-h4);font-weight:700;line-height:.96;letter-spacing:var(--tight);text-wrap:balance}
.bars{display:flex;gap:.42vw;height:9vw;margin-top:3.4vw;padding-right:2.6vw}.bars i{flex:1;background:var(--l)}
.bars .off{rotate:12deg;transform-origin:50% 100%;--from:rotate(-12deg)}.bars i:not(.off)+.off{margin-left:2.1vw}.bars .off+.off{margin-left:.5vw}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:4vw;margin-top:3vw;font-size:var(--t-read);line-height:1.42}.cols p{max-width:54ch;text-wrap:pretty}

/* who is watching: the object looks over the edge of the next room */
.watch{overflow:clip;min-height:45.5vw;padding:6vw var(--side)}
.watch .say{position:relative;z-index:2;width:37vw}.watch p{font-size:var(--t-read);line-height:1.42;margin-top:1.6vw;text-wrap:pretty}.watch .credit{font-size:var(--t-credit);line-height:1.3;margin-top:3vw}
.eyes{width:55vw;right:-.5vw;top:4.6vw;rotate:6deg;--from:translateY(24%)}

/* what we do not know: the same answers as in the facts */
.open.room{padding:6vw var(--side) 5vw}.open h2{margin-bottom:3vw;font-size:var(--t-h2)}
.open .answers>div{grid-template-columns:27vw 1fr}.open small{max-width:62ch}.open .long{font-size:var(--t-read);font-weight:500;line-height:1.42;letter-spacing:0;max-width:62ch;text-wrap:pretty}

/* our advice: in the colours of Museum Innovation, not of the museum */
.advice{padding:6vw var(--side) 6vw}.advice h2{font-size:var(--t-h2);max-width:13ch;line-height:.92}
.advice>p{font-size:var(--t-deck);line-height:1.16;font-weight:700;margin-top:2vw}
.advice ol{list-style:none;padding:0;counter-reset:n;margin-top:4vw}
.advice li{counter-increment:n;display:grid;grid-template-columns:9vw 1fr 30vw;gap:2vw;align-items:baseline;padding:1.3vw 0;border-top:3px solid}
.advice li::before{content:counter(n);font-size:var(--t-h3);font-weight:700;line-height:.8;letter-spacing:var(--tight)}
.advice li b{font-size:var(--t-name);line-height:1;letter-spacing:var(--tight);text-wrap:balance}.advice li span{font-size:var(--t-read);line-height:1.3}

/* onward: what happened next, then one step */
.onward{padding:6vw var(--side) 5vw}
.after{display:grid;grid-template-columns:36vw 1fr;gap:4vw;margin-bottom:7vw}.after h2{font-size:var(--t-h4);line-height:.96;text-wrap:wrap}
.after .deck{font-size:var(--t-name);font-weight:700;line-height:1.02;letter-spacing:-.03em;max-width:none}
.sources{margin:1.8em 0 1em;font-size:var(--t-facts);line-height:1.3}.sources li{padding:.35em 0}.help{font-size:var(--t-facts);line-height:1.3;padding:.2em 0}
.onward{display:flex;flex-direction:column}.short{display:block;order:2;margin:3.4vw 0 0 40vw}
.more{display:grid;grid-template-columns:36vw 1fr;gap:4vw;align-items:end}.more h2{font-size:var(--t-page);line-height:.8}.more .go{margin-top:8px}

@media(max-width:1000px){.foot{grid-template-columns:1fr}.news{border-radius:0}.do{border-radius:0 0 var(--bite-s) var(--bite-s)}.answers dt,.answers small,.help,.sources{font-size:17px}}
@media(max-width:760px){
 .quiet .who{font-size:var(--t-h4)}.quiet h1{font-size:27px;margin:24px 0}
 .first{height:auto;min-height:100svh;grid-template-rows:var(--bar) minmax(300px,1fr) auto}
 .foot{gap:6px;padding-top:6px}.card{padding:13px 14px 15px}.news h1{font-size:var(--t-cover);line-height:1;margin-top:8px}.meta{font-size:16px;gap:0 14px}.do p{font-size:16px}.card.news:has(+.do:last-child){margin-bottom:0}.foot .credit{text-align:left;padding:2px 4px 10px;font-size:var(--t-tab-credit)}
 .alone h1,.few h1{font-size:var(--t-h1)}.short{margin:24px 0 0}.answers .long a{display:inline-block;padding:10px 0;margin:-10px 0}.alone{padding:20px var(--side)}
 .record{padding:34px var(--side) 40px}
 .answers>div,.bare .answers>div,.open .answers>div{grid-template-columns:1fr;gap:5px;padding:13px 0}.answers .big{font-size:33px}.answers .long,.answers .none{font-size:22px}.open .long{font-size:19px;text-wrap:pretty}
 .bare .answers dd{max-width:none}
 .with .answers{width:auto}.with>.credit{margin:22px 0 0;max-width:none}.record.with{padding-bottom:118vw;overflow:clip}.record .obj{width:118vw;right:-30vw;bottom:-58vw;--from:none}
 .beside{display:block;min-height:0}.record.beside{padding-bottom:calc(var(--show,100)*1vw + 20px)}.beside .answers,.beside>.credit{width:auto;margin-left:0}.beside>.credit{margin-top:22px}.beside .answers>div{grid-template-columns:1fr}
 .held{left:calc(var(--px)*1vw);top:auto;bottom:calc(var(--py)*1vw);--from:translateY(30vw)}.held svg{left:-65vw;width:130vw;height:130vw}.held .wide-only{display:none}.held .phone-only{display:block}.held img{width:calc(var(--pw)*1vw);rotate:calc(var(--pturn)*1deg)}
 .record .ten{width:104vw;right:-20vw;top:auto;bottom:-9vw}.record .part-of{object-position:50% 8%;width:100%;height:112vw;top:auto;bottom:0;border-left:0;border-top:var(--edge) solid var(--l)}.record.painting{padding-bottom:calc(112vw + 26px)}
 body:has(.first .quiet) .sig .word{width:72%}
 .story{padding:10px 0 50px}.part{grid-template-columns:1fr;gap:18px;padding-top:44px}.part h2{position:static}.part h2,.watch h2{font-size:var(--t-h4)}.first-part .text p:first-child{font-size:27px}.counts li{font-size:30px}
 .wide .text>p{margin-left:0}table,tbody,tr,tbody th,td{display:block;width:auto}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}tbody tr{border-top:3px solid;padding:14px 0 18px}tbody th,td{border:0;padding:0}tbody th{font-size:24px}td{margin-top:8px}
 .result{padding:92px var(--side) 48px}.found{grid-template-columns:1fr;gap:26px}.found p{font-size:var(--t-h4)}.bars{height:64px;gap:2px;margin-top:30px;padding-right:15px}.bars i:not(.off)+.off{margin-left:13px}.bars .off+.off{margin-left:3px}.cols{grid-template-columns:1fr;gap:18px;margin-top:30px}
 .watch{padding:48px var(--side) 96vw}.watch .say{width:auto}.part h2,.after h2{text-wrap:wrap}.watch p{margin-top:16px}.watch .credit{margin-top:20px}.eyes{width:124vw;right:-20vw;top:auto;bottom:-92vw}
 .open.room{padding:48px var(--side)}.open h2{font-size:var(--t-h4);margin-bottom:16px}
 .advice{padding:48px var(--side)}.advice h2{font-size:var(--t-h3)}.advice>p{margin-top:16px}.advice ol{margin-top:28px}.advice li{grid-template-columns:44px 1fr;gap:6px 8px;padding:16px 0}.advice li b{font-size:27px}.advice li span{grid-column:2}
 .onward{padding:48px var(--side)}.after,.more{grid-template-columns:1fr;gap:18px}.after{margin-bottom:60px}.after .deck{font-size:27px}.sources li,.help{padding:0}.sources a,.help a{display:inline-block;padding:12px 0}
}
@media print{.first{height:900px}}

/* the plain page stays quiet to the end: the sign-up is steel on navy with a smaller name, and the footer has its links only, no bending letters and no animal */
body:has(.first .quiet) .end{--g:var(--steel);--l:var(--navy);border-top:3px solid}
body:has(.first .quiet) .sig{--g:var(--navy);--l:var(--steel)}body:has(.first .quiet) .sig .word{width:52%}
body:has(.first .quiet) .end :is(.stage,.credit){display:none}

/* A whole small picture (480 px wide, not a detail of a big one): shown at its own size beside the facts, never stretched to fill the side */
.record .part-of.whole{object-fit:contain;width:min(22vw,340px);height:auto;top:0;bottom:0;margin-block:auto;right:6vw;border-left:0;box-shadow:0 0 0 1px var(--l)}
@media(max-width:760px){.answers .big.wideword,.beside .answers>div:first-child>.big.wideword{font-size:min(33px,calc((100vw - 34px)/9.8))}.record .part-of.whole{object-position:50% 50%;width:56vw;height:auto;top:auto;bottom:0;right:auto;left:var(--pad,22px);margin-block:0;border-top:0}.record.painting:has(.part-of.whole){padding-bottom:calc(75vw + 26px)}}
