:root{--paper:#f8f5e8;--ink:#18214a;--muted:#4c536c;--blue:#263fcb;--blue-deep:#1f30a7;--soft:#e1e7fe;--yellow:#ffe274;--red:#e45646;--line:#24305d;--heavy:2px solid var(--line);--mono:ui-monospace,SFMono-Regular,Consolas,monospace;font:16px/1.52 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);color-scheme:light}
*{box-sizing:border-box}
html{scroll-padding-top:1rem;scroll-behavior:smooth}body{margin:0}[hidden]{display:none!important}
h1,h2,h3,p{margin:0}button,input{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit;text-underline-offset:.18em}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.shell{width:min(1310px,calc(100% - 68px));margin-inline:auto}
.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{position:fixed;top:8px;left:8px;background:white;color:var(--ink);padding:.5rem;z-index:10}
.mast{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:61px;border-bottom:var(--heavy)}
.brand{display:flex;gap:.5rem;align-items:center;text-decoration:none;font-size:.71rem;letter-spacing:.09em;line-height:1.06}
.mark{display:grid;grid-template-columns:auto auto;place-content:center;width:34px;height:34px;background:var(--blue);color:var(--yellow);font:850 1.08rem/1 var(--mono);letter-spacing:-.19em;padding-right:.16em}
.mark span{color:#fff}
.mast nav{display:flex;gap:clamp(.6rem,2.2vw,1.4rem);font:750 .75rem/1.15 var(--mono);text-transform:uppercase}
.mast nav a{padding:.32rem 0;text-decoration:none;border-bottom:2px solid transparent}.mast nav a:hover{border-color:var(--blue)}
.hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;min-height:390px;margin-top:10px;border:var(--heavy);background:var(--blue);color:white;position:relative;isolation:isolate;overflow:hidden}
.hero-content{padding:clamp(1.4rem,5.8vw,4.4rem) clamp(1.2rem,4.3vw,4.3rem);z-index:2}
.hero h1{font:960 clamp(3.1rem,8.5vw,8.9rem)/.78 system-ui,-apple-system,sans-serif;letter-spacing:-.092em}
.hero h1 span{color:var(--yellow);margin-left:.02em}.hero p{max-width:37ch;margin:.98rem 0 1.05rem;color:#f4f4ff;font-size:clamp(.86rem,1.6vw,1.08rem);font-weight:620}
.action{display:inline-flex;gap:.7rem;align-items:center;justify-content:space-between;min-height:44px;background:var(--yellow);color:var(--ink);border:2px solid var(--ink);padding:.48rem .64rem;text-decoration:none;font-weight:850;box-shadow:3px 3px 0 #111d63}
.action:hover{background:white}.hero .action:focus-visible{outline-color:white}
.stack{align-self:stretch;position:relative;min-height:335px;isolation:isolate;background:linear-gradient(90deg,#dbe2fc28 1px,transparent 1px),linear-gradient(#dbe2fc28 1px,transparent 1px);background-size:27px 27px;mask-image:linear-gradient(90deg,transparent 0,black 7%,black 100%)}
.stack::before{content:'';position:absolute;inset:12% 15% 12% 13%;border:1px solid #f9f9ff92;pointer-events:none}
.stack-axis{position:absolute;color:#f5f4ff;font:800 1rem var(--mono)}.stack-axis.x{top:10%;left:11%}.stack-axis.y{right:12%;bottom:10%}
.sheet{display:grid;grid-template-rows:auto 1fr auto;gap:.42rem;position:absolute;left:50%;top:49%;width:clamp(113px,17vw,226px);aspect-ratio:.8;transform-origin:50% 72%;border:var(--heavy);box-shadow:6px 7px 0 #15225d;background:var(--yellow);color:var(--ink);padding:clamp(.46rem,1.25vw,.88rem);font:850 clamp(.57rem,1.13vw,.82rem)/1.1 var(--mono);letter-spacing:.07em}
.sheet > span:last-child{align-self:end;border-top:1px solid currentColor;padding-top:.31rem}
.sheet.back{transform:translate(-76%,-52%) rotate(-20deg)}
.sheet.middle{transform:translate(-45%,-61%) rotate(8deg);background:#f47662}
.sheet.front{transform:translate(-13%,-46%) rotate(19deg);background:#e4ebff}
.sheet-grid{background:linear-gradient(90deg,var(--ink) 1px,transparent 1px),linear-gradient(var(--ink) 1px,transparent 1px);background-size:19% 19%;width:77%;height:72%;align-self:center;justify-self:center;border:1px solid currentColor}
.sheet-dots{display:flex;justify-content:center;flex-direction:column;align-items:center;gap:.38rem}.sheet-dots i{width:25%;aspect-ratio:1;border-radius:100%;background:var(--blue);border:1px solid var(--ink)}.sheet-dots i:nth-child(2){background:var(--yellow)}.sheet-dots i:nth-child(3){background:var(--ink)}
.sheet.front svg{width:100%;align-self:center}
.directory{margin-top:clamp(1.5rem,4vw,3.15rem);scroll-margin:1rem}
.heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;border-bottom:var(--heavy);padding-bottom:.61rem}
.heading h2{font:900 clamp(1.75rem,4vw,3.73rem)/.98 system-ui,sans-serif;letter-spacing:-.072em}
.heading p{color:var(--muted);font-size:.92rem;margin-top:.32rem}.index-figure{font:800 .72rem/1 var(--mono);letter-spacing:.08em;white-space:nowrap}
.finder{display:flex;justify-content:space-between;align-items:stretch;gap:.55rem;padding:.68rem 0 .37rem}
.filters{display:flex;flex-wrap:wrap;gap:.32rem;align-content:flex-start}
.filters button,.empty button{background:#fffcf0;border:var(--heavy);border-radius:0;padding:.36rem .53rem;min-height:42px;font-size:.79rem;font-weight:780;white-space:nowrap}
.filters button:hover,.empty button:hover{background:var(--yellow)}
.filters button[aria-pressed=true]{background:var(--ink);color:white}
.search{display:flex;gap:.42rem;align-items:center;border:var(--heavy);background:white;padding:0 .5rem;min-width:0;max-width:420px;flex:1}
.search label{display:grid;place-items:center;flex:0 0 18px}.search svg{width:17px;height:17px;fill:none;stroke:var(--ink);stroke-width:1.8}
.search input{min-width:0;width:100%;border:0;background:none;font-size:.9rem;padding:.35rem 0}
.search input:focus-visible{outline:none}.search:focus-within{outline:2px solid var(--blue);outline-offset:2px}
#clear{display:none;min-height:34px;border:0;background:none;text-decoration:underline;font-size:.74rem;font-weight:720;padding:.2rem}
#clear:not([hidden]){display:block}
.results{color:var(--muted);font:750 .71rem/1.3 var(--mono);letter-spacing:.05em;margin:.31rem 0 .55rem}
.collection{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tool{display:grid;grid-template-columns:minmax(106px,1fr) minmax(0,2.35fr);border:var(--heavy);background:#fffcf2;min-height:162px;min-width:0;position:relative}
.tool:focus-within,.tool:hover{box-shadow:4px 4px 0 var(--line)}
.tool-main{padding:.66rem .79rem .71rem;min-width:0;display:grid;align-content:start;gap:.34rem}
.tool-line{display:flex;justify-content:space-between;align-items:center;gap:.18rem .36rem;flex-wrap:wrap;color:var(--muted);font:750 .63rem/1.25 var(--mono);letter-spacing:.05em;text-transform:uppercase}
.access{border:1px solid #a4b3b7;padding:.13rem .29rem;color:#34485b;background:#ecf2f5;white-space:nowrap}
.access.gated{background:#ffedb2;border-color:#d69d34;color:#524014}
.tool h3{font:900 clamp(1.05rem,2.1vw,1.65rem)/1.03 system-ui,sans-serif;letter-spacing:-.05em}
.tool h3 a{text-decoration:none;display:flex;justify-content:space-between;align-items:baseline;gap:.3rem}
.tool h3 a::after{position:absolute;inset:0;content:""}
.tool h3 a:hover{text-decoration:underline}
.tool h3 span{font:.91rem/1 var(--mono);flex:0 0 auto;color:var(--blue)}
.tool p{font-size:.82rem;line-height:1.39;color:var(--muted)}.tool .best{font-size:.75rem;margin-top:.24rem;padding-top:.3rem;border-top:1px solid #cdd0c8}.best strong{color:var(--ink)}
.thumb{min-width:0;display:grid;place-content:center;overflow:hidden;border-right:var(--heavy);aspect-ratio:auto;isolation:isolate;position:relative}
.motifs b{position:absolute;display:block}.motifs.glass{background:linear-gradient(148deg,#8ba2ef,#30288c)}
.glass b{width:45%;height:56%;top:23%;left:23%;background:#eff2ff36;border:1px solid #fff9;transform:skewY(-12deg);box-shadow:7px 7px 0 #28326a56}
.glass b:nth-child(2){left:34%;top:30%;background:#ed96b867}.glass b:nth-child(3){left:42%;top:36%;background:#c1f1ef62}
.motifs.layout{background:#e7dafe}.layout b{border:2px solid #533799;background:#f8f1f9;width:36%;height:35%;top:19%;left:17%}.layout b:nth-child(2){left:57%;width:25%}.layout b:nth-child(3){left:17%;top:60%;height:18%;width:25%}.layout b:nth-child(4){left:46%;top:60%;height:18%;width:36%}
.motifs.typology{background:#f48e7e}.typology b{width:26%;height:29%;top:17%;left:16%;border:2px solid var(--ink);background:#fff6ea}.typology b:nth-child(2){left:56%;border-radius:50%}.typology b:nth-child(3){top:55%;transform:skew(-15deg);background:var(--yellow)}.typology b:nth-child(4){top:55%;left:56%;transform:rotate(45deg);background:#4d68ed}
.motifs.fieldbook{background:#3859b9}.fieldbook b{width:45%;height:53%;top:19%;left:23%;background:#f5e8cf;border:1px solid var(--ink);transform:rotate(-17deg)}.fieldbook b:nth-child(2){top:24%;left:30%;transform:rotate(10deg);background:#ffd55d}.fieldbook b:nth-child(3){top:32%;left:38%;transform:rotate(20deg);background:repeating-linear-gradient(0deg,#fff2d5 0 4px,#2b41aa 4px 6px)}
.motifs.colour{background:#ece9d6}.colour b{width:18%;height:60%;top:20%;left:15%;background:#ee8a68;border:1px solid #633a36;transform:rotate(-14deg)}.colour b:nth-child(2){left:31%;background:#efd274}.colour b:nth-child(3){left:47%;background:#aec4f3}.colour b:nth-child(4){left:63%;background:#3b579b}
.motifs.roulette{background:#f5d66c}.roulette b{width:62%;aspect-ratio:1;top:17%;left:18%;border-radius:50%;background:conic-gradient(var(--blue) 0 32%,#ff8f7b 32% 66%,#fffcdd 66%);border:2px solid var(--ink)}.roulette b:nth-child(2){width:12%;top:42%;left:43%;background:var(--yellow)}.roulette b:nth-child(3){width:10%;top:19%;left:75%;background:var(--ink);border-radius:0;clip-path:polygon(100% 0,0 50%,100% 100%)}
.motifs.backdrop{background:#172860;color:#eed58d}.backdrop svg{width:100%;height:100%;max-height:87px}
.empty{border:var(--heavy);padding:1rem;background:#fffaf0}.empty h3{margin-bottom:.32rem}.empty button{margin-top:.56rem}
.access-note{font-size:.74rem;color:var(--muted);margin:.8rem 0 0}
.foot{margin-top:1.65rem;border-top:var(--heavy);display:flex;justify-content:space-between;flex-wrap:wrap;gap:.45rem 1rem;padding:.75rem 0 1.2rem;color:var(--muted);font:720 .65rem/1.4 var(--mono)}
@media(max-width:850px){.shell{width:calc(100% - 38px)}.hero{min-height:320px}.stack{min-height:280px}.tool{grid-template-columns:minmax(75px,1fr) minmax(0,2.5fr)}}
@media(max-width:630px){
 html{scroll-padding-top:.4rem}.shell{width:calc(100% - 26px)}.mast{min-height:50px}.mast nav{font-size:.66rem}
 .hero{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);min-height:0;margin-top:7px}.hero-content{padding:1.02rem .65rem 1.12rem}.hero h1{font-size:clamp(2.05rem,10.65vw,4.05rem);line-height:.86}.hero p{font-size:.73rem;margin:.67rem 0 .6rem}.action{font-size:.72rem;min-height:36px;gap:.36rem;padding:.28rem .34rem}.stack{min-height:205px;background-size:16px 16px}
 .sheet{width:clamp(60px,17vw,110px);box-shadow:3px 4px 0 #15225d;padding:.28rem;gap:.19rem;font-size:.45rem}.sheet > span:last-child{padding-top:.16rem}.sheet.back{transform:translate(-63%,-52%) rotate(-21deg)}.sheet.middle{transform:translate(-32%,-61%) rotate(8deg)}.sheet.front{transform:translate(-3%,-46%) rotate(16deg)}
 .directory{margin-top:1.22rem}.heading p{font-size:.79rem}.index-figure{font-size:.65rem}
 .finder{display:grid;grid-template-columns:minmax(0,1fr);padding:.5rem 0 .28rem;gap:.4rem}.filters{gap:.27rem}.filters button{min-height:36px;padding:.27rem .39rem;font-size:.73rem}.search{max-width:none;min-height:39px}
 .collection{grid-template-columns:minmax(0,1fr);gap:.55rem}.tool{grid-template-columns:minmax(75px,1fr) minmax(0,2.8fr);min-height:0}.tool-main{padding:.55rem .6rem .61rem}.tool h3{font-size:1.18rem}.tool p{font-size:.77rem}.tool .best{font-size:.71rem;margin-top:.15rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media(forced-colors:active){.stack{display:none}.hero{grid-template-columns:1fr}.hero,.action,.tool,.access{border:2px solid CanvasText}}

/* The three steps and image motif use the same graphic language as the directory. */
.workflow{display:flex;align-items:center;gap:clamp(.75rem,2vw,2rem);margin-top:.85rem;padding:.75rem .9rem;border:2px solid var(--ink);background:#fffdf3}
.workflow-label{font-size:.72rem;font-weight:840;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.workflow ol{display:flex;flex-wrap:wrap;list-style:none;gap:.35rem 1.05rem;margin:0;padding:0;counter-reset:path}
.workflow li{counter-increment:path}
.workflow li:before{content:"0" counter(path);font-family:monospace;font-size:.73rem;font-weight:bold;margin-right:.34rem;color:#263fcb}
.workflow a,.sub-links a{font-weight:740;font-size:.79rem;text-underline-offset:.14em}
.sub-links{margin-top:.36rem}
.motifs.image-sheets{display:grid;grid-template-columns:1.3fr .72fr;grid-template-rows:1fr 1fr;gap:4px;background:#293131;padding:9%;border-color:var(--ink)}
.image-sheets i,.image-sheets span,.image-sheets b{display:block;position:static;inset:auto;width:100%;height:100%;transform:none;background-size:cover;background-position:center;border:1px solid #121412}
.image-sheets i{grid-row:span 2;background-image:url("images/art-tile-1.webp")}
.image-sheets span{background-image:url("images/art-tile-2.webp")}
.image-sheets b{background-image:url("images/art-tile-3.webp")}
@media(max-width:620px){.workflow{display:block;padding:.44rem .6rem;margin-top:.55rem}.workflow ol{margin-top:.32rem;gap:.18rem .66rem}.workflow a,.sub-links a{font-size:.73rem}.workflow-label{font-size:.65rem}}

/* Editorial cover and a wheel with a fixed top pointer. */
.thumb.image-cover{background:#f6baaa}.image-cover img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 50%}.thumb.roulette-cover{background:#f5d66c}.roulette-cover svg{position:absolute;inset:0;display:block;width:100%;height:100%}

/* Shared illustrated thumbnail style. */
.thumb.motif-frontend{background:#dfe5fa}.thumb.motif-image{background:#dce9e3}.motif-frontend svg,.motif-image svg{position:absolute;inset:0;display:block;width:100%;height:100%}
