:root {
  --purple: #6b3fa0;
  --purple-deep: #4c2778;
  --gold: #f0c14b;
  --gold-dark: #d4a017;
  --gold-shadow: #9a7410;
  --sky-top: #7ec8f0;
  --sky-bottom: #c9e9fb;
  --grass-light: #b7e08a;
  --grass: #6fbf4a;
  --ink: #2b2438;
  --cream: #fff8e8;
  --parchment: #f7e9c4;
  --max: 1120px;
  --radius: 22px;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--purple-deep);
}

h1,
h2,
h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 3px solid var(--purple-deep);
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--ink);
}

.hero__sky {
  position: absolute;
  inset: 0 0 34% 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.55), transparent 32%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}

.hero__grass {
  position: absolute;
  inset: 62% 0 0 0;
  background: linear-gradient(180deg, var(--grass-light), var(--grass) 55%, #5aa83b);
}

.hero__clouds {
  position: absolute;
  inset: 0 0 40% 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 140px 48px at 12% 28%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 180px 56px at 55% 18%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 120px 42px at 88% 34%, rgba(255, 255, 255, 0.65), transparent 70%);
  animation: drift 28s linear infinite;
}

.hero__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__castle {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: min(72vw, 640px);
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 28px rgba(43, 36, 56, 0.28));
  animation: rise-in 1s ease-out both;
}

.hero__knight,
.hero__princess {
  position: absolute;
  width: clamp(72px, 10vw, 112px);
  border-radius: 18px;
  border: 4px solid var(--purple-deep);
  background: var(--cream);
  box-shadow: 0 10px 20px rgba(43, 36, 56, 0.2);
  animation: bob 3.6s ease-in-out infinite;
}

.hero__knight {
  left: max(3vw, calc(50% - 390px));
  bottom: 28%;
  animation-delay: 0.2s;
}

.hero__princess {
  right: max(3vw, calc(50% - 390px));
  bottom: 28%;
  animation-delay: 1.1s;
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: min(100% - 2rem, 760px);
  margin: clamp(1.5rem, 6vh, 3.5rem) auto 0;
  text-align: center;
  padding: 1rem 1.25rem 0;
  animation: fade-up 0.9s ease-out 0.15s both;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--purple-deep);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  font-size: clamp(3.1rem, 11vw, 5.8rem);
  color: var(--gold);
  -webkit-text-stroke: 5px var(--purple-deep);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 rgba(76, 39, 120, 0.25);
}

.lede {
  margin: 0.85rem auto 1.4rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  color: var(--purple-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero::after {
  content: "";
  display: block;
  height: clamp(220px, 42vh, 420px);
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.7rem;
  border: 3px solid var(--purple-deep);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: var(--purple-deep);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--gold-shadow);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.cta:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--gold-shadow);
}

/* —— Intro —— */
.intro {
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(126, 200, 240, 0.35), transparent 40%),
    linear-gradient(180deg, #eef8ff, var(--cream));
}

.intro__inner {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  color: var(--purple-deep);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.12rem;
  font-weight: 700;
  color: #3d3450;
}

/* —— Gallery —— */
.gallery {
  padding: 1rem 1.25rem 4rem;
  background:
    linear-gradient(180deg, var(--cream), #f3ead0 40%, #e8f6c8);
}

.gallery__header {
  width: min(100%, var(--max));
  margin: 0 auto 2.5rem;
  text-align: center;
}

.gallery__header h2 {
  color: var(--purple-deep);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.gallery__header p {
  font-weight: 700;
  color: #4a415c;
}

.shot {
  width: min(100%, var(--max));
  margin: 0 auto 3.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.shot__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--purple-deep);
  box-shadow: 0 18px 36px rgba(43, 36, 56, 0.18);
  background: #0f1720;
}

.shot__media img {
  width: 100%;
  height: auto;
}

.shot__copy {
  max-width: 34rem;
}

.shot__label {
  margin-bottom: 0.4rem;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.shot__copy h3 {
  color: var(--purple-deep);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 0.7rem;
}

.shot__copy p {
  font-weight: 700;
  color: #3d3450;
  font-size: 1.05rem;
}

@media (min-width: 860px) {
  .shot {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.25rem;
  }

  .shot--reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .shot--reverse .shot__media {
    order: 2;
  }

  .shot--reverse .shot__copy {
    order: 1;
    justify-self: end;
    text-align: right;
  }
}

/* —— Finale —— */
.finale {
  padding: clamp(3.5rem, 9vw, 5.5rem) 1.25rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 193, 75, 0.35), transparent 45%),
    linear-gradient(180deg, #7ec8f0 0%, #c9e9fb 45%, #b7e08a 45%, #6fbf4a 100%);
}

.finale__treasure {
  width: 140px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 10px 16px rgba(43, 36, 56, 0.25));
  animation: bob 3.8s ease-in-out infinite;
}

.finale h2 {
  color: var(--purple-deep);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin-bottom: 0.7rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.finale p {
  max-width: 28rem;
  margin: 0 auto 1.4rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--purple-deep);
}

/* —— Footer —— */
.footer {
  padding: 1.4rem 1.25rem 2rem;
  text-align: center;
  background: var(--purple-deep);
  color: var(--cream);
}

.footer a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.brand-mini {
  font-family: "Fredoka", "Nunito", sans-serif;
  color: var(--gold);
  font-weight: 700;
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-40px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
    padding-top: 0.75rem;
  }

  .hero__castle {
    width: min(92vw, 420px);
    bottom: -4%;
  }

  .hero__knight,
  .hero__princess {
    bottom: 22%;
    width: 68px;
  }

  .hero__knight {
    left: 4%;
  }

  .hero__princess {
    right: 4%;
  }

  .hero::after {
    height: clamp(200px, 38vh, 320px);
  }

  .brand {
    -webkit-text-stroke-width: 3.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__clouds,
  .hero__castle,
  .hero__knight,
  .hero__princess,
  .hero__copy,
  .finale__treasure,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
