:root {
  --pink: #fec1e2;
  --pink-light: #ffe0f0;
  --blue: #0027ff;
  --ink: #0a1a8c;
  --ink-soft: #3348c4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, var(--pink-light) 0 2px, transparent 3px) 0 0 / 28px 28px,
    var(--pink);
}

.card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: #fff5fa;
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: 8px 8px 0 var(--blue);
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  margin: 0 0 20px;
}

.shake {
  display: inline-block;
  color: var(--blue);
  animation: shake 2.5s ease-in-out infinite;
}

.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); }

.fix {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 24px 0 0;
}

.today {
  display: inline-block;
  background: var(--ink);
  color: var(--pink);
  padding: 2px 12px;
  border-radius: 8px;
  transform: rotate(-3deg);
}

.aside {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 8px;
}

footer { margin-top: 24px; font-size: .85rem; color: var(--ink-soft); }

/* Coffee cup */
.cup { position: relative; width: 90px; margin: 0 auto 20px; }
.lid {
  height: 14px;
  background: var(--ink);
  border-radius: 8px 8px 2px 2px;
  margin: 0 -6px;
}
.body {
  height: 100px;
  background: #fff;
  border: 3px solid var(--ink);
  border-top: none;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  display: flex;
  align-items: center;
}
.sleeve {
  width: 100%;
  background: var(--blue);
  color: var(--pink);
  font: 800 1.1rem "Fraunces", serif;
  padding: 8px 0;
}
.steam { position: absolute; top: -34px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.steam span {
  width: 6px; height: 24px;
  border-radius: 6px;
  background: var(--pink);
  animation: steam 2s ease-in-out infinite;
}
.steam span:nth-child(2) { animation-delay: .4s; }
.steam span:nth-child(3) { animation-delay: .8s; }

@keyframes steam {
  0% { opacity: 0; transform: translateY(8px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12px); }
}
@keyframes shake {
  0%, 85%, 100% { transform: rotate(0); }
  88% { transform: rotate(-4deg); }
  92% { transform: rotate(4deg); }
  96% { transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shake, .steam span { animation: none; }
}
