﻿:root {
    --background: #f8f1e8;
    --card: rgba(255, 253, 250, 0.94);
    --brown: #603c28;
    --brown-light: #976c50;
    --gold: #c79565;
    --gold-light: #e5cbb1;
    --text: #745847;
    --muted: #a58d7d;
    --border: #eadbcd;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient( circle at 15% 10%, rgba(218, 183, 145, .17), transparent 28% ), radial-gradient( circle at 90% 75%, rgba(186, 135, 93, .12), transparent 30% ), var(--background);
    color: var(--text);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.engagement-card {
    width: min(100%, 450px);
    position: relative;
    background: var(--card);
    border: 1px solid rgba(198, 159, 122, .25);
    border-radius: 32px;
    padding: 42px 27px 30px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(88, 58, 34, .13), 0 4px 20px rgba(88, 58, 34, .05);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

    .engagement-card::before {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        top: -90px;
        right: -90px;
        border: 1px solid rgba(199, 149, 101, .18);
        border-radius: 50%;
    }

    .engagement-card::after {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        bottom: -70px;
        left: -70px;
        border: 1px solid rgba(199, 149, 101, .13);
        border-radius: 50%;
    }

.monogram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--gold);
}

    .monogram span {
        font-size: 17px;
    }

.eyebrow {
    margin: 23px 0 7px;
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--brown-light);
}

h1 {
    margin: 0;
    font-family: "Times New Roman", Georgia, serif;
    font-size: clamp(33px, 10vw, 43px);
    line-height: 1.1;
    font-weight: 400;
    color: var(--brown);
}

    h1 span {
        font-style: italic;
        color: var(--gold);
        font-size: .8em;
    }

.divider {
    width: 130px;
    margin: 22px auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
}

    .divider span {
        flex: 1;
        height: 1px;
        background: var(--gold-light);
    }

    .divider b {
        font-weight: 400;
        font-size: 13px;
    }

.intro {
    margin: 0 auto;
    max-width: 330px;
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--brown);
}

.secondary {
    margin: 11px auto 27px;
    max-width: 330px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}

.upload-zone {
    position: relative;
    min-height: 148px;
    padding: 25px 20px;
    border: 1.5px dashed var(--gold-light);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 145deg, rgba(255,255,255,.75), rgba(251,245,238,.85) );
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

    .upload-zone:hover {
        transform: translateY(-2px);
        border-color: var(--gold);
        box-shadow: 0 12px 30px rgba(110, 75, 45, .08);
    }

    .upload-zone:active {
        transform: scale(.99);
    }

.upload-icon {
    width: 49px;
    height: 49px;
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2e4d6;
    color: var(--brown);
}

    .upload-icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.upload-zone strong {
    font-family: Georgia, serif;
    font-size: 16px;
    color: var(--brown);
    font-weight: 500;
}

.upload-zone > span {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
}

.preview-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

    .preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.selection-info {
    margin-top: 11px;
    min-height: 18px;
    font-size: 12px;
    color: var(--brown-light);
}

.upload-button {
    width: 100%;
    margin-top: 13px;
    padding: 17px 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient( 135deg, #79503a, #a37351 );
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(96, 60, 40, .18);
    transition: transform .2s, opacity .2s, box-shadow .2s;
}

    .upload-button svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }

    .upload-button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(96, 60, 40, .23);
    }

    .upload-button:disabled {
        background: #d9d1ca;
        color: rgba(255,255,255,.8);
        cursor: not-allowed;
        box-shadow: none;
    }

.upload-status {
    min-height: 20px;
    margin-top: 12px;
    font-size: 12px;
}

    .upload-status.success {
        color: #54825b;
    }

    .upload-status.error {
        color: #a6534b;
    }

footer {
    position: relative;
    z-index: 2;
    margin-top: 32px;
    padding-top: 21px;
    border-top: 1px solid #efe4db;
    color: var(--muted);
}

    footer span {
        display: block;
        margin-bottom: 6px;
        color: var(--gold);
    }

    footer p {
        margin: 0;
        font-family: Georgia, serif;
        font-size: 11px;
        line-height: 1.55;
    }

@media (max-width: 480px) {

    .page {
        padding: 0;
        align-items: stretch;
    }

    .engagement-card {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
        padding: max(38px, env(safe-area-inset-top)) 21px 25px;
    }

    .preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
