/* A character's public website. Plain CSS, no build step.
   A sticker book in a cat's own colours: the golden amber and warm tan of her coat, the espresso of her rosettes,
   the leaf green of her eyes, the brick pink of her nose, and the emerald and orange of her badge.
   Every page is a pile of big coloured sheets, with fat toy letters outlined like stickers, prints taped down at an
   angle, drawn icons and paw marks. Lime is only a spark. The film at the top of the home page is left alone. */

:root{
  --ink:#1f0f08;
  --ink-2:#4a2a17;
  --bg:#1f0f08;
  --bg-2:#2c170c;
  --text:#fff8f0;
  --white:#fff;
  --white-deep:#d9b99b;
  --amber:#f6a723;
  --amber-deep:#b96c0c;
  --tan:#dd8d33;
  --leaf:#57b043;
  --leaf-deep:#2f7a26;
  --hazel:#b9c544;
  --brick:#e8776b;
  --brick-deep:#a8443b;
  --emerald:#0b6a4b;
  --orange:#f47b20;
  --orange-deep:#b9520a;
  --lime:#b9f33c;
  --line:rgba(255,236,214,.34);
  --r:22px;
  --sheet-r:clamp(30px,5vw,60px);
  --ease:cubic-bezier(.16,1,.3,1);
  --spring:cubic-bezier(.34,1.56,.64,1);
  --gutter:clamp(20px,4.5vw,56px);
  --wrap:1240px;
  --display:'Titan One','Fredoka',system-ui,-apple-system,'Segoe UI',sans-serif;
  --body:'Fredoka',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  /* A paw, to cut shapes with, and two of them walking, to cover a sheet with. */
  --paw:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 11.3c-3.5 0-6.7 3.2-6.7 6.5 0 2.4 1.9 3.6 4.1 3.1 1-.2 1.7-.5 2.6-.5s1.6.3 2.6.5c2.2.5 4.1-.7 4.1-3.1 0-3.3-3.2-6.5-6.7-6.5z'/%3E%3Cellipse cx='4.3' cy='10.1' rx='2.2' ry='3' transform='rotate(-28 4.3 10.1)'/%3E%3Cellipse cx='9' cy='5.4' rx='2.4' ry='3.4' transform='rotate(-8 9 5.4)'/%3E%3Cellipse cx='15' cy='5.4' rx='2.4' ry='3.4' transform='rotate(8 15 5.4)'/%3E%3Cellipse cx='19.7' cy='10.1' rx='2.2' ry='3' transform='rotate(28 19.7 10.1)'/%3E%3C/svg%3E");
  --paws:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg transform='translate(36 30) rotate(-20 18 18) scale(1.5)'%3E%3Cpath d='M12 11.3c-3.5 0-6.7 3.2-6.7 6.5 0 2.4 1.9 3.6 4.1 3.1 1-.2 1.7-.5 2.6-.5s1.6.3 2.6.5c2.2.5 4.1-.7 4.1-3.1 0-3.3-3.2-6.5-6.7-6.5z'/%3E%3Cellipse cx='4.3' cy='10.1' rx='2.2' ry='3' transform='rotate(-28 4.3 10.1)'/%3E%3Cellipse cx='9' cy='5.4' rx='2.4' ry='3.4' transform='rotate(-8 9 5.4)'/%3E%3Cellipse cx='15' cy='5.4' rx='2.4' ry='3.4' transform='rotate(8 15 5.4)'/%3E%3Cellipse cx='19.7' cy='10.1' rx='2.2' ry='3' transform='rotate(28 19.7 10.1)'/%3E%3C/g%3E%3Cg transform='translate(160 150) rotate(24 18 18) scale(1.5)'%3E%3Cpath d='M12 11.3c-3.5 0-6.7 3.2-6.7 6.5 0 2.4 1.9 3.6 4.1 3.1 1-.2 1.7-.5 2.6-.5s1.6.3 2.6.5c2.2.5 4.1-.7 4.1-3.1 0-3.3-3.2-6.5-6.7-6.5z'/%3E%3Cellipse cx='4.3' cy='10.1' rx='2.2' ry='3' transform='rotate(-28 4.3 10.1)'/%3E%3Cellipse cx='9' cy='5.4' rx='2.4' ry='3.4' transform='rotate(-8 9 5.4)'/%3E%3Cellipse cx='15' cy='5.4' rx='2.4' ry='3.4' transform='rotate(8 15 5.4)'/%3E%3Cellipse cx='19.7' cy='10.1' rx='2.2' ry='3' transform='rotate(28 19.7 10.1)'/%3E%3C/g%3E%3C/svg%3E");
  /* Her coat: warm tan patches with broken espresso rings round them, and a few loose spots. It goes on the amber sheets. */
  --coat:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='%23dd8d33'%3E%3Cellipse cx='62' cy='58' rx='22' ry='17' transform='rotate(-18 62 58)'/%3E%3Cellipse cx='190' cy='72' rx='19' ry='24' transform='rotate(24 190 72)'/%3E%3Cellipse cx='118' cy='164' rx='25' ry='18' transform='rotate(10 118 164)'/%3E%3Cellipse cx='238' cy='198' rx='18' ry='22' transform='rotate(-30 238 198)'/%3E%3Cellipse cx='44' cy='238' rx='21' ry='16' transform='rotate(30 44 238)'/%3E%3C/g%3E%3Cg fill='none' stroke='%231f0f08' stroke-opacity='.8' stroke-width='9' stroke-linecap='round'%3E%3Cpath d='M36 62c-3-14 8-26 22-27M84 40c8 6 11 17 6 26M46 80c8 6 22 6 31-1'/%3E%3Cpath d='M166 62c1-13 12-23 25-21M214 62c4 11 0 23-10 30M172 92c5 6 13 9 21 8'/%3E%3Cpath d='M88 158c2-12 14-21 27-20M148 152c5 9 3 21-6 28M96 182c7 7 19 9 29 5'/%3E%3Cpath d='M214 190c0-12 9-22 21-23M260 182c6 10 4 23-5 31M222 220c6 5 14 6 21 3'/%3E%3Cpath d='M19 236c-2-12 7-23 19-25M64 220c8 5 11 15 8 25M28 257c7 6 18 7 27 2'/%3E%3C/g%3E%3Cg fill='%231f0f08' fill-opacity='.8'%3E%3Cellipse cx='132' cy='40' rx='7' ry='5'/%3E%3Cellipse cx='272' cy='118' rx='6' ry='8'/%3E%3Cellipse cx='160' cy='240' rx='8' ry='5.5'/%3E%3Cellipse cx='20' cy='140' rx='6' ry='7'/%3E%3Cellipse cx='204' cy='274' rx='7' ry='5'/%3E%3Cellipse cx='96' cy='110' rx='5' ry='6'/%3E%3Cellipse cx='276' cy='32' rx='5' ry='6'/%3E%3Cellipse cx='176' cy='140' rx='5' ry='4'/%3E%3C/g%3E%3C/svg%3E");
  /* A sticker cut out of a picture: a white edge all round it. */
  --cut:drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff);
  /* The room the phone's bottom menu takes. Nothing on a wide screen. */
  --bar:0px;
  /* The moving tape under the top of the home page. */
  --tape:60px;

  /* What a dark surface gives the things lying on it: the film, the emerald sheet and the espresso one.
     Big letters are white with a golden outline and an orange edge. */
  --surface:var(--bg);
  --on:var(--text);
  --soft:#fbe7d2;
  --t-fill:var(--white);
  --t-line:var(--amber);
  --t-edge:var(--orange-deep);
  --hl-fill:var(--amber);
  --hl-line:var(--amber-deep);
  --drop:var(--amber);
  --pop-a:var(--amber);
  --pop-b:var(--brick);
  --pop-c:var(--leaf);
  --tape-a:var(--amber);
  --tape-b:var(--brick);
  --tape-c:var(--leaf);
  --label:var(--amber);
  --on-label:var(--ink);
  --tag:var(--amber);
  --btn:var(--amber);
  --btn-edge:var(--amber-deep);
  --focus:var(--white);
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--bg);scroll-behavior:smooth;scroll-padding-top:110px}
body{position:relative;margin:0;min-height:100dvh;font:500 1.125rem/1.6 var(--body);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:clip}
img,video,canvas,svg{display:block;max-width:100%}
svg{flex:none}
a{color:inherit;-webkit-tap-highlight-color:transparent}
h1,h2,h3,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0;list-style:none}
/* The ring round whatever the keyboard is on: white on a dark surface, espresso on a bright sheet. */
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:12px}
::selection{background:var(--ink);color:var(--amber)}
main:focus{outline:none}

.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:fixed;left:16px;top:-90px;z-index:100;padding:14px 20px;border:3px solid var(--ink);border-radius:16px;background:var(--amber);color:var(--ink);font-weight:700;text-decoration:none;transition:top .2s}
.skip:focus{top:16px}
.wrap{position:relative;width:100%;max-width:var(--wrap);margin-inline:auto}
/* Things stuck on crooked may hang over the side of the page: they are cut there, and the page never slides sideways. */
main{overflow-x:clip}
@supports not (overflow:clip){main{overflow-x:hidden}}

/* A little grain over everything, so flat colour never looks like plastic. */
body::after{content:'';position:fixed;inset:0;z-index:90;pointer-events:none;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* ---------- the sheets: one big block of colour after another, each lying on the one before ---------- */

.sheet{position:relative;z-index:0;margin-top:calc(var(--sheet-r) * -1);padding:clamp(60px,8vw,112px) var(--gutter) calc(clamp(60px,8vw,112px) + var(--sheet-r));border-radius:var(--sheet-r) var(--sheet-r) 0 0;background:var(--surface);color:var(--on)}
/* Paw marks all over it, in the colour of its own letters. */
.sheet::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--on);opacity:.06;-webkit-mask:var(--paws) 0 0/260px 260px;mask:var(--paws) 0 0/260px 260px}
/* The first sheet of a page starts under the bar at the top. */
.sheet-first{margin-top:0;border-radius:0;padding-top:clamp(128px,18vh,190px)}
/* A sheet that only holds a page's title is shorter at the foot. */
.sheet-head{padding-bottom:calc(clamp(40px,5vw,68px) + var(--sheet-r))}
.sheet-emerald{--surface:var(--emerald);--soft:#eaf7ef}
/* On a bright sheet everything is drawn in espresso: the letters keep their white, with an espresso outline round them. */
.sheet-amber,.sheet-brick,.sheet-leaf,.sheet-orange{--on:var(--ink);--soft:var(--ink);--t-line:var(--ink);--t-edge:var(--ink);--hl-line:var(--ink);--drop:var(--ink);--pop-a:var(--ink);--pop-b:var(--ink);--pop-c:var(--ink);--tape-a:var(--white);--tape-b:var(--white);--tape-c:var(--white);--label:var(--ink);--btn:var(--white);--btn-edge:var(--ink);--focus:var(--ink)}
.sheet-amber{--surface:var(--amber);--on-label:var(--amber);--hl-fill:var(--brick);--tag:var(--brick)}
.sheet-brick{--surface:var(--brick);--on-label:var(--brick);--hl-fill:var(--amber)}
.sheet-leaf{--surface:var(--leaf);--on-label:var(--leaf);--hl-fill:var(--amber)}
.sheet-orange{--surface:var(--orange);--on-label:var(--orange);--hl-fill:var(--hazel)}
/* The amber sheets wear her coat instead of paw marks. Nothing is written straight on them: every word there is on a sticker. */
.sheet-amber::before{background:var(--coat) 0 0/300px 300px;opacity:.5;-webkit-mask:none;mask:none}

/* ---------- the big letters: fat, with an outline and an edge, like the lettering on a sticker ---------- */

.hero-name,.hero-hello,.page-title,.title,.foot-name,.oops-digit{font-family:var(--display);font-weight:400;color:var(--t-fill);-webkit-text-stroke:.085em var(--t-line);paint-order:stroke fill;text-shadow:0 .05em 0 var(--t-edge),0 .1em 0 var(--t-edge),0 .18em .2em rgba(0,0,0,.3);letter-spacing:.012em;text-wrap:balance;overflow-wrap:anywhere}
.hl,.word:first-child{color:var(--hl-fill);-webkit-text-stroke-color:var(--hl-line)}

/* ---------- the drawn icons: one set, fat outlines and flat fills ---------- */

.toy{flex:none;overflow:visible;--t1:var(--amber);--t2:var(--white);--t3:var(--brick);--t6:var(--tan);--t8:var(--leaf);--tl:var(--ink)}
.toy *{stroke:var(--tl);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.toy .t0{fill:none}
.toy .t1{fill:var(--t1)}
.toy .t2{fill:var(--t2)}
.toy .t3{fill:var(--t3)}
.toy .t4{fill:var(--tl);stroke:none}
.toy .t6{fill:var(--t6)}
.toy .t8{fill:var(--t8)}
.toy .tw{fill:none;stroke:var(--white)}
/* On a sheet of its own colour an icon would get lost: there that colour of it is white. */
.sheet-amber .toy,.tape .toy{--t1:var(--white)}
.sheet-amber .page-toy .toy{--t1:var(--amber)}
.sheet-brick .toy{--t3:var(--white)}
.sheet-leaf .toy{--t8:var(--white)}
/* A big one, cut out and stuck on like a sticker. */
.head-toy,.page-toy,.page-corner,.oops-toy{display:block;filter:var(--cut) drop-shadow(4px 5px 0 var(--ink))}
.head-toy .toy,.page-toy .toy,.page-corner .toy,.oops-toy .toy{width:100%;height:auto}
.head-toy{width:clamp(52px,7vw,72px);margin-bottom:14px;rotate:-8deg;transition:rotate .45s var(--spring),scale .45s var(--spring)}
.band-words:hover .head-toy{rotate:8deg;scale:1.08}

/* ---------- top bar and menu: each piece is its own dark pill, so it reads on any sheet ---------- */

.top{position:fixed;inset:0 0 auto 0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;pointer-events:none}
.top>*{pointer-events:auto}
.mark,.nav ul,.lang{border:2px solid var(--line);background:rgba(31,15,8,.93);-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);box-shadow:0 5px 0 rgba(0,0,0,.36)}
.mark{min-width:0;min-height:54px;display:inline-flex;align-items:center;gap:10px;padding:5px 18px 5px 10px;border-radius:999px;font:400 1.08rem/1 var(--display);letter-spacing:.02em;text-decoration:none}
.mark-paw{flex:none;rotate:-8deg;transition:rotate .35s var(--spring),scale .35s var(--spring)}
.mark:hover .mark-paw{rotate:10deg;scale:1.08}
.mark-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The brand's own logo stands by itself: a long sticker, stuck on a little crooked.
   It drops in when the page opens, and under the pointer it lifts off the page and wobbles. */
.mark.has-logo{flex:0 1 auto;min-height:0;padding:0;border:0;border-radius:14px;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;rotate:-3deg;animation:drop-in .9s .1s var(--spring) both}
.mark-logo{width:auto;height:clamp(44px,5.2vw,66px);max-width:100%;object-fit:contain;object-position:0 50%;filter:drop-shadow(0 4px 0 rgba(0,0,0,.34));transition:translate .3s var(--spring),filter .3s var(--ease)}
.mark:hover .mark-logo{translate:0 -3px;filter:drop-shadow(0 10px 5px rgba(0,0,0,.34));animation:wobble .7s var(--ease)}
.mark.has-logo:focus-visible{background:rgba(31,15,8,.93)}
@keyframes drop-in{from{opacity:0;transform:translate3d(0,-140%,0) rotate(-14deg)}}
@keyframes wobble{20%{transform:rotate(5deg)}45%{transform:rotate(-4deg)}70%{transform:rotate(2.5deg)}}

.nav ul,.lang{display:flex;gap:4px;padding:5px;border-radius:999px}
.nav a,.lang a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;color:var(--soft);font:600 1rem/1 var(--body);text-decoration:none;transition:color .2s,background-color .2s,transform .3s var(--spring)}
.nav a:hover,.lang a:hover{color:var(--white);background:rgba(255,255,255,.13)}
.nav a[aria-current]{color:var(--ink);background:var(--amber);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 var(--amber-deep);transform:translate3d(0,-2px,0) rotate(-2deg)}
.nav .toy{transition:transform .3s var(--spring)}
.nav a:hover .toy{transform:translate3d(0,-2px,0) rotate(-8deg)}
.nav a[aria-current] .toy{--t1:var(--white)}
.lang{flex:none}
.lang a{padding:0 10px;font-weight:700;font-size:.86rem;letter-spacing:.08em}
.lang a[aria-current]{color:var(--ink);background:var(--white);box-shadow:0 3px 0 var(--white-deep);transform:translate3d(0,-1px,0)}

/* On a phone the menu is a bar at the thumb. */
.nav{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:50}
.nav ul{border-radius:28px;padding:6px}
.nav li{flex:1;min-width:0}
.nav a{width:100%;flex-direction:column;gap:3px;min-height:60px;padding:6px 2px;border-radius:21px;font-size:.8rem}
.nav a[aria-current]{transform:translate3d(0,-4px,0) rotate(-2deg)}
.has-nav{--bar:calc(100px + env(safe-area-inset-bottom))}
/* What the keyboard lands on is never left under that bar: the page scrolls it clear, as it does under the bar at the top. */
@media (max-width:859px){html{scroll-padding-bottom:calc(104px + env(safe-area-inset-bottom))}}

@media (min-width:860px){
  .nav{position:static}
  .nav ul{border-radius:999px;padding:5px}
  .nav li{flex:none}
  .nav a{width:auto;flex-direction:row;min-height:46px;padding:0 18px 0 12px;border-radius:999px;font-size:1rem}
  .nav a[aria-current]{transform:translate3d(0,-2px,0) rotate(-2deg)}
  .has-nav{--bar:0px}
}

/* ---------- buttons: thick, with an edge that goes down under the finger ---------- */

.btn{--face:var(--btn);--edge:var(--btn-edge);position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:0 24px 1px 20px;border:3px solid var(--ink);border-radius:20px;background:var(--face);color:var(--ink);font:400 1.12rem/1 var(--display);letter-spacing:.03em;text-decoration:none;cursor:pointer;box-shadow:inset 0 2px 0 rgba(255,255,255,.55),0 6px 0 var(--edge),0 16px 22px -8px rgba(0,0,0,.45);transition:transform .2s var(--spring),box-shadow .2s var(--ease)}
.btn:hover{transform:translate3d(0,-3px,0);box-shadow:inset 0 2px 0 rgba(255,255,255,.55),0 9px 0 var(--edge),0 22px 26px -10px rgba(0,0,0,.5)}
.btn:active{transform:translate3d(0,4px,0);box-shadow:inset 0 2px 0 rgba(255,255,255,.55),0 2px 0 var(--edge),0 6px 10px -6px rgba(0,0,0,.45)}
.btn-ghost{--face:var(--white);--edge:var(--white-deep)}
.btn svg{transition:transform .3s var(--spring)}
.btn:hover svg{transform:translate3d(3px,0,0)}
.btn:hover .toy{transform:rotate(-10deg) scale(1.12)}
.btn[rel=prev]:hover svg{transform:translate3d(-3px,0,0)}

/* ---------- the top of the home page ---------- */

.hero{position:relative;isolation:isolate;display:grid;align-items:end;min-height:calc(100svh - var(--bar) - var(--tape) + 22px);overflow:hidden;background:var(--bg-2)}

/* Slow coloured light behind everything. With no picture it is the whole backdrop. */
.hero-glow{position:absolute;inset:-25%;z-index:-4;background:
  radial-gradient(36% 40% at 24% 70%,rgba(244,123,32,.6),transparent 70%),
  radial-gradient(32% 38% at 78% 26%,rgba(11,106,75,.85),transparent 70%),
  radial-gradient(28% 30% at 62% 82%,rgba(246,167,35,.4),transparent 70%);
  animation:glow 20s ease-in-out infinite alternate}
@keyframes glow{to{transform:translate3d(5%,-4%,0) rotate(9deg) scale(1.14)}}

.hero-media{position:absolute;inset:0;z-index:-3;transform:translate3d(var(--px,0px),var(--py,0px),0) scale(1.04);transition:transform 1s var(--ease)}
.hero-pic,.hero-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 36%}
.hero-pic{animation:drift 28s ease-in-out infinite alternate}
@keyframes drift{from{transform:scale(1)}to{transform:scale(1.12) translate3d(-1.5%,-1.5%,0)}}
.hero-film{opacity:0;transition:opacity 1.4s ease}
.hero-film.is-playing{opacity:1}

.hero-shade{position:absolute;inset:0;z-index:-2;background:
  linear-gradient(180deg,rgba(31,15,8,.45) 0,rgba(31,15,8,0) 22%,rgba(31,15,8,.1) 44%,rgba(31,15,8,.92) 100%),
  linear-gradient(90deg,rgba(31,15,8,.5),rgba(31,15,8,0) 62%)}

/* A beam of warm light that wanders across the picture, like sun through a window. */
.hero-light{position:absolute;inset:-10% -45%;z-index:-1;pointer-events:none;mix-blend-mode:screen;background:linear-gradient(112deg,transparent 38%,rgba(255,176,102,.22) 46%,rgba(255,232,190,.1) 51%,transparent 60%);animation:sweep 14s ease-in-out infinite alternate}
@keyframes sweep{from{transform:translate3d(-13%,0,0)}to{transform:translate3d(13%,0,0)}}

/* Dust in that light, drawn by character.js. */
.hero-dust{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}

.hero-body{--top:132px;position:relative;width:100%;max-width:calc(var(--wrap) + 2 * var(--gutter));margin-inline:auto;padding:var(--top) var(--gutter) clamp(52px,8vh,96px)}
/* Her name on her channel, as a label stuck on at an angle. */
.chip{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 16px 0 10px;border:3px solid var(--ink);border-radius:16px;background:var(--white);color:var(--ink);font:600 1rem/1 var(--body);text-decoration:none;rotate:-3deg;box-shadow:4px 5px 0 var(--amber);transition:rotate .35s var(--spring),scale .35s var(--spring);animation:pop .7s var(--spring) both}
.chip:hover{rotate:1deg;scale:1.05}
.hero-hello{width:fit-content;margin-top:24px;font-size:clamp(1.5rem,3.2vw,2.6rem);line-height:1.1;--t-line:var(--ink);--t-edge:var(--ink);rotate:-2.5deg;transform-origin:0 100%;animation:pop .7s .06s var(--spring) both}
/* On a phone her name takes two lines under the film. On a wide screen it fits on one, so it stays off her face. */
.hero-name{margin-top:8px;font-size:clamp(2.6rem,13.2vw,5.4rem);line-height:1.04;word-spacing:.03em}
.is-long .hero-name{font-size:clamp(2.1rem,10vw,4.4rem)}
@media (min-width:860px){
  .hero-name{font-size:clamp(3.6rem,7.4vw,6.7rem)}
  .is-long .hero-name{font-size:clamp(3rem,5.8vw,5.4rem)}
}
/* Each word jumps in, and the first one is the gold of her coat. */
.word{display:inline-block}
.word>span{display:inline-block;transform-origin:50% 100%;animation:pop .8s var(--spring) both}
.word:nth-child(1)>span{animation-delay:.12s}
.word:nth-child(2)>span{animation-delay:.2s}
.word:nth-child(3)>span{animation-delay:.28s}
.word:nth-child(4)>span{animation-delay:.36s}
.word:nth-child(5)>span{animation-delay:.44s}
.word:nth-child(n+6)>span{animation-delay:.52s}
@keyframes pop{from{opacity:0;transform:translate3d(0,46%,0) scale(.6) rotate(-7deg)}55%{opacity:1}}
.hero-line{max-width:40ch;margin-top:24px;font:600 clamp(1.16rem,1.7vw,1.5rem)/1.4 var(--body);text-shadow:0 2px 14px rgba(0,0,0,.65);text-wrap:pretty;animation:fade .9s .5s var(--ease) both}
.hero-acts{display:flex;flex-wrap:wrap;gap:20px 14px;margin-top:28px;padding-bottom:6px;animation:fade .9s .62s var(--ease) both}
/* An amber button keeps its icon readable: the amber parts of it turn white. */
.hero-acts .btn-solid .toy{--t1:var(--white)}
@keyframes fade{from{opacity:0;transform:translate3d(0,16px,0)}}

/* On a phone or an upright tablet the film keeps the top of the screen to itself, so nothing is written over her face:
   her name starts on its lower edge and the rest follows on the table below. */
@media (max-width:859px){
  /* As tall as the screen allows with her name and the first button still in view. */
  .hero{--film:clamp(340px,calc(100vh - 430px),480px)}
  .hero-media,.hero-shade{inset:0 0 auto;height:var(--film)}
  .hero-light{inset:0 -45% auto;height:var(--film)}
  /* The film melts into the light behind it: no edge. */
  .hero-media,.hero-light{-webkit-mask-image:linear-gradient(180deg,#000 56%,transparent);mask-image:linear-gradient(180deg,#000 56%,transparent)}
  .hero-shade{background:linear-gradient(180deg,rgba(31,15,8,.45) 0,rgba(31,15,8,0) 28%)}
  .hero-body{--top:calc(var(--film) - 122px)}
  .is-bare .hero-body{--top:132px}
  @supports (height:1svh){.hero{--film:clamp(340px,calc(100svh - 430px),480px)}}
}

/* A round sticker in the corner that keeps turning: the one spark of lime on the page. */
.hero-spin{position:absolute;right:var(--gutter);bottom:clamp(34px,6vh,84px);width:84px;rotate:12deg;pointer-events:none;filter:drop-shadow(0 10px 12px rgba(0,0,0,.5));animation:pop .8s .8s var(--spring) both}
@media (min-width:560px){.hero-spin{width:clamp(120px,13vw,176px)}}
/* With no buttons under her name there is no room beside it on a phone: the sticker goes above it. */
@media (max-width:559px){.hero-body:not(:has(.hero-acts)) .hero-spin{bottom:auto;top:calc(var(--top) - 104px)}}
.spin{width:100%;height:auto}
.spin-cut{fill:var(--ink)}
.spin-disc{fill:var(--spin,var(--lime))}
.spin-turn{transform-box:view-box;transform-origin:50% 50%;animation:turn 22s linear infinite}
.spin-words{fill:var(--ink);font:400 19px/1 var(--display);letter-spacing:.03em}
.spin-paw{fill:var(--ink)}
@keyframes turn{to{transform:rotate(360deg)}}

/* Her name on a strip of tape that never stops, stuck on a little crooked, with her toys riding along. */
.tape{position:relative;z-index:3;height:var(--tape);margin-top:-22px;overflow:hidden;border-block:3px solid var(--ink);background:var(--amber);color:var(--ink);rotate:-1.4deg;scale:1.04 1;box-shadow:0 8px 0 rgba(0,0,0,.28)}
.tape-track{display:flex;width:max-content;animation:tape 80s linear infinite}
.tape span{flex:none;display:inline-flex;align-items:center;gap:22px;height:calc(var(--tape) - 6px);padding-left:22px;font:400 1.16rem/1 var(--display);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.tape .toy{rotate:-10deg}
.tape span:nth-child(even) .toy{rotate:12deg}
@keyframes tape{to{transform:translate3d(-50%,0,0)}}
/* The sheet after the tape goes a little way under it, so no gap shows where the tape tips up. */
.tape+.sheet{margin-top:-30px;border-radius:0;padding-top:calc(clamp(60px,8vw,112px) + 30px)}

/* ---------- what lies on a sheet ---------- */

.band-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px 32px;flex-wrap:wrap;margin-bottom:clamp(36px,4.5vw,60px)}
.band-words{min-width:0;display:grid;justify-items:start}
.title{font-size:clamp(2.2rem,6vw,4.3rem);line-height:1.1}
/* A line in her own voice, on a label. */
.wink{margin-top:20px;padding:8px 15px 9px;border:3px solid var(--ink);border-radius:14px;background:var(--label);color:var(--on-label);font:600 1.02rem/1.25 var(--body);rotate:-1.6deg;box-shadow:3px 4px 0 var(--ink)}
/* A small button to the side of a heading. */
.more{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 20px 1px;border:3px solid var(--ink);border-radius:17px;background:var(--amber);color:var(--ink);font:400 1.04rem/1 var(--display);letter-spacing:.03em;text-decoration:none;box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 5px 0 var(--amber-deep);transition:transform .2s var(--spring),box-shadow .2s var(--ease),rotate .35s var(--spring)}
.more svg{transition:transform .3s var(--spring)}
.more:hover{transform:translate3d(0,-2px,0);rotate:-2deg;box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 7px 0 var(--amber-deep)}
.more:active{transform:translate3d(0,3px,0);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 2px 0 var(--amber-deep)}
.more:hover svg{transform:translate3d(4px,0,0)}

/* A print: a picture in a white edge with an espresso line round it, stuck down a little crooked with a strip of tape,
   with a block of colour behind it. It straightens up under the pointer.
   The home page's pictures, the story's and the gallery's cards are all prints. */
.shot,.print,.post{--pop:var(--pop-a);--strip:var(--tape-a);--tilt:-2deg;position:relative;border:3px solid var(--ink);background:var(--white);rotate:var(--tilt);box-shadow:7px 9px 0 var(--pop),0 28px 34px -18px rgba(0,0,0,.55);transition:rotate .45s var(--spring),translate .45s var(--spring),box-shadow .3s var(--ease)}
.shot::before,.print::before,.post::before{content:'';position:absolute;z-index:2;left:50%;top:-14px;width:82px;height:26px;translate:-50% 0;rotate:-5deg;background:var(--strip);clip-path:polygon(0 0,4% 25%,0 50%,4% 75%,0 100%,100% 100%,96% 75%,100% 50%,96% 25%,100% 0);filter:drop-shadow(0 2px 0 rgba(31,15,8,.55))}
.shot:nth-child(3n+2),.post:nth-child(3n+2){--pop:var(--pop-b);--strip:var(--tape-b);--tilt:1.7deg}
.shot:nth-child(3n),.post:nth-child(3n){--pop:var(--pop-c);--strip:var(--tape-c);--tilt:-1deg}
.shot:nth-child(even)::before,.post:nth-child(even)::before,.print:nth-child(even)::before{rotate:4deg}
.shot:hover,.shot:focus-within,.print:hover,.print:focus-within,.post:hover,.post:focus-within{z-index:3;rotate:0deg;translate:0 -7px;box-shadow:10px 13px 0 var(--pop),0 38px 40px -18px rgba(0,0,0,.6)}

.shot,.print{aspect-ratio:4/5;padding:7px;border-radius:var(--r)}
.shot a,.print a{display:block;width:100%;height:100%;border-radius:13px;overflow:hidden;background:var(--ink-2)}
.shot img,.print img{width:100%;height:100%;object-fit:cover;transition:scale .8s var(--ease)}
.shot:hover img,.print:hover img{scale:1.06}
@supports selector(:has(a)){
  .shot a:focus-visible,.print a:focus-visible{outline:none}
  .shot:has(a:focus-visible),.print:has(a:focus-visible){outline:3px solid var(--focus);outline-offset:5px}
}

/* Pictures. Two across on a phone, the first one wide when their number is odd. */
.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(26px,3vw,40px) clamp(18px,2.6vw,34px);padding-block:12px}
.shot:first-child:nth-last-child(odd){grid-column:1/-1}

@media (min-width:860px){
  .shots-wide{grid-template-columns:repeat(12,minmax(0,1fr))}
  .shots-wide .shot,.shots-wide .shot:first-child{grid-column:span 6}
  .shots-wide[data-count="3"] .shot{grid-column:span 4}
  .shots-wide[data-count="4"] .shot{grid-column:span 3}
  /* Five: one large picture and four around it. */
  .shots-wide[data-count="5"] .shot{grid-column:span 3}
  .shots-wide[data-count="5"] .shot:first-child{grid-column:span 6;grid-row:span 2;aspect-ratio:auto;--tilt:-1.2deg}
}

/* Paw marks walking onto a sheet. They land one after the other as the page scrolls to them. */
.trail{display:flex;justify-content:center;gap:clamp(12px,3.2vw,38px);margin-bottom:clamp(40px,6vw,76px)}
.trail span{flex:none;width:clamp(26px,3.6vw,44px);aspect-ratio:1;background:var(--pop-a);-webkit-mask:var(--paw) center/contain no-repeat;mask:var(--paw) center/contain no-repeat;opacity:.8;rotate:76deg;translate:0 -12px}
.trail span:nth-child(even){rotate:104deg;translate:0 12px}
.trail span:nth-child(3n+2){background:var(--pop-b)}
.trail span:nth-child(3n){background:var(--pop-c)}

/* How her story begins, told by her badge. */
.teaser{display:grid;gap:clamp(22px,4vw,72px);align-items:center}
/* The badge (or the drawn cat), as big as a sticker gets. Under the pointer it peels up off the sheet. */
.crest{width:clamp(170px,48vw,230px);rotate:-7deg;transition:rotate .5s var(--spring),translate .5s var(--spring)}
.crest:hover{rotate:4deg;translate:0 -8px}
.crest-pic{width:100%;height:auto;filter:var(--cut) drop-shadow(7px 9px 0 var(--ink));transition:filter .4s var(--ease)}
.crest:hover .crest-pic{filter:var(--cut) drop-shadow(12px 18px 0 rgba(31,15,8,.55))}
.teaser-words{min-width:0;display:grid;justify-items:start;gap:clamp(24px,3vw,34px)}
.teaser .teaser-says{max-width:min(100%,56ch);font-size:clamp(1.12rem,1.5vw,1.34rem)}
.teaser-act{padding-bottom:6px}
@media (min-width:860px){
  .teaser{grid-template-columns:auto minmax(0,1fr)}
  .crest{width:clamp(260px,27vw,370px)}
  /* She is beside the words now, so what she says points sideways at her. */
  .teaser .teaser-says::before{left:-13px;top:26px;rotate:-45deg}
}

/* ---------- where to follow ---------- */

.ways-wrap{margin-top:clamp(44px,5.5vw,76px)}
.ways{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:clamp(24px,2.4vw,32px) clamp(18px,2.2vw,28px);padding-bottom:12px}
.ways li{--face:var(--amber);--edge:var(--amber-deep);--on-face:var(--ink);--tilt:-1.4deg}
.ways li:nth-child(3n+2){--face:var(--brick);--edge:var(--brick-deep);--tilt:1.2deg}
.ways li:nth-child(3n){--face:var(--leaf);--edge:var(--leaf-deep);--tilt:-.8deg}
/* On a bright sheet the first door is the dark one, and no door is the colour of the sheet it stands on. */
.sheet-brick .ways li:nth-child(3n+1),.sheet-leaf .ways li:nth-child(3n+1),.sheet-orange .ways li:nth-child(3n+1),.sheet-amber .ways li:nth-child(3n+1){--face:var(--bg-2);--edge:#000;--on-face:var(--white)}
.sheet-brick .ways li:nth-child(3n+2){--face:var(--amber);--edge:var(--amber-deep)}
.sheet-brick .ways li:nth-child(3n){--face:var(--leaf);--edge:var(--leaf-deep)}
.sheet-leaf .ways li:nth-child(3n+2){--face:var(--amber);--edge:var(--amber-deep)}
.sheet-leaf .ways li:nth-child(3n){--face:var(--brick);--edge:var(--brick-deep)}
/* A door: one big block of colour to press. */
.way{position:relative;isolation:isolate;height:100%;min-height:214px;display:grid;grid-template-columns:1fr auto;align-content:space-between;gap:36px 16px;padding:clamp(20px,2.6vw,30px);border:3px solid var(--ink);border-radius:30px;background:var(--face);color:var(--on-face);text-decoration:none;overflow:hidden;rotate:var(--tilt);box-shadow:inset 0 3px 0 rgba(255,255,255,.4),0 8px 0 var(--edge),0 30px 34px -18px rgba(0,0,0,.5);transition:rotate .45s var(--spring),translate .3s var(--spring),box-shadow .25s var(--ease)}
/* A paw pressed into it. */
.way::before{content:'';position:absolute;z-index:-1;right:-30px;bottom:-44px;width:190px;aspect-ratio:1;background:var(--on-face);opacity:.1;-webkit-mask:var(--paw) center/contain no-repeat;mask:var(--paw) center/contain no-repeat;rotate:-24deg;transition:scale .5s var(--spring),rotate .5s var(--spring)}
/* A shine that follows the pointer (character.js sets where). */
.way::after{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(300px circle at var(--mx,30%) var(--my,0%),rgba(255,255,255,.42),transparent 62%);opacity:0;transition:opacity .35s}
.way:hover,.way:focus-visible{rotate:0deg;translate:0 -6px;box-shadow:inset 0 3px 0 rgba(255,255,255,.4),0 12px 0 var(--edge),0 40px 40px -20px rgba(0,0,0,.55)}
.way:hover::before,.way:focus-visible::before{scale:1.16;rotate:-8deg}
.way:hover::after{opacity:1}
.way:active{translate:0 5px;box-shadow:inset 0 3px 0 rgba(255,255,255,.4),0 2px 0 var(--edge),0 10px 14px -10px rgba(0,0,0,.45)}
.way:focus-visible{outline-offset:4px}
/* The channel's own mark, drawn in the set and cut out like a sticker. */
.way-ico{width:60px;rotate:-6deg;filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);transition:rotate .45s var(--spring),scale .45s var(--spring)}
.way-ico .toy{width:100%;height:auto;--t3:var(--brick);--t8:var(--leaf)}
.way:hover .way-ico{rotate:6deg;scale:1.08}
.way-go{width:46px;height:46px;display:grid;place-items:center;border:3px solid var(--ink);border-radius:50%;background:var(--white);color:var(--ink);transition:rotate .45s var(--spring),scale .45s var(--spring)}
.way:hover .way-go,.way:focus-visible .way-go{rotate:45deg;scale:1.12}
.way-text{grid-column:1/-1;min-width:0;display:grid;gap:6px}
.way-kind{font:700 .84rem/1.2 var(--body);letter-spacing:.14em;text-transform:uppercase}
.way-name{font:400 clamp(1.4rem,2.3vw,1.9rem)/1.12 var(--display);letter-spacing:.02em;overflow-wrap:anywhere}
.way-name.is-long{font-size:clamp(1.08rem,1.6vw,1.34rem)}

/* ---------- inner pages ---------- */

.page-head{display:grid;justify-items:start}
.page-title{font-size:clamp(2.7rem,8.4vw,6.2rem);line-height:1.08}
.page-gallery .page-title{font-size:clamp(4rem,12vw,8rem)}
/* The picture of a page: one drawn icon, big, stuck beside its title. On a phone it sits above the title. */
.page-toy{width:clamp(96px,26vw,124px);margin-bottom:18px;rotate:7deg;transition:rotate .5s var(--spring),scale .5s var(--spring)}
.page-toy:hover{rotate:-4deg;scale:1.05}
@media (min-width:860px){
  .page-toy{position:absolute;right:clamp(0px,3vw,48px);top:50%;width:clamp(180px,19vw,260px);margin:0;translate:0 -50%}
  .story-head,.page-head{padding-right:clamp(200px,24vw,330px)}
}
/* The name above a title, on a label. */
.eyebrow{width:fit-content;display:flex;align-items:center;gap:9px;min-height:38px;padding:0 14px 1px;border:3px solid var(--ink);border-radius:13px;background:var(--label);color:var(--on-label);font:700 .84rem/1.2 var(--body);letter-spacing:.1em;text-transform:uppercase;rotate:-2.5deg;box-shadow:3px 4px 0 var(--drop)}
.eyebrow::before{content:'';flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--paw) center/contain no-repeat;mask:var(--paw) center/contain no-repeat}
.eyebrow+.page-title{margin-top:20px}
.lede{max-width:52ch;margin-top:24px;font:500 clamp(1.16rem,1.7vw,1.44rem)/1.5 var(--body);color:var(--soft);text-wrap:pretty}
/* Something she says. */
.bubble{position:relative;width:fit-content;max-width:min(100%,36ch);padding:14px 22px 16px;border:3px solid var(--ink);border-radius:26px;background:var(--white);color:var(--ink);font-weight:600;line-height:1.35;rotate:-1.2deg;box-shadow:6px 7px 0 var(--drop)}
.bubble::before{content:'';position:absolute;left:38px;top:-13px;width:22px;height:22px;border:3px solid var(--ink);border-width:3px 0 0 3px;border-radius:5px 0 0 0;background:var(--white);rotate:45deg}
.count{display:flex;align-items:center;gap:8px;margin-top:24px;padding:7px 18px 8px 12px;border:3px solid var(--ink);border-radius:999px;background:var(--white);color:var(--ink);font:400 1.08rem/1 var(--display);letter-spacing:.03em;rotate:1.8deg;box-shadow:3px 4px 0 var(--drop)}
.count .toy{--t1:var(--amber)}

/* Story */
.story-head{display:grid;justify-items:start;gap:clamp(32px,4vw,46px)}
.story-head .page-toy{margin-bottom:-14px}
.story-notes{display:flex;flex-wrap:wrap;align-items:flex-start;gap:30px clamp(26px,4vw,60px)}
.story-notes .lede{margin-top:0}
.facts{min-width:0}
/* What she posts about, on a tag with a hole for the string. */
.fact{position:relative;display:grid;gap:5px;max-width:34ch;padding:13px 24px 16px 56px;border:3px solid var(--ink);border-radius:20px;background:var(--tag);color:var(--ink);rotate:1.6deg;box-shadow:5px 6px 0 var(--drop)}
.fact::before{content:'';position:absolute;left:18px;top:50%;width:20px;height:20px;translate:0 -50%;border:3px solid var(--ink);border-radius:50%;background:var(--surface)}
.fact dt{font:700 .82rem/1.2 var(--body);letter-spacing:.14em;text-transform:uppercase}
.fact dd{font:400 clamp(1.2rem,2.1vw,1.56rem)/1.2 var(--display);letter-spacing:.02em;text-wrap:balance;overflow-wrap:anywhere}

/* The story is a scrapbook: a white page of words, then the prints taped beside it, then the other way round. */
.story-book{display:grid;gap:clamp(48px,6vw,88px)}
.spread{position:relative;display:grid;align-items:center}
/* The page the words are written on. */
.story-text{--pad:clamp(22px,3.6vw,52px);position:relative;display:grid;gap:1.1em;padding:var(--pad);border:3px solid var(--ink);border-radius:clamp(26px,3vw,38px);background:var(--white);color:var(--ink-2);box-shadow:8px 10px 0 var(--amber);font-size:clamp(1.14rem,1.34vw,1.28rem);line-height:1.7;text-wrap:pretty}
.spread:nth-child(3n+2) .story-text{box-shadow:8px 10px 0 var(--brick)}
.spread:nth-child(3n) .story-text{box-shadow:8px 10px 0 var(--leaf)}
.story-text p{max-width:62ch}
/* One of her toys, left on the corner of the page. */
.page-corner{position:absolute;left:-14px;top:-30px;width:clamp(48px,6vw,64px);rotate:-12deg}
.spread:nth-child(even) .page-corner{left:auto;right:-14px;rotate:12deg}
.prints{position:relative;z-index:1}
/* On a phone the prints hang from the foot of the page, to one side and then the other. */
.story-text:not(:only-child){padding-bottom:calc(var(--pad) + 38px)}
.story-text+.prints{justify-content:flex-end;margin-top:-40px}
.spread:nth-child(even) .story-text+.prints{justify-content:flex-start}
/* On a wide screen they lie over its side: right, then left, then right. */
@media (min-width:900px){
  .spread{grid-template-columns:minmax(0,1.32fr) minmax(0,.68fr)}
  .spread:nth-child(even){grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr)}
  .story-text+.prints,.spread:nth-child(even) .story-text+.prints{justify-content:center;margin-top:0}
  .story-text+.prints{margin-left:-64px}
  .story-text:not(:only-child){padding-bottom:var(--pad);padding-right:calc(var(--pad) + 56px)}
  .spread:nth-child(even) .story-text{order:2}
  .spread:nth-child(even) .story-text:not(:only-child){padding-right:var(--pad);padding-left:calc(var(--pad) + 56px)}
  .spread:nth-child(even) .story-text+.prints{margin-left:0;margin-right:-64px}
  .is-plain .spread,.is-wordless .spread{grid-template-columns:minmax(0,1fr)}
}
.spread:first-child .story-text p:first-child{font-size:1.14em;font-weight:600;line-height:1.6;color:var(--ink)}
/* The first letter is a block you could pick up. */
.spread:first-child .story-text p:first-child::first-letter{float:left;margin:.1em .16em 0 0;padding:.12em .2em .16em;border-radius:.2em;background:var(--amber);color:var(--ink);font:400 2.9em/.86 var(--display);box-shadow:.05em .07em 0 var(--ink)}

.prints{display:flex;justify-content:center;align-items:center;padding:16px 10px 22px}
.print{flex:0 1 min(72%,350px);--tilt:3deg;--pop:var(--brick);--strip:var(--brick)}
.spread:nth-child(even) .print{--tilt:-3deg;--pop:var(--leaf);--strip:var(--leaf)}
.spread:nth-child(3n) .print{--pop:var(--amber);--strip:var(--amber)}
/* Two or three prints lie on top of each other, fanned out. */
.prints:not([data-count="1"]) .print{flex-basis:min(58%,300px)}
.prints[data-count="3"] .print{flex-basis:min(46%,260px)}
.prints .print+.print{margin-left:-16%;--tilt:-5deg;--pop:var(--leaf);--strip:var(--leaf);translate:0 26px}
.prints .print:nth-child(3){--tilt:7deg;--pop:var(--amber);--strip:var(--amber);translate:0 -16px}
.prints .print+.print:hover,.prints .print+.print:focus-within{translate:0 -7px}
.is-wordless .prints .print+.print{margin-left:-6%}

.story-end{width:fit-content;display:flex;align-items:center;gap:12px;margin:clamp(56px,7vw,92px) auto 0;padding:9px 24px 11px 16px;border:3px solid var(--ink);border-radius:999px;background:var(--amber);color:var(--ink);font:400 clamp(1.2rem,2.2vw,1.56rem)/1 var(--display);letter-spacing:.03em;rotate:-2.5deg;box-shadow:5px 6px 0 var(--ink)}
.story-end .toy{--t1:var(--white);rotate:-14deg}
/* her channels under "The end": two sticker buttons, side by side, stacked on a narrow phone */
.story-follow{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 18px;margin:clamp(30px,4vw,44px) auto 0;padding:0;list-style:none}
.story-follow .btn{padding-left:14px}
.story-follow .toy{flex:none}
@media (max-width:420px){.story-follow li,.story-follow .btn{width:100%}}

/* Gallery: every post is a print with its words written under the picture. */
.posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:clamp(38px,3.6vw,48px) clamp(24px,2.8vw,36px);padding-bottom:12px}
.post{--tilt:-.9deg;padding:8px;border-radius:26px;color:var(--ink);scroll-margin-top:116px}
.post:nth-child(3n+2){--tilt:.8deg}
.post:nth-child(3n){--tilt:-.4deg}
.post:target{outline:4px solid var(--white);outline-offset:8px;animation:wiggle .9s .35s var(--spring)}
@keyframes wiggle{30%{rotate:-3deg}60%{rotate:2.4deg}}
.post figure{height:100%;display:flex;flex-direction:column}
.post-pic{aspect-ratio:4/5;border-radius:15px;overflow:hidden;background:var(--ink-2)}
.post-pic img{width:100%;height:100%;object-fit:cover;transition:scale .8s var(--ease)}
.post:hover .post-pic img{scale:1.05}
.post-body{position:relative;flex:1;display:flex;flex-direction:column;gap:8px;padding:28px 12px 4px}
/* The date, stamped over the corner of the picture. */
.post-date{position:absolute;left:8px;top:-17px;padding:6px 12px 7px;border:3px solid var(--ink);border-radius:11px;background:var(--pop);color:var(--ink);font:700 .8rem/1 var(--body);letter-spacing:.08em;text-transform:uppercase;rotate:-3deg}
.post-text{color:var(--ink-2);font-size:1.04rem;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6;overflow:hidden}
.post-link{align-self:flex-start;margin-top:auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--emerald);font-weight:700;font-size:1rem;text-decoration:none}
.post-link:focus-visible{outline-color:var(--ink)}
.post-link span:first-of-type{background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat;transition:background-size .3s var(--ease)}
.post-link:hover span:first-of-type{background-size:100% 2px}
.post-link svg{transition:transform .3s var(--spring)}
.post-link:hover svg:last-of-type{transform:translate3d(2px,-2px,0) scale(1.1)}
.post-link:hover .toy{transform:rotate(-10deg) scale(1.1)}
.pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;margin-top:clamp(52px,6vw,80px);padding-bottom:8px}
.pager>:last-child{justify-self:end}
.pager>:first-child{justify-self:start}
.pager-now{padding:10px 18px 11px;border:3px solid var(--ink);border-radius:999px;background:var(--amber);color:var(--ink);font-weight:600;font-size:1rem;line-height:1.2;text-align:center}
@media (max-width:519px){
  .pager{grid-template-columns:1fr 1fr}
  .pager-now{grid-column:1/-1;grid-row:1;justify-self:center}
}

/* Follow: an invitation */
.invite{position:relative;display:grid;gap:clamp(32px,5vw,72px);align-items:center}
/* A ticket, with a bite out of each end. */
.ticket{position:relative;isolation:isolate;width:fit-content;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 24px 1px 18px;color:var(--amber);font:400 1rem/1 var(--display);letter-spacing:.05em;text-transform:uppercase;rotate:-3deg;filter:drop-shadow(3px 4px 0 rgba(31,15,8,.35))}
.ticket::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:9px;background:var(--ink);-webkit-mask:radial-gradient(circle 9px at 0 50%,transparent 97%,#000) 0 0/51% 100% no-repeat,radial-gradient(circle 9px at 100% 50%,transparent 97%,#000) 100% 0/51% 100% no-repeat;mask:radial-gradient(circle 9px at 0 50%,transparent 97%,#000) 0 0/51% 100% no-repeat,radial-gradient(circle 9px at 100% 50%,transparent 97%,#000) 100% 0/51% 100% no-repeat}
.ticket+.page-title{margin-top:22px}
/* Beside her picture on a phone, a long ticket folds onto two lines and never runs under it. */
.has-face .ticket{max-width:calc(100% - 110px);padding-block:8px 10px;line-height:1.15}
@media (min-width:860px){.has-face .ticket{max-width:none}}
.invite-line{margin-top:28px;font:400 clamp(1.24rem,2.2vw,1.7rem)/1.25 var(--display);letter-spacing:.02em;text-wrap:balance}
/* Her picture, cut round like a sticker. On a phone it sits small beside the ticket. */
.face{--spin:var(--amber);position:absolute;right:0;top:-40px;width:100px;aspect-ratio:1;rotate:6deg}
.face-pic{width:100%;height:100%;object-fit:cover;object-position:50% 36%;border-radius:50%;border:3px solid var(--ink);outline:5px solid var(--white);outline-offset:-8px;background:var(--ink-2);box-shadow:5px 6px 0 var(--ink)}
.face-spin{display:none}
@media (min-width:860px){
  .invite.has-face{grid-template-columns:minmax(0,1fr) auto}
  .face{position:relative;right:auto;top:auto;width:clamp(240px,26vw,340px);margin-right:clamp(10px,3vw,48px);rotate:4deg}
  .face-pic{outline-width:9px;outline-offset:-12px;box-shadow:9px 11px 0 var(--ink)}
  .face-spin{display:block;position:absolute;right:-12%;bottom:-10%;width:46%;rotate:-14deg;filter:drop-shadow(4px 5px 0 rgba(31,15,8,.35))}
}
.page-follow .way{min-height:clamp(214px,22vw,270px)}

/* Page not found */
.missing{min-height:100svh;display:grid;align-items:center}
.missing.sheet-first{padding-top:clamp(104px,15vh,180px)}
.missing-in{display:grid;gap:clamp(24px,5vw,80px);align-items:center}
@media (min-width:900px){.missing-in{grid-template-columns:auto minmax(0,1fr)}}
/* 4, her badge, and a 4 that somebody has pushed over, with the toys she was playing with lying about. */
.oops{position:relative;display:flex;align-items:center;justify-content:center;gap:clamp(2px,1vw,12px);font-size:clamp(6.6rem,28vw,13.5rem);line-height:.9;rotate:-4deg}
.oops-digit{-webkit-text-stroke-width:.06em}
.oops-digit~.oops-digit{color:var(--amber);rotate:16deg;translate:.04em .1em;transform-origin:20% 100%;animation:knock 5s 1.2s var(--spring) infinite}
@keyframes knock{0%,74%,100%{transform:none}80%{transform:rotate(-13deg)}86%{transform:rotate(4deg)}92%{transform:rotate(-2deg)}}
.oops-cat{flex:none;width:clamp(124px,30vw,250px);margin-inline:.02em;animation:bob 3.6s ease-in-out infinite}
/* Her badge turns in like a seal when the page opens. */
.oops-cat .crest-pic{animation:seal 1.3s .15s var(--spring) both}
@keyframes bob{50%{transform:translate3d(0,-7px,0) rotate(2deg)}}
@keyframes seal{from{opacity:0;transform:rotate(-220deg) scale(.3)}}
.oops-toy{position:absolute;width:clamp(40px,7vw,72px)}
.oops-toy:nth-of-type(4){left:2%;bottom:-16%;rotate:-14deg}
.oops-toy:nth-of-type(5){right:4%;top:-14%;rotate:18deg}
.oops-toy:nth-of-type(6){right:18%;bottom:-20%;rotate:10deg}
.missing-words{display:grid;justify-items:start}
.missing .bubble{margin-top:26px}
.missing .lede+.lede{margin-top:20px}
.missing-act{margin-top:28px;padding-bottom:6px}

/* The two pages of the foot (privacy, accessibility): written notes, one under the other. */
.page-words .page-title{font-size:clamp(2.1rem,8.4vw,5.6rem)}
.notes{display:grid;gap:clamp(30px,3.6vw,46px)}
/* A note: a white page of words, like the story's. */
.note{--pad:clamp(22px,3.6vw,48px);display:grid;gap:.9em;max-width:920px;padding:var(--pad);border:3px solid var(--ink);border-radius:clamp(26px,3vw,38px);background:var(--white);color:var(--ink-2);box-shadow:8px 10px 0 var(--amber);font-size:clamp(1.08rem,1.3vw,1.2rem);line-height:1.65;text-wrap:pretty}
.note:nth-child(3n+2){box-shadow:8px 10px 0 var(--brick)}
.note:nth-child(3n){box-shadow:8px 10px 0 var(--leaf)}
.note h2{font:400 clamp(1.44rem,2.6vw,1.9rem)/1.15 var(--display);letter-spacing:.02em;color:var(--ink);text-wrap:balance;overflow-wrap:anywhere}
.note p,.note li{max-width:68ch;overflow-wrap:anywhere}
.note ul{display:grid;gap:.6em}
/* Each line of a list starts with a paw. */
.note li{position:relative;padding-left:1.8em}
.note li::before{content:'';position:absolute;left:0;top:.28em;width:1.1em;height:1.1em;background:var(--amber-deep);-webkit-mask:var(--paw) center/contain no-repeat;mask:var(--paw) center/contain no-repeat}
.note-act{padding:8px 0 6px}
.note .btn:focus-visible{outline-color:var(--ink)}

/* The drawn cat, for a site with no badge of its own. Her eyes follow the pointer (character.js), and she blinks. */
.cat{width:100%;height:auto}
.cat-cut{fill:var(--white);stroke:var(--white);stroke-width:14;stroke-linejoin:round}
.cat-fur{fill:var(--amber)}
.cat-ear,.cat-nose{fill:var(--brick)}
.cat-marks{fill:none;stroke:var(--ink);stroke-width:8;stroke-linecap:round}
.cat-eye{transform-box:fill-box;transform-origin:50% 50%;animation:blink 5.4s infinite}
.cat-eye+.cat-eye{animation-delay:.04s}
.cat-iris{fill:var(--leaf);stroke:var(--ink);stroke-width:5}
.cat-look{transform:translate(calc(var(--ex,0) * 1px),calc(var(--ey,0) * 1px));transition:transform .14s ease-out}
.cat-pupil{fill:var(--ink)}
.cat-glint,.cat-muzzle{fill:var(--white)}
.cat-mouth{fill:none;stroke:var(--ink);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.cat-whiskers{fill:none;stroke:var(--white);stroke-width:3.5;stroke-linecap:round}
@keyframes blink{0%,45%,51%,100%{transform:scaleY(1)}48%{transform:scaleY(.06)}}

/* ---------- foot: the last sheet, the espresso one ---------- */

.foot{position:relative;z-index:1;margin-top:calc(var(--sheet-r) * -1);border-radius:var(--sheet-r) var(--sheet-r) 0 0;background:var(--bg);overflow-x:clip;padding:clamp(52px,6.5vw,84px) var(--gutter) calc(clamp(40px,6vw,72px) + var(--bar))}
/* A home page with nothing under the tape yet: the foot follows the tape, square. */
body:has(main>.tape:last-child) .foot{margin-top:0;border-radius:0}
/* Her badge is stamped like a seal, half on the foot and half on the sheet above it. */
.foot-seal{position:absolute;right:clamp(18px,7vw,120px);top:0;width:clamp(108px,12.5vw,170px);translate:0 -32%;rotate:7deg;transition:rotate .5s var(--spring),translate .5s var(--spring)}
.foot-badge{width:100%;height:auto;filter:var(--cut) drop-shadow(5px 7px 0 rgba(0,0,0,.4))}
.foot:hover .foot-seal{rotate:-4deg;translate:0 -36%}
.foot.has-badge{padding-top:clamp(84px,9vw,104px)}
/* With no badge, the drawn cat looks over its edge. */
.foot-peek{position:absolute;right:clamp(22px,9vw,150px);bottom:100%;width:clamp(104px,13vw,152px);margin-bottom:calc(var(--sheet-r) * -.28);overflow:hidden}
.foot-peek .cat{translate:0 12%;transition:translate .6s var(--spring)}
.foot:hover .foot-peek .cat{translate:0 0}
.page-missing .foot-peek,.page-missing .foot-seal{display:none}
.page-missing .foot.has-badge{padding-top:clamp(52px,6.5vw,84px)}
.foot-in{display:grid;gap:28px}
.foot-name{font-size:clamp(1.8rem,4.4vw,2.8rem);line-height:1.12}
/* Her logo in place of her name in letters: a long sticker that lifts off the page under the pointer. */
.foot-logo{width:min(100%,clamp(230px,30vw,380px));height:auto;rotate:-2.5deg;filter:drop-shadow(0 6px 0 rgba(0,0,0,.45));transition:rotate .45s var(--spring),translate .3s var(--spring),filter .3s var(--ease)}
.foot-logo:hover{rotate:1.5deg;translate:0 -4px;filter:drop-shadow(0 14px 6px rgba(0,0,0,.45))}
.foot-name.has-logo+.foot-line{margin-top:22px}
.foot-line{max-width:46ch;margin-top:16px;color:var(--soft)}
.foot-links{display:flex;flex-wrap:wrap;gap:10px}
.foot-links a{display:inline-flex;align-items:center;gap:10px;min-height:50px;max-width:100%;padding:0 16px 0 12px;border:2px solid var(--line);border-radius:16px;font-weight:600;font-size:1rem;line-height:1.2;text-decoration:none;overflow-wrap:anywhere;transition:color .2s,background-color .2s,border-color .2s,rotate .35s var(--spring)}
.foot-links a:hover{background:var(--amber);border-color:var(--amber);color:var(--ink);rotate:-2deg}
.foot-small{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;color:#ecc9a6;font-size:.95rem}
.foot-wink{display:inline-flex;align-items:center;gap:8px}
/* The two small pages, and the button that stops whatever moves by itself: plain words under everything else. */
.foot-more{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:2px 24px}
.foot-more a,.still{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;border:0;background:none;color:var(--soft);font:600 1rem/1.2 var(--body);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;cursor:pointer;transition:color .2s}
.foot-more a:hover,.foot-more a[aria-current],.still:hover{color:var(--amber)}
/* Two bars while things move, an arrow once they are stopped. */
.still::before{content:'';flex:none;width:14px;height:16px;border-inline:5px solid currentColor}
.is-still .still::before{width:0;border-block:8px solid transparent;border-inline:14px solid currentColor;border-inline-end-width:0}
@media (min-width:860px){
  .foot-in{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .foot-small{grid-column:1/-1}
}

/* A paw mark where the visitor taps (character.js puts it there). */
.stamp{position:fixed;z-index:80;width:30px;height:30px;margin:-15px 0 0 -15px;pointer-events:none;background:var(--ink);-webkit-mask:var(--paw) center/contain no-repeat;mask:var(--paw) center/contain no-repeat;animation:stamp .9s var(--ease) forwards}
.stamp-1{background:var(--white)}
.stamp-2{background:var(--orange-deep)}
@keyframes stamp{0%{opacity:0;scale:1.7}16%{opacity:.9;scale:1}60%{opacity:.8}100%{opacity:0;scale:1.06}}

/* ---------- coming in on scroll (only once character.js is running) ---------- */

.js [data-reveal]:not(.trail){opacity:0;transform:translate3d(0,36px,0) scale(.93) rotate(-3deg);transition:opacity .55s var(--ease),transform .8s var(--spring)}
.js .story-text [data-reveal]{transform:translate3d(0,24px,0);transition:opacity .7s var(--ease),transform .7s var(--ease)}
/* Her badge turns in slowly, like a seal being pressed on. */
.js .seal[data-reveal]{transform:rotate(-220deg) scale(.3);transition:opacity .5s var(--ease),transform 1.3s var(--spring)}
.js [data-reveal].is-in:not(.trail){opacity:1;transform:none}
.js [data-reveal]:nth-child(2){transition-delay:.07s}
.js [data-reveal]:nth-child(3){transition-delay:.14s}
.js [data-reveal]:nth-child(4){transition-delay:.21s}
.js [data-reveal]:nth-child(n+5){transition-delay:.28s}
.js .seal[data-reveal]{transition-delay:0s}

.js .trail[data-reveal] span{opacity:0}
.js .trail.is-in span{animation:step .5s var(--spring) both}
.js .trail.is-in span:nth-child(2){animation-delay:.11s}
.js .trail.is-in span:nth-child(3){animation-delay:.22s}
.js .trail.is-in span:nth-child(4){animation-delay:.33s}
.js .trail.is-in span:nth-child(5){animation-delay:.44s}
.js .trail.is-in span:nth-child(6){animation-delay:.55s}
.js .trail.is-in span:nth-child(7){animation-delay:.66s}
@keyframes step{from{opacity:0;scale:.3}to{opacity:.8;scale:1}}

/* ---------- stopped with the button at the foot of the page: whatever moves by itself stands still ---------- */

.is-still :is(.hero-glow,.hero-pic,.hero-light,.spin-turn,.tape-track,.cat-eye,.oops-digit,.oops-cat){animation-play-state:paused}

/* ---------- for people who asked their device for less motion: nothing moves ---------- */

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js [data-reveal]:not(.trail){opacity:1;transform:none}
  .js .trail[data-reveal] span{opacity:.8}
  .hero-film,.hero-dust{display:none}
}
