@font-face {
    font-family: "Advent Playfair Display";
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
    src: url("fonts/playfair-display-600-900-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Advent Playfair Display";
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
    src: url("fonts/playfair-display-600-900-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Advent Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins-400-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Advent Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins-400-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Advent Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/poppins-600-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Advent Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/poppins-600-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Advent Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins-700-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Advent Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins-700-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.mm-advent.alignfull {
    --ink: #3c2415;
    --ink-deep: #2d190e;
    --caramel: #c39a70;
    --cream: #f8f0e7;
    --muted: #72523c;
    --line: #e6d6c6;
    --serif: "Advent Playfair Display", Georgia, serif;
    --sans: "Advent Poppins", "Trebuchet MS", sans-serif;
    --calendar-gutter: 12px;
    --column-gap: 12px;
    --row-gap: 12px;
    --calendar-max-width: 1640px;
    --calendar-width: min(var(--mm-advent-viewport, 100%), var(--calendar-max-width));
    --hero-copy-inset: clamp(1.75rem, 2.16vw, 2.5rem);
    --calendar-margin: calc((100% - var(--calendar-width)) / 2);
    box-sizing: border-box;
    width: var(--calendar-width);
    max-width: none;
    margin: 0 var(--calendar-margin);
    padding: 0 var(--calendar-gutter) 48px;
    background: var(--cream);
    color: var(--ink);
    font: 400 1rem/1.65 var(--sans);
}

.has-global-padding > .mm-advent.alignfull { margin-inline: var(--calendar-margin); }

@media (min-width: 770px) {
    .mm-advent.alignfull { --column-gap: 16px; --row-gap: 16px; }
}

@media (min-width: 1401px) {
    .mm-advent.alignfull { --column-gap: 24px; --row-gap: 36px; }
}

.mm-advent *, .mm-advent *::before, .mm-advent *::after { box-sizing: border-box; }
.mm-advent h1, .mm-advent h2, .mm-advent h3, .mm-advent p { margin: 0; }
.mm-advent h1, .mm-advent h2, .mm-advent h3 {
    color: inherit;
    font: 600 2rem/1.14 var(--serif);
    letter-spacing: -.025em;
}

.mm-advent .mm-advent__hero-band {
    --hero-band-width: var(--mm-advent-viewport, calc(100% + 2 * var(--calendar-gutter)));
    width: var(--hero-band-width);
    margin-inline: calc((100% - var(--hero-band-width)) / 2);
    background: linear-gradient(to bottom, #fff, var(--cream));
}

.mm-advent .mm-advent__hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "copy photo";
    width: calc(min(100%, var(--calendar-max-width)) - 2 * var(--calendar-gutter));
    margin-inline: auto;
    min-height: clamp(420px, 37vw, 684px);
    color: #fffaf4;
    background: var(--ink);
}

.mm-advent .mm-advent__hero-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--hero-copy-inset);
}

.mm-advent .mm-advent__eyebrow {
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mm-advent .mm-advent__hero .mm-advent__eyebrow { color: #eed1b3; }
.mm-advent .mm-advent__hero h1 { font-size: clamp(2.5rem, 5vw, 4.85rem); margin-top: .7rem; }
.mm-advent .mm-advent__hero h1 span { display: block; color: #edcda9; font-size: .8em; }
.mm-advent .mm-advent__subtitle { margin: 1.25rem 0 1.6rem; font-size: 1.584rem; max-width: 30ch; }
.mm-advent .mm-advent__hero-photo { grid-area: photo; position: relative; min-width: 0; background: #a67b58; }
.mm-advent .mm-advent__hero-photo img {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
}

.mm-advent a.mm-advent__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .62rem 1.15rem;
    background: var(--ink);
    border: 1px solid transparent;
    border-radius: 2px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.4;
}

.mm-advent a.mm-advent__button:hover { background: var(--ink-deep); }
.mm-advent a.mm-advent__button--light { background: #e8c5a0; color: var(--ink-deep); }
.mm-advent a.mm-advent__button--light:hover { background: #fff0de; }
.mm-advent a:focus-visible { outline: 3px solid #975625; outline-offset: 4px; }
.mm-advent .mm-advent__hero a:focus-visible { outline-color: #fff; }

.mm-advent .mm-advent__intro {
    display: grid;
    grid-template-columns: minmax(12rem, .55fr) 1fr;
    align-items: start;
    gap: 1rem 2rem;
    max-width: 57rem;
    margin-inline-start: var(--hero-copy-inset);
    padding: clamp(2rem, 5vw, 3.75rem) 0;
}

.mm-advent .mm-advent__intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 700; }
.mm-advent .mm-advent__intro p { color: var(--muted); max-width: 58ch; }
.mm-advent .mm-advent__weeks {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: .5rem;
    margin-inline: auto;
    padding: .5rem;
    border: 1px solid var(--line);
    background: var(--cream);
}

.mm-advent .mm-advent__weeks a {
    display: grid;
    justify-items: center;
    padding: .65rem .35rem;
    border: 1px solid transparent;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.45;
}

.mm-advent .mm-advent__weeks a small { font-size: .875rem; font-weight: 400; }
.mm-advent .mm-advent__weeks a:hover { border-color: var(--caramel); }
.mm-advent .mm-advent__weeks a.mm-advent__current-week { background: var(--ink); color: white; }
.mm-advent .mm-advent__week { margin: clamp(2rem, 5vw, 4rem) auto 0; scroll-margin-top: 9rem; }
.mm-advent .mm-advent__week-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-bottom: 31px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.mm-advent .mm-advent__week-heading h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 700; }
.mm-advent .mm-advent__week-heading p { color: var(--muted); font-size: .9rem; }
.mm-advent .mm-advent__doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--row-gap) var(--column-gap);
}

@media (min-width: 992px) {
    .mm-advent .mm-advent__doors { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.mm-advent .mm-advent__wrapped {
    --door-color: #a31920;
    position: relative;
    isolation: isolate;
    align-self: start;
    container-type: inline-size;
    min-width: 0;
    aspect-ratio: 1;
    color: #fff;
}

.mm-advent .mm-advent__wrapped--green { --door-color: #1b4a2b; }
.mm-advent .mm-advent__wrapped--gold { --door-color: #b48753; }

.mm-advent .mm-advent__wrapped::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--door-color);
    mask: url("door-perforation.svg") center / 100% 100% no-repeat;
}

.mm-advent .mm-advent__door-date {
    position: absolute;
    inset: 5% auto auto 12%;
    font: 900 34cqi/1.05 var(--serif);
    letter-spacing: -.04em;
    font-variant-numeric: lining-nums;
}

.mm-advent .mm-advent__door-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mm-advent .mm-advent__door-icon {
    position: absolute;
    inset: auto 9% 8% auto;
    width: 31%;
    height: auto;
    filter: brightness(0) invert(1);
}

.mm-advent .mm-advent__reveal {
    --line: #f7f5f0;
    --sale-color: #ce007a;
    --brand-color: #845a37;
    --product-button-height: 44px;
    position: relative;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    min-width: 0;
    box-shadow: inset 0 0 0 1px var(--line);
    background: #fff;
}

.mm-advent .mm-advent__product-photo {
    position: relative;
    isolation: isolate;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}

.mm-advent .mm-advent__product-image {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    z-index: 1;
    mix-blend-mode: multiply;
}

.mm-advent .mm-advent__product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mm-advent .mm-advent__product-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
}
.mm-advent .mm-advent__product-copy .mm-advent__product-brand {
    margin-bottom: .35rem;
    color: var(--brand-color);
    font-size: .8125rem;
}
.mm-advent .mm-advent__product-copy h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
    margin-bottom: .45rem;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: normal;
}
.mm-advent .mm-advent__product-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: .875rem;
    line-height: 1.45;
}
.mm-advent .mm-advent__product-footer {
    display: grid;
    gap: clamp(1.25rem, 12cqi, 3rem);
    width: 100%;
    margin-top: auto;
    padding-top: .85rem;
}
.mm-advent .mm-advent__price { color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.2; }
.mm-advent .mm-advent__price del { display: block; margin: 0 0 .2rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
.mm-advent .mm-advent__price ins { background: transparent; color: var(--sale-color); text-decoration: none; }
.mm-advent .mm-advent__product-footer a.mm-advent__button {
    min-height: var(--product-button-height);
    padding: .4rem;
    font-size: .8125rem;
}
.mm-advent .mm-advent__gift-badges {
    position: absolute;
    z-index: 2;
    inset: .65rem .65rem auto;
    display: flex;
    align-items: stretch;
    gap: .25rem;
    pointer-events: none;
}
.mm-advent .mm-advent__discount,
.mm-advent .mm-advent__sold-out-badge {
    display: flex;
    align-items: center;
    min-width: 0;
    border-radius: 4px;
    padding: .25rem .5rem;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
}

.mm-advent .mm-advent__discount { background: var(--sale-color); overflow-wrap: anywhere; }
.mm-advent .mm-advent__sold-out-badge { margin-inline-start: auto; background: #ec008c; white-space: nowrap; }

.mm-advent .mm-advent__promo-photo {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: clamp(.2rem, 2cqi, .45rem);
    padding: clamp(6px, 4cqi, 12px);
    background: #1b4a2b;
    color: #fff;
    text-align: center;
}
.mm-advent .mm-advent__promo-photo img {
    width: clamp(1.25rem, 18cqi, 3.75rem);
    height: auto;
    filter: brightness(0) invert(1);
}
.mm-advent .mm-advent__promo-photo h3 { font-size: clamp(1rem, 7cqi, 1.5rem); }
.mm-advent .mm-advent__promo-code {
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: .25rem .65rem;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: #1b4a2b;
    cursor: pointer;
    font: 700 clamp(.875rem, 7cqi, 1.2rem)/1.3 var(--sans);
    overflow-wrap: anywhere;
}
.mm-advent .mm-advent__promo-code:hover { background: #f8f0e7; }
.mm-advent .mm-advent__promo-code:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mm-advent .mm-advent__promo-code code { background: transparent; color: inherit; font: inherit; padding: 0; }
.mm-advent .mm-advent__promo-status { color: inherit; font-size: clamp(.6875rem, 6cqi, .875rem); line-height: 1.35; }

.mm-advent .mm-advent__reveal--sold-out {
    --line: #878787;
    --ink: #212121;
    --muted: #303030;
    --sale-color: #303030;
    --brand-color: #303030;
    color: var(--ink);
    background: #aaa;
}

.mm-advent .mm-advent__reveal--sold-out .mm-advent__product-photo { background: #858585; }
.mm-advent .mm-advent__reveal--sold-out .mm-advent__product-image { filter: grayscale(1); }

.mm-advent .mm-advent__reveal--sold-out .mm-advent__discount {
    background: #e0e0e0;
    color: var(--ink);
}

.mm-advent .mm-advent__reveal--sold-out .mm-advent__product-footer::after {
    content: "";
    min-height: var(--product-button-height);
}

.mm-advent .mm-advent__snowfall,
.mm-advent .mm-advent__snow-toggle { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .mm-advent .mm-advent__snow-toggle:not([hidden]) {
        position: fixed;
        z-index: 5;
        inset: auto auto max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 44px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 50%;
        color: var(--ink);
        background: #fffaf4;
        box-shadow: 0 2px 9px #3c241525;
        cursor: pointer;
        font: 400 1.35rem/1 sans-serif;
    }

    .mm-advent .mm-advent__snow-toggle[aria-pressed="false"]::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
        box-shadow: 0 0 0 1px #fffaf4;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .mm-advent .mm-advent__snow-toggle:focus-visible {
        outline: 2px solid #975625;
        outline-offset: 3px;
    }

    .mm-advent .mm-advent__snowfall:not([hidden]) {
        display: block;
        position: fixed;
        z-index: 4;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        opacity: .74;
    }

    .mm-advent .mm-advent__snowfall::before,
    .mm-advent .mm-advent__snowfall::after {
        --snow-drop: 148px;
        --snow-sway: 9px;
        content: "";
        position: absolute;
        inset: -170px -18px 0;
        background:
            radial-gradient(circle at 42px 22px, white 1.5px, transparent 2.5px),
            radial-gradient(circle at 119px 84px, white 1px, transparent 2px),
            radial-gradient(circle at 196px 47px, white 2px, transparent 3.2px);
        background-size: 252px 148px;
        filter: drop-shadow(0 1px 1px #566a7b70);
        animation: mm-advent-flakes 9s linear infinite;
    }

    .mm-advent .mm-advent__snowfall::after {
        --snow-drop: 164px;
        --snow-sway: -12px;
        opacity: .63;
        background-position: 93px 54px, 45px 106px, 14px 82px;
        background-size: 298px 164px;
        animation-duration: 14s;
    }

    .mm-advent .mm-advent__wrapped.mm-advent__in-view .mm-advent__door-icon { animation: mm-advent-icon-in 650ms ease-out; }
    .mm-advent .mm-advent__product-photo.mm-advent__in-view .mm-advent__product-image img { animation: mm-advent-product-in 650ms ease-out; }
}

@keyframes mm-advent-flakes {
    from { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(var(--snow-sway), calc(var(--snow-drop) / 2), 0); }
    to { transform: translate3d(0, var(--snow-drop), 0); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .mm-advent[data-advent-motion] .mm-advent__wrapped { transition: transform 220ms ease-out; }
    .mm-advent[data-advent-motion] .mm-advent__wrapped:hover { transform: translateY(-3px); }
}

@keyframes mm-advent-icon-in {
    from { transform: translateY(5px) rotate(-8deg); opacity: .55; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
}

@keyframes mm-advent-product-in {
    from { transform: translateY(6px); opacity: .85; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes mm-advent-paper-settle {
    from { transform: scale(1.03); }
    to { transform: scale(1); }
}

@media (max-width: 680px) {
    html:has(.mm-advent.alignfull),
    body:has(.mm-advent.alignfull) { background-color: #f8f0e7; }

    .mm-advent.alignfull {
        --hero-copy-inset: clamp(1.15rem, 5.5vw, 2rem);
        padding-bottom: max(48px, calc(16px + env(safe-area-inset-bottom)));
    }

    .mm-advent .mm-advent__hero, .mm-advent .mm-advent__intro { grid-template-columns: minmax(0, 1fr); }
    .mm-advent .mm-advent__hero { grid-template-areas: "photo" "copy"; min-height: 0; }
    .mm-advent .mm-advent__hero h1 { font-size: clamp(1.85rem, 9.5vw, 3.4rem); overflow-wrap: anywhere; }
    .mm-advent .mm-advent__hero-photo { aspect-ratio: 1; }
    .mm-advent .mm-advent__weeks { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-advent .mm-advent__week-heading { column-gap: .5rem; }
    .mm-advent .mm-advent__week-heading h2 { font-size: clamp(1.25rem, 5.8vw, 1.65rem); }
    .mm-advent .mm-advent__week-heading p { font-size: .8rem; }
    .mm-advent .mm-advent__product-copy .mm-advent__button { padding-inline: .35rem; font-size: .8125rem; }
    .mm-advent .mm-advent__gift-badges { inset: .3rem .3rem auto; }
    .mm-advent .mm-advent__discount,
    .mm-advent .mm-advent__sold-out-badge { padding: .18rem .3rem; font-size: .75rem; }
    .mm-advent .mm-advent__reveal--sold-out .mm-advent__gift-badges span { font-size: clamp(.625rem, 7cqi, .75rem); }
}
