@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Playfair+Display:wght@500;600;700&display=swap');

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

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow-x: hidden;

    background-color: #fff4f0;
    background-image: url("images/bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: #392d32;
    font-family: "DM Sans", sans-serif;
}

/* =========================
   FLOATING BACKGROUND
   ========================= */

.background {
    position: fixed;
    inset: 0;

    overflow: hidden;
    pointer-events: none;

    z-index: 0;
}

.background span {
    position: absolute;

    color: #e7a7b9;
    opacity: 0.35;

    font-size: 24px;

    animation: float 8s ease-in-out infinite;
}

.background span:nth-child(1) {
    left: 8%;
    top: 15%;
}

.background span:nth-child(2) {
    left: 85%;
    top: 12%;

    animation-delay: 1s;
}

.background span:nth-child(3) {
    left: 15%;
    top: 75%;

    animation-delay: 2s;
}

.background span:nth-child(4) {
    left: 90%;
    top: 70%;

    animation-delay: 3s;
}

.background span:nth-child(5) {
    left: 5%;
    top: 45%;

    animation-delay: 4s;
}

.background span:nth-child(6) {
    left: 75%;
    top: 85%;

    animation-delay: 2s;
}

.background span:nth-child(7) {
    left: 55%;
    top: 8%;

    animation-delay: 5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(8deg);
    }
}


/* =========================
   MAIN CARD
   ========================= */

.card {
    position: relative;
    z-index: 1;

    width: min(92vw, 560px);

    margin: 40px 0;
    padding: 52px 42px 36px;

    text-align: center;

    background: rgba(255, 250, 247, 0.92);

    border: 1px solid rgba(185, 122, 142, 0.15);

    border-radius: 6px;

    box-shadow:
        0 12px 35px rgba(100, 60, 70, 0.10);

    backdrop-filter: none;
}


/* =========================
   TOP TEXT
   ========================= */

.eyebrow {
    margin-bottom: 14px;

    color: #b87a8e;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 3px;
    text-transform: uppercase;
}


/* =========================
   COUNTDOWN HEADING
   ========================= */

h1 {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "Playfair Display", serif;

    line-height: 0.9;
}

.number {
    color: #d9829b;

    font-size: clamp(120px, 25vw, 170px);

    font-weight: 700;

    letter-spacing: -8px;

    text-shadow:
        5px 8px 0 #f7dce4;
}

.days {
    margin-top: 8px;

    color: #392d32;

    font-size: clamp(32px, 7vw, 46px);

    font-weight: 600;
}


/* =========================
   SUBTITLE
   ========================= */

.message {
    margin-top: 20px;

    color: #8f737d;

    font-family: "Playfair Display", serif;

    font-size: 19px;

    font-style: italic;
}


/* =========================
   PHOTO
   ========================= */

.photo-frame {
    position: relative;

    width: min(100%, 350px);

    margin: 34px auto 26px;

    padding: 9px;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 15px 35px rgba(100, 60, 75, 0.12);

    transform: rotate(-1.5deg);
}

.photo-frame img {
    display: block;

    width: 100%;
    height: 280px;

    object-fit: cover;

    border-radius: 11px;
}

.photo-caption {
    padding: 11px 5px 4px;

    color: #987e87;

    font-family: "Playfair Display", serif;

    font-size: 13px;

    font-style: italic;
}


/* =========================
   DIVIDER
   ========================= */

.divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #efd9df;
}

.divider span {
    color: #d9829b;
}


/* =========================
   MAIN MESSAGE
   ========================= */

.tiny-message {
    color: #67535a;

    font-family: "Playfair Display", serif;

    font-size: 17px;

    line-height: 1.7;
}

.aside {
    display: block;

    margin-top: 5px;

    color: #a78d95;

    font-family: "DM Sans", sans-serif;

    font-size: 11px;

    font-style: normal;

    letter-spacing: 0.5px;
}


/* =========================
   SMALL COUNTDOWN
   ========================= */

.countdown {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-top: 30px;
}

.countdown div {
    padding: 14px 4px;

    background: #fff3f6;

    border: 1px solid #f4dfe5;

    border-radius: 14px;
}

.countdown strong {
    display: block;

    color: #b96881;

    font-size: 22px;

    font-weight: 500;
}

.countdown small {
    color: #a78d95;

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================
   FOOTER
   ========================= */

.footer {
    max-width: 400px;

    margin: 30px auto 0;

    color: #b59ca4;

    font-size: 11px;

    line-height: 1.6;

    letter-spacing: 0.5px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 500px) {

    .card {
        padding: 40px 22px 30px;

        border-radius: 26px;
    }

    .number {
        font-size: 120px;
    }

    .days {
        font-size: 34px;
    }

    .photo-frame img {
        height: 240px;
    }

    .countdown {
        gap: 6px;
    }

}
