* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, sans-serif; color: #27392f; background: #f7f3e9; }
body { margin: 0; }
header { padding: 3rem 1rem 2.75rem; text-align: center; color: #fff9ed; background: #234536; border-bottom: 5px solid #c8a660; }
.star { font-size: 2rem; color: #ddba72; }
.season { letter-spacing: .15em; text-transform: uppercase; font-size: .78rem; margin: .75rem 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 9vw, 5.25rem); margin: 0; line-height: 1.05; }
main { max-width: 52rem; margin: auto; padding: 2.25rem 1.25rem 3rem; }
main h2 { font-size: 2rem; margin: 0; }
main p { margin: .6rem 0 1.5rem; }
#people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr)); gap: .75rem; }
button { font: inherit; font-weight: 650; cursor: pointer; }
#people button { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #fffdf7; border: 1px solid #d3cbb9; border-radius: .55rem; padding: .9rem 1rem; min-height: 52px; color: inherit; text-align: left; }
#people button:hover { border-color: #234536; background: #edf1e8; }
#people button span { color: #725837; }
button:focus-visible { outline: 3px solid #a12f3c; outline-offset: 3px; }
dialog { border: 1px solid #d3cbb9; border-radius: 1rem; background: #fffdf7; color: inherit; width: min(27rem, calc(100% - 2rem)); padding: 2rem 1.25rem; text-align: center; }
dialog::backdrop { background: #172a23b3; }
dialog h2 { font-size: 2.65rem; margin: .5rem 0 1.5rem; color: #8b2836; }
dialog button { border: 0; border-radius: .5rem; background: #234536; color: #fff9ed; padding: .8rem 1.4rem; min-height: 44px; }
input { display:block; margin:1rem auto; width:min(100%,14rem); padding:.75rem; font:inherit; text-align:center; border:1px solid #827967; border-radius:.4rem; }
#recipient { font: bold 2rem Georgia,serif; }
#error { color:#8b2836; }
#close { margin-top:.75rem; }
body { background: #faf4e7; }
header { position:relative; isolation:isolate; overflow:hidden; padding:2.3rem 1rem 2.7rem; background:radial-gradient(ellipse at top,#305e54,#143c35 80%); border:0; }
header::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.6; background-image:radial-gradient(circle,#ead8ac 1px,transparent 2px),radial-gradient(circle,#f6e6bc 1.5px,transparent 2px); background-size:69px 61px,137px 113px; background-position:12px 30px,49px 43px; mask-image:linear-gradient(90deg,#000,transparent 44%,transparent 56%,#000); }
header::after { content:"";position:absolute; bottom:0;left:0;right:0;height:6px;background:repeating-linear-gradient(120deg,#c9584d 0 12px,#f4e8ce 12px 24px); }
.parcel { width:43px;height:33px;position:relative;margin:12px auto 14px;background:linear-gradient(90deg,#bd453d 40%,#efc983 40% 58%,#bd453d 58%);transform:rotate(-8deg);border-radius:2px;box-shadow:inset 0 7px #732d312e; }
.parcel i::before,.parcel i::after { content:"";position:absolute;width:17px;height:9px;border:3px solid #edca85;bottom:100%;border-radius:70% 70% 0 70%;left:0;transform:rotate(12deg); }
.parcel i::after {left:20px;transform:scaleX(-1) rotate(12deg); }
h1 { font-style:italic;letter-spacing:-.045em; }
main {max-width:60rem;}
#people { grid-template-columns:repeat(auto-fit,minmax(min(10.5rem,100%),1fr)); gap:1rem; }
#people button {position:relative;overflow:hidden;display:grid;gap:.25rem;padding:1.1rem 1rem 1.1rem 1.4rem;background:#fffcf6;border-color:#d9cbb3;box-shadow:0 3px 0 #d9cbb35c;font:600 1.3rem Georgia,serif;transition:transform .18s,box-shadow .18s;}
#people button::before {content:"";position:absolute;inset:0 auto 0 0;width:6px;background:repeating-linear-gradient(140deg,#ad413c 0 7px,#eadbc4 7px 13px);}
#people button small {font: .76rem system-ui;color:#526a59;}
#people button:enabled:hover {transform:translateY(-3px);box-shadow:0 6px 12px #503c2219;}
#people button.opened {background:#484d45;color:#e2e3d9;border-color:#484d45;box-shadow:none;cursor:default;}
#people button.opened::before {background:#697067;} #people button.opened small {color:#dadfd0;}
#status:empty {display:none;}
dialog.revealed {border:3px double #b0985c;background:radial-gradient(ellipse at top,#ffedc9,#fffaf0 65%);}
.revealed #recipient {font-size:clamp(2.7rem,8vw,4.3rem);font-style:italic;letter-spacing:-.045em;color:#8c302f;margin:1rem 0;animation:unfold .72s cubic-bezier(.18,.85,.3,1) both;}
.revealed .star {display:inline-block;animation:spark .85s ease-out both;}
.revealed #title {font:500 1.15rem system-ui;color:#254735;margin:1rem auto;}
@keyframes unfold {from {opacity:0;transform:perspective(360px) rotateX(-48deg) translateY(14px);} to {opacity:1;transform:none;}}
@keyframes spark {from {opacity:0;transform:rotate(-80deg) scale(.2);} 70% {transform:rotate(8deg) scale(1.3);} to {opacity:1;transform:none;}}
@media(max-width:520px){ #people{grid-template-columns:1fr 1fr;gap:.65rem;} }
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;} }
