/* ========================================
   BASE
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #11100e;
    color: #f1eadc;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

main {
    width: 100%;
    overflow: hidden;
}

section {
    position: relative;
    width: 100%;
}


/* ========================================
   TYPOGRAPHY
======================================== */

h1,
h2,
h3 {
    margin-top: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
}

h1 span,
h2 span {
    color: #c7a86a;
}

.eyebrow {
    margin: 0 0 18px;
    color: #c7a86a;
    font-size: 13px;
    letter-spacing: 5px;
}


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

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #201e1a;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(199, 168, 106, 0.12) 0%,
            rgba(0, 0, 0, 0.15) 35%,
            rgba(0, 0, 0, 0.45) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;

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

    padding: 30px 20px;

    overflow: hidden;
}


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

.hero h1 {
    margin: 0;

    font-size: clamp(52px, 13vw, 105px);
    line-height: 0.78;
    letter-spacing: -2px;
}


/* ========================================
   BIRTHDAY PERSON
======================================== */

.birthday-person {
    width: 100%;
    max-width: 900px;

    margin: 42px auto 0;

    text-align: center;
}

.birthday-name {
    width: 100%;
    max-width: 100%;

    padding: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 10vw, 82px);
    font-weight: 500;
    line-height: 0.95;

    color: #f1eadc;

    letter-spacing: clamp(1px, 0.5vw, 4px);

    text-transform: uppercase;

    overflow-wrap: anywhere;
}

.birthday-age {
    margin-top: 12px;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(28px, 7vw, 48px);
    line-height: 1;

    color: #c7a86a;

    letter-spacing: 5px;
}


/* ========================================
   DATE / INTRO
======================================== */

.date {
    margin-top: 45px;

    font-size: 13px;
    letter-spacing: 4px;
}

.intro {
    max-width: 420px;

    margin: 25px auto 0;

    color: #d4ccbd;

    font-size: 14px;
    line-height: 1.7;
}


/* ========================================
   SCROLL BUTTON
======================================== */

.scroll-button {
    display: inline-flex;

    width: 50px;
    height: 50px;

    margin-top: 70px;

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

    border: 1px solid rgba(199, 168, 106, 0.55);
    border-radius: 50%;

    color: #c7a86a;

    text-decoration: none;

    font-size: 22px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.scroll-button:hover {
    background: rgba(199, 168, 106, 0.08);
    transform: translateY(3px);
}


/* ========================================
   GENERAL SECTIONS
======================================== */

.section {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    padding: 100px 25px;

    text-align: center;
}

.section h2 {
    margin: 0 auto 50px;

    font-size: clamp(45px, 8vw, 76px);
    line-height: 0.95;
}


/* ========================================
   DETAILS
======================================== */

.details-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.detail {
    min-width: 0;

    padding: 35px 20px;

    border-top: 1px solid rgba(199, 168, 106, 0.4);
}

.detail-icon {
    color: #c7a86a;

    font-size: 11px;
    letter-spacing: 2px;
}

.detail h3 {
    margin: 15px 0 10px;

    font-size: 30px;
}

.detail p {
    margin: 0;

    color: #cfc7b8;

    font-size: 16px;
    line-height: 1.7;
}


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

.dark {
    max-width: none;

    background: #0b0a09;
}

.dark h2 {
    width: 100%;
    max-width: 100%;

    margin: 0 auto 10px;

    font-size: min(11vw, 90px);
    line-height: 1;

    letter-spacing: 1px;

    white-space: nowrap;
}

#countdown {
    width: 100%;
    max-width: 100%;

    overflow: hidden;

    text-align: center;
    white-space: nowrap;
}

.muted {
    margin: 0;

    color: #817a6e;

    font-size: 10px;
    letter-spacing: 2px;
}


/* ========================================
   RSVP
======================================== */

.rsvp {
    max-width: 700px;
}

.rsvp > p:not(.eyebrow):not(.status) {
    color: #aaa294;

    font-size: 14px;
    line-height: 1.7;
}

.guest-list {
    display: grid;

    gap: 12px;

    margin: 30px 0 25px;
}

.guest {
    display: flex;

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

    gap: 15px;

    width: 100%;
    min-width: 0;

    padding: 18px 20px;

    border: 1px solid #39352e;

    background: #171512;

    text-align: left;
}

.guest-name {
    min-width: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 25px;

    overflow-wrap: anywhere;
}

.guest-buttons {
    display: flex;

    flex-shrink: 0;

    gap: 7px;
}

.guest-buttons button {
    border: 1px solid #484238;

    background: transparent;

    color: #aaa294;

    padding: 9px 12px;

    cursor: pointer;

    font-family: inherit;
    font-size: 11px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.guest-buttons button.active {
    border-color: #c7a86a;

    color: #c7a86a;

    background: rgba(199, 168, 106, 0.08);
}


/* ========================================
   BUTTONS
======================================== */

.telegram-button,
.outline-button {
    display: inline-block;

    width: 100%;

    border: 1px solid #c7a86a;

    padding: 17px 20px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.telegram-button {
    background: #c7a86a;
    color: #11100e;
}

.telegram-button:hover {
    background: #dfc487;
}

.outline-button {
    width: auto;

    margin-top: 20px;

    background: transparent;

    color: #c7a86a;
}

.outline-button:hover {
    background: #c7a86a;
    color: #11100e;
}


/* ========================================
   STATUS
======================================== */

.status {
    min-height: 20px;

    margin: 15px 0 0;

    color: #c7a86a;

    font-size: 12px;
    line-height: 1.5;
}


/* ========================================
   LOCATION
======================================== */

.location {
    border-top: 1px solid #292620;
}

.location h2 {
    margin-bottom: 30px;
}

.address {
    margin: 0;

    color: #aaa294;

    font-size: 16px;
    line-height: 1.8;
}


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

footer {
    padding: 50px 20px;

    border-top: 1px solid #292620;

    text-align: center;

    color: #756f65;

    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 800px) {

    .details-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .detail {
        padding: 30px 10px;
    }

}


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

@media (max-width: 650px) {

    .hero-content {
        padding: 25px 15px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 75px);
    }

    .birthday-person {
        margin-top: 35px;
    }

    .birthday-name {
        font-size: clamp(34px, 11vw, 65px);
        letter-spacing: clamp(1px, 0.4vw, 3px);
    }

    .birthday-age {
        font-size: clamp(26px, 7vw, 42px);
        letter-spacing: 4px;
    }

    .date {
        margin-top: 35px;

        font-size: 11px;
        letter-spacing: 3px;
    }

    .intro {
        font-size: 13px;
    }

    .scroll-button {
        margin-top: 50px;
    }

    .section {
        padding: 75px 20px;
    }

    .section h2 {
        font-size: clamp(42px, 12vw, 65px);
    }

    .dark {
        padding-left: 10px;
        padding-right: 10px;
    }

    .dark h2 {
        font-size: clamp(24px, 10vw, 70px);
        letter-spacing: 0;
    }

    .muted {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .guest {
        align-items: flex-start;
        flex-direction: column;
    }

    .guest-name {
        width: 100%;
    }

    .guest-buttons {
        width: 100%;
    }

    .guest-buttons button {
        flex: 1;
    }

    .telegram-button,
    .outline-button {
        width: 100%;
    }

}


/* ========================================
   VERY SMALL PHONES
======================================== */

@media (max-width: 380px) {

    .eyebrow {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .birthday-name {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .birthday-age {
        font-size: 25px;
        letter-spacing: 3px;
    }

    .date {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .dark h2 {
        font-size: 23px;
    }

}