:root {
  --purple: #A24DEA; --purple-deep: #6E2FB8; --ink: #3B2414; --cream: #FFF6E4; --cream-2: #FCE9C8;
  --gold: #F5A524; --gold-light: #FFD86B; --muted: #7A6455; --link: #8A3FD6;
}
* { box-sizing: border-box; }
html { background: var(--cream); }
body {
  margin: 0; color: var(--ink); font: 17px/1.65 'Grandstander', system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0, #fff 0, transparent 40%), var(--cream);
}

/* Header: the logo's purple, slowly turning light rays, a few gold sparkles, a wavy brown edge */
header {
  position: relative; overflow: hidden; text-align: center; padding: 36px 16px 70px;
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%);
}
header::before {
  content: ''; position: absolute; left: 50%; top: 45%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px;
  background: repeating-conic-gradient(rgba(255,255,255,0.13) 0 7deg, transparent 7deg 15deg);
  animation: spin 90s linear infinite;
}
header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'><path d='M0 18 C150 40 300 0 450 18 S750 40 900 18 S1100 0 1200 18 L1200 46 L0 46 Z' fill='%23FFF6E4'/><path d='M0 18 C150 40 300 0 450 18 S750 40 900 18 S1100 0 1200 18' fill='none' stroke='%233B2414' stroke-width='6'/></svg>") center / 100% 100% no-repeat;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { header::before { animation: none; } }
header a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
header img.logo { width: 68px; height: 68px; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 0 5px 0 rgba(59,36,20,0.4); }
header span {
  font: 40px/1 'Bagel Fat One', system-ui, sans-serif; color: var(--cream);
  -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink);
}
.sparkle { position: absolute; z-index: 1; width: 26px; opacity: 0.95; animation: twinkle 3s ease-in-out infinite; }
.sparkle.s1 { left: 9%; top: 22%; } .sparkle.s2 { right: 12%; top: 16%; width: 20px; animation-delay: 1s; }
.sparkle.s3 { left: 18%; bottom: 34%; width: 18px; animation-delay: 2s; } .sparkle.s4 { right: 22%; bottom: 30%; width: 30px; animation-delay: 1.5s; }
@keyframes twinkle { 50% { transform: scale(0.6); opacity: 0.5; } }

/* The page's mascot, sitting on the wavy edge */
.mascot { position: absolute; z-index: 2; right: max(16px, calc(50% - 400px)); bottom: -6px; width: 120px; transform: rotate(-6deg); filter: drop-shadow(0 6px 4px rgba(59,36,20,0.25)); }

main { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px; }
h1, h2 { font-family: 'Bagel Fat One', system-ui, sans-serif; font-weight: 400; line-height: 1.2; }
h1 {
  font-size: 38px; margin: 18px 0 6px; color: #fff;
  -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink);
}
h2 { font-size: 23px; margin-top: 36px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ''; flex: none; width: 26px; height: 26px; background: url(/img/paw-print.webp) center / contain no-repeat; }
a { color: var(--link); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
.lang { font-size: 15px; color: var(--muted); }
ul { padding-left: 22px; } li { margin: 6px 0; } li::marker { color: var(--purple); }

.card {
  position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 18px 22px; margin: 18px 0;
  box-shadow: 0 5px 0 rgba(59,36,20,0.25);
}
.card.glow { background: linear-gradient(180deg, #fff 0%, var(--cream-2) 100%); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; border: 3px solid var(--ink); text-decoration: none;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #fff; font: 19px 'Bagel Fat One', system-ui, sans-serif;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; box-shadow: 0 5px 0 rgba(59,36,20,0.45);
}
.button.cream { background: linear-gradient(180deg, #fff, var(--cream-2)); color: var(--ink); -webkit-text-stroke: 0; }
.button:hover { transform: translateY(-1px); color: #fff; } .button.cream:hover { color: var(--ink); }

/* A row of doxies to close the page */
.parade { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 28px 0 0; }
.parade img { width: 86px; } .parade img:nth-child(odd) { transform: rotate(-5deg); } .parade img:nth-child(even) { transform: rotate(4deg) translateY(-6px); }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 26px 16px 34px; border-top: 3px dashed rgba(59,36,20,0.15); }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  header { padding: 26px 16px 62px; text-align: left; } header span { font-size: 28px; -webkit-text-stroke-width: 6px; } header img.logo { width: 50px; height: 50px; }
  .mascot { width: 84px; right: 8px; } h1 { font-size: 30px; } .parade img { width: 62px; }
}
