/* Shared by both rulebook versions: colours, the top bar, the footer, and
   the worked examples (the kid's speech bubble and Vibe Code Arcade's
   typewriter box, as in the toolkit cartoon). */
:root{--ink:#14121f;--panel:#F4F3EE;--cover:#ECE7DA;--cta:#F6C21A;--line:2px solid var(--ink);--grey:#6b6878;--cond:'Barlow Condensed','Arial Narrow',system-ui,sans-serif;--mono:ui-monospace,'SFMono-Regular',Menlo,Consolas,'Liberation Mono',monospace;--gut:max(16px,env(safe-area-inset-left,0px))}
html{background:var(--panel)}
body{margin:0;color:var(--ink);font-family:Barlow,system-ui,sans-serif;font-weight:500}
a{color:var(--ink)}
p{margin:0;font-size:16px;line-height:1.4}
.in{box-sizing:border-box;max-width:592px;margin:0 auto;padding-left:var(--gut);padding-right:max(16px,env(safe-area-inset-right,0px))}
.lg{display:block;width:100%;height:auto}

.top{border-bottom:var(--line);background:var(--cover)}
.top .in{padding-top:8px;padding-bottom:8px}
.top a{display:block;width:132px}

h1{margin:0;font-weight:700;font-size:30px;line-height:1.1;letter-spacing:-.01em}
.intro{display:flex;flex-direction:column;gap:12px;padding-top:28px}

/* the rule's ID: a small ink tag, like a part number */
.id{display:inline-block;background:var(--ink);color:#fff;font:800 14px/1 var(--cond);letter-spacing:.04em;padding:4px 6px 3px;border-radius:3px;vertical-align:2px}

/* section letter: the booklet's step disc */
.disc{flex:0 0 auto;width:44px;height:44px;box-sizing:border-box;display:grid;place-items:center;border:var(--line);border-radius:50%;background:#fff;box-shadow:2px 2px 0 var(--ink);font:400 22px/1 'Bowlby One',sans-serif}

/* worked examples */
.ex{display:flex;flex-direction:column;gap:12px}
.say{position:relative;align-self:flex-start;max-width:86%;background:#fff;border:var(--line);border-radius:16px;padding:8px 12px 9px;font:800 16px/1.15 var(--cond);letter-spacing:.01em;text-transform:uppercase;margin-bottom:8px}
.say::after{content:"";position:absolute;left:18px;bottom:-8px;width:13px;height:13px;background:#fff;border:var(--line);border-top:0;border-left:0;transform:rotate(45deg) skew(-14deg,-14deg)}
.say + .say{margin-top:-4px}
/* a second child, talking over the first: her bubble sits in from the left with its tail on the other side */
.say.two{margin-left:22%}
.say.two::after{left:auto;right:18px;transform:rotate(45deg) skew(-14deg,-14deg) scaleX(1)}
.type{align-self:flex-end;max-width:90%;box-sizing:border-box;background:#fff;border:var(--line);box-shadow:3px 3px 0 var(--ink);padding:9px 12px;font:700 14px/1.35 var(--mono);letter-spacing:-.02em}
.ex .say + .type{margin-top:-2px}
.pair{display:flex;flex-direction:column;gap:10px}
.pair > div{display:flex;flex-direction:column;gap:6px}
.pair b{font-size:15px}
.pair .type{align-self:stretch;max-width:none}
.pair .no .type{color:var(--grey);box-shadow:none;border-style:dashed}
.why{font-size:15px;line-height:1.4}
.why b{font-weight:700}

footer{background:var(--ink);color:#fff;margin-top:40px}
footer .in{padding-top:28px;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}
footer .name{display:block;width:170px}
footer ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
footer a{color:#fff;font-weight:600;font-size:16px}
footer li a{display:block;padding:12px 0}
/* keyboard focus: an ink outline (white on the dark footer), not browser blue */
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
footer a:focus-visible{outline-color:#fff}
footer p{font-size:14px;color:#c9c6d3}
