:root {
  --blue: #5BA8D6;
  --red:  #E84C5A;
  --ink:  #3A2A3A;
  --paper:#FFFFFF;
  --muted:#6E5D6E;
  --max:  560px;
  --pad:  20px;
  --brown: "brown", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Wavy risograph ribbons — top + bottom, echoing invitation */
body::before, body::after {
  content: "";
  position: fixed;
  left: -10%;
  width: 120%;
  height: 28px;
  pointer-events: none;
  z-index: 100;
  background-repeat: repeat-x;
  background-size: 320px 28px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28' preserveAspectRatio='none'><path d='M0 14 Q40 0 80 14 T160 14 T240 14 T320 14' stroke='%235BA8D6' stroke-width='10' stroke-linecap='round' fill='none'/><path d='M4 16 Q44 2 84 16 T164 16 T244 16 T324 16' stroke='%23E84C5A' stroke-width='6' stroke-linecap='round' fill='none' opacity='.9'/></svg>");
}
body::before { top: 0; }
body::after  { bottom: 0; transform: scaleY(-1); }

img, iframe { max-width: 100%; display: block; }

/* ---- Hero ---- */
.hero {
  padding: 32px var(--pad) 12px;
  text-align: center;
}
.hero-names {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}
.hero-sub {
  font-family: var(--brown);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--max);
  margin: 8px auto 0;
}
.hero-sub strong { color: var(--red); font-weight: 700; }

/* ---- Sections ---- */
main { padding: 0 var(--pad); }
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 0 24px;
  background-repeat: no-repeat;
  background-position: center 24px;
  background-size: 180px 18px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 18'><path d='M2 9 Q22 1 42 9 T82 9 T122 9 T162 9 T178 9' stroke='%235BA8D6' stroke-width='4' stroke-linecap='round' fill='none'/><path d='M4 11 Q24 3 44 11 T84 11 T124 11 T164 11 T179 11' stroke='%23E84C5A' stroke-width='2.5' stroke-linecap='round' fill='none' opacity='.85'/></svg>");
}
.section:first-of-type { background-image: none; padding-top: 24px; }

h2 {
  font-family: var(--brown);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .01em;
  color: var(--red);
  margin: 0 0 14px;
  text-shadow: 2px 2px 0 var(--blue);
  text-align: center;
}

p { margin: 0 0 14px; }
em { font-style: normal; color: var(--red); font-weight: 600; }
a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

/* ---- Map ---- */
.map {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--blue);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---- Button ---- */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 12px 22px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--brown);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--blue);
  transition: transform .12s ease;
}
.btn:hover { color: var(--paper); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--blue); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--blue); }

/* ---- Break illustration ---- */
.break {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 0 var(--pad);
}
.break img { width: 100%; height: auto; }

/* ---- Schedule ---- */
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58,42,58,.08);
}
.schedule li:last-child { border-bottom: 0; }
.time {
  font-family: var(--brown);
  font-weight: 700;
  font-size: 20px;
  color: var(--blue);
}
.what { color: var(--ink); }

/* ---- Form embed ---- */
.form {
  border: 2px solid var(--blue);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.form iframe { width: 100%; height: 1200px; border: 0; display: block; }
.form-fallback {
  padding: 14px 16px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  background: #fff;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 48px var(--pad) 56px;
  max-width: var(--max);
  margin: 24px auto 0;
}
footer img { width: 100%; margin: 0 auto 16px; }
footer p {
  font-family: var(--brown);
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
}
.sig {
  color: var(--red);
  text-shadow: 2px 2px 0 var(--blue);
  font-size: 28px;
  margin-top: 8px;
}

/* ---- Dancing images ---- */
@keyframes sway {
  0%   { transform: rotate(-2deg) translateY(0); }
  50%  { transform: rotate(2deg)  translateY(-6px); }
  100% { transform: rotate(-2deg) translateY(0); }
}
@keyframes wobble {
  0%   { transform: rotate(1.5deg)  translateX(-3px); }
  50%  { transform: rotate(-1.5deg) translateX(3px); }
  100% { transform: rotate(1.5deg)  translateX(-3px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-4px) rotate(1deg); }
}

footer img { transform-origin: center center; animation: sway 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  footer img { animation: none; }
}

/* ---- Small screens ---- */
@media (max-width: 380px) {
  body { font-size: 16px; }
  h2 { font-size: 23px; }
  .schedule li { grid-template-columns: 64px 1fr; gap: 10px; }
  .time { font-size: 18px; }
  .form iframe { height: 1200px; }
}

/* ---- Larger screens: just keep narrow column, ample whitespace ---- */
@media (min-width: 720px) {
  .hero { padding-top: 56px; }
  h2 { font-size: 30px; }
}
