/* wrapped.dad-look.com - Dad, Look Wrapped */
:root {
	--night: #1c0f3a;
	--night-2: #2a1858;
	--pink: #ff4f9a;
	--purple: #7b3cff;
	--orange: #ff8a1f;
	--blue: #3d7bff;
	--yellow: #ffd93d;
	--green: #19c37d;
	--soft: #c9bdf0;
	--white: #ffffff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--white); font-family: Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: var(--yellow); }
a:focus-visible, button:focus-visible, input:focus-visible, .wr-story:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wr-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; }
.wr-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: 20px; font-weight: 900; letter-spacing: -0.01em; text-decoration: none; }
.wr-bow { position: relative; width: 26px; height: 22px; background: var(--pink); border-radius: 4px; }
.wr-bow::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 4px; background: var(--yellow); }
.wr-bow::after { content: ""; position: absolute; left: 5px; top: -9px; width: 16px; height: 10px; border: 3px solid var(--yellow); border-bottom: 0; border-radius: 10px 10px 0 0; }
.wr-year { padding: 4px 12px; border: 2px solid var(--soft); border-radius: 999px; font-weight: 900; font-size: 14px; color: var(--soft); }

.wr-page { max-width: 960px; margin: 0 auto; padding: 8px 24px 24px; }
.wr-intro { text-align: center; margin-bottom: 20px; }
.wr-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); }
.wr-intro h1 { margin: 0 auto; max-width: 720px; font-size: clamp(28px, 5.5vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }

/* The story player */
.wr-stage { display: flex; flex-direction: column; align-items: center; }
.wr-story { position: relative; width: min(100%, 420px); height: min(78vh, 740px); min-height: 520px; overflow: hidden; border-radius: 22px; background: var(--night-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.wr-bars { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 5; display: flex; gap: 4px; }
.wr-bars span { flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.wr-bars i { display: block; height: 100%; width: 0; background: var(--white); }
.wr-bars .is-done i { width: 100%; }
.wr-bars .is-now i { animation: wr-fill 6s linear forwards; }
.wr-story.is-paused .wr-bars .is-now i { animation-play-state: paused; }
@keyframes wr-fill { to { width: 100%; } }

.wr-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 56px 28px 40px; overflow: hidden; visibility: hidden; opacity: 0; }
.wr-slide.is-active { visibility: visible; opacity: 1; }
.wr-slide.is-pink { background: var(--pink); color: var(--night); }
.wr-slide.is-purple { background: var(--purple); }
.wr-slide.is-orange { background: var(--orange); color: var(--night); }
.wr-slide.is-blue { background: var(--blue); }
.wr-slide.is-yellow { background: var(--yellow); color: var(--night); }
.wr-slide.is-green { background: var(--green); color: var(--night); }
.wr-slide.is-dark { background: var(--night); }
.wr-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.wr-shape-a { width: 260px; height: 260px; right: -90px; top: -70px; background: rgba(255, 255, 255, 0.18); }
.wr-shape-b { width: 180px; height: 180px; left: -60px; bottom: -50px; background: rgba(28, 15, 58, 0.18); }
.wr-slide-kicker { position: relative; margin: 0 0 12px; font-size: 18px; font-weight: 900; line-height: 1.25; }
.wr-slide-big { position: relative; margin: 0 0 16px; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.wr-slide-big.is-long { font-size: 42px; line-height: 1.05; }
.wr-slide-sub { position: relative; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.wr-cover { position: relative; display: block; width: 120px; height: 168px; margin: 0 0 18px; background: #1b1530 url(/img/dad-look-i-wrote-a-book-front-cover.jpg) no-repeat; background-size: 300% auto; background-position: 59% 55%; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4); transform: rotate(-4deg); }

.wr-summary { justify-content: flex-start; padding-top: 44px; }
.wr-summary .wr-slide-kicker { color: var(--yellow); margin-bottom: 4px; }
.wr-summary-name { margin: 0 0 14px; font-size: 34px; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.wr-summary dl { margin: 0 0 16px; display: grid; gap: 10px; }
.wr-summary dt { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.wr-summary dd { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.2; }
.wr-summary-actions { position: relative; z-index: 6; display: flex; flex-wrap: wrap; gap: 8px; }
.wr-share, .wr-replay { min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; }
.wr-share { background: var(--green); color: var(--night); }
.wr-share:hover { background: #2fd88f; }
.wr-replay { background: transparent; color: var(--white); border: 2px solid var(--soft); }
.wr-status { position: relative; z-index: 6; min-height: 1.4em; margin: 8px 0 0; font-size: 14px; }
.wr-summary-url { margin: auto 0 0; font-size: 14px; font-weight: 900; color: var(--soft); }

.wr-nav { position: absolute; top: 0; bottom: 0; z-index: 4; padding: 0; border: 0; background: transparent; cursor: pointer; }
.wr-prev { left: 0; width: 35%; }
.wr-next { right: 0; width: 65%; }
.wr-story.is-last .wr-next { display: none; }
.wr-hint { margin: 12px 0 0; font-size: 13px; color: var(--soft); text-align: center; }

/* Without JavaScript: the slides one after another */
html:not(.js) .wr-story { height: auto; overflow: visible; background: none; box-shadow: none; }
html:not(.js) .wr-slide { position: relative; visibility: visible; opacity: 1; min-height: 420px; margin-bottom: 12px; border-radius: 22px; }
html:not(.js) .wr-bars, html:not(.js) .wr-nav, html:not(.js) .wr-hint, html:not(.js) .wr-summary-actions { display: none; }

/* Your own */
.wr-yours { margin: 44px auto 0; max-width: 620px; padding: 26px 24px; background: var(--night-2); border-radius: 18px; text-align: center; }
.wr-yours h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; }
.wr-yours > p { margin: 0 0 16px; color: var(--soft); }
.wr-form { display: flex; flex-wrap: wrap; gap: 8px; }
.wr-form input { flex: 1 1 200px; min-width: 0; min-height: 54px; padding: 0 20px; border: 0; border-radius: 999px; font: inherit; font-size: 17px; }
.wr-form button { min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--pink); color: var(--night); font: inherit; font-size: 17px; font-weight: 900; cursor: pointer; }
.wr-form button:hover { background: #ff73b0; }
.wr-count { margin: 14px 0 0; font-size: 14px; color: var(--soft); }

/* Call to action and footer */
.wr-bottom { max-width: 960px; margin: 0 auto; padding: 24px 24px 48px; }
.wr-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; padding: 40px 24px; background: var(--yellow); color: var(--night); border-radius: 22px; text-align: center; }
.wr-gift { position: relative; width: 70px; height: 58px; margin-top: 12px; background: var(--pink); border-radius: 6px; }
.wr-gift::before { content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 8px; background: var(--purple); }
.wr-gift span { position: absolute; left: -5px; right: -5px; top: -12px; height: 16px; background: var(--pink); border-radius: 4px; box-shadow: inset 0 0 0 0 transparent; }
.wr-gift span::before, .wr-gift span::after { content: ""; position: absolute; top: -20px; width: 22px; height: 18px; border: 5px solid var(--purple); border-radius: 50% 50% 0 50%; }
.wr-gift span::before { left: 16px; transform: rotate(20deg); }
.wr-gift span::after { right: 16px; transform: scaleX(-1) rotate(20deg); }
.wr-cta-kicker { margin: 8px 0 0; font-size: 13px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.wr-cta h2 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.wr-cta p { margin: 0; max-width: 580px; font-weight: 700; }
.wr-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 600px; min-height: 76px; padding: 18px 24px; background: var(--night); color: var(--white); font-size: 22px; font-weight: 900; text-transform: uppercase; text-decoration: none; border-radius: 999px; }
.wr-cta-button:hover { background: var(--night-2); }
.wr-cta-arrow { display: inline-block; }
.wr-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 2px solid var(--night-2); font-size: 13px; color: var(--soft); }

@media (max-width: 600px) {
	.wr-top { padding: 14px 16px; }
	.wr-page { padding: 4px 16px 16px; }
	.wr-bottom { padding: 16px 16px 40px; }
	.wr-story { height: min(74vh, 680px); min-height: 500px; border-radius: 18px; }
	.wr-slide { padding: 52px 22px 32px; }
	.wr-slide-big { font-size: 54px; }
	.wr-slide-big.is-long { font-size: 36px; }
	.wr-yours { padding: 22px 16px; }
	.wr-cta h2 { font-size: 27px; }
	.wr-cta-button { font-size: 18px; min-height: 66px; }
}

@media (prefers-reduced-motion: no-preference) {
	.js .wr-slide.is-active .wr-slide-kicker { animation: wr-in 0.45s ease-out both; }
	.js .wr-slide.is-active .wr-slide-big { animation: wr-pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.12s both; }
	.js .wr-slide.is-active .wr-slide-sub, .js .wr-slide.is-active .wr-cover { animation: wr-in 0.5s ease-out 0.35s both; }
	.js .wr-slide.is-active .wr-shape-a { animation: wr-drift 6s ease-in-out both; }
	.js .wr-summary.is-active dl > div { animation: wr-in 0.4s ease-out both; }
	.js .wr-summary.is-active dl > div:nth-child(2) { animation-delay: 0.1s; }
	.js .wr-summary.is-active dl > div:nth-child(3) { animation-delay: 0.2s; }
	.js .wr-summary.is-active dl > div:nth-child(4) { animation-delay: 0.3s; }
	.js .wr-summary.is-active dl > div:nth-child(5) { animation-delay: 0.4s; }
	.wr-cta-arrow { animation: wr-nudge 1.1s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
	.wr-bars .is-now i { animation: none; width: 100%; }
}
@keyframes wr-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wr-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes wr-drift { from { transform: translate(40px, -30px) scale(0.8); } to { transform: none; } }
@keyframes wr-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }
