/* Mum, I'm going to a protest — styles.
   Edit colours in the "Steps" block. Layout is a swipeable row of cards (CSS scroll-snap). */

:root{--ink:#231B1A;--cream:#F8F2E7;--display:"Palette Mosaic",Impact,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--cream);color:var(--ink);font:1rem/1.4 "Atkinson Hyperlegible",system-ui,sans-serif}
a{color:inherit}
a:focus-visible,input:focus-visible{outline:3px solid currentColor;outline-offset:2px}

/* Steps: colours for each step (cards + home buttons + menu dots).
   --bg/--fg = page colours, --acc/--on = badge, phone buttons and numbered dots. */
.step1{--bg:#F0C75E;--fg:#231B1A;--acc:#231B1A;--on:#fff}
.step2{--bg:#E2865B;--fg:#231B1A;--acc:#231B1A;--on:#fff}
.step3{--bg:#A8372B;--fg:#fff;--acc:#fff;--on:#231B1A}
.step4{--bg:#5E2A52;--fg:#fff;--acc:#fff;--on:#231B1A}

/* Phone-sized frame; centred on big screens */
.app{position:relative;max-width:30rem;height:100vh;height:100dvh;margin:0 auto;overflow:hidden}
@media (min-width:40rem){
  .app{height:min(calc(100dvh - 3rem),56rem);margin:1.5rem auto;border-radius:1.5rem;box-shadow:0 .25rem 1.5rem #0003}
}
.deck{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;counter-reset:card}
.deck::-webkit-scrollbar{display:none}

/* A card = one screen */
.card{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;overflow-y:auto;display:flex;flex-direction:column;gap:.75rem;padding:1.75rem 1.5rem max(1rem,env(safe-area-inset-bottom));background:var(--bg);color:var(--fg)}
.card:not(.home){counter-increment:card}
.card header{display:flex;align-items:center;gap:.875rem;margin-bottom:.875rem}
.card:not(.home) header::before{content:counter(card);flex:none;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:50%;background:var(--acc);color:var(--on);font-weight:700;font-size:1.0625rem}
h1,h2,h3{margin:0}
h2{font:400 clamp(1.75rem,9.5vw,2.5rem)/1 var(--display);letter-spacing:.04em;text-transform:uppercase;overflow-wrap:anywhere}
h3{font-size:1.125rem;margin-top:.5rem}
p{margin:0;line-height:1.45}
.src{font-size:.875rem;line-height:1.45}

/* Lists */
.tips,.checks,.nos,.steps,.phrases,.links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.875rem}
.checks{gap:.5625rem;line-height:1.35}
.steps{gap:.6875rem;line-height:1.35;counter-reset:s}
.checks label{display:flex;gap:.75rem;align-items:flex-start}
.checks input{flex:none;width:1.375rem;height:1.375rem;margin:0;accent-color:var(--fg)}
.nos li,.steps li{display:flex;gap:.75rem;align-items:flex-start}
.nos li::before{content:"";flex:none;width:1.5rem;height:1.5rem;background:currentColor;
  -webkit-mask:var(--x) center/contain no-repeat;mask:var(--x) center/contain no-repeat;
  --x:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E")}
.nos strong,.steps strong{display:block}
.steps li{counter-increment:s}
.steps li::before{content:counter(s);flex:none;display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--acc);color:var(--on);font-weight:700;font-size:.9375rem}
.phrases{gap:.5625rem}
.phrases li{border-left:.3125rem solid #5E2A52;padding-left:.75rem;line-height:1.3}
.phrases strong{display:block;font-size:1.125rem;line-height:1.25}
.links{gap:.25rem}
.links a{display:flex;flex-direction:column;justify-content:center;min-height:3rem;text-decoration:none}
.links strong{text-decoration:underline}

/* Phone number tiles and the text-mum button */
.call,.btn{display:flex;flex-direction:column;gap:.25rem;background:var(--acc);color:var(--on);border-radius:1rem;padding:.875rem 1.125rem;text-decoration:none}
.call small{font-size:.9375rem}
.call strong{font-size:1.625rem;letter-spacing:.02em}
.msg{padding:.75rem 1rem;border:2px solid currentColor;border-radius:1rem;font-size:.9375rem;line-height:1.4;user-select:all}
.send{display:flex;flex-direction:column;gap:.5rem}
.copy[hidden]{display:none}
button.btn{border:0;font:inherit;font-size:1.125rem;font-weight:700;cursor:pointer}
.btn{flex-direction:row;justify-content:center;min-height:3rem;font-size:1.125rem;font-weight:700}

/* Navigation bar at the bottom of every card */
.nav{flex:none;position:sticky;bottom:0;margin-top:auto;display:flex;align-items:center;justify-content:space-between;height:4rem;padding:0 .5rem;color:#fff}
/* Backing behind the nav: full width so no content shows at the corners, fading in above it so text dissolves into the page colour. */
.nav::after{content:"";position:absolute;z-index:-1;inset:0;border-radius:1.5rem;background:var(--ink)}
.nav::before{content:"";position:absolute;z-index:-2;inset:-1.5rem -1.5rem -2rem;background:linear-gradient(transparent,var(--bg) 1rem)}
.card>:has(+.nav){margin-bottom:.75rem}
.nav a{display:flex;align-items:center;justify-content:center;gap:.375rem;min-width:3rem;height:3rem;text-decoration:none}
.nav a::before,.nav-count::after{content:"";width:1.5rem;height:1.5rem;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.nav-home{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 11l9-8 9 8M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E")}
.nav-prev{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E")}
.nav-next{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E")}
/* "7 of 22": the number is automatic; update the total here if you add or remove cards */
.nav-count{padding:0 .75rem;font-size:.9375rem;font-weight:700}
.nav .nav-count::before{width:auto;height:auto;background:none;-webkit-mask:none;mask:none;content:counter(card) " of 22"}
.nav .nav-count::after{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h16l-8 10z'/%3E%3C/svg%3E");width:.875rem;height:.875rem}

/* Home card */
.home{padding:0;gap:0}
.home header{flex:1;flex-direction:column;align-items:flex-start;gap:.875rem;margin:0;padding:2.75rem 1.5rem 1.5rem}
.kicker{font-size:.9375rem;font-weight:700}
h1{font:400 clamp(2rem,11.5vw,2.75rem)/1.08 var(--display);letter-spacing:.03em;text-transform:uppercase;overflow-wrap:anywhere}
.big{font-size:1.1875rem;line-height:1.4}
.home .step{display:flex;flex-direction:column;justify-content:center;gap:.25rem;min-height:5.75rem;padding:0 1.5rem;background:var(--bg);color:var(--fg);text-decoration:none}
.home .step:hover{filter:brightness(.95)}
.home .step strong{font-size:1.1875rem}
.home .step span{font-size:.9375rem}
.home .src{padding:1rem 1.5rem 1.25rem}

/* Contents menu (opens with the "N of 22" button, no JavaScript) */
.menu{display:none;position:absolute;inset:0;z-index:2;overflow-y:auto;padding:1rem 1.25rem 2rem;background:var(--ink);color:#fff;counter-reset:m}
.menu:target{display:block}
.menu-close{display:block;width:max-content;margin-left:auto;padding:.625rem 1rem;border:1px solid #fff6;border-radius:1rem;font-weight:700;text-decoration:none}
.menu h2{margin:1.25rem 0 .375rem;font:700 .875rem/1.4 "Atkinson Hyperlegible",system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#ffffffcc}
.menu ol{list-style:none;margin:0;padding:0}
.menu li{counter-increment:m}
.menu li a{display:flex;align-items:center;gap:.75rem;min-height:2.75rem;padding:0 .625rem;border-radius:.75rem;text-decoration:none}
.menu li a:hover{background:#ffffff2e}
.menu li a::before{content:counter(m);flex:none;display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--bg);color:var(--fg);font-size:.875rem;font-weight:700}

/* Print: every card on its own page, no nav */
@media print{
  .app{max-width:none;height:auto;margin:0;overflow:visible;border-radius:0;box-shadow:none}
  .deck{display:block;height:auto;overflow:visible}
  .card{break-after:page;overflow:visible;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .nav,.menu{display:none}
}
