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

:root {
    --white: #f8f6f3;
    --off: #eeebe5;
    --dark: hsl(30, 8%, 10%);
    --mid: hsl(34, 6%, 21%);
    --gray: #8a8680;
    --light-gray: #c8c4be;

    --cream: #f5f0e8;
    --cream-dark: #ede6d6;
    --red: #c41230;
    --red-light: #d94050;
    --black: #1a1412;
    --gray: #7a7068;

    --fz-title: clamp(25px, 9vw, 50px);
    --fz-subtitle: clamp(16px, 4vw, 25px);
    --fz-text: clamp(14px, 4vw, 16px);
    --fz-subtext: clamp(12px, 3vw, 14px);
}

@font-face {
    font-family: "BookAntiqua";
    src: url("../fonts/Book-Antiqua.woff2") format("woff2"),
        url("../fonts/Book-Antiqua.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "BookAntiquaBold";
    src: url("../fonts/Book-Antiqua-bold.woff2") format("woff2"),
        url("../fonts/Book-Antiqua-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Golca";
    src: url("../fonts/golca.woff2") format("woff2"),
        url("../fonts/golca.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

html {
    scroll-behavior: smooth
}

.body {
    background: url(../image/bg.png);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Golca', Arial, sans-serif;
    padding-left: 24px;
    padding-right: 24px;
}

/* ─── FADE IN ON SCROLL ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal2 {
    transition-delay: .12s
}

.reveal3 {
    transition-delay: .22s
}

.reveal4 {
    transition-delay: .32s
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

h1 {
    font-family: 'BookAntiquaBold', Arial, sans-serif;
    font-size: clamp(44px, 12vw, 96px);
    color: var(--cream-dark);
    text-transform: uppercase;
    line-height: 1;
    position: relative;
}

h2,
h3,
h4 {
    font-family: 'BookAntiquaBold', Arial, sans-serif;
}

/* ── SECTION BASE ── */
.section {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ── HERO ── */
.hero {
    min-height: 100svh;
    background-image: linear-gradient(#0a0a0a, #050505);
    display: flex;
    align-items: end;
    justify-content: center;
    position: relative;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
}

.hero-amp {
    font-family: 'BookAntiqua', Arial, sans-serif;
    font-size: 364px;
    display: block;
    color: var(--red);
    opacity: 0.3;
    position: absolute;
    top: -110px;

    @media (max-width: 800px) {
        display: none;
    }
}

.hero-scroll {
    margin-bottom: 40px;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(248, 246, 243, .5), transparent);
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ── FRIENDS ── */
.friends {
    text-align: center;
    padding-top: 120px;
    padding-bottom: 30px;
}

.friends-title {
    font-size: var(--fz-title);
    color: var(--red);
}

.friends-sub {
    font-size: var(--fz-text);
    font-style: italic;
    line-height: 1.8;
    margin-top: 40px;
}

/* ── DATE ── */
.date {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 120px;
}

.date-save {
    font-size: var(--fz-subtitle);
    margin-bottom: 65px;
}

.date-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.date-item {
    padding-left: 30px;
    padding-right: 30px;
}

.center-date {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    margin-right: 8px;
}

.date-ring {
    position: absolute;
    top: -52px;
    width: 180px;
    fill: var(--red);
    animation-name: date-ring;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes date-ring {
    from {
        transform: translate(10px, -2px) rotate(45deg);
    }

    to {
        transform: translate(-10px, -2px) rotate(-45deg);
    }
}

.date-num {
    font-family: 'BookAntiqua', Arial, sans-serif;
    font-size: clamp(42px, 10vw, 72px);
    line-height: 1;
    color: var(--black);
}

.center-date .date-num {
    font-size: clamp(36px, 8vw, 56px);
    color: var(--red);
}

.date-month,
.date-weekday {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.2em;
}

.date-month {
    margin-top: 2px;
}

.date-weekday {
    margin-bottom: 4px;
}

.center-date .date-weekday {
    font-size: 9px
}

.date-year {
    margin-top: 40px;
    letter-spacing: 0.3em;
}


/* ─── RED RIBBON ─── */
.red-swirl {
    padding-left: 24px;
    padding-right: 24px;
    margin-top: 16px
}

.red-swirl svg {
    width: 100%;
    max-width: 400px;
    height: 40px;
}



/* ── TIMELINE ── */
.timeline {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 120px;
}

.timeline-title {
    margin-bottom: 40px;
    color: var(--red);
    font-size: var(--fz-title);
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 120px 220px;
    gap: 30px;

    @media (max-width: 800px) {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
    }
}

.timeline-item:not(.timeline-item:last-child) {
    margin-bottom: 20px;
}

.timeline-time {
    font-size: 55px;
    color: var(--dark);
    text-align: end;
}

.timeline-dot,
.timeline-time {
    align-self: center;
    @media (max-width: 800px) {
        text-align: center;
    }
}

.timeline-dot {
    @media (max-width: 800px) {
        order: -1;
        margin-left: auto;
        margin-right: auto;
    }
}

.timeline-line {
    width: 1px;
    flex: 1;
    background: var(--light-gray);
    min-height: 32px;
    margin-bottom: 20px;

    @media (max-width: 800px) {
        display: none;
    }
}

.timeline-text {
    text-align: left;

    @media (max-width: 800px) {
        text-align: center;
    }
}

.timeline-label {
    font-size: var(--fz-subtitle);
    line-height: 1.4;
}

.timeline-sub {
    font-size: var(--fz-subtext);
    color: var(--gray);
    font-style: italic;
    margin-top: 5px;
}

/* ── VENUE ── */
.venue {
    padding-bottom: 120px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.venue-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.venue-title {
    margin-bottom: 40px;
    color: var(--red);
    font-size: var(--fz-title);
    text-align: center;
}

.venue-subtitle {
    font-size: var(--fz-subtitle);
}

.venue-text {
    font-size: var(--fz-subtext);
    color: var(--gray);
    font-style: italic;
    margin-top: 5px;
}

.venue-place,
.venue-place-reverse {
    display: grid;
    gap: 30px;
}

.venue-place {
    grid-template-columns: auto 220px;
    margin-bottom: 40px;

    @media (max-width: 800px) {
        grid-template-columns: 1fr;
    }
}

.venue-place-reverse {
    grid-template-columns: 220px auto;
    text-align: end;

    @media (max-width: 800px) {
        grid-template-columns: 1fr;
    }
}

.venue-photo {
    position: relative;
    filter: drop-shadow(2px 4px 6px black);
}

.venue-img {
    width: 100%;
    filter: grayscale(1);
}

.venue-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    border-radius: 8px;
    background-color: var(--black);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 40px;
    cursor: pointer;
    border: 1px solid var(--cream);
    font-size: var(--fz-text);
    font-family: 'Golca', Arial, sans-serif;
    z-index: 1;
    transition: all 0.2s;
}

.venue-button:hover {
    scale: 1.1;
}

.venue-map {
    display: none;
    margin-bottom: 40px;
    border: 0;
    transition: all .2s;
}

/* ── DRESS CODE ── */
.dress {
    text-align: center;
    padding-bottom: 120px;
}

.dress-title {
    margin-bottom: 40px;
    color: var(--red);
    font-size: var(--fz-title);
}

.dress-text {
    font-size: var(--fz-text);
    font-style: italic;
}

.dress-palette {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dress-palette-item {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.dress-subtext {
    margin-top: 20px;
    font-size: var(--fz-text);
    font-style: italic;
}



/* ── RSVP ── */
.anketa {
    padding-bottom: 120px;
}

.anketa-title {
    margin-bottom: 40px;
    color: var(--red);
    font-size: var(--fz-title);
    text-align: center;
}

.anketa-subtitle {
    font-size: var(--fz-subtitle);
    text-align: center;
    margin-bottom: 30px;
}

.anketa-form {
    display: grid;
    row-gap: 20px;
}

.anketa-label {
    font-size: var(--fz-text);
    margin-bottom: 10px;
    display: block;
    width: 100%;
}

.anketa-label span {
    font-size: var(--fz-subtext);
}

.anketa-input {
    border: 1px solid var(--gray);
    height: 40px;
    width: 100%;
    background: none;
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 15px;
    color: var(--gray);
    font-size: var(--fz-subtext);
}

.anketa-input:focus,
.anketa-input:focus-visible {
    border: 1px solid var(--red);
}

.anketa-check {
    display: grid;
    grid-template-rows: auto;
    row-gap: 10px;
}

.anketa-sublabel {
    font-size: var(--fz-subtext);
    margin-left: 10px;
}

.anketa-radio {
    display: flex;
    align-items: center;
}

.anketa-radio input {
    width: 20px;
    height: 20px;
    background: none;
}

.anketa-wrap {
    display: grid;
    row-gap: 20px;
}

.anketa-hot-text {
    font-size: var(--fz-subtext);
    margin-left: 30px;
}

.anketa-button {
    margin-top: 8px;
    padding: 15px 32px;
    background: var(--cream-dark);
    color: var(--gray);
    border: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: .85;
    transition: opacity .25s, transform .2s;
}

.anketa-button:hover {
    opacity: 1;
    color: var(--black);
    transform: translateY(-1px)
}

#drink,
#hot,
#hotPlus,
#namePlus {
    display: none;
}




.rsvp-input:focus {
    border-color: rgba(248, 246, 243, .6)
}

.rsvp-input::placeholder {
    color: var(--black)
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-top: 4px
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(248, 246, 243, .7);
    cursor: pointer;
}

.radio-label input {
    accent-color: var(--black);
    width: 16px;
    height: 16px;
    cursor: pointer
}

.rsvp-btn {
    margin-top: 8px;
    padding: 15px 32px;
    background: var(--white);
    color: var(--dark);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .25s, transform .2s;
}

.rsvp-btn:hover {
    opacity: .85;
    transform: translateY(-1px)
}

.rsvp-success {
    display: none;
    font-family: 'Great Vibes', Arial, sans-serif;
    font-size: 40px;
    color: var(--white);
    margin-top: 24px;
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 60px 24px;
    background-image: linear-gradient(#0a0a0a, #050505);
    color: var(--cream);
}

.footer-with {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.35);
    margin-bottom: 4px;
}

.footer-love {
    font-size: 52px;
    color: var(--cream);
}

.footer-names {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.4);
    margin-top: 8px;
}

.footer-red-line {
    width: 60px;
    height: 1px;
    background: var(--red);
    margin: 24px auto;
}




#countdown {
    text-align: center;
    color: var(--cream);
    margin-bottom: 60px;
    max-width: 100%;
}

.countdown-label {
    font-size: clamp(52px, 10vw, 80px);
    color: var(--cream);
}

.countdown-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-num {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 300;
    line-height: 1;
    color: var(--cream);
}

.countdown-unit {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--red);
    margin-top: 8px;
}