/* Unicorn Playground landing page. No external fonts, CDNs, or trackers. */

:root {
  --ink: #2c1548;
  --muted: #5a3d72;
  --cream: #fffaf3;
  --card: #fffefb;
  --sky-top: #fde6cf;
  --sky-mid: #edd7f6;
  --sky-bottom: #d7e7fb;
  --abacus: #3a3489;
  --unicorn: #8a2e70;
  --shadow: 0 14px 32px rgba(44, 21, 72, 0.14);
  color: var(--ink);
  background: var(--sky-bottom);
  font-family: "Trebuchet MS", "Segoe UI", "Gill Sans", system-ui, sans-serif;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

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

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

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, #fff6e8 0, transparent 36%),
    radial-gradient(circle at 88% 8%, #f6e4ff 0, transparent 32%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-bottom) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 56px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 20;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.rainbow {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: min(1400px, 160%);
  height: auto;
  transform: translateX(-50%);
  opacity: 0.55;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 16px #fff6c2;
}

.sparkle.s1 { top: 12%; left: 10%; }
.sparkle.s2 { top: 22%; right: 14%; width: 7px; height: 7px; }
.sparkle.s3 { top: 8%; left: 48%; width: 8px; height: 8px; }
.sparkle.s4 { top: 36%; left: 22%; width: 6px; height: 6px; }
.sparkle.s5 { top: 18%; right: 30%; }

.hero,
main {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
}

.hero {
  text-align: center;
  margin: 12px 0 36px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.lede {
  margin: 0 auto;
  max-width: 28em;
  font-size: 1.2rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 28px 22px 32px;
  box-shadow: var(--shadow);
  min-height: 260px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(44, 21, 72, 0.2);
}

.card-abacus {
  border-color: var(--abacus);
}

.card-unicorn {
  border-color: var(--unicorn);
}

.art {
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 8px;
}

.card h2 {
  margin: 4px 0 8px;
  font-size: 1.7rem;
  line-height: 1.2;
}

.card-abacus h2 { color: var(--abacus); }
.card-unicorn h2 { color: var(--unicorn); }

.card p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover,
  .card:focus-visible {
    transition: none;
    transform: none;
  }
}
