:root {
  --cream: #f6f0e6;
  --cream-deep: #efe6d8;
  --purple: #7a56a8;
  --purple-deep: #5f3d86;
  --lavender: #c4b0de;
  --lavender-wave: #c9b6e3;
  --ink: #4e3a6e;
  --white: #fffdfb;
  --shadow: 0 10px 20px rgba(128,128,128,0.5);
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(201, 182, 227, 0.18) 0.6px, transparent 0.8px),
    radial-gradient(rgba(122, 86, 168, 0.05) 0.8px, transparent 1.2px),
    linear-gradient(180deg, #f8f3ea 0%, var(--cream) 40%, #f3eadc 100%);
  background-size: 7px 7px, 13px 13px, 100% 100%;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  color: var(--lavender-wave);
  z-index: 4;
  pointer-events: none;
}

.wave svg {
  display: block;
  width: 100%;
  height: 78px;
}

.wave-top {
  top: 0;
}

.wave-bottom {
  position: relative;
  color: var(--lavender-wave);
}

.wave-bottom svg {
  height: 84px;
  margin-bottom: -1px;
}

.hero {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4.5rem 1.25rem 12.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.logo-mascots {
  width: min(500px, 78vw);
  height: auto;
  margin-bottom: 4rem;
  /* filter: drop-shadow(0 8px 16px rgba(94, 61, 134, 0.18)); */
}

.brand {
  display:none;
  margin: 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: 0.02em;
  color: var(--purple);  

  text-shadow:
    /* --- FIRST OUTLINE --- */
    -4px -4px 0 #fff,  4px -4px 0 #fff, -4px  4px 0 #fff,  4px  4px 0 #fff,
    -4px  0px 0 #fff,  4px  0px 0 #fff,  0px -4px 0 #fff,  0px  4px 0 #fff,

    /* --- SECOND OUTLINE --- */
    /* We increase the offsets to "peak" out from behind the black outline */
    -6px -6px 0 var(--lavender),  6px -6px 0 var(--lavender), -6px  6px 0 var(--lavender),  6px  6px 0 var(--lavender),
    -6px  0px 0 var(--lavender),  6px  0px 0 var(--lavender),  0px -6px 0 var(--lavender),  0px  6px 0 var(--lavender),

    /* --- SHADOW --- */
    0 8px 18px rgba(0, 0, 0, 0.5);
}

.headline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -3rem 0 1rem;
  line-height: 1;
}

.headline-art {
  display: block;
  width: min(400px, 64vw);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(94, 61, 134, 0.22));
}

.sparkle {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.sparkle-left {
  left: -2.8rem;
}

.sparkle-right {
  right: -2.8rem;
}

.subhead {
  margin: 0 0 1.8rem;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--purple-deep);
}

.notify {
  display: flex;
  /* display: none; */
  align-items: center;
  gap: 1rem 1.15rem;
  width: min(860px, 100%);
  padding: 0.85rem 0.95rem 0.85rem 1.05rem;
  background: var(--white);
  border: 3px dashed var(--lavender);
  border-radius: 23px;
  outline: 6px solid var(--white);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  justify-content: center;
}

.notify-copy {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 220px;
  min-width: 0;
}

.yarn-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
}

.notify-copy p {
  margin: 0;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--purple-deep);
  text-align: left;
}

.notify input {
  flex: 1 1 220px;
  min-width: 180px;
  height: 48px;
  border: 1.5px solid #d8d0e4;
  border-radius: 999px;
  padding: 0 1.15rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}

.notify input::placeholder {
  color: #9a8eaa;
  font-weight: 600;
}

.notify input:focus {
  outline: 3px solid rgba(122, 86, 168, 0.28);
  border-color: var(--purple);
}

.notify button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #8a67b8 0%, var(--purple) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--purple-deep);
  transform: translateY(-1px);
}

.notify button:hover {
  background: linear-gradient(180deg, #946fd0 0%, #70499c 100%);
}

.notify button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--purple-deep);
}

.form-message {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--purple-deep);
}

.form-message.error {
  color: #9b2c5a;
}

.deco {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.deco-yarn-left {
  top: 7%;
  left: 5%;
  width: min(150px, 18vw);
  transform: rotate(-18deg);
}

.deco-yarn-right {
  top: 10%;
  right: 6%;
  width: min(130px, 16vw);
  transform: rotate(22deg);
}

.deco-heart {
  top: 28%;
  left: 11%;
  width: min(150px, 10vw);
  rotate: -20deg;
}

.deco-star {
  top: 26%;
  right: 13%;
  width: min(150px, 10vw);
  rotate: 20deg;
}

.deco-yarn-mid {
  top: 38%;
  right: 18%;
  width: min(90px, 11vw);
  transform: rotate(40deg);
  opacity: 0.95;
}

.corner {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(94, 61, 134, 0.16));
}

.corner-left {
  left: -1.5rem;
  bottom: 5rem;
  width: min(340px, 36vw);
}

.corner-right {
  right: -1.2rem;
  bottom: 5rem;
  width: min(360px, 38vw);
}

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, transparent 0, var(--lavender-wave) 78px);
}

.social {
  display: flex;
  /* display: none; */
  gap: 0.85rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(94, 61, 134, 0.16);
  transition: transform 0.15s ease;
}

.social a:hover {
  transform: translateY(-2px);
}

.social svg {
  width: 20px;
  height: 20px;
}

.copyright {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple-deep);
}

@media (max-width: 820px) {
  .hero {
    padding-bottom: 13rem;
  }

  .sparkle {
    display: none;
  }

  .notify {
    display: none;
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .notify-copy {
    justify-content: center;
  }

  .notify-copy p {
    text-align: center;
  }

  .notify button {
    width: 100%;
  }

  .corner-left,
  .corner-right {
    width: min(220px, 42vw);
    bottom: 3.2rem;
  }

  .deco-yarn-mid,
  .deco-heart,
  .deco-star {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 3.4rem;
    padding-bottom: 16rem;
  }

  .brand {
    -webkit-text-stroke-width: 4px;
  }

  .headline {
    -webkit-text-stroke-width: 4px;
  }

  .corner-left {
    left: -2rem;
    width: 46vw;
  }

  .corner-right {
    right: -2rem;
    width: 48vw;
  }

  .copyright {
    font-size: 0.7rem;
  }
}
