@font-face { font-family: Fredoka; src: url('./assets/fredoka.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Nunito; src: url('./assets/nunito.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root { color-scheme: light; --navy: #1b2f7a; --ink: #1a2145; --soft: #55608c; --paper: #fffaf0; --yellow: #ffcf3a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #35a7ff; color: var(--ink); font: 400 16px/1.5 Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); color: var(--navy); }
main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px 24px; }
.logo { display: block; width: min(420px, 88vw); height: auto; margin-bottom: -5px; position: relative; z-index: 1; filter: drop-shadow(0 6px 0 rgb(17 28 78 / 16%)); }
.invitation { width: min(480px, 100%); background: var(--paper); border: 4px solid var(--navy); border-radius: 30px; padding: 28px 32px 24px; text-align: center; box-shadow: 0 8px 0 var(--navy), 0 20px 40px rgb(17 28 78 / 18%); }
h1 { margin: 0 0 14px; color: var(--navy); font: 600 clamp(38px, 7vw, 52px)/1.1 Fredoka, system-ui, sans-serif; text-wrap: balance; }
p { margin: 0; }
.intro { color: var(--navy); font: 600 23px/1.25 Fredoka, system-ui, sans-serif; }
.description { margin: 16px auto 24px; max-width: 34ch; color: var(--soft); }
form { text-align: left; }
label[for='email'] { display: block; margin-bottom: 7px; color: var(--navy); font: 600 17px/1.4 Fredoka, system-ui, sans-serif; }
input[type='email'] { width: 100%; min-height: 52px; border: 3px solid var(--navy); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; padding: 10px 14px; caret-color: var(--navy); }
input::placeholder { color: var(--soft); opacity: 1; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13px; color: var(--soft); cursor: pointer; }
.consent input { width: 19px; height: 19px; flex: none; margin: 1px 0 0; accent-color: var(--navy); }
button { width: 100%; min-height: 54px; margin: 6px 0 0; padding: 12px 16px; border: 3px solid var(--navy); border-radius: 999px; background: linear-gradient(180deg, #ffd84a, #ff9a1a); color: #111c4e; box-shadow: 0 4px 0 var(--navy); font: 600 21px/1.2 Fredoka, system-ui, sans-serif; cursor: pointer; transition: transform 120ms, box-shadow 120ms; }
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); }
button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.hint { margin-top: 18px; color: var(--soft); text-align: center; font-size: 12px; }
#security { margin-bottom: 12px; }
#security:empty { display: none; }
#status:not(:empty) { margin-top: 18px; }
#status.error { color: #a32626; }
#status.success { color: #245d19; font-size: 18px; }
#fallback { margin-top: 12px; font-size: 14px; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
footer { display: flex; flex-direction: column; gap: 7px; margin-top: 28px; text-align: center; color: #111c4e; font-size: 13px; }
footer a { color: #111c4e; }
noscript p { margin-top: 16px; }
body:has(noscript p) #status { display: none; }
@media (max-width: 480px) { main { padding: 24px 16px; } .invitation { padding: 26px 20px 22px; } .logo { width: min(340px, 90vw); } .intro { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
