:root {
  --paper: #fdf8ee;
  --grid: #ece5d6;
  --ink: #3a2a1f;
  --ink-soft: #6b5646;
  --orange: #f27c2f;
  --orange-deep: #7a3b14;
  --green: #6cb83a;

  --pink: #f7b6cf;
  --butter: #fbe08a;
  --sky: #b4dcf7;
  --lavender: #d5c4f3;
  --lime: #d4ec9b;
  --peach: #f9d3b0;

  --pink-ink: #b3366d;
  --butter-ink: #9a6b00;
  --sky-ink: #2f6fa5;
  --lavender-ink: #6a47b3;

  --line: #c9dcef;
  --margin: #f2a3a3;
  --shadow: 0 2px 0 rgba(58, 42, 31, .08), 0 14px 30px -12px rgba(58, 42, 31, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.65 "Nunito", system-ui, sans-serif;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grid) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--butter); }
:focus-visible { outline: 3px dashed var(--orange); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; position: relative; }
.wrap--narrow { width: min(760px, 100% - 32px); }

/* ── Headings (bubbly outlined like the posts) ─────────────── */
.title, .heading {
  font-family: "Chewy", cursive;
  font-weight: 400;
  color: var(--orange);
  -webkit-text-stroke: 7px var(--orange-deep);
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 #f9b27c;
  letter-spacing: .02em;
  line-height: 1;
  margin: 0;
}
.heading { font-size: clamp(44px, 7vw, 68px); -webkit-text-stroke-width: 6px; margin-bottom: 18px; }
.heading--center { text-align: center; }
.subheading {
  font-family: "Gochi Hand", cursive;
  font-weight: 400;
  color: var(--green);
  font-size: 30px;
  margin: 30px 0 10px;
  line-height: 1.1;
}
.subline {
  font-family: "Gochi Hand", cursive;
  text-align: center;
  color: var(--orange);
  font-size: 24px;
  margin: -6px 0 36px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 72px 16px 56px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero__badge {
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: #fff;
  animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) both;
}
.title { font-size: clamp(64px, 13vw, 150px); }
.title__line { display: block; }
.title__line + .title__line { margin-top: -.06em; }
.title .ch { display: inline-block; animation: drop .7s cubic-bezier(.3, 1.5, .5, 1) both; }
.hero__tag {
  font-family: "Gochi Hand", cursive;
  color: var(--green);
  font-size: clamp(22px, 3vw, 29px);
  margin: 18px auto 30px;
  max-width: 34ch;
  line-height: 1.25;
  animation: fadeUp .7s .55s both;
}

.pills { display: flex; flex-wrap: wrap; gap: 14px 16px; justify-content: center; }
.pill {
  --bg: var(--pink); --fg: var(--pink-ink);
  font-family: "Gochi Hand", cursive;
  font-size: 26px;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  padding: 8px 28px 10px;
  border-radius: 58% 42% 55% 45% / 60% 50% 50% 40%;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
  box-shadow: 0 4px 0 rgba(58, 42, 31, .12);
  animation: fadeUp .6s both;
}
.pill:nth-child(1) { animation-delay: .7s; transform: rotate(-2deg); }
.pill:nth-child(2) { animation-delay: .78s; transform: rotate(1.5deg); --bg: var(--butter); --fg: var(--butter-ink); border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
.pill:nth-child(3) { animation-delay: .86s; transform: rotate(-1deg); --bg: var(--sky); --fg: var(--sky-ink); border-radius: 50% 50% 60% 40% / 45% 60% 40% 55%; }
.pill:nth-child(4) { animation-delay: .94s; transform: rotate(2deg); --bg: var(--lavender); --fg: var(--lavender-ink); border-radius: 60% 40% 50% 50% / 50% 55% 45% 50%; }
.pill:hover { transform: translateY(-4px) rotate(0deg) scale(1.05); box-shadow: 0 8px 0 rgba(58, 42, 31, .14); }

.sponsors { margin-top: 40px; animation: fadeUp .7s 1.05s both; }
.sponsors__label {
  font-family: "Gochi Hand", cursive;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.sponsors__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.sponsor {
  position: relative;
  background: #fff;
  padding: 12px 20px;
  min-height: 64px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transform: rotate(var(--r, -1deg));
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s;
}
.sponsor:hover { transform: rotate(0) translateY(-3px); }
.sponsor img { max-height: 44px; max-width: 150px; object-fit: contain; }
.sponsor::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 52px; height: 17px;
  translate: -50% 0; rotate: -4deg; background: var(--tape, var(--butter)); opacity: .85;
}
.sponsor--ask {
  background: transparent;
  box-shadow: none;
  border: 2.5px dashed #cdbca6;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
}
.sponsor--ask::before { display: none; }
.sponsor--ask:hover { border-color: var(--orange); color: var(--orange); }

/* hero doodles */
.hero__art { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.deco, .crayon { position: absolute; }
.blob { width: 300px; height: 260px; opacity: .9; }
.b-pink   { color: var(--pink);   left: -90px;  top: 40px;   rotate: -12deg; }
.b-yellow { color: var(--butter); right: -80px; top: -40px;  width: 280px; height: 280px; }
.b-blue   { color: var(--sky);    right: -60px; bottom: 60px; rotate: 160deg; }
.b-green  { color: var(--lime);   left: -70px;  bottom: -50px; width: 260px; height: 260px; }
.squig    { color: var(--lavender); width: 220px; height: 66px; left: 14%; top: 7%; rotate: -8deg; }
.splat    { width: 54px; height: 54px; animation: spin 18s linear infinite; }
.s1 { color: var(--pink); right: 18%; top: 15%; }
.s2 { color: #f6a96b; left: 9%; bottom: 27%; width: 40px; height: 40px; animation-direction: reverse; }
.star { width: 34px; height: 34px; color: #ffd84d; animation: twinkle 2.6s ease-in-out infinite; }
.st1 { left: 23%; top: 34%; }
.st2 { right: 22%; bottom: 31%; animation-delay: 1.1s; }

.crayon { width: 64px; height: 150px; transform-origin: 50% 90%; animation: wobble 3.4s ease-in-out infinite; }
.c-red    { color: #f06a5a; left: 6%;  top: 46%; rotate: -14deg; }
.c-blue   { color: #5ab3ee; right: 7%; top: 40%; rotate: 12deg; animation-delay: -1.2s; }
.c-green  { color: #6fd36a; left: 17%; bottom: 3%; rotate: 8deg; width: 50px; height: 118px; animation-delay: -2s; }
.c-purple { color: #b48cf0; right: 17%; bottom: 4%; rotate: -10deg; width: 50px; height: 118px; animation-delay: -.6s; }

/* ── Mini bar ──────────────────────────────────────────────── */
.minibar {
  position: fixed; inset: 10px 10px auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto;
  padding: 6px 8px 6px 8px;
  background: #fffdf7;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-140%);
  transition: transform .4s cubic-bezier(.3, 1.4, .5, 1);
}
.minibar.on { transform: none; }
.minibar__home { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Chewy", cursive; font-size: 22px; color: var(--orange); }
.minibar__home img { border-radius: 50%; }
.minibar__links { display: flex; gap: 4px; }
.minibar__links a {
  font-family: "Gochi Hand", cursive; font-size: 20px; text-decoration: none;
  padding: 2px 12px; border-radius: 999px; transition: background .2s;
}
.minibar__links a:hover { background: var(--butter); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 90px 0; position: relative; }
.section--last { padding-bottom: 110px; }

/* lined notebook paper */
.paper {
  position: relative;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent 63px, var(--margin) 63px, var(--margin) 65px, transparent 65px),
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--line) 33px 34px);
  background-position: 0 0, 0 22px;
  padding: 44px 40px 40px 92px;
  box-shadow: var(--shadow);
  border-radius: 4px;
}
.paper::before {
  /* binder holes */
  content: ""; position: absolute; left: 18px; top: 22px; bottom: 22px; width: 24px;
  background: radial-gradient(circle at 12px 12px, var(--paper) 0 8px, #d9d2c4 8px 9.5px, transparent 10px) 0 0 / 24px 46px repeat-y;
}

/* about */
.about { display: grid; grid-template-columns: 1fr 310px; gap: 28px 40px; align-items: start; }
.about__paper { grid-row: span 2; rotate: -.6deg; }
.about__paper p { margin: 0 0 12px; max-width: 62ch; }
.lead { font-size: 20px; font-weight: 700; }
.about__photo { margin-top: 30px; }
.about__photo2 { margin-left: 30px; }

.schools { list-style: none; padding: 6px 0 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 22px 18px; min-height: 34px; }
.school {
  position: relative; background: #fff; padding: 8px 8px 10px; text-align: center;
  box-shadow: var(--shadow); rotate: var(--r, -1deg);
  transition: rotate .3s cubic-bezier(.3, 1.6, .5, 1), transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.school:hover { rotate: 0deg; transform: translateY(-3px) scale(1.03); }
.school::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 52px; height: 16px; translate: -50% 0; rotate: 3deg;
  background: var(--tape, var(--sky)); opacity: .85;
}
.school img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.school__name { display: block; font-family: "Gochi Hand", cursive; font-size: 20px; line-height: 1.15; margin-top: 7px; }
.school--plain { background: var(--butter); padding: 10px 12px; }
.schools:empty { border-bottom: 2px dashed #e1d6c4; width: min(320px, 100%); }

.team { list-style: none; padding: 6px 0 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 22px 16px; }
.member {
  position: relative; background: #fff; padding: 7px 7px 8px; text-align: center;
  box-shadow: var(--shadow); rotate: var(--r, 0deg);
  transition: rotate .3s cubic-bezier(.3, 1.6, .5, 1), transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.member:hover { rotate: 0deg; transform: translateY(-3px) scale(1.04); }
.member::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 15px; translate: -50% 0; rotate: -4deg;
  background: var(--tape, var(--butter)); opacity: .85;
}
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.member__name { display: block; font-family: "Gochi Hand", cursive; font-size: 19px; line-height: 1.1; margin-top: 7px; }
.member__role { display: block; font-size: 12.5px; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.tags li {
  font-family: "Gochi Hand", cursive; font-size: 21px; line-height: 1.2;
  background: var(--c); padding: 6px 18px 7px;
  border-radius: 40% 60% 55% 45% / 60% 45% 55% 40%;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.tags li:nth-child(odd) { rotate: -1.5deg; }
.tags li:nth-child(even) { rotate: 1.5deg; }
.tags li:hover { transform: scale(1.07); }

/* polaroids with washi tape */
.polaroid {
  position: relative;
  margin: 0;
  background: #fff;
  padding: 12px 12px 40px;
  box-shadow: var(--shadow);
  rotate: var(--r, 0deg);
  transition: rotate .35s cubic-bezier(.3, 1.5, .5, 1), transform .35s cubic-bezier(.3, 1.5, .5, 1);
  cursor: zoom-in;
}
.polaroid::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px;
  translate: -50% 0; rotate: -3deg;
  background: var(--tape, var(--butter)); opacity: .82;
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}
.polaroid img { width: 100%; height: auto; aspect-ratio: auto; background: #eee; }
.polaroid figcaption {
  font-family: "Gochi Hand", cursive; font-size: 22px; text-align: center; padding: 6px 0 4px; color: var(--ink-soft);
}
.polaroid:hover { rotate: 0deg; transform: scale(1.03); z-index: 3; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 34px; }
.board .polaroid img { aspect-ratio: 4 / 5; object-fit: cover; }
.board .polaroid:nth-child(3n+2) { translate: 0 22px; }
.board .polaroid:last-child:nth-child(3n+1) { grid-column: 2; }

/* ── Donate ────────────────────────────────────────────────── */
.donate { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.donate__form { rotate: .4deg; }
.amounts { border: 0; padding: 0; margin: 0 0 18px; }
.amounts legend { font-weight: 800; margin-bottom: 10px; padding: 0; }
.amounts__row { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-bottom: 14px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; min-width: 66px; text-align: center;
  font-family: "Chewy", cursive; font-size: 24px; letter-spacing: .02em;
  padding: 6px 14px; border: 2.5px solid var(--ink); border-radius: 14px;
  background: #fff; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.chip span:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.chip input:checked + span { background: var(--butter); transform: rotate(-3deg); }
.chip input:focus-visible + span { outline: 3px dashed var(--orange); outline-offset: 3px; }

.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-weight: 800; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fffefa;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 9px 13px;
  box-shadow: 3px 3px 0 rgba(58, 42, 31, .85);
  transition: box-shadow .15s, transform .15s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #a8968a; font-style: italic; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--orange); }
.field input[aria-invalid="true"] { box-shadow: 4px 4px 0 #e2557a; }
/* date picker */
.datefield { position: relative; }
.datefield input { cursor: pointer; text-overflow: ellipsis; }
.cal {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
  width: 320px; max-width: calc(100vw - 32px);
  background: #fffdf7; border: 2.5px solid var(--ink); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 14px 14px;
  animation: calIn .22s cubic-bezier(.3, 1.5, .5, 1);
}
.cal[hidden] { display: none; }
@keyframes calIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__month { font-family: "Chewy", cursive; font-size: 24px; letter-spacing: .02em; }
.cal__nav {
  width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--sky); font: 800 18px/1 "Nunito", sans-serif; color: var(--ink); cursor: pointer;
}
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow { font-family: "Gochi Hand", cursive; font-size: 17px; color: var(--ink-soft); padding-bottom: 2px; }
.cal__day {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent;
  font: 700 15px/1 "Nunito", sans-serif; color: var(--ink); cursor: pointer;
  transition: background .15s, transform .15s;
}
.cal__day:hover:not(:disabled) { background: var(--butter); }
.cal__day.today { box-shadow: inset 0 0 0 2px var(--orange); }
.cal__day[aria-pressed="true"] { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.05); }
.cal__day:disabled { color: #cfc3b5; cursor: default; }
.cal__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cal__count { font-family: "Gochi Hand", cursive; font-size: 18px; color: var(--ink-soft); }
.cal__btns { display: flex; gap: 8px; }
.cal__btn {
  font: 800 15px/1 "Nunito", sans-serif; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.cal__btn--done { background: var(--orange); border-color: var(--orange-deep); color: #fff; }

.money { position: relative; display: block; max-width: 200px; }
.money > span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-weight: 800; }
.money input { padding-left: 30px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  font-family: "Chewy", cursive; letter-spacing: .03em;
  font-size: 26px; color: #fff;
  background: var(--orange);
  border: 2.5px solid var(--orange-deep);
  border-radius: 16px;
  padding: 10px 30px;
  cursor: pointer;
  box-shadow: 4px 5px 0 var(--orange-deep);
  transition: transform .15s, box-shadow .15s, filter .2s;
}
.btn:hover { transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 5px 7px 0 var(--orange-deep); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--orange-deep); }
.btn[disabled] { filter: grayscale(.4) opacity(.7); cursor: progress; }
.btn--big { margin-top: 6px; }
.fine { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; max-width: 46ch; }
.form-msg { margin: 12px 0 0; font-weight: 800; min-height: 1px; }
.form-msg.ok { color: #3d8a1e; }
.form-msg.err { color: #c0395f; }

.board-card {
  position: relative;
  background: var(--butter);
  padding: 34px 28px 26px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  rotate: -1.4deg;
}
.board-card::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 110px; height: 28px; translate: -50% 0; rotate: 2deg;
  background: var(--pink); opacity: .85;
}
.board-card__crayon { position: absolute; width: 44px; height: 104px; right: -14px; top: -40px; color: #f06a5a; rotate: 18deg; animation: wobble 3s ease-in-out infinite; }
.board-card__title { font-family: "Chewy", cursive; font-weight: 400; font-size: 38px; margin: 0 0 14px; color: var(--ink); }
.leaders { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.leaders li {
  counter-increment: rank;
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 2px dashed rgba(58, 42, 31, .22);
  font-weight: 700;
}
.leaders li::before {
  content: counter(rank);
  display: grid; place-items: center; width: 34px; height: 34px;
  font-family: "Chewy", cursive; font-size: 20px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 50%;
}
.leaders li:nth-child(1)::before { background: #ffd84d; }
.leaders li:nth-child(2)::before { background: #e3e7ee; }
.leaders li:nth-child(3)::before { background: #f3b98a; }
.leaders li:last-child { border-bottom: 0; }
.leaders .anon { font-style: italic; color: var(--ink-soft); font-weight: 600; }
.leaders .amt { font-family: "Chewy", cursive; font-size: 22px; letter-spacing: .02em; }
.leaders li.leaders__empty { display: block; font-family: "Gochi Hand", cursive; font-size: 22px; font-weight: 400; border: 0; color: var(--ink-soft); }
.leaders li.leaders__empty::before { display: none; }

/* sign up */
.signup { rotate: -.4deg; }

/* contact */
.contact__cards { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.contact__card {
  display: grid; gap: 2px; text-decoration: none;
  background: var(--c); padding: 20px 30px; min-width: 260px;
  border-radius: 6px; box-shadow: var(--shadow); rotate: -1.5deg;
  transition: rotate .3s cubic-bezier(.3, 1.6, .5, 1), transform .3s;
}
.contact__card:nth-child(2) { rotate: 1.8deg; }
.contact__card:hover { rotate: 0deg; transform: translateY(-4px); }
.contact__kind { font-family: "Gochi Hand", cursive; font-size: 22px; color: var(--ink-soft); }
.contact__value { font-weight: 800; font-size: 19px; word-break: break-word; }

/* footer */
.foot { position: relative; background: #fff7e3; border-top: 2.5px solid var(--ink); padding: 34px 16px 40px; }
.foot__squig { position: absolute; top: -34px; right: 8%; width: 160px; height: 48px; color: var(--pink); }
.foot__inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot__brand { display: flex; gap: 14px; align-items: center; }
.foot__brand img { border-radius: 50%; border: 2px solid var(--ink); }
.foot__brand strong { display: block; font-family: "Chewy", cursive; font-weight: 400; font-size: 26px; color: var(--orange); line-height: 1.1; }
.foot__brand span { font-size: 15px; color: var(--ink-soft); }
.foot__links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.foot__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.foot__links a:hover span { text-decoration: underline wavy var(--orange); text-underline-offset: 4px; }

/* dialogs */
.modal, .viewer {
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 0;
  background: #fffdf7;
  color: var(--ink);
}
.modal { width: min(560px, 100% - 24px); max-height: min(92vh, 900px); }
.modal::backdrop, .viewer::backdrop { background: rgba(58, 42, 31, .45); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 22px; border-bottom: 2px dashed #e1d6c4; }
.modal__head h3 { margin: 0; font-family: "Chewy", cursive; font-weight: 400; font-size: 26px; }
.modal__x {
  width: 40px; height: 40px; flex: none; font-size: 28px; line-height: 1; cursor: pointer;
  border: 2.5px solid var(--ink); border-radius: 50%; background: var(--pink); color: var(--ink);
}
.modal__body { padding: 0; }
.modal__body iframe { display: block; width: 100%; height: min(72vh, 760px); border: 0; }
.modal__note { padding: 22px; margin: 0; }
.viewer { max-width: min(900px, 100% - 24px); padding: 14px; }
.viewer .modal__x { position: absolute; right: 10px; top: 10px; }
.viewer img { max-height: 76vh; margin: 0 auto; }
.viewer p { font-family: "Gochi Hand", cursive; font-size: 24px; text-align: center; margin: 8px 0 0; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, 1.2, .4, 1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(-12deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-8px); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes twinkle { 0%, 100% { transform: scale(1); } 50% { transform: scale(.7) rotate(20deg); } }

/* ── Small screens ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .donate { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__paper { grid-row: auto; }
  .about__photo, .about__photo2 { margin: 10px auto 0; max-width: 320px; }
  .minibar__home span { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .paper { padding: 32px 18px 26px 52px; background-image:
    linear-gradient(90deg, transparent 39px, var(--margin) 39px, var(--margin) 41px, transparent 41px),
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--line) 33px 34px); }
  .paper::before { left: 8px; width: 22px; }
  .two { grid-template-columns: 1fr; }
  .title { -webkit-text-stroke-width: 5px; text-shadow: 3px 4px 0 #f9b27c; }
  .heading { -webkit-text-stroke-width: 5px; }
  .pill { font-size: 22px; padding: 6px 20px 8px; }
  .blob { width: 190px; height: 170px; }
  .c-red, .c-blue { top: auto; bottom: 10%; width: 44px; height: 104px; }
  .c-green, .c-purple, .squig, .st1, .st2 { display: none; }
  .minibar__links a { font-size: 17px; padding: 2px 7px; }
  .board { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .board .polaroid { padding: 7px 7px 24px; }
  .board .polaroid:nth-child(3n+2) { translate: none; }
  .board .polaroid:last-child:nth-child(3n+1) { grid-column: auto; }
  .board .polaroid:last-child:nth-child(odd) { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .board .polaroid:nth-child(even) { translate: 0 14px; }
  .polaroid figcaption { font-size: 18px; }
  .board-card { padding: 30px 18px 20px; }
}
@media (max-width: 380px) {
  .minibar__links a { padding: 2px 5px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
