/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #303030;
    font-family: 'Cormorant Garamond', serif;
    color: #111;
}

.mobile-page {
    width: 100%;
    min-height: 100vh;
    background: #f8f8f8;
}

@media (min-width: 768px) {

    body {
        padding: 24px 0;
    }

    .mobile-page {
        width: 430px;
        margin: 0 auto;
        overflow: hidden;
        box-shadow: 0 0 45px rgba(0,0,0,0.45);
    }

}

/* HERO */

.hero {
    position: relative;
    height: 100svh;
    min-height: 760px;
    overflow: hidden;
    background: #000;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.12) 45%,
        rgba(0,0,0,0.55) 78%,
        rgba(0,0,0,0.95) 100%
    );
}

.top-line {
    position: absolute;
    z-index: 2;
    top: 28px;
    left: 0;
    right: 0;
    text-align: center;
}

.script {
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: 34px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero-content {
    position: absolute;
    z-index: 2;

    left: 0;
    right: 0;
    bottom: 54px;

    padding: 0 24px;

    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 54px;
    line-height: 0.9;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 18px;

    text-shadow:
        0 2px 18px rgba(0,0,0,0.55),
        0 0 30px rgba(0,0,0,0.35);
}

.hero-date {
    font-size: 16px;
    letter-spacing: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* COMMON */

.section {
    padding: 62px 28px;
    text-align: center;
}

.white {
    background: #f8f8f8;
}

.section h2,
.place-card h2,
.countdown-section h2,
.final-photo-section h2 {
    font-size: 40px;
    line-height: 0.92;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section h3 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.script-text {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    margin-bottom: 18px;
}

.text {
    max-width: 320px;
    margin: 0 auto 20px;
    font-size: 17px;
    line-height: 1.65;
    opacity: 0.76;
}

.line {
    width: 1px;
    height: 58px;
    background: #999;
    margin: 0 auto 26px;
}

.line.small {
    height: 42px;
}

.line.light {
    background: rgba(255,255,255,0.45);
}

/* SAVE DATE */

.save-date-section {
    padding-bottom: 50px;
}

.big-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -6px;
}

.big-date span {
    font-size: 56px;
    line-height: 0.82;
}

.big-date .dot {
    font-size: 22px;
    line-height: 0.6;
    opacity: 0.4;
    margin: -4px 0;
}

/* CALENDAR */

.calendar-section {
    padding-top: 38px;
    padding-bottom: 48px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 11px 9px;

    max-width: 300px;

    margin: 0 auto;

    font-size: 14px;
    color: #777;
}

.calendar .active {
    color: #9b1c1c;
    border: 1px solid #9b1c1c;
    border-radius: 50%;
}

/* PLACE */

.place {
    min-height: 500px;
    padding: 64px 24px;

    background: linear-gradient(
        180deg,
        #f3f3f3 0%,
        #e9e9e9 100%
    );

    display: flex;
    align-items: center;
    justify-content: center;
}

.place-card {
    width: 100%;
    max-width: 330px;

    padding: 46px 26px 48px;

    background: #fff;

    text-align: center;

    border: 1px solid rgba(0,0,0,0.08);

    box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}

.pin {
    width: 54px;
    height: 54px;

    background: #111;

    border-radius: 50% 50% 50% 0;

    transform: rotate(-45deg);

    margin: 0 auto 32px;

    position: relative;
}

.pin::after {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    background: #fff;

    border-radius: 50%;

    top: 18px;
    left: 18px;
}

/* TIMING */

.timing div {
    margin-bottom: 26px;
}

.timing b {
    display: block;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 4px;
}

.timing span {
    font-size: 16px;
    opacity: 0.75;
}

/* DRESS CODE */

.dress-section {
    padding-top: 62px;
    padding-bottom: 68px;
}

.dress-section h2 {
    margin-bottom: 24px;
}

.dress-main-text,
.dress-extra-text {
    max-width: 320px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.65;
    text-align: center;
    color: rgba(0,0,0,0.72);
}

.dress-main-text {
    margin-bottom: 16px;
}

.dress-extra-text {
    margin-bottom: 30px;
}

.dress-img {
    width: 100%;
    max-width: 330px;
    display: block;
    margin: 0 auto;
}

/* COUNTDOWN */

.countdown-section {
    background: #050505;
    color: #fff;

    padding: 64px 24px 72px;

    text-align: center;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 8px;

    margin-top: 32px;
}

.countdown span {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.countdown small {
    font-size: 12px;
    opacity: 0.7;
}

/* CONTACTS */

.contacts {
    padding-top: 62px;
    padding-bottom: 66px;
}

.contact-photo {
    width: 210px;
    height: 260px;

    object-fit: cover;
    object-position: center;

    display: block;

    margin: 0 auto 26px;
}

.contact-text {
    max-width: 285px;

    margin: 0 auto 22px;

    font-size: 16px;
    line-height: 1.5;

    opacity: 0.74;
}

.organizer-name {
    font-size: 38px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.phone {
    display: inline-block;

    color: #111;

    font-size: 28px;

    text-decoration: none;
}

/* FINAL PHOTO */

.final-photo-section {
    padding: 54px 28px 72px;
    text-align: center;
    background: #f8f8f8;
}

.final-photo-section h2 {
    margin-bottom: 30px;
}

.final-frame {
    position: relative;

    width: 100%;
    max-width: 340px;

    margin: 0 auto;

    padding: 12px;

    background: #fff;

    border: 2px solid #111;

    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 20px 45px rgba(0,0,0,0.14);
}

.final-frame::before {
    content: "";

    position: absolute;

    inset: 8px;

    border: 1px solid rgba(0,0,0,0.16);

    pointer-events: none;
}

.final-frame img {
    width: 100%;
    height: 470px;

    object-fit: cover;
    object-position: center;

    display: block;
}

/* MOBILE */

@media (max-width: 430px) {

    .hero h1 {
        font-size: 48px;
    }

    .section h2,
    .place-card h2,
    .countdown-section h2 {
        font-size: 37px;
    }

    .final-photo-section h2 {
        font-size: 38px;
    }

}

@media (max-width: 375px) {

    .section,
    .final-photo-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-date {
        font-size: 14px;
        letter-spacing: 5px;
    }

    .final-frame img {
        height: 400px;
    }

}