:root { font: 1rem/1.55 system-ui, sans-serif; color: #222947; background: #f4f3ff; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem max(5vw, 1rem); background: #252247; color: white; }
header a { color: inherit; text-decoration: none; font-weight: 750; }
header .quiet { color: white; }
main { max-width: 68rem; margin: auto; padding: clamp(1.25rem, 5vw, 4rem); }
h1 { font: 700 clamp(2.4rem, 6vw, 4.4rem)/1.02 Georgia, serif; letter-spacing: -.045em; margin: .25em 0; }
h2 { line-height: 1.2; margin: .55em 0 .25em; }
p { margin: .4em 0 1.2em; }
a { color: #483495; text-underline-offset: .2em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 15rem),1fr)); gap: 1rem; margin: 1.5rem 0; align-items: start; }
.person, .gift, .panel, .login { background: white; border: 1px solid #dedaf1; border-radius: 1rem; }
.person { display: grid; padding: 1.5rem; gap: .3rem; text-decoration: none; }
.person strong { font-size: 1.4rem; color: #222947; }
.person:hover { border-color: #6952b5; }
.initial { background: #eae4ff; color: #483495; font: bold 1.75rem Georgia, serif; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; margin-bottom: .5rem; }
.gift { overflow: hidden; }
.gift img { display: block; width: 100%; height: 11rem; object-fit: contain; background: #faf9ff; }
.gift-body, .panel, .login { padding: 1.25rem; }
.panel { margin-top: 2rem; }
.login { max-width: 32rem; margin: 6vh auto; padding: clamp(1.25rem, 5vw, 3rem); }
.status { display: inline-block; font-size: .875rem; font-weight: 700; border-radius: 1rem; padding: .1rem .6rem; background: #dcf2e8; color: #19563e; }
.purchased { background: #eceaf3; color: #49405c; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1rem; }
button { font: inherit; font-weight: 650; border: 1px solid transparent; border-radius: .65rem; background: #4d369b; color: white; min-height: 2.75rem; padding: .4rem .8rem; cursor: pointer; }
button:hover { filter: brightness(.9); }
.quiet { background: transparent; color: #483495; border-color: currentColor; }
label { display: grid; gap: .25rem; margin: .6rem 0; font-weight: 600; }
input { width: 100%; font: inherit; border: 1px solid #a69fbd; border-radius: .5rem; padding: .45rem .6rem; background: white; color: inherit; }
.check { display: flex; align-items: center; }
.check input { width: auto; }
details { margin-top: 1rem; }
summary { cursor: pointer; color: #483495; font-weight: 650; }
.editor { margin-bottom: .6rem; }
.login a { display: inline-block; margin-top: 1rem; }
.error { color: #9b2444; }
:focus-visible { outline: 3px solid #ad6b19; outline-offset: 3px; }
.wishlist-nav, #other-wishlists { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.wishlist-sort { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.wishlist-sort select { font: inherit; color: inherit; padding: .4rem .65rem; border: 1px solid #a69fbd; border-radius: .5rem; background: white; }

:root.christmas-theme { color: #25362d; background: #f5f1e8; }
.christmas-theme header { background: #173d31; border-bottom: 1px solid #baa579; }
.christmas-theme header a { display: inline-flex; align-items: center; gap: .65rem; }
.christmas-theme :is(.person, .gift, .panel, .login) { background: #fffdf7; border-color: #ded5c3; }
.christmas-theme .person strong { color: #25362d; }
.christmas-theme .person:hover { border-color: #8a2439; }
.christmas-theme .initial { color: #214735; background: #e3ebdf; }
.christmas-theme main a { color: #80263a; }
.christmas-theme button:not(.quiet) { background: #8a2439; }
.christmas-theme .gift img { background: #f9f6ee; }
.christmas-theme .holly { display: inline-block; width: 1.5rem; height: 1.25rem; position: relative; }
.christmas-theme .holly::before,
.christmas-theme .holly::after {
  position: absolute; content: ""; width: .72rem; height: .43rem;
  background: #8bb49a; border-radius: 100% 0 100% 0; top: .19rem;
}
.christmas-theme .holly::before { left: .12rem; transform: rotate(48deg); }
.christmas-theme .holly::after { left: .64rem; transform: rotate(-17deg); }
.christmas-theme .holly i {
  position: absolute; z-index: 1; top: .63rem; left: .55rem; width: .27rem;
  height: .27rem; background: #ed8390; border-radius: 50%; box-shadow: .31rem .02rem #ed8390, .15rem .21rem #ed8390;
}

.christmas-theme body {
  min-height: 100vh;
  border: .25rem solid #173d31;
  box-shadow: inset 0 0 0 1px #ba9a5c;
}
.christmas-theme summary,
.christmas-theme main .quiet { color: #80263a; }
.christmas-theme body { position: relative; }
.christmas-theme header { padding-inline: max(5vw, 3rem); }
.holly-frame { position: absolute; inset: 0; pointer-events: none; }
.christmas-theme .holly-frame .holly { position: absolute; }
.holly-frame .holly:nth-child(1) { top: .28rem; left: .2rem; transform: rotate(-30deg) scale(1.25); }
.holly-frame .holly:nth-child(2) { top: .28rem; right: .2rem; transform: rotate(30deg) scale(1.25); }
.holly-frame .holly:nth-child(3) { bottom: .3rem; left: .23rem; transform: rotate(-24deg) scale(1.25); }
.holly-frame .holly:nth-child(4) { bottom: .3rem; right: .23rem; transform: rotate(24deg) scale(1.25); }
.christmas-theme .holly-frame .holly:nth-child(n+3)::before,
.christmas-theme .holly-frame .holly:nth-child(n+3)::after { background: #35664e; }
.christmas-theme .holly-frame .holly:nth-child(n+3) i {
  background: #8a2439;
  box-shadow: .31rem .02rem #8a2439, .15rem .21rem #8a2439;
}
