/* Sample Christmas party: parol, string lights, advent doors. Pine green, red, gold, cream. */
:root { --pine: #0f3d2e; --pine-2: #0a2a20; --red: #b3202a; --red-2: #8f1820; --gold: #e8b84a; --glow: #ffd76a; --cream: #fbf3e2; --muted: #b6c9bd;
  --display: 'Mountains of Christmas', 'Georgia', cursive; --body: 'Quicksand', system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--pine-2); color: var(--cream); font: 400 1.05rem/1.6 var(--body); }
h1, h2, h3, p, ul { margin: 0; }
[hidden] { display: none !important; }
.sample-banner { position: relative; z-index: 5; background: var(--red-2); color: var(--glow); text-align: center; font: 600 .76rem var(--body); letter-spacing: .08em; padding: 9px; white-space: nowrap; }
.sample-banner a { color: #fff; margin-left: 10px; }

.hero { position: relative; overflow: hidden; min-height: calc(100svh - 36px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px 60px;
  background: radial-gradient(50% 40% at 50% 30%, #1d5a44, var(--pine) 55%, var(--pine-2)); }
.lights { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 2%; list-style: none; height: 50px;
  background: radial-gradient(120% 60px at 50% -20px, transparent 58%, rgba(255, 255, 255, .25) 59%, transparent 61%); }
.lights li { position: relative; width: 12px; height: 20px; margin-top: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--red); box-shadow: 0 0 14px 4px rgba(179, 32, 42, .7); animation: glow 1.6s ease-in-out infinite alternate; }
.lights li:nth-child(3n+2) { background: var(--glow); box-shadow: 0 0 14px 4px rgba(255, 215, 106, .7); animation-delay: -.5s; margin-top: 26px; }
.lights li:nth-child(3n) { background: #3ccf7a; box-shadow: 0 0 14px 4px rgba(60, 207, 122, .7); animation-delay: -1s; margin-top: 22px; }
.lights li::before { content: ''; position: absolute; top: -5px; left: 3px; width: 6px; height: 6px; border-radius: 2px; background: #2c2c2c; }
@keyframes glow { to { opacity: .35; box-shadow: none; } }
.parol { width: min(210px, 52vw); transform-origin: 50% 0; animation: swing 4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255, 215, 106, .45)); }
@keyframes swing { 50% { transform: rotate(4deg); } }
.parol__glow { transform-origin: 100px 120px; animation: halo 2s ease-in-out infinite alternate; }
@keyframes halo { to { transform: scale(1.18); opacity: .6; } }
.pre { color: var(--muted); margin-top: 10px; }
h1 { font: 700 clamp(3.6rem, 17vw, 6.4rem)/1 var(--display); color: var(--glow); text-shadow: 0 0 24px rgba(255, 215, 106, .5); }
.when { font-weight: 600; letter-spacing: .06em; }
.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.countdown div { min-width: 70px; padding: 8px 6px; border-radius: 12px; background: rgba(179, 32, 42, .85); border: 2px solid var(--gold); font: 600 .72rem var(--body); text-transform: uppercase; letter-spacing: .08em; }
.countdown b { display: block; font: 700 1.8rem var(--display); color: #fff; letter-spacing: 0; }
.tick { animation: tick .5s ease; } @keyframes tick { from { opacity: .3; transform: scale(.7); } }

section { padding: 60px 18px; }
.advent { text-align: center; }
.advent h2 { font: 700 clamp(2.4rem, 10vw, 3.4rem) var(--display); color: var(--glow); }
.advent__intro { color: var(--muted); margin-bottom: 26px; }
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; perspective: 900px; }
@media (min-width: 680px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.door { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; transform-style: preserve-3d; }
.door__front, .door__back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.door__front { font: 700 3.2rem var(--display); color: var(--glow); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px), var(--red); border: 3px solid var(--gold); box-shadow: inset 0 0 0 6px var(--red), inset 0 0 0 7px rgba(232, 184, 74, .6); transform-origin: left center; }
.door:nth-child(even) .door__front { background-color: #1d6b4f; box-shadow: inset 0 0 0 6px #1d6b4f, inset 0 0 0 7px rgba(232, 184, 74, .6); }
.door__front::after { content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.door__back { padding: 12px; font-size: .92rem; line-height: 1.35; background: var(--cream); color: var(--pine); border: 3px solid var(--gold); transform: rotateY(180deg); }
.door__back b { display: block; font: 700 1.5rem var(--display); color: var(--red); margin-bottom: 4px; }
.door__back a { color: var(--red); font-weight: 600; }
.door.is-open .door__front { transform: rotateY(-180deg); } .door.is-open .door__back { transform: rotateY(0); }
.door:focus-visible { outline: 3px solid var(--glow); outline-offset: 4px; border-radius: 14px; }

.xcard { max-width: 540px; margin: 0 auto; padding: 34px 20px 28px; border-radius: 18px; background: var(--red); border: 3px solid var(--gold); box-shadow: inset 0 0 0 8px var(--red), inset 0 0 0 10px rgba(232, 184, 74, .7), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.xcard h2 { font: 700 2.6rem var(--display); color: var(--glow); text-align: center; }
.rsvp__intro { text-align: center; color: #f6d3d6; margin-bottom: 20px; }
.form, .more { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
label, legend { display: block; padding: 0; margin-bottom: 6px; font: 600 .9rem var(--body); color: #fff; }
small { font-weight: 400; color: #f6d3d6; }
input[type=text], select, textarea { width: 100%; font: 500 1rem var(--body); font-size: max(16px, 1rem); color: var(--pine); background: var(--cream); border: 2px solid var(--gold); border-radius: 12px; padding: 10px 14px; min-height: 50px; }
select { appearance: none; } textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 215, 106, .5); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; border: 2px solid var(--gold); background: var(--red-2); color: #fff; font-weight: 600; }
.choice input:checked + span { background: var(--glow); color: var(--red-2); }
.choice input:focus-visible + span { outline: 3px solid var(--cream); outline-offset: 2px; }
.has-error input, .has-error select, .has-error textarea, .has-error .choice span { border-color: #fff; }
.rsvp-field-error { color: #fff3c4; font-weight: 600; font-size: .9rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.btn { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--glow); color: var(--red-2); font: 700 1.3rem var(--display); cursor: pointer; box-shadow: 0 0 24px rgba(255, 215, 106, .45); }
.btn:disabled { opacity: .6; }
.link { background: none; border: 0; font: 600 1rem var(--body); color: var(--glow); text-decoration: underline; cursor: pointer; }
.msg { text-align: center; } .msg h3 { font: 700 2.2rem var(--display); color: var(--glow); margin-bottom: 6px; } .msg p { color: #f6d3d6; margin-bottom: 12px; } .demo-note { font-size: .88rem; }
.foot { text-align: center; padding: 20px 20px calc(50px + env(safe-area-inset-bottom)); font: 700 1.5rem var(--display); color: var(--glow); }

.js .rv { opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .7s ease, transform .8s ease; }
.js .rv.in { opacity: 1; transform: none; }
.door.rv:nth-child(2) { transition-delay: .06s; } .door.rv:nth-child(3) { transition-delay: .12s; } .door.rv:nth-child(4) { transition-delay: .18s; } .door.rv:nth-child(5) { transition-delay: .24s; } .door.rv:nth-child(6) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } .js .rv { opacity: 1; transform: none; transition: none; } .door__front, .door__back { transition: none; } }
