.gift-reference {
    container-type: inline-size;
    position: relative;
    isolation: isolate;
    padding: clamp(104px, 27cqw, 200px) 0 clamp(64px, 15cqw, 114px);
    overflow: hidden;
    text-align: center;
    color: #68343e;
    font-family: "Crimson Text", Georgia, serif;
}
.gift-reference::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 44% 54%, #f1e1ce, transparent 69%), #fcf4ea;
    mask-image: linear-gradient(to bottom, transparent, #000 70px, #000 calc(100% - 70px), transparent);
}
.gift-intro { position: relative; width: min(92%, 700px); margin-inline: auto; }
.gift-reference .gift-couple-mark {
    margin: 0 0 6px;
    color: inherit;
    font: 600 clamp(14px, 4cqw, 21px)/1.3 "Crimson Text", Georgia, serif;
    text-transform: uppercase;
    letter-spacing: .24em;
}
.gift-intro svg { width: 36%; max-width: 148px; color: #b5864d; }
.gift-reference .wedding-gift-title {
    margin: 14px 0;
    color: inherit;
    font: 400 clamp(38px, 10cqw, 74px)/1.12 "Hurricane", cursive !important;
}
.gift-reference .wedding-gift-description {
    margin: 0;
    color: inherit;
    font: 400 clamp(16px, 4.4vw, 22px)/1.3 "Crimson Text", Georgia, serif;
    text-wrap: pretty;
}
.gift-intro-divider { display: flex; align-items: center; gap: 7px; width: 55%; margin: 20px auto 0; color: #b5864d; }
.gift-intro-divider::before, .gift-intro-divider::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.gift-intro-divider span { width: 6px; height: 6px; background: currentColor; rotate: 45deg; }
.gift-scene { position: relative; width: min(100%, 690px); margin: 27px auto 36px; }
.gift-ornament-edges {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, #000 42px, #000 calc(100% - 54px), transparent);
}
.gift-layer { position: absolute; display: block; height: auto; pointer-events: none; }
.gift-envelope { width: min(66%, 470px); left: -12%; top: 0; rotate: -12deg; translate: 0 -39%; filter: drop-shadow(0 8px 10px #5b3e343d); }
.gift-seal { width: min(18%, 104px); left: 12%; top: clamp(12px, 3.8cqw, 24px); filter: drop-shadow(0 5px 5px #48282b66); }
.gift-flower-right { width: min(40%, 270px); right: -9%; top: 0; rotate: -18deg; translate: 0 -18%; }
.gift-flower-left { width: min(37%, 245px); left: -9%; bottom: 0; }
.gift-ribbon { width: min(56%, 395px); right: -12%; bottom: 0; rotate: -14deg; translate: 0 12%; }
.gift-deck {
    position: relative;
    z-index: 1;
    width: 87%;
    margin: 0 auto;
    display: grid;
    gap: 0;
}
.gift-deck > :first-child { position: relative; z-index: 1; }
.gift-card {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    aspect-ratio: 2.15;
    display: grid;
    grid-template-columns: minmax(0, 24ch) auto;
    justify-content: start;
    align-items: center;
    gap: clamp(8px, 3cqw, 20px);
    padding: clamp(52px, 15cqw, 106px) 8% clamp(19px, 5cqw, 32px);
    text-align: left;
    color: #fff4df;
    filter: drop-shadow(0 6px 8px #382c284d);
}
.gift-card-bca { rotate: -2.5deg; translate: -2% 0; }
.gift-card-bni { rotate: 2deg; translate: 2% 0; color: #681d27; }
.gift-card-paper { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.gift-card-mark {
    position: absolute;
    top: 14%;
    left: 8%;
    width: 22%;
    height: auto;
}
.gift-card-mark-official {
    filter: brightness(.94) sepia(.34) saturate(1.15);
}
.gift-card-details { min-width: 0; }
.gift-copy-column {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-inline-start: clamp(8px, 3cqw, 20px);
    border-inline-start: 1px solid #e0bc80;
}
@media (min-width: 768px) {
    .gift-reference { padding-block: 128px 56px; }
    .gift-reference .wedding-gift-title { margin-block: 8px 10px; }
    .gift-intro-divider { margin-top: 14px; }
    .gift-scene { margin-block: 21px 24px; }
    .gift-envelope { width: min(58%, 390px); }
    .gift-seal { left: 5%; top: 24px; width: min(15%, 83px); }
    .gift-flower-right { width: min(34%, 220px); }
    .gift-ribbon { width: min(48%, 330px); }
}
.gift-card-bni .gift-copy-column { border-inline-start-color: #a16a58; }
.gift-card-details .gift-number, .gift-card-details .gift-owner {
    margin: 0;
    color: inherit;
    font: 600 clamp(19px, 6cqw, 34px)/1.08 "Crimson Text", Georgia, serif;
    font-variant-numeric: lining-nums tabular-nums;
    white-space: nowrap;
}
.gift-card-details .gift-owner {
    font-size: clamp(14px, 4cqw, 21px);
    margin-top: 4px;
    white-space: normal;
    text-wrap: pretty;
}
.gift-end-flourish { width: 32%; height: 1px; margin: 8px auto 0; background: #b5864d; }
.gift-reference .gift-reference-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 7px 12px;
    border: 1px solid #af8359;
    border-radius: 999px;
    background: #f8e8cf;
    color: #681d27;
    font: 700 clamp(16px, 4cqw, 20px)/1.2 "Crimson Text", Georgia, serif;
    cursor: pointer;
}
@media (max-width: 370px) {
    .gift-reference .gift-reference-copy { padding-inline: 8px; gap: 3px; }
}
@media (min-width: 768px) {
    @container (min-width: 560px) {
        .gift-card {
            grid-template-columns: minmax(0, 1fr) auto;
            padding-top: 82px;
            gap: 18px;
        }
        .gift-card-details .gift-number { font-size: clamp(34px, 5.4cqw, 52px); }
        .gift-card-details .gift-owner { font-size: clamp(21px, 3.2cqw, 29px); }
        .gift-copy-column { min-height: 64px; padding-inline-start: 18px; }
        .gift-reference .gift-reference-copy {
            min-height: 54px;
            padding-inline: clamp(16px, 3cqw, 30px);
            font-size: clamp(20px, 3cqw, 27px);
        }
    }
}
.gift-reference-copy:hover { filter: brightness(.9); }
.gift-reference-copy:focus-visible { outline: 3px solid #68343e; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    .gift-reference [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; pointer-events: auto; }
}
