/* GromSpark splash page. Comic pop brand: see brand/README.md */

@font-face {
  font-family: "Luckiest Guy";
  src: url("fonts/luckiest-guy-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --grape: #6B4BE0;
  --grape-deep: #5636c9;
  --ink: #1E1B3A;
  --spark: #FFC531;
  --sky: #2EC4F1;
  --coral: #FF5A4E;
  --teal: #12B5A6;
  --white: #fff;
  --outline: 4px;
  --pop: 6px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--grape);
  /* comic halftone dots */
  background-image:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(rgba(30,27,58,.22) 1.6px, transparent 1.8px);
  background-size: 100% 100%, 18px 18px;
  overflow-x: hidden;
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo { margin: 0; line-height: 0; }
.logo img {
  width: min(78vw, 470px);
  height: auto;
  animation: bob 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 0 rgba(30,27,58,.25));
}

.bubble {
  position: relative;
  margin: clamp(18px, 4vw, 30px) 0 0;
  padding: 14px 26px;
  background: var(--white);
  border: var(--outline) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--pop) var(--pop) 0 var(--ink);
  font-size: clamp(1.15rem, 3.6vw, 1.6rem);
  font-weight: 700;
  transform: rotate(-2deg);
}
.bubble strong {
  font-family: "Luckiest Guy", "Fredoka", sans-serif;
  font-weight: 400;
  color: var(--coral);
  letter-spacing: .02em;
}
/* speech-bubble tail pointing up at the logo */
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  border-style: solid;
  border-color: transparent;
}
.bubble::before {
  top: -24px;
  margin-left: -14px;
  border-width: 0 14px 24px 14px;
  border-bottom-color: var(--ink);
}
.bubble::after {
  top: -15px;
  margin-left: -9px;
  border-width: 0 9px 16px 9px;
  border-bottom-color: var(--white);
}


.soon {
  margin: clamp(32px, 6vw, 52px) 0 0;
}
.soon span {
  display: inline-block;
  font-family: "Luckiest Guy", "Fredoka", sans-serif;
  font-size: clamp(1.6rem, 5.4vw, 2.6rem);
  letter-spacing: .03em;
  color: var(--spark);
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px 28px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
footer p { margin: 0; }

/* floating four-point sparks, like the one in the K */
.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sp {
  position: absolute;
  width: 34px;
  height: 34px;
  background: var(--white);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3.2s ease-in-out infinite;
  opacity: .9;
}
.s1 { top: 8%;  left: 9%;  }
.s2 { top: 16%; right: 10%; width: 24px; height: 24px; background: var(--spark); animation-delay: .6s; }
.s3 { top: 48%; left: 4%;  width: 20px; height: 20px; background: var(--sky); animation-delay: 1.2s; }
.s4 { top: 56%; right: 5%; width: 40px; height: 40px; animation-delay: 1.8s; }
.s5 { bottom: 9%; left: 16%; width: 26px; height: 26px; background: var(--spark); animation-delay: 2.4s; }
.s6 { bottom: 14%; right: 18%; width: 18px; height: 18px; animation-delay: .9s; }

@keyframes bob    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle {
  0%,100% { transform: scale(.7) rotate(0deg);  opacity: .55; }
  50%     { transform: scale(1.1) rotate(20deg); opacity: 1; }
}


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