/* signed.dad-look.com - a personal autograph from the author */
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Mrs Saint Delafield"; src: url("/fonts/MrsSaintDelafield.ttf") format("truetype"); font-display: swap; }

body { margin: 0; background: #2b2420; }
a { color: #e0b03a; }
a:hover { color: #f0c75a; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #6e9cf4; outline-offset: 2px; }

.sn-page { box-sizing: border-box; min-height: 100vh; color: #fbf7ee; font-family: Helvetica, Arial, sans-serif; padding: 32px 24px 64px; }
.sn-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.sn-page h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #cbbfae; }
.sn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.sn-error { margin: 0; border: 2px solid #c03a36; color: #ffb4b1; font-weight: 700; padding: 12px 14px; border-radius: 10px; }

/* Header */
.sn-header { display: flex; flex-direction: column; gap: 12px; }
.sn-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #cbbfae; }
.sn-header h1 { margin: 0; font-size: 46px; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sn-intro { margin: 0; font-size: 19px; line-height: 1.45; color: #e2d8c8; }

/* The note */
.sn-note-wrap { display: flex; justify-content: center; padding: 10px 0; }
.sn-note { position: relative; width: 100%; box-sizing: border-box; padding: 44px 44px 48px; background: #fbf7ee repeating-linear-gradient(to bottom, transparent 0 51px, #e6dfcf 51px 52px); background-position: 0 30px; color: #1f3a8a; box-shadow: 12px 16px 0 rgba(0, 0, 0, 0.35); transform: rotate(-1.2deg); }
.sn-message { margin: 0; font-family: "Caveat", "Comic Sans MS", cursive; font-size: 36px; line-height: 1.45; overflow-wrap: anywhere; }
.sn-signature { margin: 26px 0 0; text-align: right; font-family: "Mrs Saint Delafield", "Brush Script MT", cursive; font-size: 76px; line-height: 1; transform: rotate(-4deg); transform-origin: right; }
.sn-role { margin: 2px 0 0; text-align: right; font-family: "Caveat", cursive; font-size: 22px; color: #8a8070; }
.sn-stamp { position: absolute; left: 44px; bottom: 30px; padding: 8px 18px; border: 4px solid #c03a36; border-radius: 50%; color: #c03a36; font-size: 20px; font-weight: 800; letter-spacing: 0.1em; transform: rotate(-10deg); opacity: 0.85; }

/* Buttons */
.sn-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sn-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; background: #e0b03a; color: #1c1c1c; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; padding: 14px 22px; min-height: 52px; cursor: pointer; }
.sn-button:hover { background: #f0c75a; color: #1c1c1c; }
.sn-button-dark { background: #fbf7ee; }
.sn-button-dark:hover { background: #ffffff; }
.sn-button-ghost { background: transparent; color: #fbf7ee; box-shadow: inset 0 0 0 2px #6b5f54; }
.sn-button-ghost:hover { background: #3a312b; color: #fbf7ee; }
.sn-status { grid-column: 1 / -1; margin: 0; min-height: 1.2em; text-align: center; font-weight: 700; color: #b9e3b5; }

/* Form */
.sn-form-wrap { display: flex; flex-direction: column; gap: 12px; background: #352d28; border-radius: 16px; padding: 22px; }
.sn-form { display: flex; flex-wrap: wrap; gap: 10px; }
.sn-input { flex: 1 1 220px; min-width: 0; box-sizing: border-box; background: #fbf7ee; color: #1f3a8a; border: 0; border-radius: 12px; padding: 12px 16px; min-height: 56px; font-family: "Caveat", cursive; font-size: 30px; }
.sn-input::placeholder { color: #a99f90; }
.sn-form .sn-button { flex: 0 0 auto; padding: 14px 30px; }

/* Call to action */
.sn-cta { background: #fbf7ee; color: #1c1c1c; border-radius: 18px; padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.sn-page .sn-cta h2 { font-size: 30px; line-height: 1.1; letter-spacing: 0; text-transform: none; color: #1c1c1c; }
.sn-cta p { margin: 0; font-size: 17px; font-weight: 700; color: #4a443c; }
.sn-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; box-sizing: border-box; width: 100%; max-width: 560px; min-height: 80px; padding: 20px 28px; border-radius: 999px; background: #1c1c1c; color: #ffffff; font-size: 24px; font-weight: 800; text-transform: uppercase; text-decoration: none; }
.sn-cta-button:hover { background: #000000; color: #e0b03a; }
.sn-cta-button:focus-visible { outline-color: #1c1c1c; outline-offset: 4px; }
.sn-cta-arrow { display: inline-block; }

/* Footer */
.sn-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #cbbfae; }

@media (max-width: 600px) {
	.sn-page { padding: 24px 16px 48px; }
	.sn-header h1 { font-size: 34px; }
	.sn-note { padding: 32px 22px 40px; background-size: auto; }
	.sn-message { font-size: 28px; }
	.sn-signature { font-size: 56px; }
	.sn-stamp { left: 22px; font-size: 15px; padding: 6px 12px; }
	.sn-page .sn-cta h2 { font-size: 24px; }
	.sn-cta-button { font-size: 19px; min-height: 70px; }
}

/* Animations - only with JavaScript and when the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
	.js .sn-header > * { animation: sn-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
	.js .sn-header > *:nth-child(2) { animation-delay: 0.1s; }
	.js .sn-header > *:nth-child(3) { animation-delay: 0.2s; }
	.js .sn-note { animation: sn-drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }

	/* The message writes itself word by word, then the signature, then the stamp */
	.js .sn-message .sn-word { opacity: 0; animation: sn-ink 0.3s ease both; animation-delay: calc(0.6s + var(--i) * 90ms); }
	.js .sn-signature { clip-path: inset(0 100% 0 0); animation: sn-sign 1.1s ease-out both; animation-delay: var(--sign-delay, 2s); }
	.js .sn-role { animation: sn-rise 0.4s ease both; animation-delay: calc(var(--sign-delay, 2s) + 1s); }
	.js .sn-stamp { animation: sn-stamp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.6) both; animation-delay: calc(var(--sign-delay, 2s) + 1.3s); }
	.js .sn-actions .sn-button { animation: sn-rise 0.4s ease both; animation-delay: calc(var(--sign-delay, 2s) + 1.6s); }

	.sn-button { transition: transform 0.12s ease, background-color 0.2s ease; }
	.sn-button:active { transform: scale(0.96); }
	.sn-cta-button { animation: sn-glow 2.2s ease-in-out infinite; transition: transform 0.15s ease; }
	.sn-cta-button:hover { transform: scale(1.03); }
	.sn-cta-arrow { animation: sn-nudge 1.1s ease-in-out infinite; }
}

@keyframes sn-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sn-drop { from { opacity: 0; transform: translateY(-40px) rotate(-6deg); } to { opacity: 1; transform: rotate(-1.2deg); } }
@keyframes sn-ink { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@keyframes sn-sign { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sn-stamp { 0% { opacity: 0; transform: rotate(-10deg) scale(2.2); } 100% { opacity: 0.85; transform: rotate(-10deg) scale(1); } }
@keyframes sn-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(28, 28, 28, 0.4); } 50% { box-shadow: 0 0 0 12px rgba(28, 28, 28, 0); } }
@keyframes sn-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }
