@import url('../fonts/stylesheet.css');

.advent {
    --forest: #142d26;
    --paper: #fff6e5;
    --gold: #edc990;
    --line: rgba(237, 201, 144, .47);
    background: var(--forest);
    color: var(--paper);
    font-family: 'NeueHaasGroteskText Pro', Arial, sans-serif;
}
.advent *, .advent *::before, .advent *::after { box-sizing: border-box; }
.advent * { font-family: inherit; }
.advent .advent-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.advent p, .advent h1, .advent h2 { margin: 0; color: inherit; }
.advent-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(215px, 18.1vw, 300px);
    border-bottom: 1px solid var(--gold);
}
.advent-hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin: 18px;
    padding: 32px clamp(18px, 2.45vw, 48px);
    border: 1px solid var(--line);
}
.advent-hero-copy h1, .advent-number {
    font-family: 'NeueHaasGroteskText Pro Md', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: -.035em;
}
.advent-hero-copy h1 { font-size: clamp(28px, 3.06vw, 56px); line-height: 1.06; }
.advent-hero-copy .seo-breadcrumbs {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(12px, 1.05vw, 14px);
    line-height: 1.4;
}
.advent-hero-copy .seo-breadcrumbs a,
.advent-hero-copy .seo-breadcrumbs li + li::before { color: #fff; }
.advent-hero-copy p { font-size: 16px; line-height: 1.45; color: #e9dcca; }
.advent-hero-copy .advent-dates {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--gold);
}
.advent-ornament { position: absolute; right: 7%; top: 8%; font-size: 25px; color: var(--gold); }
.advent-hero picture { position: relative; border-left: 1px solid var(--gold); }
.advent-hero picture img, .advent-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.advent-wrap { max-width: 1600px; padding: clamp(32px, 5.55vw, 88px); margin: auto; }
.advent-jump {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 14px;
    gap: 10px;
    color: var(--gold);
    text-underline-offset: 4px;
}
.advent-grid {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row dense;
    grid-auto-rows: clamp(26rem, 31vw, 33rem);
    gap: clamp(10px, 1vw, 16px);
}
.advent-door {
    min-width: 0;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    padding: clamp(12px, 1.15vw, 20px);
    border: 1px solid var(--line);
    scroll-margin-top: 100px;
}
.advent-number { font-size: clamp(29px, 2.55vw, 42px); line-height: 1; }
.advent-photo { position: relative; min-height: 0; aspect-ratio: 1.54; border-radius: 3px; background: #f0e6d6; }
.advent-special .advent-photo { background: transparent; }
.advent-photo img { border-radius: inherit; }
.advent-door:is(:nth-child(2), :nth-child(6), :nth-child(7), :nth-child(9), :nth-child(15), :nth-child(21)) .advent-photo img {
    inset: 13% 23%;
    width: 54%;
    height: 74%;
}
.advent-door:is(:nth-child(6), :nth-child(7), :nth-child(11), :nth-child(14), :nth-child(16), :nth-child(23)) .advent-photo { aspect-ratio: 2; }
.advent-door:is(:nth-child(8), :nth-child(10), :nth-child(15), :nth-child(17), :nth-child(18), :nth-child(20), :nth-child(21), :nth-child(22)) .advent-photo { aspect-ratio: 1.78; }
.advent-door:is(:nth-child(10), :nth-child(11), :nth-child(17), :nth-child(18), :nth-child(22)) .advent-photo img { width: 88%; left: 6%; }
.advent-door:nth-child(13) .advent-photo img { width: 64%; height: 88%; inset: 6% 18%; }
.advent-door:nth-child(1) .advent-photo img { width: 72%; height: 72%; inset: 14%; object-fit: contain; }
.advent-door:nth-child(22) .advent-photo img { width: 80%; height: 79%; inset: 10.5% 10%; object-fit: contain; }
.advent-door:nth-child(23) .advent-photo { aspect-ratio: 1.4; }
.advent-door:nth-child(23) .advent-photo img { width: 76%; height: 76%; inset: 12%; object-fit: contain; }
.advent-copy { overflow-wrap: anywhere; }
.advent-copy h2 { font-weight: 700; font-size: clamp(17px, 1.38vw, 23px); line-height: 1.14; }
.advent-copy p { font-size: clamp(13px, 1vw, 16px); line-height: 1.4; margin-top: 6px; color: #ebdfcf; }
.advent-status { display: block; margin-top: 9px; font-size: 13px; line-height: 1.3; color: var(--gold); }
.advent-door:is(:nth-child(2), :nth-child(4), :nth-child(6), :nth-child(9), :nth-child(11), :nth-child(13), :nth-child(16), :nth-child(17), :nth-child(20), :nth-child(21), :nth-child(23)) .advent-photo { order: 1; }
.advent-special .advent-photo span { position: absolute; top: 4%; left: 8%; font-size: clamp(28px, 3.2vw, 50px); color: var(--gold); }
.advent-special .advent-photo::after { content: '✦'; position: absolute; bottom: 0; right: 2%; color: var(--gold); font-size: 28px; }
.advent-special .advent-number, .advent-special h2 { font-size: clamp(25px, 2.25vw, 38px); }
.advent-door:nth-child(5), .advent-door:nth-child(19) { grid-row: span 2; }
.advent-door:nth-child(19) { grid-column: 4; grid-row: 6 / span 2; }
.advent-door:nth-child(5) .advent-photo, .advent-door:nth-child(19) .advent-photo { aspect-ratio: .61; }
.advent-door:nth-child(12), .advent-door:nth-child(24) { grid-column: span 2; display: grid; grid-template-columns: .9fr 1.3fr; grid-template-rows: auto 1fr; }
.advent-door:nth-child(12) .advent-photo { grid-column: 1; grid-row: 1 / span 2; }
.advent-door:nth-child(24) { grid-template-columns: 1.3fr .9fr; }
.advent-door:nth-child(24) .advent-photo { grid-column: 2; grid-row: 1 / span 2; }
.advent-door:nth-child(12) .advent-photo span { left: calc(100% + 18%); top: 19%; }
.advent-door:nth-child(12) .advent-photo::after { left: 210%; right: auto; bottom: 48%; font-size: 20px; }
.advent-door:is(:nth-child(12), :nth-child(24)) .advent-photo { aspect-ratio: auto; }
.advent-door:is(:nth-child(12), :nth-child(24)) .advent-copy { align-self: end; }
.advent-door .advent-teaser-art {
    flex: 1;
    aspect-ratio: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #1d392e;
}
.advent-teaser-art::before {
    content: '';
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(ellipse at 56% 42%, #f7d792 0%, transparent 29%),
        radial-gradient(ellipse at 28% 65%, #cc9f60 0%, transparent 35%),
        radial-gradient(ellipse at 69% 74%, #65836e 0%, transparent 49%);
    filter: blur(clamp(14px, 2vw, 28px));
    opacity: .62;
}
.advent-door:nth-child(even) .advent-teaser-art::before { transform: scaleX(-1); }
.advent-special:is(:nth-child(12), :nth-child(24)) .advent-teaser-art span { left: 8%; }
.advent-special:nth-child(12) .advent-teaser-art::after { left: auto; right: 2%; bottom: 0; }
.advent-preview { border-color: var(--gold); }
.advent-live { border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px var(--line); }
.advent-ended { background: #192e29; border-color: #58655d; }
.advent-ended .advent-photo { filter: saturate(.65); }
.advent-ended .advent-status { color: #d7dbcf; }
.advent-shop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.advent-disclosure.is-opening .advent-shop-links { visibility: hidden; }
.advent-shop {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    background: var(--gold);
    color: var(--forest);
    line-height: 1.2;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.advent-shop:hover { color: var(--forest); background: #ffe3b4; }
.advent-jump:hover { color: var(--paper); }
.advent a:focus-visible, .advent-door:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.advent-closing-photo { display: none; }

.advent-disclosure, .advent-interior, .advent-handle, .advent-lid { position: absolute; inset: 0; }
.advent-interior {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(12px, 1.15vw, 20px);
}
.advent-special:is(:nth-child(12), :nth-child(24)) .advent-interior {
    display: grid;
    grid-template-columns: .9fr 1.3fr;
    grid-template-rows: auto 1fr;
}
.advent-special:nth-child(24) .advent-interior { grid-template-columns: 1.3fr .9fr; }
.advent-handle { z-index: 3; display: block; cursor: pointer; list-style: none; overflow: hidden; }
.advent-handle::-webkit-details-marker { display: none; }
.advent-handle:focus-visible { outline: 3px solid var(--paper); outline-offset: -4px; }
.advent-lid {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    align-items: center;
    padding: 18px 12px;
    color: var(--gold);
    background: radial-gradient(ellipse at 38% 32%, #345746 0%, #1b3b30 48%, #11291f 100%);
    box-shadow: inset 0 0 0 4px #163126, inset 0 0 0 5px #ab8f61;
    transform-origin: left center;
    backface-visibility: hidden;
}
.advent-lid::before {
    content: '';
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border: 1px solid rgba(237,201,144,.37);
}
.advent-lid-date { font-size: 11px; text-transform: uppercase; letter-spacing: .23em; }
.advent-seal {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    width: min(72%, 150px);
    aspect-ratio: 1;
    border: 1px solid #9d885e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #254535, 0 0 0 5px #766d4e;
    font: italic clamp(48px, 8vw, 78px)/.82 Georgia, serif;
    text-shadow: 0 2px 2px #11271b;
}
.advent-seal > span[aria-hidden] { font: 12px/1 Georgia, serif; }
.advent-lid-action { display: grid; justify-items: center; gap: 7px; text-align: center; }
.advent-lid-action > span {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 7px 12px;
    color: var(--forest);
    background: var(--gold);
    font-size: 14px;
    font-weight: 700;
}
.advent-close { display: none; }
.advent-disclosure[open]:not(.is-opening) .advent-handle {
    inset: 0 0 auto auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}
.advent-disclosure[open]:not(.is-opening) .advent-close {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--gold);
    font-size: 20px;
    line-height: 1;
}
.advent-disclosure[open]:not(.is-opening) .advent-lid { display: none; }
/* The seam belongs to the moving lid. Light and floating flecks sit behind it. */
.advent-light, .advent-seam, .advent-rim { display: none; pointer-events: none; }
.is-opening .advent-light, .is-opening .advent-rim, .is-opening .advent-seam {
    position: absolute;
    display: block;
    inset: 0;
}
.is-opening .advent-lid {
    z-index: 1;
    box-shadow: inset 0 0 0 4px #163126, inset 0 0 0 5px #ab8f61, 14px 0 22px #0a171b80;
}
.is-opening .advent-seal { position: relative; }
.is-opening .advent-seal::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid #fff5ca;
    border-radius: 50%;
    box-shadow: inset 0 0 21px #f7c87b80, 0 0 14px #ffd69c99, 0 0 45px #dda44b66;
    opacity: var(--seal-light, 0);
}
.is-opening .advent-seam {
    opacity: 0;
    background: radial-gradient(ellipse 20% 57% at 100% 50%, #ffdb9080, #e9ad4533 42%, transparent 95%);
}
.advent-seam::before, .advent-seam::after { content: ''; position: absolute; }
.advent-seam::before {
    inset: 2% 1px;
    width: 2px;
    left: auto;
    background: linear-gradient(transparent, #ffe2a0 27%, #fffced 50%, #ffe2a0 73%, transparent);
    box-shadow: 0 0 8px 3px #ffc87680;
}
.advent-seam::after {
    right: -9px;
    top: calc(50% - 15px);
    width: 24px;
    height: 30px;
    background: #fffbe8;
    clip-path: polygon(50% 0,58% 39%,100% 50%,58% 57%,50% 100%,43% 58%,0 50%,43% 41%);
}
.advent-light { overflow: hidden; }
.advent-bloom {
    position: absolute;
    inset: -15%;
    opacity: 0;
    transform-origin: 82% 48%;
    background:
        radial-gradient(ellipse at 77% 48%, #fff4cb 0%, #f9d895c9 7%, #efc17c70 23%, transparent 58%),
        conic-gradient(from 240deg at 83% 48%, transparent 0deg, #ffd89733 9deg, transparent 17deg 33deg, #ffe4aa55 39deg, transparent 47deg 64deg, #ffe3ab3d 70deg, transparent 82deg 360deg);
}
.advent-spark {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    margin: -1px;
    opacity: 0;
    border-radius: 50%;
    background: #fff9dc;
    box-shadow: 0 0 5px 2px #f7cb84c9, 0 0 13px 4px #ffe6a53d;
}
.advent-spark:nth-of-type(odd)::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: #fff5d6;
    clip-path: polygon(50% 0,58% 40%,100% 50%,58% 57%,50% 100%,42% 59%,0 50%,42% 41%);
}
.is-opening .advent-rim {
    z-index: 2;
    inset: 3px;
    opacity: 0;
    background: linear-gradient(#ffe5ae, #fff9d9, #ffe5ae) right center / 2px var(--rim-height, 0%) no-repeat;
    filter: drop-shadow(0 0 3px #ffcf7d);
}
.advent-rim::before, .advent-rim::after {
    content: '';
    position: absolute;
    right: 0;
    height: 2px;
    width: var(--rim-width, 0%);
    background: linear-gradient(to right, #fff9db, #f6d490 14%, #cda76a80 75%);
}
.advent-rim::before { top: 0; }
.advent-rim::after { bottom: 0; }
@media (max-width: 700px) {
    .advent-hero { min-height: 180px; grid-template-columns: 3fr 2fr; }
    .advent-hero-copy { margin: 7px; padding: 18px 12px; gap: 7px; }
    .advent-hero-copy h1 { font-size: clamp(23px, 5.6vw, 34px); }
    .advent-hero-copy p { font-size: 12px; }
    .advent-hero-copy .advent-dates { font-size: 9px; }
    .advent-ornament { font-size: 13px; right: 6%; top: 5%; }
    .advent-wrap { padding: 14px 6px 20px; }
    .advent-jump { margin-left: 8px; margin-bottom: 5px; }
    .advent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(26.5rem, 64vw, 27rem); gap: 5px; }
    .advent-door { padding: 12px 10px; gap: 8px; }
    .advent-interior { padding: 12px 10px; gap: 8px; }
    .advent-door:nth-child(19) { grid-column: 2; grid-row: 11 / span 2; }
    .advent-copy h2 { font-size: 16px; }
    .advent-number { font-size: 30px; }
    .advent-copy p, .advent-status { font-size: 12px; }
    .advent-shop { font-size: 13px; }
    .advent-special h2 { font-size: 23px; }
    .advent-closing-photo { width: 100%; height: auto; max-height: 240px; object-fit: cover; display: block; }
}
@media (min-width: 701px) and (max-width: 1000px) {
    .advent-wrap { padding: 32px 12px; }
    .advent-grid { gap: 8px; }
}
