.advent-page, .joy-site-footer__camp { background: #faf4e7; }
.advent-page {
    color: #243e37;
    padding: clamp(2rem, 5vw, 5rem) 0;
    min-height: 75vh;
}
.advent-wrap { width: min(1080px, 91%); margin: auto; }
.advent-page h1, .advent-page h2, .advent-page h3 { color: inherit; font-family: var(--joy-title-font); line-height: 1.05; }
.advent-page h1 { font-size: clamp(2.7rem, 6.5vw, 5.4rem); margin: .2em 0; }
.advent-page h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
.advent-page p { line-height: 1.6; }
.advent-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.4rem, 4vw, 3rem); }
.advent-hero h1 { font-size: clamp(2.3rem, 5.1vw, 4.35rem); margin: .1em 0 .15em; }
.advent-season { margin: 0; color: #884739; font-weight: bold; }
.advent-postcard { position: relative; width: clamp(8rem, 19vw, 13.8rem); flex: none; margin-right: .5rem; padding: .36rem .36rem .85rem; background: #fff4d5; transform: rotate(5deg); box-shadow: 0 4px 8px #14262d66; }
.advent-postcard img { display: block; width: 100%; height: auto; aspect-ratio: 1.95; object-fit: cover; }
.advent-stamp { position: absolute; top: -.55rem; right: -.4rem; display: grid; place-items: center; width: 2rem; height: 2.35rem; background: #b55347; color: #fff1b7; border: 2px dotted #f6e9cd; transform: rotate(6deg); }
.advent-collection-link:any-link, .advent-back:any-link { color: #245c4c; text-decoration: underline; text-underline-offset: .22em; }
.advent-collection-link:hover, .advent-back:hover { color: #153c32; }
.advent-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.42rem, 1vw, .85rem); margin: 0; padding: 0; list-style: none; }
.advent-tile { --tile: #33735d; position: relative; perspective: 650px; height: clamp(6.6rem, 10vw, 8.4rem); border-radius: .4rem; background: #183239; }
.advent-tile--berry { --tile: #a25453; }
.advent-tile--blue { --tile: #416b86; }
.advent-tile--plum { --tile: #79596f; }
.advent-tile form, .advent-door, .advent-face, .advent-keepsake { width: 100%; height: 100%; border-radius: inherit; }
.advent-door { position: relative; display: block; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: none; perspective: 650px; }
.advent-face { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--tile); color: #fff4d8; transform-origin: left center; backface-visibility: hidden; transition: transform .16s ease-out; }
.advent-face::after, .advent-keepsake::after { content: ''; position: absolute; pointer-events: none; }
.advent-face::after { inset: 5px; border: 1px dashed #ffebc49c; border-radius: .2rem; }
.advent-face--today::after { border: 2px dashed #845521; }
.advent-face--catchup::after { border: 2px solid #ead8ac; }
.advent-face.advent-swing { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.is-unlatching .advent-face { transform: rotateY(-8deg); }
.advent-motif { position: absolute; right: 10%; top: 12%; transform: rotate(12deg); font-size: clamp(.75rem, 1.5vw, 1.2rem); color: #fff0ba9e; }
.advent-number { font: bold clamp(2.45rem, 4.6vw, 4.1rem)/1 var(--joy-title-font); }
.advent-label { margin-top: .25em; font-size: clamp(.7rem, 1.2vw, .88rem); font-weight: bold; }
.advent-label .fa-lock { font-size: .85rem; }
.advent-face--today { background: #ffd676; color: #382820; }
.advent-face--today .advent-motif { color: #845521; }
.advent-door:is(a,button):hover .advent-label { text-decoration: underline; text-underline-offset: .2em; }
.advent-keepsake { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; background: #ebd6b6; }
.advent-keepsake::after { inset: 0; border: 1px solid #324c4059; border-radius: inherit; }
.advent-keepsake--puzzle { background: #e8c5ac; }
.advent-keepsake--item, .advent-keepsake--request { background: #cadbc0; }
.advent-cover { width: 100%; height: 100%; object-fit: cover; }
.advent-object { align-self: center; justify-self: center; width: 54%; height: 84%; object-fit: contain; transform: rotate(-6deg); }
.advent-caption { display: flex; align-items: center; gap: .55rem; padding: .3rem .65rem; background: #152f37; color: #fff3d2; font-size: clamp(.66rem, 1.1vw, .85rem); font-weight: bold; line-height: 1.12; text-align: left; }
.advent-caption .advent-number { font-size: clamp(1.1rem, 2vw, 1.6rem); color: #ffd98c; }
.advent-caption-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.is-bonus .advent-caption { background: #ffdb85; color: #432f24; }
.is-bonus .advent-number { color: inherit; }
.advent-board-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem; color: #505f55; font-size: .85rem; }
.advent-board-foot details { max-width: 55ch; }
.advent-board-foot summary { cursor: pointer; }
.advent-board-foot p { margin: .5rem 0; }
.advent-board-foot [data-advent-progress] { flex: none; }
.advent-page :focus-visible, .advent-promo a:focus-visible { outline: 3px solid #ef9a34; outline-offset: 3px; }
.advent-reveal { width: min(44rem, calc(100% - 2rem)); max-height: 86vh; max-height: 86dvh; margin: auto; padding: 0; border: 0; border-radius: .8rem; background: #fffae9; color: #243c38; overflow: auto; overscroll-behavior: contain; box-shadow: 0 20px 70px #091b2466; }
.advent-reveal::backdrop { background: #102731ab; }
.advent-reveal[open] { animation: advent-unveil .18s ease-out; }
@keyframes advent-unveil { from { opacity: 0; transform: translateY(.45rem); } to { opacity: 1; transform: none; } }
.advent-reveal-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .4rem .7rem .4rem clamp(1rem, 3vw, 1.6rem); background: #f0e7d1; }
.advent-reveal-bar h2 { margin: 0; font: bold 1.05rem var(--joy-title-font); }
.advent-dismiss { width: 2.55rem; height: 2.55rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #243c38; font-size: 1.35rem; }
.advent-dismiss:hover { background: #e2d7bd; }
.advent-reveal-content { padding: 1rem clamp(1rem, 3vw, 1.6rem) 1.4rem; }
.advent-reveal .advent-panel { margin: 0 0 1.2rem; padding: 0; }
.advent-reveal .advent-panel:last-child { margin-bottom: 0; }
.advent-reveal .advent-gift h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: .2rem 0 .7rem; }
.advent-reveal .advent-media { border-radius: .35rem; }
@media (prefers-reduced-motion: reduce) {
    .advent-face { transition: none; }
    .is-unlatching .advent-face { transform: none; }
    .advent-reveal[open] { animation: none; }
}
.advent-back { display: inline-block; margin: .5rem 0 1.4rem; }
.advent-panel { margin: 1rem 0; padding: clamp(1.25rem, 3vw, 2.2rem); background: #fffae9; color: #243c38; border-radius: .65rem; }
.advent-panel h1, .advent-panel h2 { margin: .4rem 0 1rem; }
.advent-panel h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.advent-panel small { color: #526055; display: block; }
.advent-panel p:last-child { margin-bottom: 0; }
.advent-panel p { max-width: 65ch; }
.advent-panel a { color: #175c50; }
.advent-panel .advent-action, .advent-action { display: inline-block; background: #24624e; color: #fff; padding: .65rem 1rem; font-weight: bold; border: 0; border-radius: .35rem; text-decoration: none; }
.advent-action:hover { background: #194738; color: #fff; }
.advent-gift label { display: block; font-weight: bold; }
.advent-gift textarea { display: block; width: min(100%, 36rem); margin: .5em 0; padding: .6em; }
.advent-address { white-space: pre-line; }
.advent-media { display: block; width: min(100%, 56rem); height: auto; }
.advent-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.advent-entry { display: grid; gap: .45rem; align-content: start; margin: 0; text-decoration: none; }
.advent-entry:hover { color: #175c50; text-decoration: underline; }
.advent-entry:visited { color: #243c38; }
.advent-shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1.8rem); max-width: 48rem; }
.advent-shelves h3 { font-size: clamp(1.05rem, 2.5vw, 1.5rem); }
.advent-shelf { display: grid; grid-template-columns: repeat(4, 1fr); background: #efe1bf; border: 2px solid #8f7357; border-radius: 4px; }
.advent-shelf > * { display: grid; place-items: center; aspect-ratio: 1.1; background: transparent; border: 0; border-bottom: 3px solid #967657; color: #276050; font-size: clamp(1rem, 3.5vw, 2rem); }
.advent-shelf button[aria-pressed=true] { background: #206944; color: #fff; }
.advent-feedback { margin-top: .8rem; font-weight: bold; }
@media (max-width: 760px) {
    .advent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .advent-wrap { width: 92%; }
    .advent-postcard { width: 24%; padding: .22rem .22rem .48rem; }
    .advent-stamp { width: 1.3rem; height: 1.55rem; top: -.32rem; font-size: .7rem; }
    .advent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.advent-id-card { display: grid; gap: .4rem; width: min(100%, 21rem); padding: 1.25rem 1.5rem; color: #173443; background: #f2f4ee; border: 1px solid #677c7c; border-left: .6rem solid #b75340; border-radius: .5rem; }
.advent-id-card > span { font-weight: 800; letter-spacing: .06em; }
.advent-id-card > strong { margin-top: .8rem; font-size: 1.7rem; overflow-wrap: anywhere; }
