:root {
  --paper: #fbf5ec;
  --ink: #3a2e2a;
  --soft: #8a7a72;
  --pink: #f2b8b5;
  --pink-deep: #d9776f;
  --cream: #fffdf8;
  --line: #e6d8c8;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 "Nunito", system-ui, sans-serif;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

h1, h2 {
  font-family: "Gaegu", "Comic Sans MS", cursive;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: 3rem; }
h2 { font-size: 1.9rem; margin: 40px 0 14px; }

/* hero */

.hero { text-align: center; }

.plush {
  width: 150px;
  height: 150px;
  margin-bottom: 8px;
  animation: wobble 4s ease-in-out infinite;
  transform-origin: 50% 90%;
}

.plush .fill   { fill: var(--pink); stroke: var(--ink); stroke-width: 3; }
.plush .inner  { fill: var(--pink-deep); opacity: .45; }
.plush .stitch { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 6; opacity: .35; }
.plush .eye    { fill: var(--ink); }
.plush .mouth  { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.plush .patch  { fill: #a9cbb7; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }

@keyframes wobble {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .plush { animation: none; }
}

.lede {
  font-size: 1.1rem;
  margin: 12px auto 0;
  max-width: 30em;
}

/* the deal */

.deal ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
}

.deal li {
  counter-increment: n;
  position: relative;
  padding: 10px 0 10px 44px;
  border-bottom: 2px dashed var(--line);
}

.deal li:last-child { border-bottom: 0; }

.deal li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  font: 700 1.2rem/30px "Gaegu", cursive;
  text-align: center;
}

/* form */

.hp { position: absolute; left: -9999px; }

.drop {
  display: block;
  position: relative;
  background: var(--cream);
  border: 3px dashed var(--pink-deep);
  border-radius: 22px;
  min-height: 190px;
  cursor: pointer;
  overflow: hidden;
  transition: background .15s;
}

.drop:hover, .drop.over { background: #fff1ec; }

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

.drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}

.drop-big { font: 700 1.7rem "Gaegu", cursive; }
.drop-small { color: var(--soft); font-size: .9rem; }

.drop img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  padding: 14px;
  pointer-events: none;
}

.drop.has-img .drop-empty { display: none; }

.field {
  display: block;
  margin-top: 14px;
}

.field > span {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 4px;
}

.field em { font-weight: 400; font-style: normal; color: var(--soft); }

textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

textarea { resize: vertical; }

textarea:focus {
  outline: none;
  border-color: var(--pink-deep);
}

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 14px;
  background: var(--cream);
  border-radius: 14px;
  cursor: pointer;
}

.agree input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--pink-deep);
}

.error {
  color: #b23a2e;
  font-weight: 700;
  margin: 16px 0 0;
}

button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  font: 700 1.6rem "Gaegu", cursive;
  color: var(--ink);
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}

button:hover { background: #f5c6c3; }
button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
button:disabled { opacity: .6; cursor: wait; }

.fine {
  text-align: center;
  color: var(--soft);
  font-size: .85rem;
  margin: 12px 0 0;
}

footer {
  margin-top: 56px;
  text-align: center;
  font-family: "Gaegu", cursive;
  font-size: 1.2rem;
  color: var(--soft);
}

/* thanks page */

.thanks { text-align: center; padding-top: 40px; }
.thanks p { max-width: 26em; margin: 14px auto 0; }
.thanks a { color: var(--pink-deep); font-weight: 700; }

/* example photo */

.example {
  margin: 28px 0 0;
}

.example img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--line);
}
