:root {
  color-scheme: light;
  --green: #b3c53f;
  --olive: #8a9a2a;
  --cream: #fbf1df;
  --card: #fffaf0;
  --ink: #141414;
  --pink: #f2a7ef;
  --peri: #8e98ea;
  --orange: #f07a2a;
  --tomato: #e8563a;
  --yellow: #f5d547;
  --green-soft: #eef3d2;
  --dark: #121815;
  --border: 3px solid var(--ink);
  --hard: 6px 6px 0 var(--green);
  --display: "Bowlby One", "Arial Black", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--cream);
  font: 500 16px/1.55 var(--body);
  background-color: #121815;
  background-image:
    radial-gradient(ellipse 70% 40% at 50% -5%, rgb(179 197 63 / 0.18), transparent 70%),
    radial-gradient(circle at 100% 100%, rgb(179 197 63 / 0.08), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  overflow-x: hidden;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Hero: stacked poster type with stickers, like the moodboard */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 16px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: 16px;
}
.hero h1 {
  margin: 0;
  font: 400 clamp(40px, 12.4vw, 164px)/0.9 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.hero h1 span { display: block; white-space: nowrap; animation: drop 0.7s cubic-bezier(.2, .9, .3, 1.3) both; }
.hero h1 span:nth-child(2) { animation-delay: 0.15s; font-size: 1.25em; color: var(--green); }
.hero .tag {
  display: inline-block;
  margin-top: 22px;
  font: 400 15px var(--display);
  text-transform: uppercase;
  background: var(--green);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 rgb(0 0 0 / 0.5);
}
.hero p { max-width: 440px; margin: 18px 0 0; font-size: 17px; font-weight: 600; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art img { position: absolute; filter: drop-shadow(5px 7px 0 rgb(20 20 20 / 0.2)); }
.hero-art .a1 { width: 78%; right: 4%; top: 4%; animation: pop 0.7s cubic-bezier(.2, .9, .3, 1.3) 0.3s both, wiggle 4s ease-in-out 1s infinite; }
.hero-art .a2 { width: 42%; left: -2%; bottom: 0; animation: pop 0.7s cubic-bezier(.2, .9, .3, 1.3) 0.5s both, bob 3.4s ease-in-out 1.2s infinite; }
.hero-art .a3 { width: 30%; right: -2%; bottom: 4%; animation: pop 0.7s cubic-bezier(.2, .9, .3, 1.3) 0.7s both, wiggle 3s ease-in-out 1.4s infinite; }

/* Form */
.card {
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  border-radius: 24px;
  box-shadow: var(--hard);
}

form.card {
  position: relative;
  max-width: 560px;
  margin: 0 auto 72px;
  padding: 28px 24px 24px;
  display: grid;
  gap: 18px;
}
.form-title { font: 400 30px/1 var(--display); text-transform: uppercase; margin: 0; }
.form-art { position: absolute; width: 112px; right: -38px; top: -58px; transform: rotate(10deg); filter: drop-shadow(4px 5px 0 rgb(20 20 20 / 0.2)); animation: wiggle 3.6s ease-in-out infinite; }
label { display: grid; gap: 6px; font-weight: 800; font-size: 15px; }
label small { font-weight: 500; }
input[type="text"], textarea {
  font: 600 16px var(--body);
  color: inherit;
  width: 100%;
  padding: 13px 16px;
  border: var(--border);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.15s;
}
input[type="text"]:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--ink); }
textarea { min-height: 140px; resize: vertical; }

.photo-pick {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 130px;
  border: 3px dashed var(--ink);
  border-radius: 14px;
  background: var(--green-soft);
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  overflow: hidden;
}
.photo-pick img { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.photo-pick input { display: none; }
.photo-remove { justify-self: start; }

button {
  font: 400 18px var(--display);
  text-transform: uppercase;
  border: var(--border);
  border-radius: 16px;
  padding: 14px 22px;
  background: var(--green);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
button:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
button:disabled { opacity: 0.6; cursor: progress; }
button.ghost { background: transparent; border: 0; padding: 4px 0; font: 700 14px var(--body); text-transform: none; text-decoration: underline; box-shadow: none; color: inherit; }
button.secondary { background: var(--card); }

.notice { padding: 12px 16px; border: var(--border); border-radius: 12px; font-size: 15px; font-weight: 700; }
.notice.ok { background: var(--green); color: var(--ink); }
.notice.err { background: var(--pink); color: var(--ink); }

/* Wall */
.section-title {
  font: 400 clamp(44px, 8vw, 80px)/0.9 var(--display);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}
.section-sub { text-align: center; margin: 14px 0 44px; }
.section-sub:not(:empty) { display: block; }
.section-sub span, .section-sub:not(:empty) { font-weight: 800; }

.wall { columns: 3 280px; column-gap: 28px; padding: 8px 6px 80px; }

.post {
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 30px;
  padding: 12px 12px 16px;
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--hard);
  background: var(--card);
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s cubic-bezier(.2, .9, .3, 1.4);
  animation: pop 0.55s cubic-bezier(.2, .9, .3, 1.3) backwards;
  animation-delay: calc(min(var(--i, 0), 12) * 60ms);
}
.post:hover { transform: rotate(0deg) scale(1.03); }
.post:nth-child(5n + 1) { --tilt: -1.6deg; }
.post:nth-child(5n + 2) { --tilt: 1.2deg; }
.post:nth-child(5n + 3) { --tilt: -0.6deg; background: var(--green); box-shadow: 6px 6px 0 rgb(0 0 0 / 0.55); }
.post:nth-child(5n + 4) { --tilt: 1.8deg; }
.post:nth-child(5n + 5) { --tilt: -1.1deg; }

.post img { width: 100%; display: block; border: var(--border); border-radius: 12px; background: #fff; }
.post .body { padding: 14px 8px 0; }
.post p { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; font-weight: 600; }
.post .who { font: 400 18px/1.1 var(--display); text-transform: uppercase; text-align: right; }
.post .who::before { content: "— "; }
.post .delete { margin-top: 12px; padding: 8px 14px; font-size: 14px; }
.empty { text-align: center; font-weight: 800; padding: 8px 0 72px; }

footer { text-align: center; font-weight: 800; padding: 0 16px 48px; }
footer img { width: 90px; display: block; margin: 0 auto 8px; animation: bob 3s ease-in-out infinite; }

/* Burst after posting */
.confetti {
  position: fixed;
  top: -20px;
  z-index: 50;
  pointer-events: none;
  font-size: 24px;
  animation: fall linear forwards;
}

@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--spin)); } }
@keyframes pop { 0% { transform: scale(0.6) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.06) rotate(var(--tilt, 0deg)); } 100% { transform: rotate(var(--tilt, 0deg)); opacity: 1; } }
@keyframes drop { from { transform: translateY(-40px) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wiggle { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; text-align: left; }
  .hero h1 { font-size: clamp(36px, 19vw, 120px); }
  .hero-art { width: 78%; justify-self: end; margin-top: -40px; }
  .form-art { width: 84px; right: -10px; top: -50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
