:root {
  --ink: #2a241c;
  --soft-ink: #4a3f33;
  --paper: #f8f0e0;
  --card: #fffaf0;
  --yellow: #fde98a;
  --green: #cce8a8;
  --pink: #fbcfd6;
  --blue: #cfe2ee;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

main {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.buddies {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  margin: 0 auto 8px;
}

.buddies img {
  width: 42%;
  max-width: 170px;
  height: auto;
  animation: bob 3.2s ease-in-out infinite;
}

.buddies img + img { animation-delay: -1.6s; }

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

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

h1 {
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 10px;
}

p {
  font-size: 22px;
  line-height: 1.25;
  color: var(--soft-ink);
  margin: 0 0 18px;
}

.code {
  display: inline-block;
  font-size: 26px;
  letter-spacing: 0.12em;
  padding: 2px 14px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  background: var(--card);
  margin: 0 0 22px;
}

.button {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 18px;
  margin: 0 0 14px;
  border: 2.5px solid var(--ink);
  border-radius: 18px 14px 20px 15px;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.button:active {
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button.primary { background: var(--yellow); }
.button.secondary { background: var(--green); }

.fine {
  font-size: 18px;
  opacity: 0.75;
  margin-top: 10px;
}

[hidden] { display: none !important; }
