:root {
  --navy: #10153d;
  --cream: #fff8e7;
  --yellow: #ffd85c;
  --pink: #ff7894;
  --blue: #75d8f6;
  --ink: #171942;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--navy);
  font-family: "Fredoka", sans-serif;
  overflow-x: hidden;
}

.sky { position: fixed; inset: 0; pointer-events: none; opacity: .65; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px), radial-gradient(circle, #ffd85c 1px, transparent 1.5px); background-position: 0 0, 42px 58px; background-size: 92px 92px, 137px 137px; mask-image: linear-gradient(#000, transparent 75%); }
.site-header { width: min(1180px, calc(100% - 40px)); height: 100px; margin: auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.logo { color: var(--navy); text-decoration: none; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 25px; font-weight: 700; transform: rotate(-7deg); box-shadow: 4px 4px 0 var(--pink); position: relative; }
.logo em { position: absolute; right: -11px; top: -9px; color: var(--cream); font-style: normal; font-size: 13px; }
.sound-toggle, .shuffle-note { color: var(--cream); border: 0; background: transparent; font: 500 11px "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.sound-toggle { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 11px 15px; }

main { position: relative; z-index: 1; }
.hero { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 100px); margin: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 30px 0 100px; }
.eyebrow { font: 500 11px "DM Mono", monospace; letter-spacing: .18em; color: var(--yellow); }
h1 { font-size: clamp(72px, 10vw, 142px); line-height: .77; letter-spacing: -.065em; margin: 30px 0 40px; }
h1 span { color: var(--yellow); text-shadow: 7px 7px 0 var(--pink); display: inline-block; transform: rotate(-2deg); }
.intro { max-width: 455px; font-size: clamp(18px, 2vw, 24px); line-height: 1.45; color: rgba(255,248,231,.78); }
.button { display: inline-flex; gap: 34px; align-items: center; margin-top: 24px; background: var(--cream); color: var(--ink); text-decoration: none; padding: 17px 22px; border-radius: 9px; box-shadow: 5px 5px 0 var(--blue); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--blue); }

.orbit-scene { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.planet { width: 255px; aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; position: relative; background: var(--pink); box-shadow: inset -25px -18px 0 rgba(156,44,99,.25), 0 0 70px rgba(255,120,148,.22); animation: float 4s ease-in-out infinite; z-index: 2; }
.planet::before, .planet::after { content: ""; position: absolute; border-radius: 50%; background: rgba(123,42,91,.18); }
.planet::before { width: 42px; height: 23px; left: 45px; top: 55px; transform: rotate(-20deg); }
.planet::after { width: 28px; height: 16px; right: 50px; bottom: 48px; }
.planet-ring { position: absolute; width: 370px; height: 72px; border: 16px solid var(--yellow); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-12deg); box-shadow: 0 7px 0 rgba(0,0,0,.1); z-index: -1; }
.planet-face { position: absolute; inset: 0; z-index: 4; }
.planet-face i { position: absolute; width: 13px; height: 18px; background: var(--ink); border-radius: 50%; top: 98px; left: 87px; }
.planet-face i:nth-child(2) { left: 157px; }
.planet-face b { position: absolute; width: 42px; height: 22px; border-bottom: 6px solid var(--ink); border-radius: 50%; top: 121px; left: 107px; }
.planet.boop { animation: boop .55s ease; }
.orbit { position: absolute; width: 90%; aspect-ratio: 1; border: 1px dashed rgba(255,255,255,.18); border-radius: 50%; animation: spin 14s linear infinite; }
.orbit-two { width: 72%; animation-duration: 9s; animation-direction: reverse; }
.tiny-moon, .satellite { position: absolute; top: 47%; left: -11px; width: 25px; height: 25px; background: var(--blue); border-radius: 50%; box-shadow: inset -5px -3px 0 rgba(0,0,0,.12); }
.satellite { background: none; color: var(--yellow); font-size: 30px; box-shadow: none; }
.poke { position: absolute; bottom: 9%; color: rgba(255,255,255,.5); font: 10px "DM Mono", monospace; letter-spacing: .09em; }

.explore { background: var(--cream); color: var(--ink); padding: 120px max(20px, calc((100vw - 1180px)/2)); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 55px; }
.section-heading .eyebrow { color: #b44865; }
h2 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.045em; line-height: .95; margin: 0; max-width: 620px; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card { min-height: 390px; border-radius: 18px; padding: 28px; color: var(--ink); position: relative; transition: transform .25s; box-shadow: 0 5px 0 rgba(16,21,61,.12); }
.card:hover { transform: translateY(-10px) rotate(-1deg); }
.card-yellow { background: var(--yellow); } .card-pink { background: var(--pink); } .card-blue { background: var(--blue); }
.card-number { font: 11px "DM Mono", monospace; }
.card-icon { height: 175px; display: grid; place-items: center; font-size: 108px; line-height: 1; text-shadow: 5px 5px 0 rgba(255,255,255,.35); }
.rocket { transform: rotate(-12deg); } .heart { color: var(--cream); } .spark { color: var(--cream); }
.card h3 { font-size: 30px; margin: 13px 0 9px; }
.card p { font-size: 16px; line-height: 1.5; margin: 0; max-width: 310px; }

.capsule { width: min(920px, calc(100% - 40px)); margin: 110px auto; border: 1px solid rgba(255,255,255,.25); padding: 65px; border-radius: 24px; display: grid; grid-template-columns: 140px 1fr; gap: 50px; align-items: center; background: rgba(255,255,255,.04); }
.capsule-stamp { width: 120px; height: 120px; display: grid; place-items: center; align-content: center; background: var(--yellow); color: var(--ink); border-radius: 50%; font-size: 50px; line-height: .7; transform: rotate(-8deg); box-shadow: 7px 7px 0 var(--pink); }
.capsule-stamp span { font-size: 29px; }
blockquote { font-size: clamp(28px, 4vw, 48px); line-height: 1.12; margin: 20px 0 25px; }
.shuffle-note { padding: 0; color: var(--blue); }
footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.16); width: min(1180px, calc(100% - 40px)); margin: auto; padding: 32px 0; display: flex; justify-content: space-between; color: rgba(255,255,255,.5); font: 10px "DM Mono", monospace; letter-spacing: .09em; }
footer span { color: var(--pink); }
.toast { position: fixed; z-index: 20; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.7); font-size: clamp(30px, 6vw, 70px); color: var(--cream); text-shadow: 4px 4px 0 var(--pink); opacity: 0; pointer-events: none; }
.toast.show { animation: toast 1s ease; }

@keyframes float { 50% { transform: translateY(-13px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes boop { 40% { transform: scale(.82) rotate(-5deg); } 70% { transform: scale(1.08); } }
@keyframes toast { 40% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-80%) scale(1.1); } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .orbit-scene { margin-top: 40px; }
  .planet { width: 180px; } .planet-ring { width: 260px; height: 56px; border-width: 11px; }
  .planet-face i { top: 68px; left: 59px; } .planet-face i:nth-child(2) { left: 110px; } .planet-face b { top: 88px; left: 74px; }
  .section-heading { display: block; } .section-heading .eyebrow { margin-bottom: 25px; }
  .cards { grid-template-columns: 1fr; } .card { min-height: 330px; }
  .capsule { grid-template-columns: 1fr; padding: 42px 28px; gap: 35px; }
  .capsule-stamp { width: 90px; height: 90px; font-size: 38px; }
  footer { display: block; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
