@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond.woff2") format("woff2");
    font-weight: 500 600;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Allura;
    src: url("../fonts/allura.woff2") format("woff2");
    font-display: swap;
}

:root {
    --evergreen: #10271e;
    --deep-green: #0b2018;
    --gold: #e9c88f;
    --cream: #fcf0db;
    --paper: #f9e9c9;
    --ink: #392820;
    --muted: #685241;
    --red: #822d32;
    --line: #b5855b66;
    --serif: "Cormorant Garamond", Georgia, serif;
    --script: Allura, "Segoe Script", cursive;
    --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Smooth only for in-page jumps; anchors in a newly loaded page land instantly. */
html:focus-within { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 1rem/1.55 var(--sans);
    color: var(--cream);
    background:
        radial-gradient(ellipse at 49% 62%, #1f392a, transparent 68%),
        repeating-linear-gradient(110deg, #ffffff03 0 1px, transparent 1px 5px),
        var(--evergreen);
}

main { flex: 1; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    padding: .6rem .9rem;
    z-index: 5;
    transform: translateY(-200%);
    background: var(--cream);
    color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 2;
    background: #0c2119;
    border-bottom: 1px solid #d6ac674d;
}

.site-header-inner {
    width: min(100% - 4rem, 76rem);
    min-height: 4.4rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.holiday-lights {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(100% - 4rem, 76rem);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    pointer-events: none;
}

.holiday-lights span {
    position: relative;
    display: grid;
    justify-items: center;
    color: #f3ca79;
}

.holiday-lights span:nth-child(4n + 2) { color: #ee877a; }
.holiday-lights span:nth-child(4n + 3) { color: #9cd1aa; }
.holiday-lights span:nth-child(4n) { color: #fbe4b8; }

.holiday-lights span::before {
    content: "";
    position: absolute;
    inset: 0 -.5px auto;
    height: .52rem;
    border-bottom: 1px solid #ac895eab;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.holiday-lights span::after {
    content: "";
    width: .44rem;
    height: .6rem;
    margin-top: .64rem;
    border-radius: 50% 50% 50% 50% / 34% 34% 66% 66%;
    background: radial-gradient(ellipse at 38% 30%, #fff7 4%, transparent 58%), currentColor;
    box-shadow: 0 -.2rem 0 -.045rem #a98b61, 0 .05rem .58rem -.07rem currentColor;
}

.brand, .site-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: .62rem;
    text-decoration: none;
    font: 600 clamp(1.45rem, 3vw, 1.85rem)/1 var(--serif);
    white-space: nowrap;
}

.brand-mark {
    color: var(--gold);
    display: grid;
    place-items: center;
    width: 2.08rem;
    height: 2.08rem;
    border: 1px solid #cc9e61a6;
    border-radius: 50%;
    font: 1.18rem/1 var(--serif);
}

.site-nav {
    gap: clamp(.7rem, 3vw, 1.8rem);
    font-size: .91rem;
    white-space: nowrap;
}

.text-button { text-decoration: none; }
.text-button:hover { text-decoration: underline; text-underline-offset: .24em; }
.nav-sign-out { margin: 0; }
.text-button { border: 0; color: inherit; padding: .3rem 0; background: none; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: .56rem 1.1rem;
    border: 1px solid transparent;
    border-radius: .3rem;
    font-weight: 700;
    font-size: .93rem;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.button-nav { background: #57272a; border-color: #ceab738c; color: var(--cream); }
.button-nav:hover { background: #713137; border-color: var(--gold); }
.button-red { background: var(--red); color: #fff8eb; }
.button-red:hover { background: #682127; }
.button-outline { background: #fff8e880; border-color: #8f3a3f99; color: var(--red); }
.button-outline:hover { background: #fff8e8; border-color: var(--red); }
.button-gold { background: var(--gold); color: #2b1b13; border-color: #f6dcae; }
.button-gold:hover { background: #f4d9a6; }
.button-ghost { background: #0b20188c; border-color: #e9c88fa6; color: var(--cream); }
.button-ghost:hover { background: #0b2018d9; border-color: var(--gold); }
.button-small { min-height: 2.2rem; padding: .36rem .85rem; font-size: .86rem; }
.button:focus-visible { outline-color: var(--gold); }
:is(.button-red, .button-outline):focus-visible { outline-color: var(--red); }

.hero {
    position: relative;
    isolation: isolate;
    background: #0c2117;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
}

.hero::before {
    background: url("../images/santa-workshop.jpg") center 27% / cover no-repeat;
}

.hero::after {
    background:
        linear-gradient(0deg, var(--evergreen) 0%, #10271e00 28%),
        linear-gradient(90deg, #0b2018b8 0%, #0b201847 37%, transparent 63%);
}

.hero-inner {
    width: min(100% - 4rem, 70rem);
    min-height: clamp(25rem, 39vw, 32.5rem);
    margin-inline: auto;
    display: flex;
    align-items: center;
    padding-block: 2.8rem 4rem;
}

.hero-copy { max-width: 37rem; }

.hero-kicker, .eyebrow {
    font-size: .81rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.hero-kicker { color: #f3d3a0; }
.hero-kicker span { margin-right: .38rem; color: #eec586; }

.hero h1 {
    margin: .53rem 0 1.1rem;
    font: 600 clamp(3.45rem, 7.5vw, 6.35rem)/.79 var(--serif);
    letter-spacing: -.043em;
}

.hero h1 em {
    display: inline-block;
    margin-top: .18em;
    font-weight: 500;
    color: #f4d39c;
}

.hero-copy > p:not(.hero-kicker) { max-width: 30ch; color: #f6e8d0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.directory {
    position: relative;
    margin-top: -.85rem;
    padding: 0 2rem 3.95rem;
    scroll-margin-top: 1rem;
}

.scroll {
    max-width: 55rem;
    margin-inline: auto;
    filter: drop-shadow(0 1.15rem 1.25rem #040e09a3);
}

.parchment {
    position: relative;
    color: var(--ink);
    text-align: center;
    padding: 2.18rem clamp(1rem, 7.5vw, 5.75rem) 1.8rem;
    margin-inline: 2rem;
    background:
        repeating-linear-gradient(102deg, #60341904 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at 50% 38%, #fff1d6 30%, #f6ddb0 77%, #e5bd86);
    box-shadow: inset 0 0 1.45rem #7b3e2352, inset 0 0 4.5rem #a06c3323;
}

.parchment::before {
    content: "";
    position: absolute;
    inset: 0 .72rem;
    background:
        repeating-linear-gradient(140deg, #8e343e9c 0 5px, transparent 5px 9px,
            #3d684d9c 9px 14px, transparent 14px 18px) left / 3px 100% no-repeat,
        repeating-linear-gradient(40deg, #8e343e9c 0 5px, transparent 5px 9px,
            #3d684d9c 9px 14px, transparent 14px 18px) right / 3px 100% no-repeat;
    pointer-events: none;
}

.scroll-rod {
    z-index: 1;
    position: relative;
    height: 1.62rem;
    margin-inline: .8rem;
    border-radius: 40% / 24%;
    background:
        linear-gradient(90deg, #4a290f88, transparent 7% 93%, #4a290f88),
        linear-gradient(#805020, #deb27b 16%, #f2d5a7 38%, #bb8248 66%, #69401e);
    box-shadow: 0 .2rem .44rem #49231080;
}

.scroll-rod::before, .scroll-rod::after {
    content: "";
    position: absolute;
    inset-block: -.18rem;
    width: 1.6rem;
    border: 1px solid #b58248;
    border-radius: .7rem .38rem .38rem .7rem;
    background: linear-gradient(#482711, #926032 24%, #d7a369 46%, #8f5729 67%, #513015);
    box-shadow: inset -.22rem 0 #46260e58, 0 .1rem .2rem #3520149e;
}

.scroll-rod::before { left: -.8rem; }
.scroll-rod::after { right: -.8rem; transform: scaleX(-1); }
.scroll-rod-bottom { transform: scaleY(-1); }

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .58rem;
    color: #946128;
    font-size: 1.11rem;
}

.ornament::before, .ornament::after {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a56c36b8);
}

.ornament::after { transform: scaleX(-1); }
.ornament-bottom { margin-top: 1.15rem; }

.scroll-heading h2, .paper-heading h1, .account-panel h1 {
    color: var(--red);
    font: 600 clamp(2.25rem, 5.7vw, 3.75rem)/.97 var(--serif);
    letter-spacing: -.022em;
    margin-block: .4rem .55rem;
}

.scroll-note { color: var(--muted); font-size: .88rem; }

.directory-search { width: min(100%, 16.5rem); margin: 1.1rem auto .95rem; }
.directory-search input { text-align: center; }
.empty-directory { padding-block: 1.25rem .25rem; }
.empty-directory p { margin-bottom: .9rem; color: var(--muted); }
.search-empty { color: var(--muted); padding: .9rem; }

.name-list, .gift-grid {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
}

.name-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .23rem 1.4rem;
    margin-top: .48rem;
}

.name-list li { min-width: 0; }

.scroll-name {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 5.25rem;
    padding: .5rem 1.45rem .7rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom-color: #bb965666;
    border-radius: .23rem;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.handwritten { font-family: var(--script); font-weight: 400; overflow-wrap: anywhere; }
.scroll-name .handwritten { font-size: clamp(2rem, 4.45vw, 2.85rem); line-height: 1.04; }
.gift-count { color: var(--muted); font-size: .83rem; line-height: 1.2; }

.scroll-name:is(:hover, :focus-visible) {
    color: #743031;
    background-color: #fff8e5a3;
    border-color: #66805b;
    border-radius: 48% / 38%;
    box-shadow: inset 0 0 0 2px #f8e8c7, inset 0 0 0 3px #7a92686b;
}

.holly {
    opacity: 0;
    position: absolute;
    top: 50%;
    width: 1.65rem;
    height: 2.4rem;
    transform: translateY(-50%);
    pointer-events: none;
    transition: opacity 160ms ease;
}

.scroll-name:is(:hover, :focus-visible) .holly { opacity: 1; }
.holly-left { left: -.28rem; transform: translateY(-50%) rotate(-16deg); }
.holly-right { right: -.28rem; transform: translateY(-50%) scaleX(-1) rotate(-16deg); }

.scroll-heading .holly {
    position: relative;
    inset: auto;
    flex: 0 0 1.65rem;
    opacity: 1;
}

.scroll-heading .holly-left { transform: rotate(-30deg); }
.scroll-heading .holly-right { transform: scaleX(-1) rotate(-30deg); }

.holly i, .holly i::before, .holly i::after {
    position: absolute;
    content: "";
    width: .46rem;
    height: .84rem;
    border-radius: 90% 0 90% 0;
    background: linear-gradient(110deg, #3b6548 45%, #87a16b 49% 55%, #28533c 59%);
}

.holly i { left: .57rem; top: .32rem; transform: rotate(-31deg); }
.holly i::before { left: -.41rem; top: .64rem; transform: rotate(-66deg); }
.holly i::after { left: .3rem; top: .5rem; transform: rotate(38deg); }

.holly b {
    position: absolute;
    width: .28rem;
    height: .28rem;
    background: #a33942;
    border-radius: 50%;
    left: .78rem;
    top: 1.26rem;
    box-shadow: -.24rem .13rem #8f2a38, .21rem .14rem #b44b4e;
}

.holly em {
    position: absolute;
    width: .51rem;
    height: .48rem;
    left: .48rem;
    top: 1.66rem;
    border: 1px solid #8f5d24;
    border-radius: 50% 50% 24% 24%;
    background: linear-gradient(115deg, #b68139, #f6d886 53%, #b88032);
    box-shadow: 0 .12rem 0 -.05rem #80531d;
    transform: rotate(15deg);
}

.page-frame {
    width: min(100% - 3rem, 66rem);
    margin: 2.3rem auto 4rem;
}

.narrow-frame { max-width: 36rem; }
.editor-frame { max-width: 60rem; }
.breadcrumb { margin-bottom: .8rem; color: #f2d8af; font-size: .94rem; }
.breadcrumb a, .product-link, .account-back { text-underline-offset: .24em; }

.paper-panel {
    padding: clamp(1rem, 5vw, 3.25rem);
    background: radial-gradient(ellipse at 50% 0%, #fff2d9, #f3ddb8);
    border: 1px solid #b58a51;
    border-radius: .36rem;
    box-shadow: inset 0 0 1.7rem #98632d3b, 0 1rem 2rem #06171077;
    color: var(--ink);
}

.paper-heading, .account-panel { text-align: center; }
.paper-heading { margin-bottom: 2rem; }
.paper-heading .eyebrow { margin-top: .75rem; color: var(--muted); }
.paper-heading .handwritten { font-family: var(--script); font-weight: 400; font-size: clamp(3rem, 8vw, 5rem); }
.paper-heading .button, .paper-heading .product-link { margin-top: .55rem; }
.account-panel p { margin: .8rem auto 1.25rem; max-width: 34ch; color: var(--muted); }
.account-back { display: block; margin-top: 1rem; color: var(--red); }
.empty-state { color: var(--muted); text-align: center; padding: 1.1rem 0; }

.gift-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: 1.1rem;
}

.gift-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff8e8;
    border: 1px solid var(--line);
    border-radius: .38rem;
    box-shadow: 0 .3rem .8rem -.35rem #5a32154d;
    scroll-margin-top: 1.5rem;
}

.gift-card:target {
    border-color: #b8873f;
    animation: gift-glow 2.6s ease-out;
}

@keyframes gift-glow {
    0%, 35% { box-shadow: 0 0 0 .2rem #e9c88f, 0 0 1.6rem #e0a74a99; }
    100% { box-shadow: 0 .3rem .8rem -.35rem #5a32154d; }
}

.gift-photo, .gift-wrap { width: 100%; height: 10.5rem; flex: none; }
.gift-photo { object-fit: contain; background: #f4e8d1; border-bottom: 1px solid var(--line); }

/* Gifts without a photo appear as wrapped presents, cycling through three papers. */
.gift-wrap {
    --wrap: #8a2a33;
    --ribbon: #e9c88f;
    --ribbon-shade: #b98d4f;
    --wrap-pattern: repeating-linear-gradient(135deg, #ffffff14 0 .3rem, transparent .3rem 1.05rem);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--wrap-pattern), var(--wrap);
    background-size: var(--wrap-pattern-size, auto), auto;
    box-shadow: inset 0 0 2.6rem #0000002e;
}

.gift-grid > li:nth-child(3n + 2) .gift-wrap {
    --wrap: #24503b;
    --ribbon: #f3dfb6;
    --ribbon-shade: #c2a46b;
    --wrap-pattern: radial-gradient(circle, #ffffff2e .12rem, transparent .14rem);
    --wrap-pattern-size: 1.05rem 1.05rem;
}

.gift-grid > li:nth-child(3n) .gift-wrap {
    --wrap: #e6cb98;
    --ribbon: #932c36;
    --ribbon-shade: #681d25;
    --wrap-pattern: repeating-linear-gradient(45deg, #932c361a 0 .3rem, transparent .3rem 1.05rem);
}

.gift-wrap::before, .gift-wrap::after {
    content: "";
    position: absolute;
    background: var(--ribbon);
    box-shadow: 0 0 .35rem #00000033, inset 0 0 0 .12rem #ffffff2b;
}

.gift-wrap::before { top: 0; bottom: 0; left: calc(50% - .5rem); width: 1rem; }
.gift-wrap::after { left: 0; right: 0; top: calc(50% - .5rem); height: 1rem; }

.gift-bow {
    position: relative;
    z-index: 1;
    width: 5.4rem;
    filter: drop-shadow(0 .16rem .14rem #00000047);
}

.gift-bow path { fill: var(--ribbon); }
.gift-bow .gift-bow-tail, .gift-bow .gift-bow-shade, .gift-bow circle { fill: var(--ribbon-shade); }

.gift-card-body { flex: 1; padding: 1rem; overflow-wrap: anywhere; }
.gift-card h3 { font: 600 1.65rem/1.06 var(--serif); }
.gift-price { color: var(--muted); font-weight: 600; margin-top: .38rem; }
.product-link { color: var(--red); font-weight: 700; display: inline-block; }
.gift-card-body .product-link { margin-top: .55rem; }

.editor-section {
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 1.5rem;
}

.editor-section h2 { font: 600 1.9rem/1.1 var(--serif); margin-bottom: .7rem; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.section-title h2 { margin: 0; }
.display-name-section label, .field > label { display: block; font-weight: 700; margin-bottom: .28rem; }
.field > label span { color: var(--muted); font-weight: 400; font-size: .87rem; }
.field > .checkbox-label { font-weight: 400; }
.inline-form { display: flex; gap: .66rem; }
.inline-form input { max-width: 23rem; }
.inline-form .button { flex: none; white-space: nowrap; }

input:not([type="checkbox"], [type="hidden"]) {
    min-width: 0;
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid #a88661;
    border-radius: .29rem;
    background: #fff9ec;
    color: var(--ink);
}

input[type="file"]::file-selector-button {
    margin-right: .55rem;
    padding: .27rem .55rem;
    color: var(--ink);
    border: 1px solid #a88661;
    border-radius: .22rem;
    background: #f7e6c6;
    cursor: pointer;
}

input[type="checkbox"] { accent-color: var(--red); }
.input-validation-error { border-color: var(--red) !important; }
.field-error { display: block; color: #81212b; font-size: .9rem; margin-top: .25rem; }
.field-error:empty, .validation-summary-valid { display: none; }
.form-note { margin-top: .38rem; color: var(--muted); font-size: .88rem; }
.gift-fields { display: grid; gap: .9rem 1rem; grid-template-columns: 2fr 1fr; }
.field-wide { grid-column: 1 / -1; }
.editor-photo { width: 8rem; max-height: 6rem; object-fit: contain; margin-bottom: .35rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.gift-card-actions { border-top: 1px solid var(--line); padding: .7rem 1rem; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem 1.1rem; }
.gift-pool-card { border-top: 1px solid var(--line); padding: .75rem 1rem .85rem; background: #fbefd866; }
.gift-pool-card .product-link, .gift-pool-card .button { margin-top: .6rem; }
.funding-amount { color: var(--muted); font-size: .93rem; }
.funding-amount strong { color: var(--ink); }
.funding-complete { margin-top: .35rem; color: #2f5a3c; font-size: .86rem; font-weight: 700; }
.funding-complete span { color: #b8873f; }
.pool-funding { max-width: 25rem; margin: .85rem auto 0; }
.gift-funding-progress {
    --funding-track: #ecd7b5;
    --funding-ember: radial-gradient(circle at max(50%, calc(100% - 5px)) 50%,
        #fff7d5 0 1px, #ffdb80 2px, #fa9451 4px, transparent 8px);
    --funding-fill: linear-gradient(90deg, #8e2b36, #b64132 65%, #e06434);
    appearance: none;
    display: block;
    width: 100%;
    height: .8rem;
    margin-top: .4rem;
    overflow: hidden;
    border: 1px solid #bc9770;
    border-radius: 999px;
    background: var(--funding-track);
}
.gift-funding-progress::-webkit-progress-bar { background: var(--funding-track); }
.gift-funding-progress::-webkit-progress-value {
    border-radius: inherit;
    background: var(--funding-ember), var(--funding-fill);
}
.gift-funding-progress::-moz-progress-bar {
    border-radius: inherit;
    background: var(--funding-ember), var(--funding-fill);
}
.pool-heading h1, .pool-explanation { overflow-wrap: anywhere; }
.pool-heading h1 { font: 600 clamp(2rem, 8vw, 3rem)/1.05 var(--serif); margin-top: .45rem; }
.pool-photo {
    width: min(100%, 15rem);
    max-height: 11rem;
    margin: 1rem auto .2rem;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: .3rem;
    background: #f4e8d1;
}
.pool-explanation { margin: .7rem 0 1rem; }
.pool-actions { flex-wrap: wrap; margin-top: .6rem; }
.payment-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .85rem; }
.payment-fields > .checkbox-label { grid-column: 1 / -1; }
.payment-setup-heading { margin: 1.1rem 0 .55rem; font: 600 1.45rem var(--serif); }
.payment-fields select {
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid #a88661;
    border-radius: .29rem;
    background: #fff9ec;
    color: var(--ink);
    font: inherit;
}
.contribution-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.contribution-reference { overflow-wrap: anywhere; }
.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem 1.25rem;
    margin-top: .55rem;
}
.share-row .product-link, .share-row .button { margin-top: 0; }
.share-row .copy-link:not(.button) { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: .24em; }
.copy-status { flex-basis: 100%; margin-top: 0; min-height: 1.3em; overflow-wrap: anywhere; }
.copy-status .copy-url { color: var(--ink); user-select: all; }
.copy-status:empty { min-height: 0; }
.paper-intro { color: var(--muted); max-width: 40ch; margin: .2rem auto 0; }
.gift-total { color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.pool-entries { list-style: none; margin: 0; padding: 0; }
.pool-entries li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .7rem 0; }
.pool-entries li + li { border-top: 1px solid var(--line); }
.pool-entries .form-note { display: block; }
.pool-entries details { max-width: 13rem; }
.pool-entries button { margin-top: .45rem; }
#payment-note {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid #a88661;
    border-radius: .29rem;
    background: #fff9ec;
    color: var(--ink);
    font: inherit;
    resize: vertical;
}
.remove-gift { color: var(--red); }
.remove-gift > summary {
    list-style: none;
    display: inline-block;
    padding: .05rem 0;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .24em;
}
.remove-gift > summary::-webkit-details-marker { display: none; }
.remove-gift[open] > summary { color: var(--muted); }
.remove-gift .when-open, .remove-gift[open] .when-closed { display: none; }
.remove-gift[open] .when-open { display: inline; }
.remove-gift form { padding-top: .45rem; }
.gift-card-actions .remove-gift[open] { flex-basis: 100%; order: 1; }
.notice { margin-bottom: .8rem; padding: .55rem .8rem; border-left: 3px solid #507752; background: #e6ead4; color: #2e482e; }

.site-footer {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    color: #e8ca99;
    background: var(--deep-green);
    border-top: 1px solid #d6ac6740;
    font-family: var(--serif);
}

.site-footer span { font-size: .67rem; }
.site-footer a { padding: .45rem 0; text-decoration: none; font-size: 1.2rem; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .17em; }

.holiday-effects {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.holiday-effects > * {
    position: absolute;
    inset: 0 auto auto 0;
    opacity: 0;
}

.holiday-snowflake {
    color: #fff8e9;
    font: .65rem/1 "Segoe UI Symbol", system-ui, sans-serif;
    text-shadow: 0 0 3px #0b201899;
}

.holiday-sleigh {
    width: clamp(4.25rem, 9vw, 7rem);
    height: auto;
}

@media (min-width: 112rem) {
    .hero::before {
        inset-inline: max(0px, calc((100% - 120rem) / 2));
        mask-image: linear-gradient(90deg, transparent, black 10% 90%, transparent);
    }
}

@media (max-width: 44rem) {
    .site-header-inner, .hero-inner, .holiday-lights { width: calc(100% - 2rem); }
    .holiday-lights { grid-template-columns: repeat(9, minmax(0, 1fr)); }
    .holiday-lights span:nth-child(n + 10) { display: none; }
    .hero::before { background-position: 63% 50%; }
    .hero::after {
        background:
            linear-gradient(0deg, var(--evergreen), transparent 24%),
            linear-gradient(90deg, #0b2018eb, #0b201894 48%, #0b20182e);
    }
    .directory { padding-inline: 1rem; }
    .parchment { margin-inline: 1.25rem; }
    .name-list { gap: .2rem .8rem; }
}

@media (max-width: 32rem) {
    .site-header-inner { min-height: 3.7rem; gap: .4rem; }
    .holiday-lights { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .holiday-lights span:nth-child(n + 8) { display: none; }
    .holiday-lights span::before { height: .38rem; }
    .holiday-lights span::after { width: .36rem; height: .5rem; margin-top: .5rem; }
    .site-nav { gap: .55rem; }
    .brand { gap: .36rem; }
    .brand-mark { width: 1.65rem; height: 1.65rem; font-size: .94rem; }
    .button-nav { padding-inline: .58rem; font-size: .82rem; }
    .text-button { font-size: .82rem; }
    .hero-inner { min-height: 23.5rem; padding-block: 3.5rem 3.75rem; }
    .hero-copy > p:not(.hero-kicker) { max-width: 24ch; }
    .parchment { padding: 1.5rem 1rem 1rem; }
    .name-list { grid-template-columns: 1fr; }
    .scroll-name { min-height: 4.8rem; }
    .scroll-name .handwritten { font-size: 2.65rem; }
    .page-frame { width: calc(100% - 1.5rem); margin-top: 1.2rem; }
    .inline-form { flex-direction: column; align-items: flex-start; }
    .gift-fields { grid-template-columns: 1fr; }
    .scroll-heading h2 { font-size: 2.05rem; }
    .section-title { flex-wrap: wrap; }
    .hero-actions .button { flex: 1 1 auto; }
}

@media (max-width: 23rem) {
    .brand-mark { display: none; }
    .hero h1 { font-size: 3.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .holiday-effects { display: none; }
}
