/* FRIEND — playful, warm, easygoing. Bright confetti on soft cream,
   bouncy rounded type, everything tilts a little. */

:root {
  --bg: #fff8ef;
  --ink: #2f2a26;
  --ink-soft: #6b6058;
  --coral: #ff6b6b;
  --yellow: #ffc93d;
  --teal: #38b6a6;
  --blue: #5b8def;
  --pink: #ff8fb1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.confetti {
  position: absolute;
  border-radius: 4px;
  opacity: 0.85;
  animation: bob 4s ease-in-out infinite;
}

.confetti:nth-child(1) { top: 8%;  left: 10%; width: 16px; height: 16px; background: var(--coral); transform: rotate(18deg); animation-delay: 0s; }
.confetti:nth-child(2) { top: 14%; right: 12%; width: 20px; height: 20px; background: var(--yellow); border-radius: 50%; animation-delay: -1s; }
.confetti:nth-child(3) { top: 60%; left: 6%;  width: 14px; height: 14px; background: var(--teal); transform: rotate(-12deg); animation-delay: -2s; }
.confetti:nth-child(4) { bottom: 10%; right: 8%; width: 18px; height: 18px; background: var(--blue); border-radius: 50%; animation-delay: -1.5s; }
.confetti:nth-child(5) { bottom: 20%; left: 14%; width: 12px; height: 12px; background: var(--pink); transform: rotate(30deg); animation-delay: -3s; }
.confetti:nth-child(6) { top: 40%; right: 20%; width: 10px; height: 10px; background: var(--coral); border-radius: 50%; animation-delay: -2.5s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-16px) rotate(var(--r, 0deg)); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.page .back {
  display: block;
  width: fit-content;
  margin-bottom: 3rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

.page .back:hover {
  transform: translateX(-4px);
}

.page h1 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 5rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
  transform: rotate(-2deg);
  display: inline-block;
}

.page h1 span {
  color: var(--coral);
}

.page .intro {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal);
  margin: 1.5rem 0 2rem;
}

.page .content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page .content p {
  margin: 0 0 1.3rem;
}
