/* The High Five Club. Five bold paint colours from the handprints on the club's
   Facebook page (red, purple, green, yellow, black), chunky blocks with offset shadows,
   and big, bouncy movement. Fredoka (rounded) for headings, Atkinson Hyperlegible for
   reading. Calm mode (html.calm) and the device's reduce-motion setting stop every
   movement, and calm mode also softens the colours. */
@font-face { font-family: Fredoka; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/fredoka-latin.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-400i.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/atkinson-700.woff2) format("woff2"); }

:root {
  /* Block colours carry white text at AA; the bright greens and yellows are paint only. */
  --red: #d81e27; --purple: #6526d6; --green: #127a36; --green-paint: #22a94b; --yellow: #ffc400; --black: #161616;
  --red-tint: #ffe3e4; --purple-tint: #ece4ff; --green-tint: #dcf5e4; --yellow-tint: #fff4cc;
  --ink: #161616; --soft: #4b4b55; --paper: #ffffff; --line: #e4e4ea; --ok: #127a36; --bad: #b3141c;
  --radius: 22px; --edge: 4px solid var(--ink);
  --head: Fredoka, "Atkinson Hyperlegible", system-ui, sans-serif;
  /* kept so the shared drawings (art.py) read the right colours */
  --teal: var(--ink); --sun: var(--yellow); --sky2: #ffffff;
}
html.calm {
  --red: #a8545a; --purple: #6a5a96; --green: #4f7a5d; --green-paint: #8fb59a; --yellow: #e8d7a6; --black: #3a3a3a;
  --red-tint: #f6eeee; --purple-tint: #f0eef5; --green-tint: #eef4f0; --yellow-tint: #f8f3e6;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 "Atkinson Hyperlegible", system-ui, sans-serif; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 4px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; color: inherit; margin: 0 0 .55em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; } .skip:focus { left: 8px; z-index: 50; background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 10px; }
.lede { font-size: clamp(1.18rem, 2vw, 1.38rem); line-height: 1.5; max-width: 38em; }
.small { font-size: .95rem; color: var(--soft); }
.kicker { font-weight: 700; color: var(--soft); margin-bottom: .4rem; }
mark.need { background: #fff7c7; color: #5a3a00; outline: 2px dashed #c27c00; outline-offset: 1px; border-radius: 4px; padding: 0 .25em; font-weight: 700; font-size: .92em; }
.preview-bar { background: var(--black); color: #fff; font-size: .9rem; text-align: center; padding: .4rem 16px; }
.notice { background: var(--yellow); color: var(--ink); text-align: center; padding: .7rem 16px; font-weight: 700; border-bottom: var(--edge); }
.notice p { margin: 0; } .notice a { color: var(--ink); }

/* Painted handprints */
.print { display: block; width: 100%; height: auto; overflow: visible; }
.print-red { fill: var(--red); } .print-purple { fill: var(--purple); } .print-green { fill: var(--green-paint); }
.print-yellow { fill: var(--yellow); } .print-black { fill: var(--black); }
.prints { display: flex; justify-content: center; gap: clamp(.2rem, 2vw, 1.6rem); }
.pr { width: clamp(52px, 11vw, 120px); }
.pr:nth-child(odd) { rotate: -9deg; } .pr:nth-child(even) { rotate: 8deg; translate: 0 10px; }
.hero-stamp { position: absolute; right: max(16px, 4vw); top: 1.2rem; width: clamp(80px, 13vw, 150px); rotate: 14deg; pointer-events: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .75rem 1.6rem; border: var(--edge); border-radius: 999px;
  background: var(--black); color: #fff; font: 700 1.15rem/1.1 var(--head); text-decoration: none; cursor: pointer;
  box-shadow: 5px 5px 0 var(--yellow); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s ease; }
.btn:hover { color: #fff; }
.btn:active { transform: translate(3px, 3px) !important; box-shadow: 2px 2px 0 var(--yellow); }
.btn-red { background: var(--red); box-shadow: 5px 5px 0 var(--black); }
.btn-red:active { box-shadow: 2px 2px 0 var(--black); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--purple); }
.btn-ghost:hover { color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--black); }
.btn-light:hover { color: var(--ink); }
.btn-small { min-height: 44px; padding: .45rem 1.1rem; font-size: 1.02rem; box-shadow: 3px 3px 0 var(--yellow); }
.btn[disabled] { opacity: .6; cursor: wait; }
.text-link { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 4px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: var(--edge); }
.head-in { width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: .6rem 1.2rem; min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); margin-right: auto; padding: .4rem 0; }
.brand-hand svg { width: 46px; height: 48px; display: block; }
.brand-name { font: 700 1.55rem/1 var(--head); }
.brand-name span { color: var(--purple); }
.site-nav { display: flex; align-items: center; gap: .2rem 1.1rem; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 4px solid transparent; }
.site-nav a:not(.btn):nth-child(5n+1):hover, .site-nav a:not(.btn):nth-child(5n+1)[aria-current="page"] { border-color: var(--red); }
.site-nav a:not(.btn):nth-child(5n+2):hover, .site-nav a:not(.btn):nth-child(5n+2)[aria-current="page"] { border-color: var(--purple); }
.site-nav a:not(.btn):nth-child(5n+3):hover, .site-nav a:not(.btn):nth-child(5n+3)[aria-current="page"] { border-color: var(--green-paint); }
.site-nav a:not(.btn):nth-child(5n+4):hover, .site-nav a:not(.btn):nth-child(5n+4)[aria-current="page"] { border-color: var(--yellow); }
.site-nav a:not(.btn):nth-child(5n+5):hover, .site-nav a:not(.btn):nth-child(5n+5)[aria-current="page"] { border-color: var(--black); }
.site-nav .btn[aria-current="page"] { background: var(--purple); }
.calm-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .9rem; border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 .95rem/1 "Atkinson Hyperlegible", sans-serif; cursor: pointer; }
.calm-dot { width: 1.7rem; height: 1rem; border-radius: 999px; background: #d4d4dc; position: relative; flex: none; }
.calm-dot::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.calm-btn[aria-pressed="true"] .calm-dot { background: var(--green); }
.calm-btn[aria-pressed="true"] .calm-dot::after { left: auto; right: 2px; }
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .35rem .9rem; border: 3px solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 1rem/1 "Atkinson Hyperlegible", sans-serif; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 3px; background: currentColor; border-radius: 2px; position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .4rem 0 1rem; gap: 0; }
  .site-head.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { border-bottom: 2px solid var(--line); min-height: 52px; font-size: 1.15rem; }
  .site-nav .btn { margin-top: .9rem; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 1.2rem; }
  .brand-hand svg { width: 34px; height: 36px; }
  .calm-btn, .menu-btn { padding: .3rem .6rem; font-size: .9rem; gap: .4rem; }
  .calm-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .head-in { gap: .4rem; }
}

/* Drawings (art.py) */
.art .y { fill: var(--c, var(--yellow)); } .art .t { fill: var(--ink); } .art .w { fill: #fff; } .art .s { fill: var(--c2, #fff); }
.art .o { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.art .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .hand-o { fill: var(--ink); stroke: var(--ink); stroke-width: 13; stroke-linejoin: round; }
.art .hand-f { fill: var(--yellow); }
.art .face-smile { stroke-width: 7; }
.art .spark .ln { stroke-width: 7; }
.art-text { font: 700 13px var(--head); fill: var(--ink); }
.art-text.sm { font-size: 14px; } .art-text.light { fill: #fff; font-size: 20px; }
.ic { width: 52px; height: 52px; }

/* Sections */
.band { position: relative; padding: clamp(3.2rem, 7vw, 6rem) 0; }
.band-purple { --bg: var(--purple); background: var(--bg); color: #fff; }
.band-green { --bg: var(--green); background: var(--bg); color: #fff; }
.band-yellow { --bg: var(--yellow); background: var(--bg); color: var(--ink); }
.band-red { --bg: var(--red); background: var(--bg); color: #fff; }
.band-purple a:not(.btn), .band-green a:not(.btn), .band-red a:not(.btn) { color: #fff; }
.band-yellow a:not(.btn) { color: var(--ink); }
/* A wavy top edge, like the edge of a paint stroke. */
.scallop { margin-top: 28px; }
.scallop::before { content: ""; position: absolute; left: 0; right: 0; top: -27px; height: 28px; pointer-events: none;
  background: radial-gradient(circle at 24px 0, transparent 23px, var(--bg) 24px) 0 0 / 48px 28px repeat-x; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1rem; }
.sec-head h2 { margin: 0; }
.sec-lede { max-width: 40em; font-size: 1.2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.block { border: var(--edge); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: 10px 10px 0 var(--ink); }
.block-green { background: var(--green); color: #fff; }
.block-red { background: var(--red); color: #fff; rotate: 1deg; }
.block-green { rotate: -1deg; }
.block p:last-child { margin-bottom: 0; }
.block-ink { background: var(--ink); color: #fff; box-shadow: 10px 10px 0 var(--yellow); }
.ferris-band { padding-top: 0; }
.ferris-card { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; rotate: -.5deg; }
.ferris-logo { display: block; border-radius: 12px; transition: transform .2s; }
@media (prefers-reduced-motion: no-preference) { html:not(.calm) .ferris-logo:hover { transform: rotate(-3deg) scale(1.04); } }
.ferris-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .ferris-card { grid-template-columns: 1fr; } .ferris-logo { max-width: 240px; } }
.page-hero { position: relative; padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2rem); }
.page-hero h1 { max-width: 11em; }
.page-hero .lede { margin-bottom: 1rem; max-width: 34em; }
.crumbs { font-size: .95rem; margin-bottom: 1rem; color: var(--soft); }
@media (max-width: 640px) { .hero-stamp { top: .4rem; width: 70px; opacity: .9; } }

/* Home hero and the Now and Next board */
.hero { padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero-prints { margin-bottom: clamp(1.4rem, 4vw, 2.6rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 11em; }
.hero-run { color: var(--soft); font-weight: 700; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.nownext { display: grid; grid-template-columns: 1.25fr auto 1fr; align-items: stretch; gap: .9rem; }
.nn-card { position: relative; border: var(--edge); border-radius: var(--radius); padding: 2.5rem 1.3rem 1.3rem; background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.nn-next { background: var(--yellow); box-shadow: 9px 9px 0 var(--red); }
.nn-then { background: var(--green-tint); box-shadow: 9px 9px 0 var(--purple); }
.nn-label { position: absolute; top: -1.15rem; left: 1.1rem; margin: 0; background: var(--black); color: #fff; font: 700 1.2rem/1 var(--head); padding: .5rem 1.1rem; border-radius: 999px; }
.nn-then .nn-label { background: var(--purple); }
.nn-title { font-size: 1.55rem; margin: .8rem 0 .4rem; }
.nn-then .nn-title { font-size: 1.25rem; }
.nn-title a { color: var(--ink); text-decoration: none; }
.nn-title a:hover { text-decoration: underline; }
.nn-when, .nn-where { margin: 0 0 .5rem; }
.nn-card .btn { margin-top: .6rem; }
.nn-card > p:last-child { margin-bottom: 0; }
.nn-arrow { display: grid; place-items: center; color: var(--ink); }
.nn-arrow svg { width: 44px; height: 44px; }
.nn-pic svg { width: 66px; height: 66px; display: block; }
.nn-pic { --c: var(--yellow); --c2: var(--red-tint); }
.nn-date, .datebox { display: inline-grid; justify-items: center; min-width: 4.8rem; background: #fff; border: var(--edge); border-radius: 16px; padding: .35rem .6rem .45rem; font-family: var(--head); color: var(--ink); line-height: 1; }
.db-day { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--red); }
.db-num { font-size: 2.2rem; font-weight: 700; margin: .1rem 0; }
.db-mon { font-size: .95rem; font-weight: 700; }
.nn-date-blank .db-num { color: var(--purple); }
@media (max-width: 620px) {
  .nownext { grid-template-columns: 1fr; gap: 1.8rem; }
  .nn-arrow { rotate: 90deg; margin: -.8rem 0; }
}

/* The ribbon */
.marquee { background: var(--black); color: #fff; overflow: hidden; border-block: var(--edge); }
.mq-track { display: flex; width: max-content; }
.mq-run { list-style: none; display: flex; margin: 0; padding: .9rem 0; }
.mq-run li { display: inline-flex; align-items: center; gap: 1.1rem; font: 700 clamp(1.3rem, 3vw, 2rem)/1 var(--head); padding-right: 1.1rem; white-space: nowrap; }
.mq-red { color: #ff6b70; } .mq-purple { color: #b99bff; } .mq-green { color: #5fd884; } .mq-yellow { color: var(--yellow); } .mq-black { color: #fff; }
.mq-print { display: inline-block; width: 2.4rem; rotate: -12deg; }
.mq-print .print-black { fill: #fff; }

/* Who comes */
.who { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.who-copy p { font-size: 1.25rem; }
.who-art { margin: 0; --c: var(--yellow); --c2: var(--green-tint); }
.family { width: 100%; height: auto; display: block; overflow: visible; }
.family ellipse.s { fill: rgba(0, 0, 0, .22); }
.who-labels { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: .6rem; margin-top: .8rem; }
.lbl { font: 700 1.1rem/1.2 var(--head); background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: .45rem .6rem; }
.lbl-1 { box-shadow: 4px 4px 0 var(--yellow); } .lbl-2 { box-shadow: 4px 4px 0 var(--green-paint); } .lbl-3 { box-shadow: 4px 4px 0 var(--red); }
@media (max-width: 800px) { .who { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .lbl { font-size: .9rem; padding: .4rem .3rem; } }

/* Picture cards (a visual timetable), each in one of the five colours */
.pstrip { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.6rem 1.3rem; }
.pcard { --c: var(--red); --c2: var(--red-tint); position: relative; background: #fff; border: var(--edge); border-radius: var(--radius); padding: .85rem .85rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: 7px 7px 0 var(--c); }
.pcard:nth-child(5n+2) { --c: var(--purple); --c2: var(--purple-tint); }
.pcard:nth-child(5n+3) { --c: var(--green-paint); --c2: var(--green-tint); }
.pcard:nth-child(5n+4) { --c: var(--yellow); --c2: var(--yellow-tint); }
.pcard:nth-child(5n+5) { --c: var(--black); --c2: #ececf0; }
.pcard:nth-child(odd) { rotate: -1.2deg; } .pcard:nth-child(even) { rotate: 1.2deg; }
.pcard-pic { background: var(--c2); border-radius: 14px; padding: .6rem; margin-bottom: .4rem; border: 3px solid var(--ink); }
.pcard-pic svg { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; overflow: visible; }
.pcard strong { font: 700 1.35rem/1.15 var(--head); }
.pcard-text { font-size: 1.04rem; line-height: 1.45; }
.pcard-n { position: absolute; top: -1rem; left: -.8rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--c); border: var(--edge); display: grid; place-items: center; font: 700 1.2rem/1 var(--head); color: #fff; z-index: 1; }
.pcard:nth-child(5n+4) .pcard-n { color: var(--ink); }
.story-check { margin: 0 0 .5rem; }

/* The high five */
.five { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.five-copy p { font-size: 1.3rem; }
.five-count { font-family: var(--head); font-size: 1.5rem !important; }
.five-count strong { font-size: clamp(3.2rem, 8vw, 5rem); font-weight: 700; display: block; line-height: 1; }
.five-btn { position: relative; border: var(--edge); background: #fff; border-radius: 50%; width: clamp(230px, 34vw, 330px); aspect-ratio: 1; display: grid; place-items: center; cursor: pointer; padding: 1.6rem;
  box-shadow: 12px 12px 0 var(--black); }
.five-btn .hand { width: 82%; height: auto; overflow: visible; }
.five-btn:focus-visible { outline: 6px solid var(--purple); outline-offset: 6px; }
.five-btn .spark { opacity: 0; }
.five-burst { position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; }
.hand-tilt { transform-origin: 100px 200px; transition: transform .2s ease; }
html:not(.motion) .five-btn.is-fived .spark { opacity: 1; }
@media (max-width: 640px) { .five { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
/* Flying handprints from a high five (made by site.js). */
.confetti { position: fixed; left: 0; top: 0; width: 46px; pointer-events: none; z-index: 60; }

/* Meet-up listings */
.listings { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.month { margin-bottom: 2.4rem; }
.month-title { font-size: 1.8rem; border-bottom: var(--edge); padding-bottom: .4rem; }
.month-title span { color: var(--purple); }
.ev-list { display: grid; gap: 1.4rem; }
.ev-card { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: #fff; border: var(--edge); border-radius: var(--radius); padding: 1.2rem; box-shadow: 8px 8px 0 var(--purple); }
.ev-card:nth-child(3n+2) { box-shadow: 8px 8px 0 var(--red); } .ev-card:nth-child(3n+3) { box-shadow: 8px 8px 0 var(--green-paint); }
.ev-card.has-pic { grid-template-columns: auto 1fr 240px; }
.ev-card h3 { margin: 0 0 .3rem; font-size: 1.5rem; }
.ev-card h3 a { text-decoration: none; color: var(--ink); } .ev-card h3 a:hover { text-decoration: underline; }
.ev-cat { margin: 0 0 .2rem; font-weight: 700; color: var(--purple); font-size: .98rem; }
.ev-when { margin: 0; font-weight: 700; }
.ev-where { margin: 0 0 .4rem; color: var(--soft); }
.ev-sum { margin: .2rem 0 .4rem; }
.ev-meta { margin: 0; }
.ev-pic img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 3px solid var(--ink); }
.today-tag { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: .05em .6em; margin-left: .3em; }
.tag { display: inline-block; background: var(--yellow-tint); border: 2px solid var(--ink); border-radius: 999px; padding: .1em .8em; font-weight: 700; font-size: .95rem; }
@media (max-width: 640px) { .ev-card, .ev-card.has-pic { grid-template-columns: auto 1fr; } .ev-pic { grid-column: 1 / -1; } }
.empty-card { background: var(--yellow-tint); border: 4px dashed var(--ink); border-radius: var(--radius); padding: 1.6rem; max-width: 46rem; }
.empty-card p:last-child { margin-bottom: 0; }

/* Meet-up and news pages */
.ev-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.ev-facts { background: var(--yellow); border: var(--edge); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 100px; box-shadow: 9px 9px 0 var(--purple); }
.ev-facts dl { margin: 1rem 0; display: grid; gap: .8rem; }
.ev-facts dt { font-weight: 700; font-size: .95rem; }
.ev-facts dd { margin: 0; }
.ev-photo { margin: 0 0 1.4rem; } .ev-photo img { border-radius: var(--radius); width: 100%; border: var(--edge); }
.first-time { background: var(--purple-tint); border: 3px solid var(--ink); border-radius: 16px; padding: 1rem 1.2rem; font-weight: 700; }
.past-note { background: var(--yellow-tint); display: inline-block; padding: .5rem 1rem; border-radius: 12px; border: 2px solid var(--ink); }
.post-layout { max-width: 760px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose { max-width: 42em; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; } .prose li { margin-bottom: .5rem; }
@media (max-width: 800px) { .ev-layout { grid-template-columns: 1fr; } .ev-facts { position: static; } }

/* First visit: the room and questions */
.room { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.4rem 0 0; }
.room-item { --c: var(--yellow); --c2: #fff; background: #fff; color: var(--ink); border: var(--edge); border-radius: var(--radius); padding: 1.1rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: start; align-content: start; box-shadow: 6px 6px 0 var(--black); }
.room-ic { grid-row: span 2; }
.room-item dt { font: 700 1.2rem/1.2 var(--head); }
.room-item dd { margin: 0; }
.faq h2 { margin-bottom: 1rem; }
.faq details { border: var(--edge); border-radius: 18px; margin-bottom: .9rem; background: #fff; box-shadow: 5px 5px 0 var(--green-paint); }
.faq details:nth-of-type(3n+2) { box-shadow: 5px 5px 0 var(--purple); } .faq details:nth-of-type(3n+3) { box-shadow: 5px 5px 0 var(--red); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font: 700 1.2rem/1.3 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.8rem; line-height: .7; transition: rotate .25s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 1.2rem 1rem; }
.faq details > div p { margin: 0; }
.after-faq { margin-top: 1.4rem; font-weight: 700; }

/* About */
.about { max-width: 760px; padding-bottom: 2rem; }
.about section { margin-bottom: 2.4rem; }
.ways { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.ways li { background: #fff; border: var(--edge); border-radius: var(--radius); padding: 1.3rem; box-shadow: 7px 7px 0 var(--red); }
.ways li:nth-child(2) { box-shadow: 7px 7px 0 var(--purple); } .ways li:nth-child(3) { box-shadow: 7px 7px 0 var(--green-paint); }
.ways h3 { margin-bottom: .4rem; }
.ways p { margin: 0; }

/* Come along */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.cform { display: grid; gap: 1.1rem; max-width: 40rem; }
.kind-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.kind-pick legend { font: 700 1.4rem/1.2 var(--head); margin-bottom: .8rem; padding: 0; }
.kind-pick label { display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .4rem 1.1rem .4rem .8rem; border: var(--edge); border-radius: 999px; cursor: pointer; font-weight: 700; background: #fff; transition: transform .15s ease; }
.kind-pick label:nth-of-type(1):has(input:checked) { background: var(--yellow); }
.kind-pick label:nth-of-type(2):has(input:checked) { background: var(--green-tint); }
.kind-pick label:nth-of-type(3):has(input:checked) { background: var(--purple-tint); }
.kind-pick input { width: 1.3rem; height: 1.3rem; accent-color: var(--purple); margin: 0; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; }
.opt { font-weight: 400; color: var(--soft); }
.hint { color: var(--soft); font-size: .98rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { font: inherit; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: .7rem .9rem; width: 100%; min-height: 54px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { box-shadow: 4px 4px 0 var(--purple); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-weight: 700; margin: 0; }
.form-msg:empty { display: none; }
.form-msg.is-ok { background: var(--green-tint); color: var(--ok); border: 3px solid var(--ok); border-radius: 14px; padding: 1rem; }
.form-msg.is-err { background: var(--red-tint); color: var(--bad); border: 3px solid var(--bad); border-radius: 14px; padding: 1rem; }
.contact-side { background: var(--purple); color: #fff; border: var(--edge); border-radius: var(--radius); padding: 1.6rem; box-shadow: 9px 9px 0 var(--yellow); }
.contact-side a { color: #fff; }
.contact-side h2 { font-size: 1.45rem; }
.contact-side h2 + p { margin-bottom: 1rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* News and photos */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; padding-bottom: 3rem; }
.news-card { background: #fff; color: var(--ink); border: var(--edge); border-radius: var(--radius); padding: 1.2rem; box-shadow: 7px 7px 0 var(--green-paint); }
.news-card h3 a { text-decoration: none; color: var(--ink); } .news-card h3 a:hover { text-decoration: underline; }
.nc-pic img { border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: .8rem; }
.nc-date { color: var(--purple); font-weight: 700; margin-bottom: .3rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; padding-bottom: 3rem; }
.g-item { margin: 0; } .g-item img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: var(--edge); }
.g-item:nth-child(odd) { rotate: -1.5deg; } .g-item:nth-child(even) { rotate: 1.5deg; }
.g-item figcaption { font-size: .95rem; color: var(--soft); margin-top: .4rem; }
.page-photos .empty-card, .page-news .empty-card { margin-bottom: 3rem; }

/* Legal */
.legal { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); align-items: start; }
.legal-nav { display: grid; gap: .4rem; position: sticky; top: 100px; }
.legal-nav a { font-weight: 700; text-decoration: none; color: var(--ink); padding: .5rem .8rem; border-radius: 12px; min-height: 44px; display: flex; align-items: center; border: 3px solid transparent; }
.legal-nav a[aria-current="page"], .legal-nav a:hover { border-color: var(--ink); background: var(--yellow-tint); }
.draft-note { background: var(--yellow-tint); border: 3px solid var(--ink); border-radius: 14px; padding: .8rem 1rem; font-weight: 700; max-width: 40em; }
@media (max-width: 760px) { .legal { grid-template-columns: 1fr; } .legal-nav { position: static; display: flex; flex-wrap: wrap; } }

/* 404 */
.lost { text-align: center; padding-bottom: 5rem; }
.lost .lede { margin-inline: auto; }
.lost-hand { display: block; width: 160px; margin: 0 auto 1.4rem; rotate: -12deg; }

/* Footer */
.site-foot { background: var(--black); color: #fff; padding: 2.6rem 0 1.5rem; border-top: var(--edge); }
.site-foot a:not(.btn) { color: #fff; }
.site-foot h2 { font-size: 1.3rem; color: var(--yellow); }
.foot-prints { margin-bottom: 2.4rem; }
.foot-prints .pr { width: clamp(40px, 7vw, 72px); }
.foot-prints .print-black { fill: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.foot-about { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.foot-hand svg { width: 56px; height: 58px; display: block; }
.foot-hand .hand-o { fill: #fff; stroke: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li a { display: inline-flex; min-height: 44px; align-items: center; }
.foot-base { border-top: 2px solid rgba(255, 255, 255, .3); margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .95rem; }
.foot-base p { margin: 0; }
.foot-base a { display: inline-block; padding: .55rem 0; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/*
   Movement. Everything below runs only when the device allows motion (html.motion, set in
   the page head) and calm mode is off. Entrances only move things and never fade words in
   from nothing, so a page whose animations never tick still shows everything. Content is
   never hidden unless site.js has started (html.js-reveal).
   */
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-30deg); } 55% { opacity: 1; transform: scale(.88) rotate(6deg); } 75% { transform: scale(1.06) rotate(-2deg); } 100% { opacity: 1; transform: none; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) translateY(-4px); } 75% { transform: rotate(9deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pop { 0% { transform: translateY(40px) scale(.92) rotate(-2deg); } 60% { transform: translateY(-8px) scale(1.02) rotate(1deg); } 100% { transform: none; } }
@keyframes rise { from { transform: translateY(70px) rotate(var(--r, -4deg)) scale(.9); } 60% { transform: translateY(-10px) rotate(calc(var(--r, -4deg) * -0.5)); } to { transform: none; } }
@keyframes jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } 60% { transform: translateY(-16px); } }
@keyframes slap { 0% { transform: rotate(-14deg) scale(1); } 35% { transform: rotate(18deg) scale(1.22); } 65% { transform: rotate(-6deg) scale(.96); } 100% { transform: rotate(0) scale(1); } }
@keyframes spark { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes burst { 0% { box-shadow: 0 0 0 0 rgba(101, 38, 214, .55), 0 0 0 0 rgba(216, 30, 39, .45); } 100% { box-shadow: 0 0 0 46px rgba(101, 38, 214, 0), 0 0 0 90px rgba(216, 30, 39, 0); } }
@keyframes count { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-4deg); } 100% { transform: scale(1); } }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg) scale(1.04); } 75% { transform: rotate(3deg) scale(1.04); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.motion .hero-prints .pr { animation: stamp .7s cubic-bezier(.2, .8, .3, 1.2) both; }
.motion .hero-prints .pr:nth-child(2) { animation-delay: .18s; } .motion .hero-prints .pr:nth-child(3) { animation-delay: .36s; }
.motion .hero-prints .pr:nth-child(4) { animation-delay: .54s; } .motion .hero-prints .pr:nth-child(5) { animation-delay: .72s; }
.motion .hero-prints .pr .print { animation: wave 2.8s ease-in-out 1.6s infinite; transform-origin: 50% 90%; }
.motion .hero-prints .pr:nth-child(2) .print { animation-delay: 1.9s; } .motion .hero-prints .pr:nth-child(3) .print { animation-delay: 2.2s; }
.motion .hero-prints .pr:nth-child(4) .print { animation-delay: 2.5s; } .motion .hero-prints .pr:nth-child(5) .print { animation-delay: 2.8s; }
.motion .prints .pr { transition: scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.motion .prints .pr:hover { scale: 1.25; }
.motion .hero h1.pop { animation: pop .8s cubic-bezier(.2, .8, .3, 1.2) .9s both; }
.motion .hero .lede, .motion .hero-run, .motion .hero-links { animation: pop .8s cubic-bezier(.2, .8, .3, 1.2) 1.05s both; }
.motion .nownext .nn-card { animation: rise .9s cubic-bezier(.2, .8, .3, 1.2) 1.2s both; --r: -5deg; }
.motion .nownext .nn-then { animation-delay: 1.4s; --r: 6deg; }
.motion .nn-next .nn-date { animation: wiggle 2.4s ease-in-out 3s infinite; }
.motion .hero-stamp .print { animation: stamp .7s cubic-bezier(.2, .8, .3, 1.2) .2s both; }
.motion .mq-track { animation: ribbon 28s linear infinite; }
.motion .marquee:hover .mq-track { animation-play-state: paused; }
.motion .btn:hover { animation: wiggle .45s ease-in-out; box-shadow: 7px 7px 0 var(--yellow); }
.motion .btn-red:hover, .motion .btn-light:hover { box-shadow: 7px 7px 0 var(--black); }
.motion .btn-ghost:hover { box-shadow: 7px 7px 0 var(--purple); }
.motion .brand:hover .hand-tilt { animation: slap .5s ease; }
.motion .kind-pick label:hover { transform: translateY(-3px) rotate(-1deg); }
.motion .who-art .fig { animation: jump 2.4s ease-in-out infinite; }
.motion .who-art .fig-2 { animation-delay: .3s; } .motion .who-art .fig-3 { animation-delay: .6s; }
.motion .pcard-pic svg { animation: bob 3.2s ease-in-out infinite; }
.motion .pcard:nth-child(even) .pcard-pic svg { animation-delay: -1.6s; }
.motion .pcard { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s ease; }
.motion .pcard:hover { transform: translateY(-8px) rotate(-2deg) scale(1.03); box-shadow: 12px 12px 0 var(--c); }
.motion .ev-card, .motion .news-card, .motion .ways li, .motion .room-item { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.motion .ev-card:hover, .motion .news-card:hover, .motion .ways li:hover, .motion .room-item:hover { transform: translateY(-6px) rotate(-1deg); }
.motion .five-btn:hover .hand-tilt { transform: rotate(-10deg) scale(1.05); }
.motion .five-btn { animation: sway 3s ease-in-out infinite; }
.motion .five-btn.is-fived .hand-tilt { animation: slap .55s cubic-bezier(.3, 1.6, .5, 1); }
.motion .five-btn.is-fived .spark { animation: spark .55s ease-out; }
.motion .five-btn.is-fived .five-burst { animation: burst .7s ease-out; }
.motion .five-count strong.bump { animation: count .45s cubic-bezier(.3, 1.6, .5, 1); }
.motion .foot-prints .pr .print { animation: wave 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.motion .foot-prints .pr:nth-child(2) .print { animation-delay: -.7s; } .motion .foot-prints .pr:nth-child(3) .print { animation-delay: -1.4s; }
.motion .foot-prints .pr:nth-child(4) .print { animation-delay: -2.1s; } .motion .foot-prints .pr:nth-child(5) .print { animation-delay: -2.8s; }
.motion .faq details[open] > div { animation: pop .45s ease both; }

/* Scroll reveals: hidden only once site.js is running, shown as they come into view. */
.js-reveal.motion .reveal { opacity: 0; }
.js-reveal.motion .reveal.is-in { opacity: 1; animation: rise .85s cubic-bezier(.2, .8, .3, 1.2) backwards; }
.js-reveal.motion .pcard.reveal.is-in:nth-child(4n+2) { animation-delay: .12s; --r: 5deg; }
.js-reveal.motion .pcard.reveal.is-in:nth-child(4n+3) { animation-delay: .24s; }
.js-reveal.motion .pcard.reveal.is-in:nth-child(4n+4) { animation-delay: .36s; --r: 6deg; }

/* Calm mode and reduced motion: everything still, everything visible */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
html.calm .reveal { opacity: 1 !important; }
html.calm .art .spark, html.calm .five-burst { display: none; }
html.calm .pcard, html.calm .block, html.calm .pr, html.calm .g-item { rotate: 0deg !important; translate: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1 !important; } }

/* Printing the picture story */
@media print {
  .preview-bar, .site-head, .site-foot, .notice, .no-print, .skip, .hero-stamp { display: none !important; }
  body { font-size: 12pt; }
  .page-hero { padding: 0 0 1rem; }
  .pstrip { grid-template-columns: repeat(2, 1fr); gap: 14pt; }
  .pcard { break-inside: avoid; rotate: 0deg; box-shadow: none; }
  .reveal { opacity: 1 !important; animation: none !important; }
  .page-hero .lede { font-size: 12pt; }
}

/* ---- Home: the picture cards in a sideways strip ---- */
.scroller { position: relative; }
.pstrip-scroll { display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 1rem 1rem 1.8rem 1.7rem; scroll-padding-inline: 1.7rem 1rem; margin: 1rem -1rem 0; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.pstrip-scroll .pcard { flex: 0 0 clamp(220px, 68vw, 262px); scroll-snap-align: start; }
.pstrip-scroll:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: var(--radius); }
.scroll-btns { display: flex; justify-content: flex-end; gap: .8rem; margin-top: .2rem; }
.scroll-btn { width: 54px; height: 54px; display: grid; place-items: center; border: var(--edge); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.scroll-btn svg { width: 24px; height: 24px; }
.scroll-btn:disabled { opacity: .3; cursor: default; box-shadow: none; }
.motion .scroll-btn:not(:disabled):hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- Donate ---- */
.donate { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; padding-bottom: clamp(3rem, 7vw, 5rem); }
.dform { background: #fff; border: var(--edge); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 10px 10px 0 var(--red); }
.dform h2 { margin-top: 0; }
.amounts { border: 0; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: .8rem; }
.amt { position: relative; }
.amt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.amt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 66px; padding: .4rem; border: var(--edge); border-radius: 18px; background: #fff; font: 700 1.55rem/1.05 var(--head); }
.amt-other span { font-size: 1.05rem; }
.amt input:checked + span { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.amt input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 3px; }
.motion .amt input:checked + span { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.other-amount { margin-bottom: 1.2rem; }
.pound-input { display: flex; align-items: center; gap: .5rem; }
.pound-input span { font: 700 1.7rem/1 var(--head); }
.pound-input input { max-width: 11rem; font-size: 1.35rem; }
.donate-closed { background: var(--yellow-tint); border: 3px dashed var(--ink); border-radius: 14px; padding: .75rem 1rem; font-weight: 700; }
.btn-big { font-size: 1.3rem; min-height: 62px; padding: .8rem 2rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.donate-side ul { padding-left: 1.2rem; }
.donate-side li { margin: .35rem 0; }
@media (max-width: 820px) { .donate { grid-template-columns: 1fr; } }

/* ---- Documents to download ---- */
.docs { margin-top: 2.2rem; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { padding: .6rem 0; border-bottom: 2px dashed var(--line); }
.doc-list a { font-weight: 700; }

/* ---- Booking a place ---- */
.places { display: inline-block; background: var(--green); color: #fff; font: 700 .95rem/1 var(--head); padding: .4em .8em; border-radius: 999px; border: 3px solid var(--ink); }
.places.is-full { background: var(--yellow); color: var(--ink); }
.nn-places { margin: .2rem 0 .6rem; }
.book { margin-top: 2.4rem; background: #fff; border: var(--edge); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 10px 10px 0 var(--green-paint); scroll-margin-top: 110px; }
.book h2 { margin-top: 0; }
.book-left { margin: 0 0 1rem; }
.check-line { display: flex; gap: .6rem; align-items: center; font-weight: 700; }
.check-line input { width: 22px; height: 22px; }
.book-done { background: var(--green-tint); border: 3px dashed var(--ink); border-radius: 18px; padding: 1rem 1.2rem; }
.book-done:focus { outline: 3px solid var(--purple); outline-offset: 3px; }
.book-done h3 { font: 700 1.6rem/1.1 var(--head); margin: 0 0 .4rem; }

/* Anything hidden by the scripts stays hidden, whatever display a class gives it. */
[hidden] { display: none !important; }
