/* ==========================================
   VARIABLES
========================================== */

:root {
    --cream: #fff8f4;
    --cream-2: #fff1ec;
    --rose: #d96f79;
    --rose-dark: #9e4554;
    --pink: #f3c8cc;
    --pink-light: #ffe4e4;
    --peach: #f5b99f;
    --wine: #732f3c;
    --yellow: #f1c56a;
    --lavender: #e6dcf4;
    --text: #432f31;
    --muted: #8b7375;
    --white: #ffffff;

    --serif: "Playfair Display", serif;
    --sans: "DM Sans", sans-serif;
}


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
}

body.invite-locked {
    overflow: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.section {
    padding: 110px max(6vw, 30px);
}


/* ==========================================
   TYPOGRAPHY
========================================== */

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
}

h2 {
    font-size: clamp(45px, 6vw, 72px);
    line-height: .98;
}

h2 em {
    color: var(--rose);
    font-weight: 500;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .24em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rose-dark);
}




/* ==========================================
   NAVIGATION
========================================== */

.nav {
    height: 82px;

    position: fixed;

    left: 0;
    top: 0;

    width: 100%;

    z-index: 1000;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    padding: 0 5vw;

    background:
        rgba(255,248,244,.82);

    backdrop-filter:
        blur(15px);

    border-bottom:
        1px solid
        rgba(120,65,70,.08);
}

.monogram {
    font-family: var(--serif);

    font-size: 23px;
}

.monogram span {
    color: var(--rose);
}

.nav nav {
    display: flex;

    gap: 35px;
}

.nav nav a {
    font-size: 12px;

    font-weight: 600;
}

.nav nav a:hover {
    color: var(--rose);
}

.nav-cta {
    justify-self: end;

    padding: 12px 20px;

    background: var(--wine);

    color: white;

    border-radius: 50px;

    font-size: 12px;
}


/* ==========================================
   MUSIC
========================================== */

.music-toggle {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 900;

    border: 0;

    background: var(--wine);

    color: white;

    border-radius: 50px;

    padding: 11px 18px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    box-shadow:
        0 12px 35px
        rgba(75,30,35,.22);
}

.music-toggle span {
    font-size: 17px;
}

.music-toggle b {
    font-size: 11px;
}


/* ==========================================
   HERO
========================================== */

.hero {
    min-height: 100vh;

    padding:
        130px 7vw 70px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 80px;

    position: relative;

    background:
        radial-gradient(
            circle at 80% 20%,
            #ffe3df 0,
            transparent 30%
        ),
        var(--cream);
}

.hero-copy {
    max-width: 650px;
}

.hero h1 {
    font-size:
        clamp(82px, 9vw, 125px);

    line-height: 1;

    margin: 35px 0;
}

.hero h1 em {
    color: var(--rose);

    font-size: .65em;
}

.hero-date {
    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 14px;

    letter-spacing: .08em;
}

.hero-date span {
    color: var(--rose);
}

.hero-date b {
    margin-left: 15px;

    font-weight: 500;
}

.intro {
    margin: 28px 0;

    font-family: var(--serif);

    font-style: italic;

    font-size: 21px;

    line-height: 1.6;
}

.button {
    display: inline-flex;

    align-items: center;

    gap: 20px;

    padding: 16px 26px;

    background: var(--wine);

    color: white;

    border-radius: 50px;

    font-size: 13px;
}

.button span {
    transition: .3s;
}

.button:hover span {
    transform: translateY(3px);
}


/* ==========================================
   HERO ART
========================================== */

.hero-art {
    display: flex;

    justify-content: center;

    position: relative;
}

.arch {
    width: min(430px, 80vw);

    height: 600px;

    border-radius:
        220px 220px 20px 20px;

    overflow: hidden;

    position: relative;

    background: #f5c9c4;

    box-shadow:
        0 40px 100px
        rgba(117,62,69,.18);
}

.hero-photo {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position:
        center bottom;

    position: relative;

    z-index: 2;
}

.marigold-border {
    position: absolute;

    left: 0;
    top: 30px;

    width: 100%;

    text-align: center;

    color: #e69b53;

    letter-spacing: 12px;

    font-size: 23px;

    z-index: 4;
}

.moon {
    width: 180px;
    height: 180px;

    position: absolute;

    right: -40px;
    top: 60px;

    border-radius: 50%;

    background: #fff0d7;
}

.art-label {
    position: absolute;

    left: 50%;
    bottom: 20px;

    transform:
        translateX(-50%);

    background: white;

    padding: 8px 18px;

    border-radius: 50px;

    font-family: var(--serif);

    font-style: italic;

    font-size: 13px;

    z-index: 5;
}

.doodle {
    position: absolute;

    color: var(--rose);

    z-index: 6;

    animation:
        float 4s ease-in-out infinite;
}

.h1 {
    left: 5%;
    top: 30%;
}

.h2 {
    right: 4%;
    bottom: 15%;
}

.f1 {
    right: 3%;
    top: 18%;
}

.f2 {
    left: 7%;
    bottom: 15%;
}

.s1 {
    top: 8%;
    left: 18%;
}

.s2 {
    right: 15%;
    bottom: 5%;
}

@keyframes float {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0);
    }

    50% {
        transform:
            translateY(-10px)
            rotate(8deg);
    }

}

.scroll-note {
    position: absolute;

    left: 50%;
    bottom: 25px;

    transform:
        translateX(-50%);

    font-size: 9px;

    letter-spacing: .25em;

    color: var(--muted);
}


/* ==========================================
   MARQUEE
========================================== */

.marquee {
    overflow: hidden;

    padding: 18px 0;

    background: var(--wine);

    color: #fff2e8;

    white-space: nowrap;
}

.marquee div {
    width: max-content;

    font-family: var(--serif);

    font-size: 20px;

    letter-spacing: .1em;

    animation:
        marquee 22s linear infinite;
}

.marquee span {
    color: var(--yellow);

    margin: 0 30px;
}

@keyframes marquee {

    to {
        transform:
            translateX(-50%);
    }

}


/* ==========================================
   SECTION HEADINGS
========================================== */

.section-heading {
    margin-bottom: 65px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 22px;
}

.section-intro {
    max-width: 600px;

    margin:
        20px auto 0;

    color: var(--muted);
}


/* ==========================================
   STORY
========================================== */

.story {
    background: #fffdf9;
}

.story-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.card {
    border:
        1px solid
        rgba(130,70,75,.13);
}

.story-card {
    min-height: 268px;

    padding: 35px;

    display: flex;

    flex-direction: column;

    background: white;

    border-radius:
        180px 180px 20px 20px;

    text-align: center;
}

.story-card > span {
    font-size: 10px;

    color: var(--muted);
}

.story-icon {
    margin: auto;

    font-size: 45px;

    color: var(--rose);
}

.story-card h3 {
    font-size: 30px;

    margin-bottom: 15px;
}

.story-card p {
    line-height: 1.7;
}

.story-card small {
    font-size: 10px;

    letter-spacing: .1em;
}


/* ==========================================
   COUNTDOWN
========================================== */

.countdown-section {
    background: var(--pink-light);

    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 80px;

    align-items: center;
}

.countdown-copy h2 {
    margin: 25px 0;
}

.countdown {
    width: 100%;

    display: grid;

    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr;

    align-items: center;

    text-align: center;
}

.countdown div {
    min-width: 0;

    padding: 25px 10px;
}

.countdown b {
    display: block;

    font-family: var(--serif);

    font-size:
        clamp(45px, 5vw, 80px);

    line-height: 1;

    color: var(--wine);

    font-variant-numeric:
        tabular-nums;
}

.countdown span {
    display: block;

    margin-top: 8px;

    font-size: 10px;

    letter-spacing: .15em;

    text-transform: uppercase;
}

.countdown i {
    font-family: var(--serif);

    font-size: 35px;

    color: var(--rose);
}


/* ==========================================
   EVENTS
========================================== */

.events {
    background: #fff9f4;
}

.event-grid {
    max-width: 800px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.event-card {
    position: relative;

    overflow: hidden;

    border-radius:
        180px 180px 20px 20px;

    background: white;

    border:
        1px solid
        rgba(105,50,60,.12);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.event-card:hover {
    transform:
        translateY(-8px);

    box-shadow:
        0 25px 60px
        rgba(80,45,50,.12);
}

.event-num {
    position: absolute;

    top: 22px;
    left: 25px;

    width: 36px;
    height: 36px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background: white;

    z-index: 5;

    font-size: 10px;
}

.scene {
    height: 310px;
}

.scene img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.event-info {
    padding: 30px;
}

.event-info h3 {
    font-size: 32px;
}

.event-info p {
    margin: 8px 0 20px;

    color: var(--rose-dark);

    font-family: var(--serif);

    font-style: italic;
}

.event-info small {
    line-height: 1.7;

    font-size: 10px;

    letter-spacing: .08em;
}


/* ==========================================
   SCRATCH SECTION
========================================== */

.scratch-section {
    background: var(--lavender);

    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    align-items: center;

    gap: 150px;
}

.scratch-copy h2 {
    margin: 25px 0;
}

.scratch-copy > span {
    display: inline-block;

    margin-top: 25px;

    font-family: var(--serif);

    font-style: italic;

    color: var(--rose-dark);
}


/* ==========================================
   SCRATCH CARD
========================================== */

.scratch-wrap {
    max-width: 560px;

    width: 100%;

    aspect-ratio: 560 / 320;

    position: relative;

    overflow: hidden;

    border-radius: 20px;

    box-shadow:
        0 30px 70px
        rgba(75,50,85,.15);

    touch-action: none;

    user-select: none;

    -webkit-user-select: none;
}


/* Hidden wedding information */

.scratch-date {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 25px;

    text-align: center;

    background:
        radial-gradient(
            circle,
            #fff 0,
            #fff3f3 100%
        );
}

.scratch-date p {
    font-size: 10px;

    letter-spacing: .25em;

    text-transform: uppercase;
}

.scratch-date b {
    margin: 15px 0;

    font-family: var(--serif);

    font-size: 45px;

    color: var(--wine);
}

.scratch-date span {
    font-size: 10px;

    letter-spacing: .12em;

    line-height: 1.6;
}


/* Canvas */

#scratchCanvas {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 3;

    cursor: grab;

    touch-action: none;

    user-select: none;

    -webkit-user-select: none;
}

#scratchCanvas:active {
    cursor: grabbing;
}


/* Scratch Me */

.scratch-hint {
    position: absolute;

    left: 50%;

    bottom: 25px;

    transform:
        translateX(-50%);

    z-index: 5;

    background: white;

    padding: 8px 16px;

    border-radius: 50px;

    font-family: var(--serif);

    font-style: italic;

    white-space: nowrap;

    pointer-events: none;

    opacity: 1;

    visibility: visible;

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;
}


/* Hide after first scratch */

.scratch-hint.hide {
    opacity: 0;

    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(8px);

    pointer-events: none;
}


/* ==========================================
   DETAILS / MAP
========================================== */

.details {
    display: grid;

    grid-template-columns:
        .7fr 1.2fr .7fr;

    gap: 25px;

    background: #fffdf9;
}

.detail-card {
    padding: 50px 35px;

    background: white;

    text-align: center;

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 470px;
}

.detail-symbol {
    font-size: 40px;

    color: var(--rose);

    margin-bottom: 25px;
}

.detail-card h2 {
    font-size: 50px;

    margin: 20px 0;
}

.detail-card > p:last-of-type {
    line-height: 1.8;

    color: var(--muted);
}

.map {
    position: relative;

    overflow: hidden;

    min-height: 470px;
}

.map iframe {
    width: 100%;

    height: 100%;

    border: 0;
}

.map-pin {
    width: 55px;

    height: 55px;

    position: absolute;

    left: 50%;

    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--wine);

    color: white;

    box-shadow:
        0 10px 30px
        rgba(80,30,40,.3);
}

.swatches {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 25px;
}

.swatches i {
    width: 25px;

    height: 25px;

    border-radius: 50%;
}

.swatches i:nth-child(1) {
    background: #e2a09e;
}

.swatches i:nth-child(2) {
    background: #f4d7c5;
}

.swatches i:nth-child(3) {
    background: #a35565;
}

.swatches i:nth-child(4) {
    background: #f1c96f;
}


/* ==========================================
   DRESS CODE
========================================== */

.dress-code {
    background: #fff3ee;
}

.heading-heart {
    margin-top: 25px;

    color: var(--muted);
}

.heading-heart span {
    color: var(--rose);
}

.dress-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 15px;
}

.dress-card {
    padding: 40px 20px;

    text-align: center;

    background: white;

    border-radius:
        100px 100px 15px 15px;

    border:
        1px solid
        rgba(100,50,60,.1);
}

.dress-icon {
    display: block;

    margin-bottom: 25px;

    font-size: 32px;

    color: var(--rose);
}

.dress-card h3 {
    font-size: 21px;
}

.dress-card p {
    margin-top: 10px;

    font-size: 12px;

    color: var(--muted);
}


/* ==========================================
   TRAVEL
========================================== */

.travel {
    background: white;
}

.travel-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.travel-card {
    padding: 35px;

    background: var(--cream);

    border-radius: 12px;
}

.travel-card > span {
    display: block;

    margin-bottom: 30px;

    font-size: 35px;

    color: var(--rose);
}

.travel-card h3 {
    font-size: 25px;

    margin-bottom: 15px;
}

.travel-card p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================
   HASHTAG
========================================== */

.hashtag-section {
    text-align: center;

    background: var(--lavender);
}

.hashtag-section h2 {
    margin: 20px 0 30px;
}

.hashtag-section > a {
    display: inline-block;

    font-family: var(--serif);

    font-size:
        clamp(28px, 4vw, 60px);

    color: var(--rose-dark);

    border-bottom:
        2px solid var(--rose);
}

.hashtag-section > p:last-child {
    margin-top: 25px;

    color: var(--muted);
}


/* ==========================================
   FAMILY
========================================== */

.family {
    background: #fffaf6;
}

.family-grid {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.family-card {
    padding: 50px 30px;

    background: white;

    border:
        1px solid
        rgba(110,60,65,.1);

    text-align: center;

    border-radius:
        150px 150px 15px 15px;
}

.family-icon {
    display: block;

    margin-bottom: 25px;

    font-size: 35px;

    color: var(--rose);
}

.family-role {
    font-size: 10px;

    letter-spacing: .16em;

    color: var(--rose-dark);

    text-transform: uppercase;
}

.family-card h3 {
    margin: 20px 0;

    font-size: 25px;

    line-height: 1.4;
}

.family-note {
    color: var(--muted);

    font-size: 12px;
}


/* ==========================================
   FAQ
========================================== */

.faq {
    background: white;

    display: grid;

    grid-template-columns:
        .7fr 1.3fr;

    gap: 100px;
}

.accordion details {
    border-top:
        1px solid
        rgba(100,50,60,.15);

    padding: 25px 0;
}

.accordion details:last-child {
    border-bottom:
        1px solid
        rgba(100,50,60,.15);
}

.accordion summary {
    list-style: none;

    cursor: pointer;

    display: flex;

    justify-content:
        space-between;

    font-family: var(--serif);

    font-size: 22px;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary span {
    color: var(--rose);
}

.accordion details[open] summary span {
    transform: rotate(45deg);
}

.accordion details p {
    max-width: 600px;

    margin-top: 20px;

    color: var(--muted);

    line-height: 1.8;
}


/* ==========================================
   FOOTER
========================================== */

footer {
    min-height: 600px;

    padding: 100px 30px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: var(--wine);

    color: #fff7ef;
}

.footer-flower {
    font-size: 50px;

    color: var(--yellow);

    margin-bottom: 25px;
}

footer .eyebrow {
    color: #efb8af;
}

footer h2 {
    margin: 30px 0;

    font-size:
        clamp(45px, 6vw, 70px);
}

footer h2 em {
    color: #f1b2a8;
}

.footer-monogram {
    margin-top: 30px;

    font-family: var(--serif);

    font-size: 28px;
}

.footer-monogram span {
    color: #efb0a7;
}

.copyright {
    margin-top: 40px;

    font-size: 10px;

    letter-spacing: .2em;

    opacity: .7;
}


/* ==========================================
   SCROLL REVEAL
========================================== */

.reveal {
    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* ==========================================
   FLOATING PETALS
========================================== */

.petals {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 500;

    overflow: hidden;
}

.petals i {
    position: absolute;

    top: -30px;

    color:
        rgba(212,103,116,.45);

    font-style: normal;

    animation:
        petalFall linear infinite;
}

.petals i:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
}

.petals i:nth-child(2) {
    left: 25%;
    animation-duration: 14s;
    animation-delay: 2s;
}

.petals i:nth-child(3) {
    left: 42%;
    animation-duration: 11s;
    animation-delay: 5s;
}

.petals i:nth-child(4) {
    left: 60%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.petals i:nth-child(5) {
    left: 78%;
    animation-duration: 12s;
    animation-delay: 6s;
}

.petals i:nth-child(6) {
    left: 90%;
    animation-duration: 15s;
    animation-delay: 1s;
}

@keyframes petalFall {

    0% {
        transform:
            translateY(-40px)
            rotate(0deg);
    }

    100% {
        transform:
            translateY(110vh)
            rotate(360deg);
    }

}


/* ==========================================
   CURSOR
========================================== */

.cursor-glow {
    position: fixed;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    pointer-events: none;

    z-index: -1;

    background:
        radial-gradient(
            circle,
            rgba(245,185,175,.12),
            transparent 65%
        );

    transform:
        translate(-50%, -50%);
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {

    .nav nav {
        display: none;
    }

    .nav {
        grid-template-columns:
            1fr 1fr;
    }

    .hero {
        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 140px;
    }

    .hero-copy {
        margin: auto;
    }

    .hero-date {
        justify-content: center;

        flex-wrap: wrap;
    }

    .arch {
        height: 550px;
    }

    .story-grid,
    .event-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .countdown-section,
    .scratch-section {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .details {
        grid-template-columns: 1fr;
    }

    .map {
        height: 450px;
    }

    .dress-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .travel-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .faq {
        grid-template-columns: 1fr;

        gap: 30px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {

    .section {
        padding: 80px 20px;
    }

    .nav {
        height: 70px;

        padding: 0 20px;
    }

    .nav-cta {
        padding: 9px 15px;
    }

    .hero {
        padding:
            110px 20px 70px;

        gap: 45px;
    }

    .hero h1 {
        font-size: 74px;
    }

    .hero-date b {
        width: 100%;

        margin-left: 0;
    }

    .arch {
        width: 310px;

        height: 450px;
    }

    .story-grid,
    .event-grid,
    .family-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        min-height: 240px;
    }


    /* =========================
       MOBILE COUNTDOWN
    ========================= */

    .countdown-section {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .countdown {
        width: 100%;

        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap: 3px;
    }

    .countdown div {
        min-width: 0;

        padding: 18px 2px;
    }

    .countdown i {
        display: none;
    }

    .countdown b {
        font-size:
            clamp(
                26px,
                9vw,
                37px
            );

        line-height: 1;
    }

    .countdown span {
        margin-top: 8px;

        font-size: 7px;

        letter-spacing: .06em;
    }


    /* Events */

    .scene {
        height: 330px;
    }


    /* =========================
       MOBILE SCRATCH
    ========================= */

    .scratch-section {
        gap: 40px;
    }

    .scratch-wrap {
        width: 100%;

        max-width: 560px;

        border-radius: 16px;
    }

    .scratch-date {
        padding: 20px;
    }

    .scratch-date b {
        font-size: 30px;
    }

    .scratch-date p {
        font-size: 8px;
    }

    .scratch-date span {
        font-size: 8px;

        padding: 0 15px;
    }

    .scratch-hint {
        bottom: 18px;

        padding: 7px 14px;

        font-size: 13px;
    }


    /* Other */

    .dress-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .travel-grid {
        grid-template-columns: 1fr;
    }



    .music-toggle b {
        display: none;
    }

    .music-toggle {
        width: 48px;

        height: 48px;

        padding: 0;

        justify-content: center;
    }

}


/* ==========================================
   VERY SMALL DEVICES
========================================== */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 62px;
    }

    .dress-grid {
        grid-template-columns: 1fr;
    }

    .arch {
        width: 280px;

        height: 410px;
    }


    /* Countdown */

    .countdown {
        gap: 1px;
    }

    .countdown div {
        padding: 15px 1px;
    }

    .countdown b {
        font-size: 28px;
    }

    .countdown span {
        font-size: 6.5px;

        letter-spacing: .03em;
    }


    /* Scratch */

    .scratch-date b {
        font-size: 27px;
    }

    .scratch-hint {
        bottom: 14px;

        font-size: 12px;
    }

}

/* =====================================================
   YOGITA & KUNAL
   WEDDING INVITATION OPENING
===================================================== */

.invitation-gate {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 30px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(255, 255, 255, .96) 0%,
            rgba(255, 249, 246, .96) 34%,
            rgba(252, 238, 233, 1) 100%
        );

    transition:
        opacity .8s ease,
        visibility .8s ease;
}


/* When website opens */

.invitation-gate.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* =====================================================
   WRAPPER
===================================================== */

.invitation-inner {
    position: relative;

    width: min(100%, 620px);

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* =====================================================
   HEADING
===================================================== */

.gate-eyebrow {
    margin: 0 0 26px;

    font-family: "DM Sans", sans-serif;

    font-size: 11px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: .38em;

    text-transform: uppercase;

    color: #a66b70;
}


/* =====================================================
   ENVELOPE BUTTON
===================================================== */

.envelope-button {
    display: block;

    width: 520px;
    max-width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}


/* =====================================================
   ENVELOPE
===================================================== */

.envelope {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 520 / 325;

    perspective: 1500px;

    filter:
        drop-shadow(
            0 25px 30px
            rgba(116, 72, 69, .13)
        );

    transition:
        transform .35s ease;
}


.envelope-button:hover .envelope {
    transform: translateY(-3px);
}


/* =====================================================
   ENVELOPE BACK
===================================================== */

.envelope-back {
    position: absolute;
    inset: 0;

    z-index: 1;

    overflow: hidden;

    border-radius: 7px;

    background:
        linear-gradient(
            145deg,
            #f5d5ce,
            #f1c9c1
        );

    border:
        1px solid
        rgba(211, 150, 139, .45);
}


/* =====================================================
   INVITATION LETTER
   HIDDEN BEFORE CLICK
===================================================== */

.envelope-letter {
    position: absolute;

    left: 8%;
    top: 8%;

    z-index: 2;

    width: 84%;
    height: 74%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background:
        linear-gradient(
            145deg,
            #fffdf9,
            #fff7f1
        );

    box-shadow:
        0 8px 20px
        rgba(109, 68, 64, .08);

    /*
       IMPORTANT:
       Hide the white card completely
       before the envelope is clicked.
    */

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(35px)
        scale(.97);

    transition:
        opacity .28s ease,
        visibility .28s ease,
        transform .9s
        cubic-bezier(.22,.75,.25,1);
}


.envelope-letter small {
    display: block;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .19em;

    color: #9c5960;
}


.envelope-letter small b {
    color: #d58e95;
}


.envelope-letter strong {
    display: block;

    margin: 19px 0 10px;

    font-family: "Playfair Display", serif;

    font-size: 34px;
    font-weight: 600;

    letter-spacing: .12em;

    color: #813743;
}


.envelope-letter em {
    font-family: "Playfair Display", serif;

    font-size: 13px;
    font-weight: 500;

    color: #b27b72;
}


/* =====================================================
   TOP FLAP
===================================================== */

.envelope-flap {
    position: absolute;

    left: 0;
    top: 0;

    z-index: 5;

    width: 100%;
    height: 68%;

    transform-origin: top center;

    clip-path:
        polygon(
            0 0,
            100% 0,
            50% 100%
        );

    background:
        linear-gradient(
            145deg,
            #f9e8e2 0%,
            #f7e2dc 55%,
            #f3d8d1 100%
        );

    border-top:
        1px solid
        rgba(215, 157, 146, .38);

    transition:
        transform .75s
        cubic-bezier(.22,.75,.25,1),
        z-index 0s .35s;

    backface-visibility: hidden;
}


/* =====================================================
   FRONT ENVELOPE
===================================================== */

.envelope-front {
    position: absolute;
    inset: 0;

    z-index: 4;

    overflow: hidden;

    border-radius: 7px;

    pointer-events: none;
}


/* LEFT FOLD */

.fold-left {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 52%;
    height: 70%;

    background:
        linear-gradient(
            145deg,
            #f4d1ca,
            #efc6be
        );

    clip-path:
        polygon(
            0 0,
            100% 57%,
            100% 100%,
            0 100%
        );

    border-left:
        1px solid
        rgba(207, 145, 135, .30);
}


/* RIGHT FOLD */

.fold-right {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 52%;
    height: 70%;

    background:
        linear-gradient(
            215deg,
            #f4d1ca,
            #efc6be
        );

    clip-path:
        polygon(
            100% 0,
            0 57%,
            0 100%,
            100% 100%
        );

    border-right:
        1px solid
        rgba(207, 145, 135, .30);
}


/* BOTTOM FOLD */

.fold-bottom {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 58%;

    background:
        linear-gradient(
            180deg,
            #f2ccc4 0%,
            #f1c9c1 100%
        );

    clip-path:
        polygon(
            0 100%,
            50% 0,
            100% 100%
        );

    border-bottom:
        1px solid
        rgba(207, 145, 135, .38);
}


/* =====================================================
   FOLD LINES
===================================================== */

.fold-left::after {
    content: "";

    position: absolute;

    width: 130%;
    height: 1px;

    left: 17%;
    top: 38%;

    background:
        rgba(190, 124, 116, .25);

    transform:
        rotate(31deg);

    transform-origin: left;
}


.fold-right::after {
    content: "";

    position: absolute;

    width: 130%;
    height: 1px;

    right: 17%;
    top: 38%;

    background:
        rgba(190, 124, 116, .25);

    transform:
        rotate(-31deg);

    transform-origin: right;
}


/* =====================================================
   WAX SEAL
===================================================== */

.wax-seal {
    position: absolute;

    left: 50%;
    top: 56%;

    z-index: 8;

    width: 86px;
    height: 86px;

    transform:
        translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 40% 30%,
            #fff9eb 0%,
            #f8e8d3 48%,
            #efd0b8 100%
        );

    border:
        2px solid
        #e5bbaa;

    box-shadow:
        0 8px 20px
        rgba(106, 66, 62, .20),
        0 0 0 5px
        rgba(239, 197, 181, .42),
        inset 0 0 0 3px
        rgba(255,255,255,.42);

    transition:
        opacity .3s ease,
        transform .4s ease;
}


/* =====================================================
   FLOWER ABOVE SEAL
===================================================== */

.seal-flower {
    position: absolute;

    left: 50%;
    top: -37px;

    transform:
        translateX(-50%);

    font-size: 30px;

    color: #f5e7df;

    text-shadow:
        -1px -1px 0 #d9afa4,
        1px -1px 0 #d9afa4,
        -1px 1px 0 #d9afa4,
        1px 1px 0 #d9afa4,
        0 3px 4px
        rgba(104,66,63,.15);
}


/* =====================================================
   SEAL Y
===================================================== */

.seal-y {
    position: absolute;

    top: 10px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 25px;

    font-style: italic;

    color: #b48760;
}


/* =====================================================
   SEAL HEART
===================================================== */

.seal-heart {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    font-family: serif;

    font-size: 14px;

    color: #d68c97;
}


/* =====================================================
   SEAL K
===================================================== */

.seal-k {
    position: absolute;

    bottom: 8px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 25px;

    font-style: italic;

    color: #b48760;
}


/* =====================================================
   TAP TO OPEN
===================================================== */

.tap-open {
    margin-top: 27px;

    padding: 5px 10px;

    border: 0;

    outline: 0;

    background: transparent;

    cursor: pointer;

    color: #a66a72;

    -webkit-tap-highlight-color:
        transparent;

    transition:
        opacity .3s ease,
        transform .3s ease;
}


.tap-open span {
    font-family:
        "Playfair Display",
        serif;

    font-size: 18px;

    font-style: italic;

    font-weight: 500;
}


.tap-open i {
    display: inline-block;

    margin-left: 13px;

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 24px;

    font-style: normal;

    font-weight: 300;

    color: #c27d87;

    animation:
        inviteArrow 1.4s
        ease-in-out infinite;
}


@keyframes inviteArrow {

    0%,
    100% {
        transform:
            translateY(-2px);
    }

    50% {
        transform:
            translateY(6px);
    }

}


/* =====================================================
   OPENING ANIMATION
===================================================== */


/*
   STEP 1
   Open the top flap
*/

.envelope-button.active
.envelope-flap {

    transform:
        rotateX(180deg);

    z-index: 1;
}


/*
   STEP 2
   Show white card ONLY after click
   and slide it upward.
*/

.envelope-button.active
.envelope-letter {

    opacity: 1;
    visibility: visible;

    transform:
        translateY(-105px)
        scale(1);

    /*
       Flap starts opening first.
       Then card appears.
    */

    transition-delay: .30s;
}


/*
   STEP 3
   Hide wax seal
*/

.envelope-button.active
.wax-seal {

    opacity: 0;

    transform:
        translate(-50%, -50%)
        scale(.75);

    pointer-events: none;
}


/*
   Hide "Tap the seal to open"
*/

.invitation-inner.opening
.tap-open {

    opacity: 0;

    transform:
        translateY(10px);

    pointer-events: none;
}


/* =====================================================
   DECORATIONS
===================================================== */

.invite-decoration {
    position: absolute;

    pointer-events: none;

    color: #d9949b;

    opacity: .34;
}


.invite-star-one {
    left: 7%;
    top: 18%;

    font-size: 17px;
}


.invite-star-two {
    right: 8%;
    bottom: 17%;

    font-size: 19px;
}


.invite-heart {
    right: 10%;
    top: 18%;

    font-size: 20px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 700px) {

    .invitation-inner {
        width: min(
            100%,
            530px
        );
    }


    .envelope-button {
        width: 100%;
    }


    .gate-eyebrow {
        margin-bottom: 24px;

        font-size: 10px;
    }


    .wax-seal {
        width: 76px;
        height: 76px;
    }


    .seal-y,
    .seal-k {
        font-size: 22px;
    }


    .seal-y {
        top: 8px;
    }


    .seal-k {
        bottom: 7px;
    }


    .seal-flower {
        top: -32px;

        font-size: 26px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 520px) {

    .invitation-gate {
        padding:
            25px 18px;
    }


    .invitation-inner {
        width: 100%;
    }


    .gate-eyebrow {
        margin-bottom: 25px;

        font-size: 9px;

        letter-spacing: .32em;
    }


    .envelope-button {
        width: 100%;
    }


    .envelope {
        width: 100%;

        aspect-ratio:
            520 / 325;
    }


    .wax-seal {
        width: 68px;
        height: 68px;

        box-shadow:
            0 7px 16px
            rgba(106,66,62,.18),
            0 0 0 4px
            rgba(239,197,181,.40),
            inset 0 0 0 2px
            rgba(255,255,255,.45);
    }


    .seal-y,
    .seal-k {
        font-size: 19px;
    }


    .seal-y {
        top: 7px;
    }


    .seal-k {
        bottom: 6px;
    }


    .seal-heart {
        font-size: 11px;
    }


    .seal-flower {
        top: -29px;

        font-size: 23px;
    }


    .tap-open {
        margin-top: 23px;
    }


    .tap-open span {
        font-size: 16px;
    }


    .tap-open i {
        font-size: 21px;
    }


    .envelope-letter strong {
        font-size: 27px;
    }


    .envelope-letter small {
        font-size: 8px;
    }


    .envelope-letter em {
        font-size: 11px;
    }


    /*
       Mobile:
       card stays hidden before click
       and appears only after active class.
    */

    .envelope-button.active
    .envelope-letter {

        opacity: 1;
        visibility: visible;

        transform:
            translateY(-75px)
            scale(1);

        transition-delay: .30s;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .gate-eyebrow {
        font-size: 8px;

        letter-spacing: .28em;
    }


    .wax-seal {
        width: 62px;
        height: 62px;
    }


    .seal-y,
    .seal-k {
        font-size: 17px;
    }


    .seal-flower {
        font-size: 21px;
    }


    .tap-open span {
        font-size: 15px;
    }

}





/*cta */

/* ========================================
   WEBEQUATION FOOTER BAR
======================================== */

.webequation-footer-bar {
    width: min(620px, calc(100% - 32px));
    margin: -60px auto 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 10px 10px 10px 22px;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
}


/* Credit */

.webequation-credit {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.webequation-credit span {
    font-size: 12px;
    font-weight: 500;
    color: #777777;
}

.webequation-credit a {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    letter-spacing: -0.2px;

    transition: opacity 0.25s ease;
}

.webequation-credit a:hover {
    opacity: 0.65;
}


/* ========================================
   WHATSAPP BUTTON
======================================== */

.webequation-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px 18px;

    background: #25D366;
    color: #ffffff;

    border-radius: 50px;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.webequation-whatsapp:hover {
    background: #1ebe5d;
    color: #ffffff;
    transform: translateY(-2px);

    box-shadow: 0 7px 18px rgba(37, 211, 102, 0.25);
}


/* WhatsApp Icon */

.whatsapp-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .webequation-footer-bar {
        width: calc(100% - 20px);
        margin-top: -30px,3px;

        padding: 8px 8px 8px 15px;
        gap: 6px;
    }

    .webequation-credit {
        display: block;
        line-height: 1.2;
    }

    .webequation-credit span {
        display: block;
        font-size: 9px;
        margin-bottom: 2px;
    }

    .webequation-credit a {
        display: block;
        font-size: 12px;
    }

    .webequation-whatsapp {
        padding: 10px 13px;
        gap: 6px;

        font-size: 10px;
    }

    .whatsapp-icon {
        width: 16px;
        height: 16px;
    }
}


/* Very Small Phones */

@media (max-width: 380px) {

    .webequation-footer-bar {
        padding-left: 12px;
    }

    .webequation-credit span {
        font-size: 8px;
    }

    .webequation-credit a {
        font-size: 11px;
    }

    .webequation-whatsapp {
        padding: 9px 11px;
        font-size: 9px;
    }
}