* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #1d1d1d;
    --paper: #f4f4f2;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--ink);
    background-color: var(--paper);
    /* Soft marble texture */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.012' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.55  0 0 0 0 0.55  0 0 0 -2.2 1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='0.35'/%3E%3C/svg%3E"),
        linear-gradient(160deg, #fafaf8 0%, #ededea 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    padding: 12px;
}

/* Double-line frame */
.card {
    position: relative;
    width: 100%;
    max-width: 440px;
    min-width: 0;
    min-height: calc(100vh - 24px);
    border: 1.5px solid var(--ink);
    padding: 28px 22px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid var(--ink);
    pointer-events: none;
}

/* Monogram */
.monogram {
    /* Source PNG is 1920x1080 with wide transparent sides - crop to the artwork */
    width: 140px;
    aspect-ratio: 860 / 1080;
    object-fit: cover;
    margin-bottom: 24px;
}

/* Names */
.names {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(28px, 8.4vw, 38px);
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.names .and {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: 0.72em;
    letter-spacing: 0;
    padding: 0 0.1em;
}

.subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(26px, 7.4vw, 34px);
    margin-top: 4px;
}

/* Event details */
.date {
    font-family: 'Heebo', sans-serif;
    font-weight: 500;
    font-size: clamp(32px, 9vw, 40px);
    letter-spacing: 0.02em;
    margin-top: 28px;
}

.venue {
    font-weight: 600;
    font-size: clamp(28px, 7.6vw, 34px);
    margin-top: 6px;
}

/* Buttons */
.actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: clamp(20px, 5.6vw, 24px);
    font-weight: 500;
    transition: background-color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-pill {
    min-height: 74px;
    padding: 12px 20px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    /* Inner thin line */
    box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink);
    background: rgba(255, 255, 255, 0.35);
}

.btn:hover,
.gift-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn:active,
.gift-btn:active {
    transform: scale(0.98);
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Gift box */
.gift-box {
    border: 2px solid var(--ink);
    border-radius: 24px;
    padding: 12px 12px 14px;
    background: rgba(255, 255, 255, 0.35);
}

.gift-box h2 {
    font-size: clamp(20px, 5.6vw, 24px);
    font-weight: 500;
    margin-bottom: 10px;
}

.gift-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gift-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 78px;
    border: 2px solid var(--ink);
    border-radius: 20px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.card-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.gift-label {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.brand-logo {
    max-width: 82%;
    max-height: 34px;
    object-fit: contain;
}

.paybox-logo {
    max-width: 92%;
    max-height: none;
}

.bit-logo {
    max-height: 48px;
    border-radius: 10px;
}

@media (max-width: 360px) {
    .card {
        padding: 22px 14px 20px;
    }

    .gift-options {
        gap: 6px;
    }

}

/* Designer credit */
.credit {
    margin-top: auto;
    padding-top: 22px;
    font-size: 14px;
    color: #555;
}

.credit a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
