/* lost.dad-look.com - a missing poster for the buyer of the book, pinned to a corkboard */
body { margin: 0; background: #2b2420; color: #2b2b2b; font-family: Helvetica, Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ec6e6a; outline-offset: 3px; }
.lo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

/* The corkboard */
.lo-board { box-sizing: border-box; min-height: 100vh; padding: 50px 24px 60px; display: grid; grid-template-columns: minmax(0, 540px) 300px; justify-content: center; align-items: start; gap: 44px;
	background-color: #a8794e;
	background-image: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.12) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.1) 0 1.5px, transparent 2.5px), radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.08) 0 2px, transparent 3px);
	background-size: 23px 23px, 31px 31px, 17px 17px; box-shadow: inset 0 0 0 14px #6e4a2c, inset 0 0 40px rgba(0, 0, 0, 0.35); }

/* The poster */
.lo-poster { position: relative; box-sizing: border-box; padding: 40px 34px 0; background: #f6f1e4; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35); transform: rotate(-1.2deg); text-align: center; font-family: Georgia, "Times New Roman", serif; }
.lo-pin { position: absolute; top: 12px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb3b0, #ec6e6a 45%, #a83f3c); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); }
.lo-missing { margin: 6px 0 0; font-size: clamp(46px, 13vw, 84px); line-height: 0.95; font-weight: 900; letter-spacing: 0.02em; color: #c62828; text-transform: uppercase; }
.lo-poster h1 { margin: 10px 0 18px; font-family: Helvetica, Arial, sans-serif; font-size: 24px; font-weight: 900; text-transform: uppercase; }
.lo-sketch { margin: 0 auto 18px; width: 200px; }
.lo-sketch svg { display: block; width: 100%; height: auto; border: 2px solid #2b2b2b; }
.lo-sketch figcaption { margin-top: 4px; font-size: 13px; font-style: italic; color: #5f584b; }
.lo-details { margin: 0; text-align: left; font-family: Helvetica, Arial, sans-serif; font-size: 15px; border-top: 2px solid #2b2b2b; }
.lo-details div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #d6cdb8; }
.lo-details dt { font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; padding-top: 2px; }
.lo-details dd { margin: 0; line-height: 1.4; }
.lo-reward { margin: 20px 0 4px; font-size: 40px; font-weight: 900; color: #c62828; text-transform: uppercase; }
.lo-reward span { display: block; font-size: 16px; letter-spacing: 0.3em; color: #2b2b2b; }
.lo-small { margin: 0; font-size: 13px; line-height: 1.45; color: #5f584b; font-family: Helvetica, Arial, sans-serif; }
.lo-poster > .lo-small { margin-bottom: 22px; }
.lo-tabs { margin: 0 -34px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); border-top: 2px dashed #9a9280; }
.lo-tabs li { border-left: 1px dashed #9a9280; }
.lo-tabs li:first-child { border-left: 0; }
.lo-tabs a { display: flex; align-items: center; justify-content: center; height: 130px; background: #f6f1e4; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-weight: 800; font-size: 14px; }
.lo-tabs a span:first-child { writing-mode: vertical-rl; transform: rotate(180deg); }
.lo-tabs a:hover { background: #fffaf0; }
.lo-tabs a.is-torn { visibility: hidden; }

/* Notes beside the poster */
.lo-side { display: flex; flex-direction: column; gap: 26px; padding-top: 30px; }
.lo-note { position: relative; padding: 22px 20px 20px; background: #ffffff; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3); transform: rotate(1.5deg); }
.lo-note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 70px; height: 22px; margin-left: -35px; background: rgba(255, 255, 255, 0.55); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.lo-note-yellow { background: #fff27a; transform: rotate(-2deg); }
.lo-note h2 { margin: 0 0 10px; font-size: 19px; }
.lo-note ol { margin: 0; padding-left: 20px; line-height: 1.5; }
.lo-note p { margin: 0 0 6px; line-height: 1.45; }
.lo-note strong { font-size: 22px; }
.lo-note-actions { display: flex; flex-direction: column; gap: 10px; transform: rotate(-0.8deg); }
.lo-note-actions p { margin: 0; }
.lo-button { min-height: 48px; padding: 0 18px; border: 0; background: #2b2b2b; color: #ffffff; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; }
.lo-button:hover { background: #c62828; }
.lo-button-ghost { background: none; border: 2px solid #2b2b2b; color: #2b2b2b; }
.lo-button-ghost:hover { background: #2b2b2b; color: #ffffff; }
.lo-status { font-size: 14px; font-weight: 700; color: #2e7d32; }
.lo-status:empty { display: none; }

/* Sightings */
.lo-sightings { max-width: 1000px; margin: 0 auto; padding: 60px 24px 20px; color: #f3ebe1; }
.lo-sightings h2 { margin: 0; font-size: 34px; }
.lo-intro { margin: 6px 0 24px; color: #c9b9a8; }
.lo-sightings ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lo-sightings li { position: relative; padding: 18px 18px 46px; background: #3a312b; border: 1px solid #54473d; border-radius: 6px; }
.lo-place { font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #ec6e6a; }
.lo-sightings p { margin: 8px 0 0; line-height: 1.5; }
.lo-stamp { position: absolute; right: 14px; bottom: 12px; padding: 2px 8px; border: 2px solid #c62828; color: #ff8a80; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-6deg); }

/* Bottom */
.lo-bottom { max-width: 1000px; margin: 0 auto; padding: 30px 24px 48px; display: flex; flex-direction: column; gap: 28px; color: #f3ebe1; }
.lo-cta { background: #f6f1e4; color: #2b2b2b; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lo-cta h2 { margin: 0; font-size: 40px; font-family: Georgia, serif; color: #c62828; }
.lo-cta p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.5; }
.lo-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; width: 100%; max-width: 560px; min-height: 72px; padding: 18px 24px; border-radius: 999px; background: #ec6e6a; color: #ffffff; font-size: 21px; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.lo-cta-button:hover { background: #d95450; }
.lo-cta-arrow { display: inline-block; }
.lo-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #c9b9a8; border-top: 1px solid #54473d; padding-top: 14px; }

@media (max-width: 900px) {
	.lo-board { grid-template-columns: minmax(0, 540px); }
	.lo-side { padding-top: 0; }
}
@media (max-width: 600px) {
	.lo-board { padding: 34px 16px 44px; box-shadow: inset 0 0 0 8px #6e4a2c, inset 0 0 30px rgba(0, 0, 0, 0.35); }
	.lo-poster { padding: 34px 18px 0; transform: rotate(-0.6deg); }
	.lo-poster h1 { font-size: 20px; }
	.lo-details div { grid-template-columns: 1fr; gap: 2px; }
	.lo-reward { font-size: 32px; }
	.lo-tabs { margin: 0 -18px; }
	.lo-tabs a { height: 110px; font-size: 12px; }
	.lo-sightings, .lo-bottom { padding-left: 16px; padding-right: 16px; }
	.lo-cta h2 { font-size: 32px; }
	.lo-cta-button { font-size: 18px; min-height: 64px; }
}

/* Animations - only with JavaScript and when the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
	.js .lo-poster { animation: lo-pin 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }
	.js .lo-side > * { animation: lo-drop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
	.js .lo-side > *:nth-child(1) { animation-delay: 0.3s; }
	.js .lo-side > *:nth-child(2) { animation-delay: 0.42s; }
	.js .lo-side > *:nth-child(3) { animation-delay: 0.54s; }
	.lo-poster:hover { transform: rotate(-0.4deg); transition: transform 0.4s ease; }
	.lo-tabs a { transition: transform 0.15s ease; }
	.lo-tabs a:hover { transform: rotate(-3deg) translateY(4px); }
	.lo-tabs a.is-tearing { visibility: visible; animation: lo-tear 0.6s ease-in forwards; }
	.lo-missing { animation: lo-flicker 5s 1.5s ease-in-out infinite; }
	.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; transition-delay: calc(var(--d, 0) * 70ms); }
	.js .reveal.is-in { opacity: 1; transform: none; }
	.lo-cta-button { animation: lo-glow 2.2s ease-in-out infinite; transition: transform 0.15s ease; }
	.lo-cta-button:hover { transform: scale(1.02); }
	.lo-cta-arrow { animation: lo-nudge 1.1s ease-in-out infinite; }
}

@keyframes lo-pin { 0% { opacity: 0; transform: translateY(-40px) rotate(-6deg) scale(1.05); } 100% { opacity: 1; transform: rotate(-1.2deg); } }
@keyframes lo-drop { from { opacity: 0; transform: translateY(-20px) rotate(4deg); } to { opacity: 1; } }
@keyframes lo-tear { 0% { transform: rotate(0); } 30% { transform: rotate(-12deg) translateY(6px); } 100% { transform: rotate(-35deg) translateY(160px); opacity: 0; } }
@keyframes lo-flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: 0.55; } 96% { opacity: 1; } 98% { opacity: 0.7; } }
@keyframes lo-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 110, 106, 0.5); } 50% { box-shadow: 0 0 0 12px rgba(236, 110, 106, 0); } }
@keyframes lo-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }

/* Printing: only the poster, on a full page, in black and red */
@media print {
	@page { size: A4; margin: 12mm; }
	body { background: #ffffff; }
	.lo-side, .lo-sightings, .lo-bottom, .lo-pin { display: none !important; }
	.lo-board { display: block; min-height: 0; padding: 0; background: none; box-shadow: none; }
	.lo-poster { max-width: none; transform: none !important; box-shadow: none; background: #ffffff; border: 2px solid #000000; padding: 24px 30px 0; animation: none !important; }
	.lo-missing { font-size: 110px; animation: none !important; }
	.lo-sketch { width: 260px; }
	.lo-tabs { margin: 0 -30px; }
	.lo-tabs a { height: 150px; background: #ffffff; }
	.lo-tabs a.is-torn { visibility: visible; }
}
