/* ==========================================================================
   THEME
   Flat poster pink with the poster's language on top: neon green hand
   lettering, black marker, white torn paper, halftone blobs and cut-outs.
   (The animated lime/pink background from mrsluvaluva.com is in
   js/background.js; it's switched off since the pink layout.)
   ========================================================================== */
:root {
  --pink: #e100ca;      /* the page pink (the poster's #fa00e0, 10% darker), accents, outlined headings */
  --green: #06f01e;     /* poster green: blobs and buttons */
  --dayglo: #ffff00;    /* day-glo yellow: the frames on the header stills */
  --lime: #54ff00;      /* the green of the hand-drawn "2027 programme" lettering */
  --ink: #0d0d0d;
  --white: #fbfffa;
  --grey: #4a4a4a;

  --marker: 'Permanent Marker', 'Comic Sans MS', cursive;   /* hand-lettered headings */
  --hand: 'Caveat Brush', 'Segoe Print', cursive;           /* scribbled labels */
  --body: 'Archivo', system-ui, sans-serif;                  /* anything people need to read */

  --wrap: 1240px;
  --gap: clamp(14px, 2.2vw, 26px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--pink); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pink); }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
cite { font-style: normal; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
sup { font-size: .5em; vertical-align: .9em; line-height: 0; margin-left: .04em; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.skip { position: absolute; left: -999px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 10; }

.marker { font-family: var(--marker); font-weight: 400; letter-spacing: .01em; }
.hand { font-family: var(--hand); font-weight: 400; }

/* Pink letters with a black marker outline */
.ink-pink {
  color: var(--pink);
  -webkit-text-stroke: .055em var(--ink);
  paint-order: stroke fill;
  text-shadow: .03em .045em 0 var(--ink);
}

/* Big black marker headings, with a white offset so they stand off the pattern */
.section-title, .page-title {
  font-family: var(--marker);
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(28px, 3.4vw, 40px);
  text-shadow: 2px 2px 0 var(--white);
}
.page-title { font-size: clamp(34px, 5vw, 56px); }

/* Small text that sits on the pink gets a white sticker behind it */
.label {
  display: inline-block;
  background: var(--white);
  padding: 3px 10px;
  margin: 0;
  font-size: 14.5px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- hand-made shapes ---------- */

/* Blob with a halftone-dot fringe (green; white with .cloud) */
.blob {
  --blob-c: var(--green);
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: .25em .8em;
  color: var(--ink);
  text-decoration: none;
}
.blob::before, .blob::after {
  content: '';
  position: absolute;
  border-radius: 999px / 75%;
  filter: url(#rough);
}
.blob::before { inset: 0; background: var(--blob-c); z-index: -1; }
.blob::after {
  inset: -8px -10px;
  background: radial-gradient(circle, var(--blob-c) 0 2px, transparent 2.6px) 0 0 / 7px 7px;
  z-index: -2;
}
.cloud { --blob-c: var(--white); }

/* Torn-edged white paper with a hard shadow */
.paper {
  position: relative;
  isolation: isolate;
  padding: 18px 20px;
  transform: rotate(var(--tilt, 0deg));
}
.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  filter: url(#rough) drop-shadow(3px 4px 0 var(--ink));
  z-index: -1;
}

/* Speech bubble: white with a black marker outline */
.bubble {
  position: relative;
  color: var(--ink);
  padding: 1.3em 1.6em 2.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130' preserveAspectRatio='none'%3E%3Cpath d='M98 5C148 3 195 20 195 56C195 88 162 101 138 103L160 125L118 104C64 108 5 95 5 57C5 21 48 7 98 5Z' fill='%23fbfffa' stroke='%230d0d0d' stroke-width='3' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.button {
  display: inline-block;
  font: 400 18px/1 var(--marker);
  background: var(--green);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  padding: 11px 20px 9px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}
.button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button:disabled { opacity: .6; cursor: wait; }

/* ---------- navigation / header / footer ---------- */
.site-nav { display: flex; justify-content: flex-end; gap: clamp(8px, 1.5vw, 14px); font-size: 17px; }
.site-nav a {
  text-decoration: none; background: var(--white); padding: 5px 12px 3px;
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
}
.site-nav a:hover, .site-nav a[aria-current] { background: var(--lime); }
/* the menu words are hand-lettered images (images/titles/nav-*.webp), sized in em so they follow the font size */
.site-nav a:has(.nav-word) { display: flex; align-items: center; padding: 4px 12px; }
.nav-word { display: block; height: auto; }
.nav-programme { width: 6.4em; } .nav-board { width: 3.15em; } .nav-join { width: 2.7em; }

.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 6px; }
.site-head .logo img { width: 230px; height: auto; }

.site-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 60px; padding-bottom: 18px; }
.site-foot .label { font-size: 13px; }
.site-foot .worm { width: 64px; height: auto; transform-origin: 50% 100%; animation: wiggle 3.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- book covers, stuck on at an angle ---------- */
.cover {
  margin: 0; position: relative; overflow: hidden;
  aspect-ratio: 2 / 3;
  container-type: inline-size;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* No cover image: a hand-lettered one in poster pink */
.cover.is-fallback {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--pink);
}
/* cqi = % of the cover's own width, so the lettering scales from thumbnail to big cover */
.fallback-title {
  margin: 10cqi 8cqi 0;
  font-size: 11.5cqi; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere;
  color: var(--white); -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill; text-shadow: .03em .05em 0 var(--ink);
}
.fallback-author { margin: 0 8cqi 10cqi; font-size: 11cqi; line-height: 1; }

/* ==========================================================================
   HOME PAGE — built from layout/home-desktop.psd (1440px wide).

   On screens 1100px and wider the page is that layout, scaled to fit:
   --u is one pixel of the 1440px design (so positions below read like the
   Photoshop file), --fu is the same for text but never below 86%.
   Narrower screens get a stacked version (bottom of this section).
   ========================================================================== */
.page {
  background: var(--pink);      /* so the GPU stack animation has pink to "add" onto (see .c-gpu) */
  container-type: inline-size;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  --u: calc(100cqi / 1440);
  --fu: max(.86px, calc(100cqi / 1440));
}
.home-head img, .collage > img { display: block; height: auto; }
.still { border: 8px solid var(--dayglo); box-sizing: content-box; }
/* The stills wiggle while the page is scrolling (js/app.js adds .is-wiggling) or when you point at
   them, then settle. A slight stop-frame jiggle: four poses, held in turn. */
.home-head.is-wiggling .still, .still:hover { animation: jiggle .6s steps(1, end) infinite; }
.home-head.is-wiggling .still-right, .still-right:hover { animation-duration: .72s; animation-delay: -.25s; }
/* The memes drift slightly with the scroll (js/app.js sets --par), the painting a little more */
.home-head .c-meme  { translate: 0 var(--par, 0px); }
.home-head .c-water { translate: 0 calc(var(--par, 0px) * .5); border: 6px solid #fff; box-sizing: content-box; }
.home-head .c-jesus { translate: 0 calc(var(--par, 0px) * 1.5); }
@keyframes jiggle {
  0%   { transform: rotate(-.8deg); }
  25%  { transform: rotate(.6deg) translate(1px, -1px); }
  50%  { transform: rotate(-.3deg) translate(-1px, 1px); }
  75%  { transform: rotate(.9deg) translate(0, -1px); }
}
.home-sub { margin: 0; }
/* "Four seasons · third Thursday of every month": one hand-lettered line on a white sticker,
   directly below "reading group" */
.head-label { margin: 0; }
.head-label img { display: block; width: 100%; height: auto; }
.home-sub img { display: block; height: auto; }

/* ---------- seasons ---------- */
/* Where each season's hand-drawn pieces sit on its card (pixels of the layout) */
[data-season="winter"] { --season-c: #00c4cc; --nx: 31; --ny: -22; --nw: 190; --dr: 46;  --dy: 12; --dw: 209; --tx: 29; --ty: 52; --tw: 290; }
[data-season="spring"] { --season-c: #06f01e; --nx: 13; --ny: -43; --nw: 224; --dr: 27;  --dy: 21; --dw: 236; --tx: 33; --ty: 39; --tw: 211; }
[data-season="summer"] { --season-c: #fa01e0; --nx: 27; --ny: -31; --nw: 286; --dr: 28;  --dy: 24; --dw: 254; --tx: 32; --ty: 63; --tw: 355; }
[data-season="autumn"] { --season-c: #ff7a00; --nx: 30; --ny: -27; --nw: 227; --dr: 100; --dy: 22; --dw: 218; --tx: 28; --ty: 69; --tw: 361; }

.season.paper::before { filter: url(#rough); }      /* printed in pink, so no black shadow */
.season-name, .season-range, .season-theme { margin: 0; line-height: 1; }
.season-name img, .season-range img, .season-theme img { display: block; width: 100%; height: auto; }
.season-name { position: absolute; z-index: 2; left: calc(var(--nx) * var(--u)); top: calc(var(--ny) * var(--u)); width: calc(var(--nw) * var(--u)); }
.season-name.blob { width: auto; font-size: calc(36 * var(--fu)); text-transform: uppercase; --blob-c: var(--lime); }
.season-range { position: absolute; right: calc(var(--dr) * var(--u)); top: calc(var(--dy) * var(--u)); width: calc(var(--dw) * var(--u)); }
.season-range .hand { font-size: calc(28 * var(--fu)); white-space: nowrap; }
.season-theme { width: calc(var(--tw) * var(--u)); max-width: 100%; margin: calc(var(--ty) * var(--u)) 0 0 calc((var(--tx) - 26) * var(--u)); }
.season-theme .marker { font-size: calc(26 * var(--fu)); text-transform: uppercase; }

/* Everything printed on the card: black comes out pink, like the layout's "linear dodge" */
.season-body { filter: url(#pinkify); }
.season { padding: 0 calc(26 * var(--u)) calc(14 * var(--u)); }

/* The seasons sit in one row that scrolls sideways, one season at a time: swipe, trackpad, keyboard
   or the arrows. Each season fills the row; on phones the next one peeks in at the edge. */
.programme { position: relative; z-index: 1; }
.seasons {
  --per: 1;                                /* seasons in view at once */
  --pad-s: calc(112 * var(--u));           /* margin either side of the season in view */
  --gap-s: calc(2 * var(--pad-s));         /* so the next season starts exactly one view along */
  display: flex; align-items: flex-start; gap: var(--gap-s);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-s);
  padding: calc(52 * var(--u)) var(--pad-s) calc(34 * var(--u));
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.seasons:focus-visible { outline-offset: -6px; }
.season { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap-s)) / var(--per)); scroll-snap-align: start; scroll-snap-stop: always; }
.scroll-btn {
  position: absolute; z-index: 4; top: calc(250 * var(--u));
  display: grid; place-items: center; width: calc(58 * var(--fu)); height: calc(58 * var(--fu)); padding: 0;
  font-size: calc(30 * var(--fu)); line-height: 1; color: var(--ink); background: var(--white);
  border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
}
.scroll-btn:hover { background: var(--lime); }
.scroll-btn:disabled { opacity: 0; pointer-events: none; }
.scroll-prev { left: calc(38 * var(--u)); }
.scroll-next { right: calc(38 * var(--u)); }
.scroll-hint { display: none; }
.season-intro { font-size: calc(14.5 * var(--fu)); line-height: 1.45; color: var(--grey); margin: calc(10 * var(--u)) 0 calc(12 * var(--u)); max-width: 62ch; }
.months { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.months li + li { border-top: 1.5px dashed rgb(13 13 13 / .25); }
/* A book: cover, then date / title / author, then its short description (with a link to its page) */
.m-item {
  display: grid; grid-template-columns: calc(62 * var(--u)) minmax(0, calc(250 * var(--u))) minmax(0, 1fr);
  gap: calc(24 * var(--u)); align-items: start; padding: calc(14 * var(--u)) 0;
}
.m-cover { display: block; }
.m-desc { padding-top: calc(3 * var(--u)); }
.m-blurb { font-size: calc(15 * var(--fu)); line-height: 1.5; margin: 0 0 calc(6 * var(--u)); max-width: 72ch; }
.m-link { font-size: calc(15 * var(--fu)); text-decoration-thickness: 2px; }
.m-text { display: flex; flex-direction: column; }
.m-date { font-size: calc(16 * var(--fu)); line-height: 1.2; }
.m-title { font-weight: 800; font-size: calc(18 * var(--fu)); line-height: 1.2; text-decoration: none; }
.m-title:hover { text-decoration: underline; }
.m-author { font-size: calc(14 * var(--fu)); color: var(--grey); }
.season-speaker { margin: 0; padding: calc(10 * var(--u)) 0 calc(4 * var(--u)); border-top: 2px solid var(--ink); font-size: calc(15 * var(--fu)); font-weight: 600; }
.season-speaker .speaker-about { font-weight: 400; }
.speaker .hand { font-size: 1.4em; line-height: 1; }
.cover-thumb { width: calc(62 * var(--u)); --tilt: 3deg; border-width: 1.5px; box-shadow: 2px 2px 0 var(--ink); }
.months li:nth-child(even) .cover-thumb { --tilt: -3deg; }

/* A season's animation (programme.js `animation`), flying off the right side of its card.
   On wide screens that card's book list is narrower, so the GIF never covers an opened book. */
.season-gif { position: absolute; z-index: 3; right: calc(-108 * var(--u)); top: calc(205 * var(--u)); width: calc(280 * var(--u)); pointer-events: none; height: auto; filter: drop-shadow(calc(-38 * var(--u)) calc(22 * var(--u)) calc(16 * var(--u)) rgb(40 0 60 / .3)); }

/* ---------- the tents: two copies side by side, the second mirrored, at the very bottom ---------- */
.tents { display: flex; justify-content: center; margin-top: calc(14 * var(--u)); pointer-events: none; }
.tents img { display: block; width: max(20vw, 150px); height: auto; }
.tents-flip { scale: -1 1; margin-left: max(-1vw, -8px); }      /* overlap a touch so they read as one row */

/* ---------- click a meme to see it bigger (js/app.js memeZoom) ---------- */
[data-zoom] { cursor: zoom-in; }
dialog.zoom { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; cursor: zoom-out; }
dialog.zoom::backdrop { background: rgb(225 0 202 / .93); }
dialog.zoom:focus-visible { outline: none; }
dialog.zoom img {
  display: block; height: auto; box-sizing: content-box;
  width: min(86vw, calc(78vh * var(--ar, 1.4)), var(--nw, 900px));
  border: 10px solid #fff; box-shadow: 4px 5px 0 var(--ink);
}
dialog.zoom.is-still img { border-color: var(--dayglo); }     /* the film stills keep their day-glo frame */
.zoom-hint { display: block; width: fit-content; margin: 14px auto 0; font-size: 13px; }

/* ---------- the CCTV camera (wide screens) ----------
   Fixed to the far right edge of the window. The camera body tilts up and down to follow the
   pointer (js/app.js cctvWatch); the wall mount stays still. 62.45% 58.15% is the tilt bolt. */
.cctv { display: none; }
@media (min-width: 1100px) {
  .cctv {
    display: block; position: fixed; z-index: 16; right: 0; top: 52vh;
    width: clamp(110px, 10vw, 190px); aspect-ratio: 480 / 402; pointer-events: none;
    filter: drop-shadow(-4px 4px 4px rgb(40 0 60 / .35));
  }
  .cctv img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .cctv-body { transform-origin: 62.45% 58.15%; }
}

/* ---------- the talking worm ----------
   The worm and its words keep the positions they have in
   layout/worm and correct spelling of platform capatillism.psd, with the words straightened
   (a 1429 x 1133 box around both).
   The words come out of its mouth in stop-frame steps when it comes into view, and again when you
   point at it or tap it (js/app.js wormTalk). It sways gently, words and all. */
.worm-talk { aspect-ratio: 1429 / 1133; transform-origin: 22% 100%; animation: sway 3.4s ease-in-out infinite; }
.worm-talk img { position: absolute; display: block; height: auto; }
.wt-worm  { left: 0; top: 12.09%; width: 47.1%; }
.wt-words { left: 51.01%; top: 0; width: 48.99%; transform-origin: -20.4% 64.6%; }   /* -20.4% 64.6% = the worm's mouth */
.worm-talk.is-ready:not(.is-talking) .wt-words { clip-path: circle(0% at -20.4% 64.6%); }
.worm-talk.is-talking .wt-words { animation: speak 1.2s steps(6, end) both; }
@keyframes speak {
  from { clip-path: circle(0% at -20.4% 64.6%); scale: .35; }
  to   { clip-path: circle(170% at -20.4% 64.6%); scale: 1; }
}
@keyframes sway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }

/* ---------- the ticker: the next meeting, scrolling along the top of the screen ----------
   Filled in by js/app.js from programme.js. It stays at the top while you scroll, pauses when
   you point at it, and links to the book's page. */
body[data-page="home"] { --ticker-h: 40px; }
html:has(.ticker) { scroll-padding-top: 46px; }          /* so links to #programme / #join aren't hidden under it */
.ticker { position: sticky; top: 0; z-index: 30; height: var(--ticker-h); overflow: hidden; background: var(--ink); border-bottom: 3px solid var(--dayglo); }
.ticker:empty { display: none; }
.ticker-link { display: block; height: 100%; color: var(--lime); text-decoration: none; }
.ticker-link:focus-visible { outline: 3px dashed var(--dayglo); outline-offset: -6px; }
.ticker-track { display: flex; align-items: center; width: max-content; height: 100%; animation: tick var(--tick-dur, 60s) linear infinite; }
.ticker-run { display: flex; align-items: center; flex: none; }
.ticker-item { font: 400 19px/1 var(--marker); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; padding: 2px 20px 0; }
.ticker-star { color: var(--dayglo); font-size: 15px; }
.ticker:hover .ticker-track, .ticker-link:focus-visible .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }     /* two identical runs: half-way = seamless loop */
@media (max-width: 620px) {
  body[data-page="home"] { --ticker-h: 34px; }
  .ticker-item { font-size: 15px; padding: 2px 13px 0; }
}

/* ---------- the Palantir drone ----------
   Phones and tablets: parked small in the empty corner left of the menu, hovering on the spot.
   Desktop: js/app.js (droneFlight) adds .is-flying and it wanders about over the window.
   Clicks always pass straight through it. */
.drone {
  position: absolute; z-index: 20; top: calc(4px + var(--ticker-h, 0px)); left: 12px; width: 92px; height: auto;
  pointer-events: none; animation: hover 2.6s ease-in-out infinite;
  filter: drop-shadow(-10px 8px 6px rgb(40 0 60 / .3));
}
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (min-width: 1100px) {
  /* parked (and taking off from) the empty corner under Twin Peaks, clear of the title */
  .drone {
    top: calc(min(26.9vw, 388px) + var(--ticker-h, 0px)); left: auto; right: calc(max(0px, (100vw - 1440px) / 2) + min(11vw, 160px));   /* clear of the CCTV camera */
    width: clamp(170px, 16vw, 230px); filter: drop-shadow(-30px 18px 14px rgb(40 0 60 / .3));
  }
}
.drone.is-flying { position: fixed; top: 0; left: 0; right: auto; animation: none; will-change: transform; }

/* ---------- the rocket (wide screens) ----------
   Moves up and down the left edge with the scroll: at the top of the screen at the top of the page,
   at the bottom of the screen by the bottom of the page (js/app.js rocketRide). */
.rocket { display: none; }
@media (min-width: 1100px) {
  .rocket {
    display: block; position: fixed; z-index: 15; left: 12px; top: 0;
    width: clamp(80px, 7.6vw, 115px); height: auto; pointer-events: none;
    transform: translateY(calc(var(--ticker-h, 0px) + 16px));     /* starts at the top, just under the ticker */
    filter: drop-shadow(-1px 1px 3px rgb(40 0 60 / .6));
  }
}

/* ---------- come along: cards in among the collage ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: calc(6 * var(--u)) calc(16 * var(--u)); margin: 0; font-size: calc(15 * var(--fu)); }
.facts dt { font-size: calc(23 * var(--fu)); line-height: 1.05; }
.facts dd { margin: 0; align-self: center; }
.bring { text-align: center; }
.bring p { margin: 0; }
.bring-title { font-size: calc(32 * var(--fu)); line-height: 1; }
.bring-list { font-size: calc(23 * var(--fu)); line-height: 1.05; }
.email { text-align: center; }
.email-label { font-size: calc(20 * var(--fu)); text-transform: uppercase; margin: 0 0 calc(10 * var(--u)); }
.email-link {
  display: inline-block; font-size: calc(19 * var(--u)); text-transform: uppercase; text-decoration: none;
  background: var(--green); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  padding: calc(8 * var(--u)) calc(16 * var(--u)) calc(6 * var(--u)); overflow-wrap: anywhere;
}
.email-link:hover { background: var(--lime); }
.join-board { margin: calc(14 * var(--u)) 0 0; font-size: calc(14.5 * var(--fu)); }
.collage .paper { padding: calc(18 * var(--u)) calc(20 * var(--u)); }
.c-rocket, .c-tricycle { filter: drop-shadow(-1px 1px 3px rgb(40 0 60 / .6)); }
/* The GPU stack animation (images/animations/gpu-stack.gif) is on black. Blending it with "add"
   drops the black and prints it pink and white, like the season cards. */
.c-gpu { mix-blend-mode: screen; mix-blend-mode: plus-lighter; }
/* Trump rides right to left over the "come along" cards, the way he faces in the GIF (not mirrored,
   so the USA on his cap reads properly): off the left edge of the window and back on from the right,
   round and round. Clicks pass through him.
   steps(): he moves in jumps at 5 a second, in time with the GIF's stop-frame pedalling. */
.ride { position: absolute; z-index: 8; top: calc(-20 * var(--u)); left: calc(50% - 50vw); width: 100vw; height: calc(225 * var(--u)); overflow: hidden; pointer-events: none; }
.ride .c-tricycle { position: absolute; top: 0; left: 0; display: block; width: calc(230 * var(--u)); height: auto; translate: 100vw 0; animation: ride 13s steps(65) infinite; }
@keyframes ride { from { translate: 100vw 0; } to { translate: -100% 0; } }
.collage .site-foot { margin: 0; padding: 0; display: block; }

/* ---------- 1100px and wider: the layout as drawn ---------- */
@media (min-width: 1100px) {
  .page > .site-nav { position: absolute; z-index: 5; top: calc(35 * var(--u)); right: calc(46 * var(--u)); font-size: calc(17 * var(--fu)); gap: calc(14 * var(--u)); }

  .home-head { position: relative; height: calc(478 * var(--u)); }
  .home-head > * { position: absolute; margin: 0; }
  /* The title in the centre with its lettering underneath and a meme either side of the lettering
     (below the title, never over it). David Lynch on the left, Twin Peaks on the right. */
  .home-title { z-index: 2; left: calc(400 * var(--u)); top: calc(72 * var(--u)); width: calc(640 * var(--u)); }
  .home-title img { width: 100%; height: auto; }
  .home-sub { z-index: 2; left: calc(531 * var(--u)); top: calc(338 * var(--u)); width: calc(379 * var(--u)); }
  .sub-programme { width: calc(379 * var(--u)); }
  .sub-group { width: calc(321 * var(--u)); margin: calc(6 * var(--u)) 0 0 calc(29 * var(--u)); }
  .still { border-width: calc(8 * var(--u)); }
  .still-left { left: calc(123 * var(--u)); top: calc(110 * var(--u)); width: calc(250 * var(--u)); }
  .still-right { left: calc(1066 * var(--u)); top: calc(150 * var(--u)); width: calc(300 * var(--u)); }
  .home-head .c-meme  { z-index: 3; left: calc(394 * var(--u)); top: calc(340 * var(--u)); width: calc(128 * var(--u)); }
  .home-head .c-water { z-index: 3; left: calc(40 * var(--u)); top: calc(390 * var(--u)); width: calc(180 * var(--u)); border-width: calc(6 * var(--u)); rotate: -3deg; }   /* left of the worm */
  .home-head .c-jesus { z-index: 3; left: calc(922 * var(--u)); top: calc(338 * var(--u)); width: calc(120 * var(--u)); }
  .head-label { left: calc(530 * var(--u)); top: calc(478 * var(--u)); width: calc(390 * var(--u)); }
  /* the talking worm: its top at the top of the seasons section (level with the four seasons line),
     peeking over the WINTER name with its lower half tucked behind the card */
  .worm-talk { z-index: 1; left: calc(210 * var(--u)); top: 100%; width: calc(185 * var(--u)); }
  .seasons { padding-top: calc(106 * var(--u)); }
  .scroll-btn { top: calc(304 * var(--u)); }

  .collage { position: relative; height: calc(468 * var(--u)); margin-top: calc(10 * var(--u)); }
  .join-cards { display: contents; }
  .collage > *, .join-cards > * { position: absolute; margin: 0; }
  /* A row of cards straight under the seasons (When/Where/Who, email, bring along), then the GPU
     stack animation, and the copyright line centred underneath. Nothing goes left of 130, so the rocket has the left edge to itself. */
  .facts-card    { z-index: 3; left: calc(155 * var(--u));  top: calc(20 * var(--u));  width: calc(440 * var(--u)); }
  .email         { z-index: 3; left: calc(620 * var(--u));  top: calc(26 * var(--u));  width: calc(420 * var(--u)); }
  .bring         { z-index: 3; left: calc(1065 * var(--u)); top: calc(24 * var(--u));  width: calc(219 * var(--u)); }
  .c-gpu         { z-index: 1; left: calc(587 * var(--u));  top: calc(228 * var(--u)); width: calc(267 * var(--u)); }
  .collage .c-rocket { display: none; }       /* on wide screens the rocket flies up and down the left edge */
  .collage .site-foot { z-index: 3; left: 50%; translate: -50% 0; top: calc(424 * var(--u)); white-space: nowrap; }
  .collage .site-foot .label { font-size: calc(13 * var(--fu)); }
}

/* ---------- narrower than 1100px: stacked ---------- */
@media (max-width: 1099.98px) {
  .page { --u: 1px; --fu: 1px; padding: 0 var(--gap); }
  .page > .site-nav { padding-top: 12px; }

  .home-head {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; justify-items: center; align-items: start; margin-top: 10px;
    grid-template-areas: "title title title title" "meme sub sub jesus" "label label label label" "sl sl sr sr" "wm wt wt wt";
  }
  .home-title { grid-area: title; } .home-sub { grid-area: sub; } .still-left { grid-area: sl; } .still-right { grid-area: sr; }
  .head-label { grid-area: label; } .home-head .c-meme { grid-area: meme; } .home-head .c-jesus { grid-area: jesus; }
  .home-title, .home-sub, .head-label { margin: 0; }
  .home-title { width: min(647px, 100%); }
  .home-title img { width: 100%; height: auto; }
  .home-sub { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: -6px; }
  .sub-programme { width: min(379px, 100%); }
  .sub-group { width: min(321px, 85%); }
  .still { width: calc(100% - 12px); max-width: 320px; border-width: 6px; }
  .still-left { rotate: -2deg; }
  .still-right { rotate: 2deg; margin-top: 22px; }
  .head-label { width: min(390px, 94%); }
  .home-head .c-meme  { width: min(170px, 100%); rotate: -4deg; align-self: center; }
  .home-head .c-jesus { width: min(130px, 88%); rotate: 4deg; align-self: center; }
  .home-head { position: relative; }
  .worm-talk { grid-area: wt; position: relative; justify-self: start; --wtw: min(165px, 40vw); width: var(--wtw); margin: 10px 0 -43px 0; z-index: 0; }   /* feet behind the WINTER name */
  .home-head .c-water { grid-area: wm; width: calc(100% - 8px); border-width: 4px; rotate: -3deg; align-self: center; }
  .email-link { font-size: clamp(12.5px, 3.4vw, 19px); }

  .programme { margin-top: 10px; }
  .ride { top: -14px; height: min(40vw, 230px); }
  .ride .c-tricycle { width: min(40vw, 230px); animation-duration: 7s; animation-timing-function: steps(35); }
  .seasons { --pad-s: var(--gap); --gap-s: calc(2 * var(--gap)); padding-top: 56px; padding-bottom: 24px; margin: 0 calc(-1 * var(--gap)); }
  .season { padding: 0 18px 12px; }
  .scroll-btn { display: none; }
  .scroll-hint { display: block; margin: -10px 0 0; text-align: right; font-size: 24px; line-height: 1; }
  .season-name { left: 14px; top: -30px; width: min(calc(var(--nw) * 1px), 60%); }
  .season-range { position: static; margin: 0 0 0 auto; padding-top: 16px; width: min(calc(var(--dw) * 1px), 36%); }
  .season-theme { width: min(calc(var(--tw) * 1px), 100%); margin: 18px 0 0; }
  .season-gif { position: static; display: block; width: min(360px, 92%); margin: 8px auto 0; }

  .collage { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 16px; margin-top: 24px; }
  .join-cards { display: contents; }
  .facts-card { order: 1; width: min(460px, 100%); }
  .email      { order: 2; width: min(460px, 100%); }
  .bring      { order: 3; width: min(240px, 52%); }
  .c-rocket   { order: 4; width: min(218px, 39%); }
  .c-gpu      { order: 7; width: min(200px, 32%); }
  .collage .site-foot { order: 8; width: 100%; text-align: center; margin-top: 10px; }
}
@media (max-width: 699.98px) {
  .seasons { --gap-s: 18px; }
  .season { flex-basis: min(86vw, 440px); }          /* the next season peeks in, so it's clear you can swipe */
  .m-item { grid-template-columns: 54px minmax(0, 1fr); gap: 4px 14px; }
  .m-desc { grid-column: 1 / -1; padding-top: 4px; }   /* the description runs the full width under the book */
  .m-blurb, .m-link { font-size: 14px; }
}

/* ---------- month page ---------- */
.month-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: calc(var(--gap) * 1.4); align-items: center; margin-top: 10px; }
.month-card { padding: 22px 28px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px; }
.season-chip { --blob-c: var(--season-c); font-size: 18px; text-transform: uppercase; margin-left: 8px; }
.crumbs-theme { font-size: 14px; font-weight: 600; }
.month-title .book-title { display: block; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; text-transform: uppercase; }
.month-title .book-subtitle { display: block; font: 600 clamp(16px, 1.6vw, 19px)/1.3 var(--body); margin-top: 8px; }
.month-byline { font-size: 25px; line-height: 1; margin: 10px 0 14px; }
.meet { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; }
.meet > .marker { font-size: 22px; }
.meet-speaker { font-weight: 600; font-size: 15px; }
.where { font-size: 14px; font-weight: 600; color: var(--grey); margin: 2px 0 0; }
.month-hero .cover-hero { width: 100%; max-width: 240px; justify-self: center; }

.notes { margin-top: 36px; }
.notes-paper { --tilt: -.3deg; padding: clamp(20px, 3vw, 34px); }
.notes-title { font-size: 34px; text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
.notes-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: calc(var(--gap) * 1.6); }
.prose p { font-size: 17.5px; line-height: 1.6; margin: 0 0 1em; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.notes-lists h3 { font-size: 18px; margin: 0 0 12px 8px; transform: rotate(-1.5deg); }
.notes-lists > div + div { margin-top: 24px; }
.notes-lists ul, .notes-lists ol { margin: 0; padding-left: 1.3em; }
.notes-lists li { margin-bottom: 7px; }
.notes-lists li::marker { font-family: var(--marker); }

.discussion { margin-top: 44px; }
.discussion > .label { margin-top: 8px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 48px; }
.pager a { text-decoration: none; display: flex; flex-direction: column; padding: 12px 18px; justify-self: start; }
.pager span { font-size: 21px; line-height: 1; }
.pager cite { font-size: 19px; line-height: 1.15; }
.pager a:hover cite { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
.pager-prev { --tilt: -1deg; }
.pager-next { --tilt: 1deg; text-align: right; align-items: flex-end; justify-self: end !important; }

/* ---------- board ---------- */
.board-page { padding-top: 16px; }
.board-page > .label { margin-top: 10px; }
.board-page #board { margin-top: 24px; }

.thread-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  font-size: 16px; line-height: 1;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
  padding: 7px 13px 5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { background: var(--green); }
.chip[aria-selected="true"] { background: var(--season-c, var(--pink)); }
.chip-count { font: 600 11px/1 var(--body); background: var(--ink); color: var(--white); border-radius: 99px; padding: 3px 6px; }

.thread-head { margin-bottom: 8px; }
.thread-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.05; text-transform: uppercase; text-shadow: 2px 2px 0 var(--white); }
.thread-note { margin-top: 8px !important; font-weight: 600; }

.board-notice { font-size: 13.5px; margin: 0 0 22px; max-width: 760px; --tilt: -.4deg; padding: 12px 16px; }

.posts { list-style: none; padding: 0; margin: 22px 0 34px; max-width: 720px; display: grid; gap: 24px; }
.post { transform: rotate(-.4deg); }
.post:nth-child(even) { transform: rotate(.5deg); margin-left: clamp(0px, 4vw, 40px); }
.post-body {
  position: relative; margin: 0; width: fit-content; min-width: 200px; max-width: 100%;
  background: var(--white); border-radius: 24px 28px 22px 26px;
  padding: 14px 20px; white-space: pre-wrap; overflow-wrap: anywhere;
  filter: drop-shadow(2px 3px 0 var(--ink));
}
.post-body::after {
  content: ''; position: absolute; left: 32px; bottom: -14px; width: 24px; height: 16px;
  background: var(--white); clip-path: polygon(0 0, 100% 0, 10% 100%);
}
.post-meta { margin: 14px 0 0 22px; display: inline-flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; padding: 2px 10px; }
.post-meta strong { font-size: 21px; line-height: 1.1; }
.post-empty { font-size: 22px; padding: 4px 12px; justify-self: start; }
.post-delete { margin-left: 4px; font: 600 12px var(--body); background: var(--white); border: 2px solid var(--ink); border-radius: 6px; padding: 2px 8px; cursor: pointer; }

.post-form-wrap { display: grid; grid-template-columns: minmax(0, 700px) 200px; gap: 10px; align-items: end; }
.post-form { --tilt: .4deg; padding: 22px 24px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 23px; line-height: 1; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 2.5px solid var(--ink); border-radius: 12px; padding: 9px 12px; width: 100%;
}
.field input { max-width: 320px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 4px solid var(--pink); outline-offset: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 600; }
.form-small { margin: 12px 0 0; color: var(--grey); font-size: 13px; }

.worm-says { display: flex; flex-direction: column; align-items: center; }
.worm-says .bubble { font-size: 25px; line-height: 1; margin: 0 0 2px 24px; padding: .8em 1.1em 1.4em; transform: rotate(-6deg); white-space: nowrap; }
.worm-says .worm { width: 100px; height: auto; transform-origin: 50% 100%; animation: wiggle 2.6s ease-in-out infinite; }

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
  .month-hero, .notes-grid { grid-template-columns: 1fr; }
  .month-hero .cover-hero { max-width: 190px; }
  .post-form-wrap { grid-template-columns: 1fr; }
  .worm-says { flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 620px) {
  .site-head .logo img { width: 160px; }
  .site-nav { font-size: 15px; }
  .site-nav a { padding: 4px 9px 2px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .prose p { font-size: 16.5px; }
  .pager { grid-template-columns: 1fr; }
  .worm-says .worm { width: 80px; }
  .worm-says .bubble { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .still, .still:hover, .home-head.is-wiggling .still { animation: none !important; }
  .ticker { height: auto; }
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; padding: 6px 0; }
  .ticker-run { flex-wrap: wrap; }
  .ticker-run + .ticker-run { display: none; }
  .drone { animation: none; }
  .ride .c-tricycle { animation: none; translate: none; left: auto; right: 1%; }
  .worm { animation: none !important; }
  .worm-talk, .worm-talk .wt-words { animation: none !important; clip-path: none !important; }
  .button { transition: none; }
}
