/* Study 13 — a square-bound paperback with one shared camera angle. */
@font-face{font-family:'DM Sans';src:url('assets/dm-sans.ttf') format('truetype');font-weight:100 1000;font-display:swap}
@font-face{font-family:'Libre Baskerville';src:url('assets/libre-baskerville.ttf') format('truetype');font-weight:400 700;font-display:swap}
:root{--yellow:#fde33f;--ink:#20211e;--paper:#f8f8f2;--white:#fff;--blue:#729df2;--orange:#ff985b;--green:#91c970;--rose:#f38593;--font:'DM Sans',Arial,sans-serif;--display:'Libre Baskerville',Baskerville,Georgia,serif;--gutter:clamp(22px,4vw,64px)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--paper);color:var(--ink);font:450 20px/1.5 var(--font);-webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
a{color:inherit;text-underline-offset:5px}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--ink);outline-offset:5px}
button:disabled{opacity:.3;cursor:default}
svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.shell{max-width:1440px;margin-inline:auto;padding-inline:var(--gutter)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;top:-100px;left:20px;z-index:10;padding:10px;background:#fff}
.skip:focus{top:10px}
.masthead,.yellow-world{background:var(--yellow)}
.yellow-world{overflow:clip}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;height:125px}
.brand{position:relative;display:block;width:190px;line-height:0;flex-shrink:0}
.brand img{width:100%;height:auto;filter:brightness(0)}
.brand>span{position:absolute;right:-8px;top:66%;font-size:10px;font-weight:700;line-height:1}
.hero{display:grid;grid-template-columns:1fr 1.03fr;gap:64px;align-items:center;padding-top:47px;padding-bottom:86px}
.hero-copy{position:relative;padding-bottom:3px;min-width:0}
.hero-title-wrap{position:relative}
h1{font-family:var(--display);font-size:clamp(64px,6.5vw,94px);line-height:1.12;font-weight:700;letter-spacing:-.018em;margin:0 0 33px}
.color-word{display:inline-flex;gap:4px;margin-top:14px;isolation:isolate;letter-spacing:0;line-height:1.03}
.color-word>span{display:inline-block;padding:.015em .08em .12em;border-radius:14px;background:var(--blue);transform:rotate(-5deg)}
.color-word>span:nth-child(2){background:var(--orange);transform:translateY(4px) rotate(5deg)}
.color-word>span:nth-child(3){position:relative;isolation:isolate;background:transparent;transform:rotate(-3deg)}
/* Give the tall ascender its own headroom without shifting the baseline. */
.color-word>span:nth-child(3)::before{content:"";position:absolute;inset:-.18em -.015em 0;border-radius:inherit;background:var(--green);z-index:-1}
.color-word>span:nth-child(4){background:var(--rose);transform:translateY(3px) rotate(5deg)}
.color-word>span:nth-child(5){background:var(--paper);transform:rotate(-5deg)}
.color-word>span:last-child{background:transparent;padding-inline:0;transform:none}

.hero-description{font-size:24px;line-height:1.45;letter-spacing:-.015em;margin:0}
.play-wrap{position:relative;min-width:0;max-width:590px;width:100%;justify-self:end;scroll-margin-top:40px}
.play-card{position:relative;z-index:1;background:#fffdf5;border:2px solid var(--ink);border-radius:28px;padding:15px 15px 14px;box-shadow:9px 10px 0 rgba(32,33,30,.95);transform:rotate(2deg)}
.play-header{display:flex;justify-content:space-between;align-items:center;padding:1px 4px 14px;gap:10px}
.play-header h2{font-size:20px;font-weight:650;letter-spacing:-.015em;line-height:1.2;margin:0}
.tools{display:flex;gap:4px}
.icon-button{background:transparent;border:0;border-radius:9px;width:40px;height:40px;display:grid;place-items:center}
.icon-button:hover:not(:disabled){background:#e8e7dc}
.icon-button svg{width:23px;height:23px;stroke-width:1.8}
.drawing-board{position:relative;background:#fff;border:1.5px solid var(--ink);border-radius:18px;overflow:hidden}
.drawing-board canvas{display:block;width:100%;height:auto;cursor:crosshair;touch-action:pan-y}

.palette{display:flex;justify-content:center;align-items:flex-end;gap:12px;padding:18px 0 11px}
.swatch{width:54px;height:92px;display:grid;place-items:center;padding:5px;border:1.5px solid transparent;border-radius:12px;background:transparent;transition:transform .15s,background .15s}
.swatch .crayon-icon{height:79px;width:30px;stroke-width:1.6}
.crayon-body{fill:var(--swatch)}
.crayon-wrap{fill:rgba(255,255,255,.38)}
.crayon-check{stroke-width:2.4;opacity:0}
.swatch[aria-pressed=true]{border-color:var(--ink);background:#fff;transform:translateY(-4px)}
.swatch[aria-pressed=true] .crayon-check{opacity:1}
.swatch[data-name=Ink] .crayon-icon{stroke:#bebfb5}
/* Redraw the contour above the pale bands so the outside stays black. */
.swatch[data-name=Ink] .crayon-body,.swatch[data-name=Ink] .crayon-outline{stroke:var(--ink)}
.swatch[data-name=Ink] .crayon-wrap{fill:#55564f}
.swatch[data-name=Ink] .crayon-check{stroke:#fff}
.swatch:hover:not(:disabled){transform:translateY(-7px);background:#fff}
.play-hint{font-size:16px;line-height:1.4;text-align:center;margin:0;padding:1px 0 3px}
.fallback{font-size:16px;padding:12px}
.book-section{padding-top:52px;padding-bottom:38px}
.book-card{position:relative;isolation:isolate;background:var(--ink);color:var(--paper);border-radius:30px;padding:48px;display:grid;grid-template-columns:.9fr 1.1fr;column-gap:30px;align-items:center;overflow:hidden}
.book-card::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(ellipse at 76% 35%,#60605233 0%,#20211e00 58%)}
.book-copy{position:relative;z-index:1}
.coming-soon{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:550;margin:0 0 21px}
.coming-soon>span{width:7px;height:7px;border-radius:50%;background:var(--yellow)}
.book-copy h2{font:700 clamp(40px,4.1vw,59px)/1.12 var(--display);letter-spacing:-.012em;margin:0 0 22px}
.book-copy>p:last-child{font-size:22px;line-height:1.5;margin:0}

.book-peek{position:relative;min-width:0;height:580px;align-self:end;margin-bottom:-48px}
.book-cover{--book-depth:clamp(10px,1.55vw,22px);--book-half:calc(var(--book-depth)/2);position:absolute;top:35px;left:40%;width:112%;max-width:660px;margin:0;transform:translateX(-50%) rotate(9deg);transform-origin:50% 20%;perspective:16000px;perspective-origin:50% 50%}
.book-model{position:relative;width:100%;aspect-ratio:17/22;transform-style:preserve-3d;transform:rotateX(-10deg) rotateY(-12deg)}
/* All faces belong to the same thin book. A long camera distance keeps the
   front nearly square; the visible pages are the actual projected thickness,
   not a separate offset frame around the cover. */
.book-back{position:absolute;inset:0;border-radius:0;background:#8d1718;transform:translateZ(calc(-1*var(--book-half)));box-shadow:5px 8px 9px #0008,17px 27px 32px #0006,30px 43px 58px #0004}
.book-front{position:absolute;inset:0;transform:translateZ(var(--book-half));border-radius:0;overflow:hidden;backface-visibility:hidden}
.book-front img{display:block;width:100%;height:100%;aspect-ratio:17/22}
.book-front::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(112deg,#fff9e80b,#ffffff00 40%,#1d050007);box-shadow:inset 1px 0 0 #0005,inset 0 1px 0 #ffffff35,inset -1px 0 0 #ffffff24}
.book-fore-edge{position:absolute;top:1px;bottom:1px;left:calc(100% - var(--book-half));width:var(--book-depth);transform:rotateY(90deg);backface-visibility:hidden;background:linear-gradient(180deg,#fffdf5,#f0ebdf 40%,#e2dbcd),repeating-linear-gradient(90deg,#fffdf3 0 1.6px,#c9c2b1 1.6px 2px);background-blend-mode:multiply;box-shadow:inset 1px 0 0 #71695744,inset -1px 0 0 #b7a79155}
.book-top-edge{position:absolute;top:calc(-1*var(--book-half));left:0;right:0;height:var(--book-depth);transform:rotateX(90deg);backface-visibility:hidden;background:linear-gradient(90deg,#d8d1c3,#fffdf4 18%,#f7f3e9 80%,#dcd5c6),repeating-linear-gradient(0deg,#fffcf3 0 .65px,#d2cbbb .65px 1px);background-blend-mode:multiply;box-shadow:inset 0 1px 0 #8b776966,inset 0 -1px 0 #8b776966}
.site-footer{font-size:15px;padding-top:0;padding-bottom:30px}
.site-footer p{margin:0}
@media(min-width:1550px){.hero{padding-top:65px;padding-bottom:100px}.play-wrap{max-width:600px}}
@media(max-width:1100px){.hero{gap:40px;padding-top:40px;padding-bottom:70px}h1{font-size:clamp(49px,6.1vw,68px)}.play-card{padding:12px;box-shadow:6px 7px 0 var(--ink)}.play-header h2{font-size:18px}.palette{gap:4px}.swatch{width:45px;height:86px}.swatch .crayon-icon{height:73px;width:28px}.hero-description{font-size:22px}.book-card{padding:32px}.book-copy>p:last-child{font-size:20px}}
@media(max-width:800px){.site-header{height:104px}.brand{width:166px}.hero{grid-template-columns:minmax(0,1fr);padding-top:28px;gap:51px;padding-bottom:56px}.hero-copy{text-align:center}h1{font-size:clamp(55px,8vw,70px);margin-bottom:25px}.color-word{margin-left:0;margin-top:17px}.hero-description{font-size:23px}.hero-description br{display:none}.hero-description{max-width:400px;margin-inline:auto}.play-wrap{justify-self:center;max-width:520px}.play-card{transform:rotate(1deg)}.play-header h2{font-size:20px}.palette{gap:12px}.swatch{width:54px;height:92px}.swatch .crayon-icon{height:79px;width:30px}.book-card{grid-template-columns:1fr .75fr;gap:10px;padding:32px}.book-copy h2{font-size:42px}}
@media(max-width:540px){:root{--gutter:22px}.site-header{height:100px}.brand{width:150px}.brand>span{right:-6px;font-size:9px}.hero{padding-top:18px;gap:45px;padding-bottom:42px}h1{font-size:clamp(44px,12.7vw,65px);line-height:1.12;letter-spacing:-.018em}.color-word{margin-left:0;gap:2px;margin-top:14px}.color-word>span{border-radius:10px;padding:.02em .09em .13em}.hero-description{font-size:21px;max-width:300px}.hero-description br{display:block}.play-card{border-radius:22px;padding:11px 10px 13px;box-shadow:5px 6px 0 var(--ink);transform:none}.play-header{padding:0 3px 9px;gap:5px}.play-header h2{font-size:18px}.tools{gap:0}.icon-button{width:36px;height:36px}.icon-button svg{width:21px;height:21px}.drawing-board{border-radius:14px}.palette{gap:2px;padding:15px 0 11px;justify-content:space-between}.swatch{width:46px;flex:0 1 46px;min-width:0;height:85px;padding:4px}.swatch .crayon-icon{height:73px;width:28px}.play-hint{font-size:16px}.book-section{padding-top:28px;padding-bottom:28px}.book-card{grid-template-columns:minmax(0,1fr);padding:27px 24px 32px;border-radius:24px;gap:29px}.coming-soon{font-size:16px;margin-bottom:16px}.book-copy h2{font-size:clamp(34px,10vw,48px);margin-bottom:18px}.book-copy>p:last-child{font-size:20px}.site-footer{font-size:14px;padding-bottom:25px}}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* The system sheet uses the same live tokens and type as the page. */
.system-page{background:var(--paper)}
.system-main{padding-block:48px;max-width:1200px}
.system-main h1{font-size:clamp(36px,5vw,64px);line-height:1.15;letter-spacing:-.018em}
.system-main h2{font:700 30px/1.25 var(--display);letter-spacing:-.01em;margin:46px 0 20px}
.system-main p{max-width:800px}
.token-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.token{border:1.5px solid var(--ink);border-radius:18px;padding:22px;min-height:145px;display:flex;flex-direction:column;justify-content:space-between}
.token small{font-size:16px}
.type-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;border-top:1px solid #ccc;padding:25px 0}
.type-row>span{font-size:17px}
.type-row strong{font:700 42px/1.15 var(--display);letter-spacing:-.018em}
.system-caption{font-size:16px}
.system-main ul{max-width:800px;padding-left:24px}
.system-main li{margin-block:12px}
@media(max-width:600px){.token-row{grid-template-columns:1fr}.type-row{grid-template-columns:minmax(0,1fr);gap:16px}.type-row strong{font-size:34px}.system-main{font-size:18px}}

@media(max-width:1100px){.book-peek{height:430px;margin-bottom:-32px}.book-cover{top:48px;left:42%;width:100%}}
@media(max-width:800px){.book-card{grid-template-columns:1.1fr 1fr;gap:18px}.book-peek{height:350px}.book-cover{width:100%;top:50px}}
@media(max-width:600px){.book-card{grid-template-columns:minmax(0,1fr);gap:12px}.book-peek{height:clamp(315px,90vw,450px);margin:0 -24px -32px}.book-cover{top:35px;left:38%;width:102%;max-width:490px}}
