/* The public home page (front-door.html): a playful welcome with Log in. Builds on css/site.css (colors,
   font, dark mode). */

body { position: relative; overflow-x: hidden; }
.fd { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Clouds drifting behind everything. */
.sky { position: absolute; inset: 0 0 auto; height: 620px; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; fill: var(--surface); stroke: var(--line); stroke-width: 1.2; opacity: .9; animation: drift 9s ease-in-out infinite alternate; }
.c1 { width: 150px; top: 90px; left: -20px; }
.c2 { width: 110px; top: 40px; right: 6%; animation-delay: -3s; }
.c3 { width: 90px; top: 380px; right: -10px; animation-delay: -6s; }
@keyframes drift { to { transform: translateX(28px) translateY(-6px); } }

.fd-top { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.fd-top .logo { margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 2.5px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: 4px 4px 0 var(--shadow); font-weight: 800; font-size: 17px; text-decoration: none;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn.sun { background: var(--sun); color: #1d1a2f; border-color: #1d1a2f; }
.btn.big { min-height: 64px; padding: 0 44px; font-size: 24px; box-shadow: 6px 6px 0 var(--shadow); }

.fd-hero { text-align: center; padding: 56px 0 40px; }
.fd-hero h1 { margin: 0 0 12px; font-size: clamp(54px, 11vw, 112px); line-height: .95; letter-spacing: -0.045em; }
.fd-hero h1 span { display: inline-block; background: var(--sun); color: #1d1a2f; padding: 0 .16em; border: 4px solid #1d1a2f; border-radius: .2em; box-shadow: 6px 6px 0 var(--shadow); transform: rotate(-3deg); }
.fd-hero .lede { margin: 18px auto 30px; font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 26em; }
.fd-hero .hint { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* What's inside: tilted cards that straighten on hover. */
.play { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; padding: 30px 0 60px; }
.toy {
  flex: 0 1 190px; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px;
  border: 3px solid #1d1a2f; border-radius: 18px; box-shadow: 6px 6px 0 var(--shadow);
  background: var(--c); color: #1d1a2f; transform: rotate(var(--r)); transition: transform .2s;
}
.toy:hover { transform: rotate(0) translateY(-4px); }
.toy .em { font-size: 38px; line-height: 1.1; }
.toy .em img { width: 46px; height: 46px; object-fit: contain; display: block; }
.toy b { font-size: 20px; line-height: 1.15; }
.toy span:last-child { font-size: 15px; }

.fd-foot { border-top: 2.5px solid var(--line); }
.fd-foot .fd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; padding-bottom: 32px; font-size: 15px; color: var(--muted); }
.fd-foot a { font-weight: 800; color: var(--ink); }

@media (max-width: 640px) {
  .fd-hero { padding: 36px 0 24px; }
  .btn.big { width: 100%; }
  .play { gap: 14px; }
  .toy { flex: 1 1 140px; padding: 14px; }
  .toy b { font-size: 18px; }
  .c1 { width: 96px; top: 64px; left: -44px; }
  .c2 { width: 80px; top: 64px; right: -22px; }
  .c3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .btn:hover, .toy:hover { transform: rotate(var(--r, 0)); }
}
