:root {
  --paper: #FFFDF6;
  --rule: #CFE0F5;
  --ink: #1F1B3A;
  --pen: #2B3AA8;
  --lemon: #FFE04A;
  --mint: #5FE3B4;
  --pink: #FF4FA3;
  --blue: #4C8DFF;
  --hand: "Caveat", "Segoe Script", cursive;
  --print: "Sora", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { overflow: hidden; }
body {
  margin: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 0;
  background: var(--paper);
  color: var(--ink); font-family: var(--hand); -webkit-font-smoothing: antialiased;
  display: grid; place-items: center;
}
::selection { background: var(--lemon); color: var(--ink); }
::-moz-selection { background: var(--lemon); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; }
p, h1 { margin: 0; }

.page {
  position: relative; width: 100%; height: 100%;
  background-color: var(--paper);
  background-image:
    linear-gradient(transparent 31px, var(--rule) 31px, var(--rule) 32px),
    radial-gradient(rgba(31,27,58,.045) .6px, transparent .8px);
  background-size: 100% 32px, 5px 5px;
  background-position: 0 14px, 0 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.rings { position: absolute; top: 8px; left: 0; right: 0; display: flex; justify-content: space-evenly; padding: 0 30px; }
.rings i {
  position: relative; width: 14px; height: 30px; border-radius: 7px; border: 3px solid #C9C4D6;
  background: linear-gradient(#EEEBF5, #B9B4C9); box-shadow: 0 3px 6px rgba(0,0,0,.25);
}
.rings i::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -6px; height: 10px; border-radius: 50%; background: rgba(31,27,58,.14); z-index: -1; }
.tape { position: absolute; width: 130px; height: 32px; opacity: .8; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.tape-l { left: -34px; top: 56px; transform: rotate(-38deg); background: repeating-linear-gradient(90deg, var(--mint) 0 10px, #9DF0D2 10px 20px); }
.tape-r { right: -34px; top: 56px; transform: rotate(38deg); background: repeating-linear-gradient(90deg, var(--pink) 0 10px, #FF8AC5 10px 20px); }

.top { display: flex; justify-content: space-between; align-items: center; padding: 58px clamp(24px, 4vw, 56px) 0; }
.label {
  font-family: var(--print); font-weight: 800; font-size: 15px; letter-spacing: -.01em;
  background: #fff; padding: 9px 16px; border-radius: 8px; box-shadow: 0 6px 16px -6px rgba(31,27,58,.35), 0 0 0 3px #fff;
  transition: transform .3s var(--ease);
}
.label:hover { transform: rotate(0) scale(1.04) !important; }
.wordmark { transform: rotate(-2deg); display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; }
.wordmark img { width: 20px; height: 20px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(31,27,58,.12); }
.hello { transform: rotate(2deg); background: var(--lemon); }

.note { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 42px 40px; gap: 14px; position: relative; }
.scribble { color: var(--pen); font-weight: 600; }
.date { font-size: 22px; transform: rotate(-1.5deg); }
h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(46px, 7vw, 92px); line-height: .98; letter-spacing: -.01em; }
mark {
  background: linear-gradient(104deg, transparent 2%, var(--lemon) 4%, var(--lemon) 96%, transparent 98%);
  color: inherit; padding: 0 .12em; margin: 0 -.06em; border-radius: .2em; box-decoration-break: clone;
}
.lede { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; }

.arrow { position: absolute; width: 70px; color: var(--pen); left: -104px; top: 38px; transform: rotate(-4deg); }
.hint { position: absolute; left: -186px; top: -10px; font-size: 24px; white-space: nowrap; transform: rotate(-6deg); }

.apps { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(22px, 4vw, 60px); margin-top: 10px; }
.sticker-app { display: flex; flex-direction: column; align-items: center; gap: 4px; transform: rotate(var(--r)); transition: transform .35s var(--ease); }
.sticker-app:hover { transform: rotate(0) translateY(-6px) scale(1.05); }
.sticker-app img {
  width: 92px; height: 92px; border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 5px #fff, 0 14px 26px -10px rgba(31,27,58,.5);
}
.sticker-app.po img, .sticker-app.sm img { object-fit: contain; background: linear-gradient(160deg, #FFFFFF 0%, #F4F3F1 55%, #E5E2DC 100%); }
.sticker-app.po img { padding: 18px; }
.sticker-app.sm img { padding: 6px; }
.tapelabel {
  font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--ink); margin-top: 12px;
  padding: 0 14px; background: rgba(255,224,74,.75); transform: rotate(-2deg); box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.sticker-app:nth-child(2) .tapelabel { background: rgba(95,227,180,.7); transform: rotate(1.5deg); }
.sticker-app:nth-child(3) .tapelabel { background: rgba(255,79,163,.45); transform: rotate(-1deg); }
.sticker-app:nth-child(4) .tapelabel { background: rgba(76,141,255,.35); transform: rotate(2deg); }
.sticker-app:nth-child(5) .tapelabel { background: rgba(255,79,163,.45); transform: rotate(-1.5deg); }
.sticker-app[hidden] { display: none; }

.email { position: relative; margin-top: 12px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; color: var(--pen); padding: 10px 26px; }
.email .circle { position: absolute; inset: -6px -10px; width: calc(100% + 20px); height: calc(100% + 12px); color: var(--pink); opacity: .9; transition: transform .3s var(--ease); }
.email:hover .circle { transform: rotate(-2deg) scale(1.03); }
.email span { position: relative; }

.s5 { position: absolute; width: 46px; color: var(--pink); right: 15%; top: 12%; transform: rotate(14deg); }
.doodle { color: var(--pen); }

.top, .note > *, .s5 { animation: stick .7s var(--ease) both; }
.note > :nth-child(1) { animation-delay: .05s; } .note > :nth-child(2) { animation-delay: .12s; } .note > :nth-child(3) { animation-delay: .2s; }
.note > :nth-child(4) { animation-delay: .32s; } .note > :nth-child(5) { animation-delay: .45s; }
.s5 { animation-delay: .6s; }
@keyframes stick { from { opacity: 0; scale: 1.12; } to { opacity: 1; scale: 1; } }

@media (max-width: 900px) {
  .s5, .arrow, .hint { display: none; }
}
@media (max-width: 640px) {
  .top { padding: 52px 20px 0; }
  .note { padding: 0 20px 20px; gap: 12px; }
  h1 br { display: none; }
  .lede br { display: none; }
  .lede { font-size: 20px; }
  .sticker-app img { width: 68px; height: 68px; border-radius: 20px; }
  .sticker-app.po img { padding: 13px; } .sticker-app.sm img { padding: 4px; }
  .tapelabel { font-size: 20px; }
  .rings { padding: 0 16px; } .rings i:nth-child(n+13) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
