:root { color-scheme: light; --ink: #243c32; --muted: #70776c; --paper: #fffdf7; --green: #355647; --line: #e4dfd1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #f3f0e7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 12% 0%, #e3e9df 0, transparent 55%), radial-gradient(ellipse at 100% 90%, #e9e0ce 0, transparent 50%); }
.invitation { width: min(100% - 40px, 510px); margin: auto; padding: 45px 0 28px; }
.masthead { display: flex; justify-content: center; align-items: center; gap: 11px; margin-bottom: 28px; font-size: 10px; font-weight: 650; letter-spacing: .19em; }
.star { font-size: 23px; font-weight: 400; }
.card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid #e1ddcf; border-radius: 5px; box-shadow: 0 12px 40px #363b2f08, 0 2px 4px #363b2f04; }
.ribbon { height: 8px; background: repeating-linear-gradient(125deg, #355647 0, #355647 12px, #dfe5d6 12px, #dfe5d6 15px); }
.seal { display: grid; place-items: center; width: 76px; height: 76px; margin: 37px auto 26px; background: #edf0e5; border-radius: 50%; border: 1px solid #dfe5d6; }
.card-content { padding: 0 42px 40px; text-align: center; }
.eyebrow { margin: 0 0 20px; font-size: 9px; font-weight: 650; letter-spacing: .19em; line-height: 1.6; overflow-wrap: anywhere; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 9vw, 55px); line-height: 1.07; font-weight: 400; letter-spacing: -.045em; }
h1 em { font-weight: 400; color: #7e5640; }
.intro { margin: 23px 0 27px; color: var(--muted); font-size: 14px; line-height: 1.8; }
button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 55px; padding: 15px 22px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: #fffdf7; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; transition: background .2s; }
button:hover { background: #264437; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #af7448; outline-offset: 5px; }
button span { font-size: 21px; font-weight: 400; }
.small-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 16px 0 0; }
footer { text-align: center; color: #76786c; font-family: Georgia, "Times New Roman", serif; font-size: 13px; margin-top: 26px; }
footer span { margin-right: 7px; color: #8a7357; }
.result .eyebrow { margin-bottom: 17px; }
.result-label { font-size: 14px; color: var(--muted); margin-bottom: 15px; }
.result h1 { overflow-wrap: anywhere; color: var(--green); font-size: clamp(42px, 10vw, 60px); }
.result h1:focus { outline: none; }
.keep-secret { margin: 22px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.65; color: #787569; }
.rules { margin-top: 29px; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }
.rules h2 { margin: 0 0 13px; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
.rules ul { margin: 0; padding-left: 18px; color: #596052; font-size: 13px; line-height: 1.8; }
.rules li { padding-left: 3px; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rules li::marker { color: #a08b60; }
.saved-note { margin-top: 28px; }
.error .intro { overflow-wrap: anywhere; }
.noscript { padding: 0 30px 20px; text-align: center; }
[hidden] { display: none !important; }
.result { animation: open-card .45s ease-out both; }
@keyframes open-card { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 380px) { .invitation { width: calc(100% - 28px); padding-top: 26px; } .card-content { padding-right: 25px; padding-left: 25px; } .masthead { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
