:root {
  --sun: #ffea00;
  --sun-soft: #ffee4a;
  --sky: #5fc8ff;
  --sky-soft: #81d4fa;
  --coral: #ff7a5e;
  --lime: #b2ff4d;
  --fuchsia: #ff4d9f;
  --turquoise: #4ffff2;
  --peach: #ffcc99;
  --cream: #fffbea;
  --white: #ffffff;
  --ink: #34152d;
  --cocoa: #6f3d2e;
  --shadow: 0 22px 48px rgba(255, 122, 94, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 77, 159, 0.25), transparent 27%),
    radial-gradient(circle at 19% 14%, rgba(79, 255, 242, 0.38), transparent 24%),
    radial-gradient(circle at 70% 82%, rgba(178, 255, 77, 0.26), transparent 25%),
    linear-gradient(135deg, var(--cream) 0%, var(--sun-soft) 42%, var(--sky-soft) 100%);
}

a {
  color: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 230px;
  padding: 24px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-right: 4px solid rgba(95, 200, 255, 0.58);
  box-shadow: 8px 0 28px rgba(95, 200, 255, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 5px 0 var(--sun);
}

.main-nav {
  display: grid;
  gap: 10px;
}

.main-nav a {
  display: block;
  padding: 13px 14px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  background: var(--white);
  border: 2px solid rgba(95, 200, 255, 0.44);
  border-radius: 18px;
  box-shadow: 0 7px 0 rgba(255, 234, 0, 0.5);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--lime);
  box-shadow: 0 4px 0 rgba(255, 77, 159, 0.35);
  transform: translateY(3px) rotate(-1deg);
}

.site-shell {
  width: min(1180px, calc(100% - 260px));
  margin-left: 230px;
  padding: 28px;
}

.section-band,
.feature-strip,
.cards-section,
.upload-callout,
.merch-band {
  scroll-margin-top: 24px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 56px));
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 340px);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(circle at 90% 16%, rgba(79, 255, 242, 0.42), transparent 21%),
    radial-gradient(circle at 14% 82%, rgba(255, 77, 159, 0.16), transparent 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 238, 74, 0.56)),
    repeating-linear-gradient(-12deg, rgba(95, 200, 255, 0.16) 0 14px, transparent 14px 32px);
  border: 4px solid rgba(95, 200, 255, 0.34);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.mini-line {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 10px 14px;
  color: var(--cocoa);
  font-size: 0.95rem;
  font-weight: 900;
  background: var(--white);
  border: 2px dashed var(--fuchsia);
  border-radius: 999px;
  text-align: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 730px;
  margin-bottom: 18px;
  font-size: clamp(2.75rem, 4.4vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 6px 7px 0 rgba(255, 234, 0, 0.72);
}

.hero-text {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--cocoa);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 8px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 4px 0 var(--ink);
  transform: translateY(4px);
}

.button.primary {
  background: var(--coral);
  color: var(--white);
}

.button.secondary {
  background: var(--turquoise);
}

.star-stage {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: end center;
}

.star-stage img {
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  max-height: 68vh;
  object-fit: contain;
  background: var(--white);
  border: 5px solid var(--ink);
  border-radius: 34px;
  box-shadow: 14px 18px 0 rgba(255, 77, 159, 0.25), var(--shadow);
  animation: happy-float 4s ease-in-out infinite;
}

.burst {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}

.burst-one {
  width: 330px;
  height: 330px;
  background: rgba(255, 234, 0, 0.72);
  right: 2%;
  top: 8%;
}

.burst-two {
  width: 180px;
  height: 180px;
  background: rgba(79, 255, 242, 0.52);
  left: 10%;
  bottom: 7%;
}

.feature-strip,
.cards-section,
.upload-callout,
.merch-band {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(95, 200, 255, 0.34);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(115deg, var(--white), rgba(178, 255, 77, 0.58));
}

.feature-strip.orange {
  background: linear-gradient(115deg, var(--cream), rgba(255, 122, 94, 0.72));
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.feature-strip p,
.section-heading p,
.upload-callout p,
.merch-band p {
  margin-bottom: 0;
  color: var(--cocoa);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.feature-badge {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--white);
  font-weight: 900;
  background: var(--fuchsia);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 5px 0 var(--sun);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.meme-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.meme-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.75), transparent 24%),
    linear-gradient(135deg, var(--sun), var(--sky));
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 9px 0 rgba(52, 21, 45, 0.18);
}

.upload-callout,
.merch-band {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 77, 159, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 238, 74, 0.74));
}

.upload-callout .button,
.merch-band .button {
  margin-top: 22px;
}

@keyframes happy-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .star-stage {
    min-height: 380px;
    order: -1;
    place-items: center;
  }

  .star-stage img {
    width: min(100%, 340px);
    max-height: none;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 12px;
    border-right: 0;
    border-bottom: 3px solid rgba(95, 200, 255, 0.56);
  }

  .brand {
    margin-bottom: 12px;
    justify-content: center;
  }

  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav a {
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.88rem;
    border-radius: 14px;
  }

  .site-shell {
    width: 100%;
    margin-left: 0;
    padding: 16px;
  }

  .star-stage {
    min-height: 360px;
  }

  .star-stage img {
    width: min(100%, 360px);
    max-height: none;
  }

  .section-heading,
  .feature-strip {
    display: block;
  }

  .feature-badge {
    display: inline-flex;
    margin-top: 18px;
  }

  .meme-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 2.65rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .star-stage {
    min-height: 330px;
  }

  .star-stage img {
    width: min(100%, 280px);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

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