/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #050d1f;
    color: #fdf8f0;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}


/* =========================================================
   COVER SCREEN
========================================================= */

#coverScreen {
    position: fixed;
    inset: 0;
    z-index: 99999;

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

    text-align: center;

    min-height: 100vh;
    min-height: 100svh;

    padding: 2rem 1.5rem;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse 80% 60% at 50% 35%,
            rgba(20, 40, 90, 0.95),
            transparent 75%
        ),
        #050d1f;

    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}


/* Cover hidden after opening */

#coverScreen.cover-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* Decorative moon */

.cover-moon {
    position: absolute;

    top: 8%;
    left: 50%;

    transform: translateX(-50%);

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(212, 170, 112, 0.14),
            transparent 68%
        );

    filter: blur(18px);

    animation: coverPulse 4s ease-in-out infinite;

    pointer-events: none;
}


/* Small blessing */

.cover-blessing {
    position: relative;
    z-index: 2;

    margin-bottom: 1rem;

    font-size: 0.72rem;

    letter-spacing: 0.3em;

    text-transform: uppercase;

    color: #f4a8c0;

    animation: coverDown 1.2s ease both;
}


/* Cover title */

.cover-title {
    position: relative;
    z-index: 2;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(
        2rem,
        6vw,
        3.5rem
    );

    font-weight: 300;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: #f0d29a;

    text-shadow:
        0 0 30px rgba(212, 170, 112, 0.3);

    animation: coverDown 1.2s 0.15s ease both;
}


/* Cover line */

.cover-line {
    position: relative;
    z-index: 2;

    width: 100px;
    height: 1px;

    margin: 1.4rem auto;

    background:
        linear-gradient(
            to right,
            transparent,
            #d4aa70,
            transparent
        );

    animation: coverWiden 1.4s 0.3s ease both;
}


/* Couple names */

.cover-names {
    position: relative;
    z-index: 2;

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

    font-family: "Dancing Script", cursive;

    font-size: clamp(
        3rem,
        9vw,
        5.5rem
    );

    line-height: 1.15;

    color: #ffffff;

    text-shadow:
        0 0 30px rgba(212, 170, 112, 0.4),
        0 0 60px rgba(212, 170, 112, 0.2);

    animation: coverUp 1.4s 0.4s ease both;
}


/* Ampersand */

.cover-amp {
    margin: 0.1rem 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(
        2rem,
        6vw,
        3.5rem
    );

    color: #d4aa70;
}


/* Date */

.cover-date {
    position: relative;
    z-index: 2;

    margin-top: 1.2rem;

    font-family: "Cormorant Garamond", serif;

    font-size: 1rem;

    letter-spacing: 0.25em;

    text-transform: uppercase;

    color: rgba(253, 248, 240, 0.65);

    animation: coverUp 1.2s 0.6s ease both;
}


/* =========================================================
   OPEN INVITATION BUTTON
========================================================= */

.open-button {
    position: relative;
    z-index: 2;

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

    gap: 0.7rem;

    margin-top: 2.2rem;

    padding: 1rem 2rem;

    min-width: 210px;

    border: 1px solid rgba(212, 170, 112, 0.7);

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            rgba(212, 170, 112, 0.2),
            rgba(244, 168, 192, 0.08)
        );

    color: #f0d29a;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.05rem;

    letter-spacing: 0.12em;

    cursor: pointer;

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 25px rgba(212, 170, 112, 0.12);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;

    animation:
        buttonAppear 1.2s 0.8s ease both,
        buttonGlow 2.5s 2s ease-in-out infinite;
}


.open-button:hover {
    transform: translateY(-4px) scale(1.03);

    background:
        linear-gradient(
            135deg,
            rgba(212, 170, 112, 0.32),
            rgba(244, 168, 192, 0.12)
        );

    box-shadow:
        0 0 35px rgba(212, 170, 112, 0.3);
}


.open-button:active {
    transform: scale(0.96);
}


.button-icon {
    font-size: 1.3rem;

    color: #f4a8c0;
}


/* Hint */

.cover-hint {
    position: relative;
    z-index: 2;

    margin-top: 0.9rem;

    font-size: 0.65rem;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    color: rgba(253, 248, 240, 0.35);

    animation: buttonAppear 1.2s 1s ease both;
}


/* =========================================================
   MAIN WEBSITE
========================================================= */

#weddingWebsite {
    position: relative;

    min-height: 100vh;

    opacity: 1;

    transition:
        opacity 1s ease;
}


.website-hidden {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}


.website-visible {
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
}


/* =========================================================
   STARFIELD
========================================================= */

#starfield {
    position: fixed;
    inset: 0;

    z-index: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}


/* =========================================================
   COMMON SECTION
========================================================= */

section {
    position: relative;
    z-index: 1;
}


.container {
    width: 100%;
    max-width: 900px;

    margin: auto;

    padding: 0 1.5rem;
}


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

.divider {
    display: flex;

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

    gap: 0.75rem;

    margin: 1.6rem 0;

    opacity: 0.7;
}


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

    flex: 1;

    max-width: 120px;

    height: 1px;

    background:
        linear-gradient(
            to right,
            transparent,
            #d4aa70
        );
}


.divider::after {
    background:
        linear-gradient(
            to left,
            transparent,
            #d4aa70
        );
}


/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
    display: block;

    text-align: center;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.3em;

    text-transform: uppercase;

    color: #d4aa70;
}


/* =========================================================
   FADE
========================================================= */

.fade-in {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}


.fade-in.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   HERO
========================================================= */

#hero {
    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 5rem 1.5rem 4rem;

    background:
        radial-gradient(
            ellipse 80% 60% at 50% 30%,
            rgba(16, 32, 80, 0.9),
            transparent 80%
        );

    overflow: hidden;
}


.moon-glow {
    position: absolute;

    top: 8%;
    left: 50%;

    transform: translateX(-50%);

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(212, 170, 112, 0.12),
            transparent 70%
        );

    filter: blur(20px);

    animation: pulse 4s ease-in-out infinite;
}


.join-label {
    margin-bottom: 0.8rem;

    font-size: 0.75rem;

    letter-spacing: 0.32em;

    text-transform: uppercase;

    color: #f4a8c0;

    animation: fadeDown 1.2s ease both;
}


.invite-title {
    font-family: "Cormorant Garamond", serif;

    font-weight: 300;

    font-size: clamp(
        1.6rem,
        4vw,
        2.4rem
    );

    letter-spacing: 0.2em;

    text-transform: uppercase;

    color: #f0d29a;

    animation: fadeDown 1.2s 0.15s ease both;
}


.gold-line {
    width: 80px;

    height: 1px;

    margin: 1.2rem auto;

    background:
        linear-gradient(
            to right,
            transparent,
            #d4aa70,
            transparent
        );

    animation: widen 1.5s 0.3s ease both;
}


/* =========================================================
   NAMES
========================================================= */

.names,
.footer-names {
    font-family: "Dancing Script", cursive !important;

    font-weight: 400;
}


.names {
    font-size: clamp(
        3rem,
        9vw,
        5.7rem
    );

    line-height: 1.12;

    color: #ffffff;

    text-shadow:
        0 0 30px rgba(212, 170, 112, 0.4),
        0 0 60px rgba(212, 170, 112, 0.2);

    animation: fadeUp 1.4s 0.4s ease both;
}


.amp {
    display: block;

    margin: -0.3rem 0;

    font-size: clamp(
        2rem,
        6vw,
        4rem
    );

    color: #d4aa70;
}


/* =========================================================
   HERO TEXT
========================================================= */

.tagline,
.invitation-text {
    font-family: "Cormorant Garamond", serif;

    line-height: 1.8;
}


.tagline {
    max-width: 650px;

    margin: 2rem auto 0;

    font-style: italic;

    font-size: clamp(
        1rem,
        2.2vw,
        1.2rem
    );

    color: rgba(253, 248, 240, 0.82);

    animation: fadeUp 1.4s 0.6s ease both;
}


.tagline span {
    color: #f4a8c0;

    font-size: 0.9em;
}


.invitation-text {
    max-width: 720px;

    margin: 2rem auto 0;

    font-size: clamp(
        1rem,
        2.1vw,
        1.15rem
    );

    color: rgba(253, 248, 240, 0.72);

    animation: fadeUp 1.4s 0.8s ease both;
}


/* =========================================================
   COUNTDOWN / CALENDAR
========================================================= */

#countdown,
#calendar {
    padding: 4rem 1.5rem;

    text-align: center;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(11, 26, 58, 0.55),
            transparent
        );
}


.countdown-grid {
    display: flex;

    justify-content: center;

    gap: 1.5rem;

    flex-wrap: wrap;

    margin-top: 2rem;
}


.countdown-box {
    min-width: 90px;

    padding: 1.2rem 1.6rem;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(212, 170, 112, 0.25);

    border-radius: 12px;

    backdrop-filter: blur(8px);

    box-shadow:
        0 0 20px rgba(212, 170, 112, 0.08);

    transition: 0.3s;
}


.countdown-box:hover {
    transform: translateY(-4px);

    box-shadow:
        0 0 30px rgba(212, 170, 112, 0.18);
}


.num {
    font-family: "Cormorant Garamond", serif;

    font-size: 2.8rem;

    font-weight: 600;

    line-height: 1;

    color: #f0d29a;
}


.lbl {
    margin-top: 0.35rem;

    font-size: 0.62rem;

    letter-spacing: 0.25em;

    text-transform: uppercase;

    color: #f4a8c0;
}


/* =========================================================
   FAMILY / EVENTS / VENUE / RECEPTION
========================================================= */

#family,
#events,
#venue,
#reception {
    padding: 5rem 1.5rem;
}


.family-grid,
.venue-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 2rem;

    margin-top: 3rem;
}


.family-card,
.event-card,
.venue-card,
.reception-box {
    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(212, 170, 112, 0.2);

    border-radius: 20px;

    backdrop-filter: blur(10px);
}


/* =========================================================
   FAMILY
========================================================= */

.family-card {
    padding: 2rem;

    text-align: center;
}


.family-label,
.event-type,
.venue-type {
    font-size: 0.65rem;

    letter-spacing: 0.3em;

    text-transform: uppercase;

    color: #f4a8c0;
}


.family-label {
    margin-bottom: 1rem;
}


.family-card h2 {
    margin: 0.3rem 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.35rem;

    font-weight: 400;

    color: #f0d29a;
}


.family-card > p:last-child {
    margin-top: 0.8rem;

    color: rgba(253, 248, 240, 0.6);
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    font-family: "Great Vibes", cursive;

    font-size: clamp(
        2.4rem,
        6vw,
        3.5rem
    );

    line-height: 1.1;

    text-align: center;

    color: #ffffff;

    text-shadow:
        0 0 30px rgba(212, 170, 112, 0.3);
}


/* =========================================================
   EVENT
========================================================= */

.single-event {
    max-width: 620px;

    margin: 3rem auto 0;

    padding: 2.5rem 2rem;

    text-align: center;

    position: relative;

    overflow: hidden;
}


.event-type {
    margin-bottom: 0.8rem;
}


.big-date {
    font-family: "Cormorant Garamond", serif;

    font-size: 5.5rem;

    font-weight: 600;

    line-height: 1;

    color: #d4aa70;

    text-shadow:
        0 0 40px rgba(212, 170, 112, 0.35);
}


.month-year {
    font-family: "Cormorant Garamond", serif;

    font-size: 1.25rem;

    letter-spacing: 0.15em;

    color: #f0d29a;
}


.day-name {
    margin: 0.3rem 0 1.4rem;

    font-size: 0.75rem;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    color: rgba(253, 248, 240, 0.55);
}


.info-row {
    display: flex;

    align-items: flex-start;

    justify-content: center;

    gap: 0.6rem;

    margin-bottom: 0.9rem;

    font-size: 0.95rem;

    line-height: 1.5;

    color: rgba(253, 248, 240, 0.82);
}


.bishop {
    margin-top: 1.8rem;

    font-family: "Cormorant Garamond", serif;

    font-size: 1rem;

    font-style: italic;

    line-height: 1.7;

    color: rgba(253, 248, 240, 0.72);
}


.bishop strong {
    color: #f0d29a;
}


.bishop span {
    font-size: 0.9em;

    color: #fce4ec;
}


/* =========================================================
   CALENDAR
========================================================= */

.cal-widget {
    display: inline-block;

    width: 100%;

    max-width: 380px;

    padding: 2rem;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(212, 170, 112, 0.22);

    border-radius: 20px;

    backdrop-filter: blur(10px);
}


.cal-header {
    margin-bottom: 1.2rem;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.5rem;

    letter-spacing: 0.1em;

    color: #f0d29a;
}


.cal-grid {
    display: grid;

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

    gap: 4px;
}


.cal-day-name {
    padding: 0.3rem 0;

    font-size: 0.6rem;

    letter-spacing: 0.12em;

    text-align: center;

    text-transform: uppercase;

    color: #f4a8c0;
}


.cal-day {
    aspect-ratio: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: "Cormorant Garamond", serif;

    font-size: 0.95rem;

    color: rgba(253, 248, 240, 0.7);

    border-radius: 50%;
}


.cal-day.empty {
    opacity: 0;
}


.cal-day.highlighted {
    background: #d4aa70;

    color: #050d1f;

    font-weight: 700;

    box-shadow:
        0 0 20px rgba(212, 170, 112, 0.6);

    animation:
        pulse 2s ease-in-out infinite;
}


.cal-legend {
    display: flex;

    justify-content: center;

    margin-top: 1.2rem;

    font-size: 0.72rem;

    color: rgba(253, 248, 240, 0.6);
}


.cal-legend span {
    display: flex;

    align-items: center;

    gap: 0.4rem;
}


.dot {
    display: inline-block;

    width: 10px;
    height: 10px;

    border-radius: 50%;
}


.dot-gold {
    background: #d4aa70;
}


/* =========================================================
   VENUE
========================================================= */

.venue-card {
    overflow: hidden;

    margin-top: 2rem;

    transition: 0.35s;
}


.venue-card:hover {
    transform: translateY(-5px);
}


.map-wrapper {
    width: 100%;
    height: 210px;
}


.map-wrapper iframe {
    width: 100%;
    height: 100%;

    border: 0;

    filter:
        grayscale(40%)
        contrast(1.1)
        brightness(0.85);
}


.venue-info {
    padding: 1.4rem 1.4rem 1.6rem;
}


.venue-type {
    margin-bottom: 0.4rem;
}


.venue-info h3 {
    margin-bottom: 0.5rem;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.3rem;

    font-weight: 400;

    color: #f0d29a;
}


.venue-info p {
    font-size: 0.83rem;

    line-height: 1.6;

    color: rgba(253, 248, 240, 0.65);
}


/* =========================================================
   RECEPTION
========================================================= */

.reception-box {
    max-width: 760px;

    margin: 2rem auto 0;

    padding: 2.5rem 2rem;

    text-align: center;
}


.reception-box p {
    margin-top: 1.5rem;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.15rem;

    line-height: 1.8;

    color: rgba(253, 248, 240, 0.75);
}


.reception-box strong {
    color: #f0d29a;
}


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

#footer {
    position: relative;

    padding: 5rem 1.5rem 3rem;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(5, 13, 31, 0.95)
        );
}


.cityscape {
    position: absolute;

    bottom: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 100%;
    max-width: 1000px;

    opacity: 0.18;

    pointer-events: none;
}


.footer-content {
    position: relative;

    z-index: 2;
}


.footer-msg {
    max-width: 600px;

    margin: 0 auto 2rem;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(
        1.1rem,
        3vw,
        1.5rem
    );

    font-style: italic;

    line-height: 1.7;

    color: #fce4ec;
}


.footer-names {
    font-size: clamp(
        2rem,
        5vw,
        3rem
    );

    color: #d4aa70;

    text-shadow:
        0 0 20px rgba(212, 170, 112, 0.3);
}


.footer-date {
    margin-top: 0.5rem;

    font-family: "Cormorant Garamond", serif;

    font-size: 0.95rem;

    letter-spacing: 0.2em;

    color: rgba(253, 248, 240, 0.45);
}


.creator {
    font-size: 0.7rem;

    letter-spacing: 0.15em;

    color: rgba(253, 248, 240, 0.3);
}


.creator a {
    color: #f4a8c0;

    text-decoration: none;
}


.creator a:hover {
    color: #f0d29a;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes coverDown {

    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes coverUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes coverWiden {

    from {
        opacity: 0;
        width: 0;
    }

    to {
        opacity: 1;
        width: 100px;
    }
}


@keyframes buttonAppear {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes buttonGlow {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(212, 170, 112, 0.12);
    }

    50% {
        box-shadow:
            0 0 35px rgba(212, 170, 112, 0.28);
    }
}


@keyframes coverPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
}


@keyframes fadeDown {

    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes widen {

    from {
        opacity: 0;
        width: 0;
    }

    to {
        opacity: 1;
        width: 80px;
    }
}


@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}


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

@media (max-width: 650px) {

    #coverScreen {
        padding:
            1.5rem 1.2rem;
    }


    .cover-blessing {
        font-size: 0.58rem;

        letter-spacing: 0.18em;
    }


    .cover-title {
        font-size: clamp(
            1.6rem,
            8vw,
            2.4rem
        );

        letter-spacing: 0.12em;
    }


    .cover-names {
        font-size: clamp(
            2.7rem,
            13vw,
            4rem
        );
    }


    .cover-amp {
        font-size: 2rem;
    }


    .cover-date {
        font-size: 0.78rem;

        letter-spacing: 0.15em;
    }


    .open-button {
        min-width: 190px;

        padding:
            0.9rem 1.5rem;

        font-size: 1rem;
    }


    .family-grid,
    .venue-grid {
        grid-template-columns: 1fr;
    }


    .names {
        font-size: clamp(
            2.8rem,
            13vw,
            4.3rem
        );
    }


    .countdown-grid {
        gap: 0.7rem;
    }


    .countdown-box {
        min-width: 72px;

        padding:
            1rem 0.8rem;
    }


    .num {
        font-size: 2.2rem;
    }


    .cal-widget {
        padding: 1.2rem;
    }


    .single-event {
        padding:
            2rem 1.2rem;
    }


    .big-date {
        font-size: 4.5rem;
    }


    .footer-names {
        font-size: 2rem;
    }
}


/* =========================================================
   VERY SMALL MOBILE DEVICES
========================================================= */

@media (max-width: 380px) {

    .cover-names {
        font-size: 2.5rem;
    }


    .cover-title {
        font-size: 1.5rem;
    }


    .open-button {
        min-width: 175px;
    }


    .countdown-box {
        min-width: 65px;

        padding:
            0.8rem 0.5rem;
    }


    .num {
        font-size: 1.9rem;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
    }
}
