/* =========================================================
   Primary Pedagogy: styles taken from the Teaching Primary
   Maths cover: cream paper, grainy paint strokes, bold ink.
   ========================================================= */
:root {
  --cream: #faf7ee;
  --cream-2: #f3eedf;
  --ink: #141414;
  --muted: #57534b;
  --pink: #ec1c84;
  --pink-soft: #f7a8cf;
  --blue: #2ea3dd;
  --blue-deep: #1d6fa5;
  --yellow: #f4e526;
  --green: #8cc63f;
  --orange: #f7941d;
  --radius: 22px;
  --display: "Lilita One", "Arial Black", sans-serif;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --body: "Nunito", system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
.wrap--mid { max-width: 900px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hand { font-family: var(--hand); }
.big { font-size: 1.2rem; }

/* Accent colour helpers */
.c-pink   { --accent: var(--pink); }
.c-blue   { --accent: var(--blue); }
.c-yellow { --accent: var(--yellow); }
.c-green  { --accent: var(--green); }
.c-orange { --accent: var(--orange); }

/* Hand-drawn underline under headings */
.squiggle { position: relative; padding-bottom: .35em; }
.squiggle::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 140px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 14'%3E%3Cpath d='M3 9c15-8 25 4 40-1s22-7 36-1 25 5 37-1 16-4 21-2' fill='none' stroke='%23ec1c84' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.squiggle.center::after, .center .squiggle::after { left: 50%; transform: translateX(-50%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-align: center;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 800; padding: 12px 24px; border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--pink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pink); }
.btn--big { padding: 15px 30px; font-size: 1.1rem; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--yellow); }
.btn--ghost:hover { box-shadow: 7px 7px 0 var(--yellow); }
.btn--small { padding: 7px 18px; box-shadow: 3px 3px 0 var(--pink); }
.link { font-weight: 800; color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.3rem; text-decoration: none; }
.nav__logo {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--pink) 0 25%, var(--blue) 0 50%, var(--yellow) 0 75%, var(--green) 0);
  box-shadow: inset 0 0 0 7px var(--cream), inset 0 0 0 9px var(--ink);
}
.nav__menu { display: flex; align-items: center; gap: 22px; font-weight: 800; font-size: .98rem; }
.nav__menu a:not(.btn) { text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav__menu a:not(.btn):hover, .nav__menu a[aria-current] { border-color: var(--pink); }
.nav__ig { display: flex; align-items: center; gap: 6px; }
.nav__ig-label { display: none; }
.nav__toggle { display: none; }

@media (max-width: 880px) {
  .nav__toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--yellow); border: 3px solid var(--ink); cursor: pointer; padding: 0;
  }
  .nav__burger, .nav__burger::before, .nav__burger::after {
    display: block; width: 20px; height: 3px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s;
  }
  .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
  .nav__burger::before { top: -7px; }
  .nav__burger::after { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__burger::after { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 3px solid var(--ink);
    padding: 8px 20px 24px; font-size: 1.15rem;
    display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 2px dashed rgba(0,0,0,.12); }
  .nav__menu a:not(.btn):hover, .nav__menu a[aria-current] { color: var(--pink); border-color: rgba(0,0,0,.12); }
  .nav__ig-label { display: inline; }
  .nav__menu .btn { margin-top: 18px; padding: 14px; }
}

/* ---------- Paint strokes (the cover's frame) ---------- */
.paint { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.paint .p, .paint .b { position: absolute; display: block; border-radius: 999px; }
.paint .p { transform: rotate(-35deg); }
.paint .p::after, .paint .b::after, .band::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grain); mix-blend-mode: soft-light; opacity: .9;
}
.p1 { width: 420px; height: 110px; top: -30px;  left: -140px; background: linear-gradient(90deg, var(--pink), var(--pink-soft)); }
.p2 { width: 360px; height: 90px;  top: 120px;  left: -170px; background: linear-gradient(90deg, var(--yellow), var(--green)); }
.p3 { width: 300px; height: 80px;  bottom: 90px; left: -120px; background: linear-gradient(90deg, var(--blue), #6cc3ec); }
.p4 { width: 380px; height: 100px; bottom: -40px; left: 10%;   background: linear-gradient(90deg, var(--orange), #fbc689); }
.p5 { width: 460px; height: 120px; top: -20px;  right: -170px; background: linear-gradient(90deg, #6cc3ec, var(--blue)); }
.p6 { width: 320px; height: 84px;  top: 190px;  right: -150px; background: linear-gradient(90deg, var(--pink-soft), var(--pink)); }
.p7 { width: 360px; height: 90px;  bottom: 60px; right: -130px; background: linear-gradient(90deg, var(--green), var(--yellow)); }
.p8 { width: 260px; height: 64px;  bottom: -20px; right: 28%;  background: linear-gradient(90deg, var(--yellow), #fff59a); }
.b { width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, #c6e88f, var(--green)); }
.b1 { top: 90px; left: 38%; }
.b2 { top: 58%; left: 4%; width: 30px; height: 30px; background: radial-gradient(circle at 35% 30%, #a8dcf5, var(--blue)); }
.b3 { bottom: 120px; right: 34%; width: 26px; height: 26px; background: radial-gradient(circle at 35% 30%, #fbb3d5, var(--pink)); }
.b4 { top: 34%; right: 4%; width: 34px; height: 34px; background: radial-gradient(circle at 35% 30%, #fff8a8, var(--yellow)); }
.paint--soft { opacity: .55; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero__inner {
  position: relative; z-index: 1;
  max-width: 1140px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center;
}
.hero__text {
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  border-radius: 40px; padding: 8px 0;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .82rem; color: var(--muted); margin-bottom: .6em; }
.eyebrow a { color: inherit; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); margin-bottom: .15em; line-height: 1; }
.hero__line { display: block; }
.maths { display: block; font-size: 1.5em; letter-spacing: .02em; line-height: 1.05; }
.maths span { display: inline-block; }
.maths span:nth-child(1) { -webkit-text-stroke: 4px var(--yellow); paint-order: stroke fill; transform: rotate(-5deg); }
.maths span:nth-child(2) { color: var(--blue); font-family: var(--hand); font-size: .7em; transform: translateY(-.1em); }
.maths span:nth-child(3) { -webkit-text-stroke: 4px var(--pink); paint-order: stroke fill; transform: rotate(4deg); }
.maths span:nth-child(4) { -webkit-text-stroke: 4px var(--green); paint-order: stroke fill; transform: translateY(.04em); }
.maths span:nth-child(5) { color: var(--pink); transform: rotate(-4deg); }
.hero__sub { color: var(--pink); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; margin-bottom: .7em; }
.lede { font-size: 1.15rem; max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.hero__cover { margin: 0; }
.hero__cover img {
  border-radius: 6px; max-width: 400px; width: 100%; margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 30px 50px -16px rgba(0,0,0,.45);
  transform: rotate(3deg); transition: transform .35s ease;
}
.hero__cover img:hover { transform: rotate(0) scale(1.03); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 0 20px; }
  .hero__text { padding: 16px 8px; }
  .hero__cta { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero__cover img { max-width: 260px; }
  .p1 { width: 260px; height: 70px; left: -110px; top: -20px; }
  .p2, .p6, .b1, .b3 { display: none; }
  .p5 { width: 280px; height: 76px; right: -130px; top: -10px; }
  .p3 { width: 220px; height: 60px; bottom: 140px; left: -120px; }
  .p7 { width: 240px; height: 64px; bottom: 220px; right: -130px; }
  .p4 { width: 260px; height: 70px; }
  .p8 { width: 200px; height: 50px; right: -40px; }
}

/* Multicolour diagonal strip, like the cover's paint strokes */
.stripe, .foot__stripe {
  height: 18px;
  background: repeating-linear-gradient(-55deg,
    var(--pink) 0 34px, var(--yellow) 34px 68px, var(--blue) 68px 102px,
    var(--green) 102px 136px, var(--orange) 136px 170px);
}

/* ---------- Sections & colour bands ---------- */
.section { position: relative; padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.band { position: relative; overflow: hidden; isolation: isolate; }
.band::before { z-index: -1; border-radius: 0; opacity: .5; }
.band--pink   { background: linear-gradient(135deg, var(--pink) 0%, #f0479a 55%, var(--orange) 130%); }
.band--blue   { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 70%, var(--green) 140%); }
.band--yellow { background: linear-gradient(135deg, var(--yellow) 0%, #f8ec5e 50%, var(--green) 150%); }
.on-colour { color: #fff; text-shadow: 3px 3px 0 var(--ink); }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.about__topics {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 28px; box-shadow: 8px 8px 0 var(--blue); transform: rotate(1deg);
}
.about__topics h3 { font-size: 1.7rem; margin-bottom: .5em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-weight: 800; font-size: .95rem; padding: 6px 16px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
}
.chips .c-pink, .chips .c-blue { color: #fff; }
.chips .c-blue { background: var(--blue-deep); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__topics { transform: none; }
}

/* Who it's for */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.card {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 34px 28px 28px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.card:nth-child(2) { transform: translateY(14px); }
.card__num {
  position: absolute; top: -26px; left: 24px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: 1.8rem;
  background: var(--accent); border: 3px solid var(--ink);
}
.card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; gap: 44px; margin-top: 40px; }
  .card:nth-child(2) { transform: none; }
}

/* Contents */
.toc { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.toc__part {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 26px;
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--accent);
}
.toc__num {
  flex: none; width: 64px; height: 64px; border-radius: 18px; transform: rotate(-6deg);
  display: grid; place-items: center; font-family: var(--display); font-size: 2.4rem;
  background: var(--accent); border: 3px solid var(--ink);
}
.toc__label { font-family: var(--hand); font-size: 1.3rem; color: var(--muted); margin: 0; }
.toc__part h3 { margin-bottom: .5em; }
.toc__part ol { margin: 0; padding-left: 1.5em; }
.toc__part ol li { padding: 2px 0; }
.toc__part ol li::marker { font-weight: 800; }
@media (max-width: 860px) { .toc { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .toc__part { flex-direction: column; gap: 12px; padding: 22px; }
  .toc__num { width: 52px; height: 52px; font-size: 2rem; }
}

/* Quote */
.quote { padding: 88px 0; text-align: center; }
.quote blockquote { margin: 0 auto; }
.quote p { font-family: var(--hand); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.3; }
.quote p::before, .quote p::after { color: var(--pink); font-family: var(--display); }
.quote p::before { content: "“"; }
.quote p::after { content: "”"; }
.quote footer { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }

/* Look inside */
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; max-width: 860px; margin-inline: auto; }
.page {
  border: 0; padding: 0; background: none; cursor: zoom-in; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.page img {
  background: #fff; border-radius: 4px; border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent); transition: transform .2s ease;
}
.page:nth-child(odd) img { transform: rotate(-2deg); }
.page:nth-child(even) img { transform: rotate(2deg); }
.page:hover img, .page:focus-visible img { transform: translateY(-6px) rotate(0); }
.page:focus-visible { outline: none; }
.page:focus-visible img { outline: 3px solid var(--blue); outline-offset: 4px; }
.page span { font-weight: 800; background: var(--accent); padding: 2px 14px; border-radius: 999px; }
.page.c-pink span, .page.c-blue span { color: #fff; }
.page.c-blue span { background: var(--blue-deep); }
@media (max-width: 720px) {
  .pages { gap: 14px; }
  .page span { font-size: .8rem; padding: 2px 10px; }
  .page img { box-shadow: 5px 5px 0 var(--accent); }
}
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.viewer::backdrop { background: rgba(20,20,20,.85); }
.viewer img { max-height: 90vh; width: auto; border-radius: 4px; background: #fff; }
.viewer__close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer;
  background: var(--yellow); color: var(--ink); font-size: 1.6rem; line-height: 1;
}

/* Author */
.author {
  display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center;
  background: #fff; border: 3px solid var(--ink); border-radius: 32px;
  padding: 44px; box-shadow: 10px 10px 0 var(--ink); max-width: 960px; margin: 0 auto;
}
.author__badge {
  width: 220px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink);
  background: conic-gradient(var(--pink) 0 25%, var(--blue) 0 50%, var(--yellow) 0 75%, var(--green) 0);
  display: grid; place-items: center;
}
.author__badge span {
  width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-size: 3.4rem;
}
.author__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.pill-link {
  text-decoration: none; font-weight: 800; padding: 6px 18px; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--accent);
}
.pill-link.c-pink, .pill-link.c-blue { color: #fff; }
.pill-link.c-blue { background: var(--blue-deep); }
.pill-link:hover { transform: translateY(-2px); }
@media (max-width: 760px) {
  .author { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; text-align: center; }
  .author__badge { width: 150px; margin: 0 auto; }
  .author__badge span { font-size: 2.4rem; }
  .author p { text-align: left; }
  .author__links { justify-content: center; }
}

/* Buy */
.buy { overflow: hidden; }
.buy__inner { position: relative; display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; max-width: 960px; }
.buy__cover { max-width: 320px; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 30px 50px -16px rgba(0,0,0,.45); }
.buy__panel { background: #fff; border: 3px solid var(--ink); border-radius: 28px; padding: 36px; box-shadow: 10px 10px 0 var(--green); }
.buy__buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 0 4px; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 28px 0 0; padding-top: 24px; border-top: 3px dashed rgba(0,0,0,.15); }
.details dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.details dd { margin: 0; font-weight: 700; }
@media (max-width: 760px) {
  .buy__inner { grid-template-columns: 1fr; gap: 32px; }
  .buy__cover { max-width: 200px; margin: 0 auto; }
  .buy__panel { padding: 26px 22px; }
  .buy__buttons .btn { flex: 1 1 100%; }
}

/* ---------- News & events (homepage + pages) ---------- */
.updates__label { font-family: var(--hand); font-size: 1.8rem; margin: 40px 0 18px; }
.updates__more { margin: 18px 0 0; text-align: right; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.news-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--accent);
  transition: transform .15s ease;
}
.news-card:hover { transform: translateY(-4px); }
.news-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 3px solid var(--ink); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.card-art {
  display: block; width: 100%; height: 100%; position: relative;
  background:
    radial-gradient(circle at 78% 30%, var(--yellow) 0 22px, transparent 23px),
    linear-gradient(-35deg, transparent 30%, var(--accent) 30% 48%, transparent 48% 58%, var(--blue) 58% 70%, transparent 70%),
    var(--cream-2);
}
.news-card__body { padding: 22px 24px 26px; }
.news-card time { font-weight: 800; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { margin: .3em 0 .4em; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--pink); }
.news-card p { margin: 0; color: var(--muted); }

.event-list { display: grid; gap: 20px; }
.event-card {
  display: flex; gap: 22px; align-items: flex-start; background: #fff; border-radius: var(--radius);
  padding: 22px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--accent);
}
.event-card__date {
  flex: none; width: 82px; text-align: center; padding: 10px 0 8px; border-radius: 18px;
  background: var(--accent); border: 3px solid var(--ink);
  font-weight: 800; text-transform: uppercase; font-size: .9rem; line-height: 1.1; transform: rotate(-4deg);
}
.event-card__date span { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.event-card h3 { margin: 0 0 .3em; }
.event-card h3 a { text-decoration: none; }
.event-card h3 a:hover { color: var(--pink); }
.event-card__when { font-weight: 800; margin: 0 0 .2em; }
.event-card__where { color: var(--muted); margin: 0 0 .4em; }
.event-card__where::before { content: "📍 "; }
.event-card p:last-child { margin-bottom: 0; }
.event-card--past { opacity: .7; box-shadow: 6px 6px 0 rgba(0,0,0,.15); }
.event-card--past .event-card__date { background: var(--cream-2); }
@media (max-width: 520px) {
  .event-card { gap: 16px; padding: 18px; }
  .event-card__date { width: 64px; font-size: .78rem; }
  .event-card__date span { font-size: 1.7rem; }
}

.page-head { position: relative; overflow: hidden; padding: 72px 0 64px; border-bottom: 3px solid var(--ink); isolation: isolate; }
.page-head--pink { background: linear-gradient(135deg, var(--pink), #f0479a 60%, var(--orange) 140%); }
.page-head--blue { background: linear-gradient(135deg, var(--blue-deep), var(--blue) 70%, var(--green) 150%); }
.page-head h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); text-shadow: 4px 4px 0 var(--ink); max-width: 18em; }
.page-head .eyebrow { color: #fff; }
.page-head__intro { color: #fff; font-size: 1.2rem; max-width: 36em; font-weight: 700; margin: 0; }
.page-head__paint span { position: absolute; z-index: -1; border-radius: 999px; transform: rotate(-35deg); opacity: .9; }
.page-head__paint span:nth-child(1) { width: 320px; height: 80px; right: -60px; top: 10px; background: var(--yellow); }
.page-head__paint span:nth-child(2) { width: 260px; height: 64px; right: 140px; bottom: -30px; background: var(--green); }
.page-head__paint span:nth-child(3) { width: 200px; height: 52px; right: -40px; bottom: 30px; background: var(--orange); }
.page-head__paint span:nth-child(4) { width: 40px; height: 40px; right: 300px; top: 30px; background: #fff; transform: none; }
.page-head--blue .page-head__paint span:nth-child(1) { background: var(--pink); }
@media (max-width: 720px) {
  .page-head { padding: 48px 0 44px; }
  .page-head__paint span { opacity: .5; }
  .page-head__paint span:nth-child(4) { display: none; }
}

.post__img { margin: 0 0 32px; }
.post__img img { width: 100%; border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
.post__back { margin-top: 48px; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.2em; }
.prose a { color: var(--pink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; background: #fff; border-left: 8px solid var(--yellow); border-radius: 12px; font-style: italic; }
.prose blockquote p { margin: 0; }

.event-facts { display: grid; gap: 14px; margin: 0 0 24px; padding: 22px 24px; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--blue); }
.event-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.event-facts dd { margin: 0; font-weight: 800; font-size: 1.1rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.past-heading { margin-top: 64px; }

.empty { text-align: center; padding: 48px 24px; background: #fff; border: 3px dashed rgba(0,0,0,.2); border-radius: var(--radius); }
.empty .hand { font-size: 1.8rem; margin-bottom: .3em; }
.empty a { color: var(--pink); font-weight: 800; }
.pager { display: flex; justify-content: space-between; margin-top: 40px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #e9e5da; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 20px; }
.foot__brand { font-family: var(--display); font-size: 1.6rem; color: #fff; margin: 0 0 .2em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 800; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--yellow); }
.foot__small { margin: 0; padding: 18px 20px 28px; text-align: center; font-size: .88rem; color: #a9a49a; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
