/* ─────────────────────────────────────────────────────────────────────
   SquishyBliss — "TO THE MOON!" feature presentation + 15-clip reel
   Added: August 14, 2026

   Shipped as a NEW stylesheet rather than an edit to cartoons.css or
   toons.css for two reasons:
     1. css/tailwind.css is a purged production build, so any Tailwind
        utility class not already used somewhere on the site compiles to
        nothing. Everything needed here is written as plain CSS.
     2. A brand-new filename is not in anybody's browser cache, so this
        goes live immediately instead of waiting out the long Expires
        header already set on the existing stylesheets.

   Scope: .moon-* classes only. Nothing here overrides an existing rule,
   so it is safe to drop onto any page without regression risk.
   ───────────────────────────────────────────────────────────────────── */

/* ── Shared space backdrop ──────────────────────────────────────────── */

.moon-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 214, 232, 0.30) 0%, transparent 42%),
    radial-gradient(circle at 82% 22%, rgba(167, 139, 250, 0.32) 0%, transparent 46%),
    linear-gradient(165deg, #1b0b33 0%, #3d1150 42%, #6d1a4b 78%, #8f2260 100%);
}

/* Starfield drawn with repeating radial gradients — no image request,
   no extra bytes, and it scales to any viewport. */
.moon-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #ffe9f5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 28%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 75%, #fde68a 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 68%, #fbcfe8 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 8%, #fff 50%, transparent 51%);
}

/* Content sits above the starfield */
.moon-stage > * { position: relative; z-index: 1; }

/* ── Feature badge ──────────────────────────────────────────────────── */

.moon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fde68a;
  color: #7c2d12;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 2px solid #f59e0b;
  text-decoration: none;
}

/* ── The feature player ─────────────────────────────────────────────── */

.moon-screen {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  border-radius: 1.75rem;
  padding: 0.7rem;
  background: linear-gradient(135deg, #a78bfa 0%, #f472b6 48%, #fb7185 100%);
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.7);
}

.moon-screen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 1.15rem;
  background: #150826;
  outline: none;
}

/* Reserve the 16:9 box before video metadata arrives so the page never
   jumps — this is the Cumulative Layout Shift guard. */
.moon-screen::before {
  content: "";
  display: block;
  padding-top: 56.25%;
  float: left;
  width: 0;
}
.moon-screen::after {
  content: "";
  display: table;
  clear: both;
}

.moon-screen video:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 4px;
}

/* ── Buttons readable on the dark stage ─────────────────────────────── */

.moon-btn {
  display: inline-block;
  background: #fff;
  color: #be185d;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 1rem;
  min-height: 44px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.moon-btn:hover { background: #fce7f3; transform: translateY(-2px); }
.moon-btn:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }

.moon-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.moon-btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* ── Clip reel ──────────────────────────────────────────────────────── */

.moon-reel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  max-width: 78rem;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .moon-reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .moon-reel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.moon-clip {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.10);
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 1.35rem;
  overflow: hidden;
  /* Anchor targets land below the sticky nav instead of under it */
  scroll-margin-top: 6rem;
}

/* Highlight the clip the visitor was linked to */
.moon-clip:target {
  border-color: #fde68a;
  box-shadow: 0 0 0 4px rgba(253, 230, 138, 0.35);
}

.moon-clip video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #150826;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.moon-clip video:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: -3px;
}

.moon-clip-body {
  padding: 1.1rem 1.25rem 1.4rem;
  color: #fff;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.moon-clip-num {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #fde68a;
}

.moon-clip-title {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0.25rem 0 0.5rem;
  color: #fff;
}

.moon-clip-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f6e6f2;
  margin: 0 0 0.9rem;
  flex: 1 1 auto;
}

.moon-clip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #f0abfc;
}

/* Small "copy link to this clip" affordance */
.moon-clip-link {
  color: #fde68a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.moon-clip-link:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }

/* ── Homepage hero variant ──────────────────────────────────────────── */

.moon-hero-title {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin: 1.25rem 0 0.75rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.moon-hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: #fbcfe8;
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.moon-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ── Parent / accessibility note strip ──────────────────────────────── */

.moon-note {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 3px dashed #f59e0b;
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: #78350f;
  max-width: 48rem;
  margin: 0 auto;
}

.moon-note h2 { font-weight: 800; font-size: 1.25rem; margin-bottom: 0.5rem; }
.moon-note p { line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  .moon-btn { transition: none; }
}
