/* Wedding invitation — Taplink style, mobile-first */

:root {
    --bg: #FAEDE9;
    --accent: #C87D8E;
    --accent-dark: #B86B7E;
    --box: #D993A3;
    --text: #C87D8E;
    --text-light: #ffffff;
    --btn-bg: #FAEDE9;
    --max-width: 390px;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', 'Segoe UI', sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    min-height: 100dvh;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.invite {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* ── Hero ── */

.hero {
    text-align: center;
    padding-top: 0;
}

.hero__bow {
    width: calc(100% + 48px);
    max-width: none;
    margin: 0 -24px -28px;
    display: block;
}

.hero__date {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    margin-top: -14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hero__names {
    font-family: var(--font-serif);
    font-size: clamp(26px, 7.5vw, 34px);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.hero__amp {
    font-style: italic;
    font-weight: 400;
    padding: 0 0.15em;
}

.hero__heart-img {
    display: block;
    width: min(360px, 94vw);
    margin: -6px auto 24px;
}

/* ── Sections ── */

.section {
    text-align: center;
    margin-bottom: 32px;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--accent);
}

.section__title--light {
    color: var(--text-light);
}

.section__subtitle {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    color: var(--accent);
}

.section__text {
    font-size: 12.5px;
    line-height: 1.8;
    max-width: 320px;
    margin: 0 auto;
    font-weight: 300;
}

.section__text--light {
    color: var(--text-light);
    margin-bottom: 18px;
}

.section__illustration {
    margin: 0 auto;
}

.section__illustration--cupids {
    width: min(340px, 92vw);
    margin-top: 14px;
}

.section__illustration--doves {
    width: calc(100% + 44px);
    max-width: none;
    margin: 18px -22px 0;
    border-radius: 0 0 18px 18px;
}

.section__illustration--car {
    width: min(360px, 96vw);
    margin-top: 16px;
}

.section--intro {
    margin-bottom: 28px;
}

/* ── Box sections ── */

.section--box {
    background: var(--box);
    border-radius: 18px;
    padding: 26px 22px 24px;
    margin-bottom: 28px;
}

.section--wishes {
    background: #EA8A98;
    margin-bottom: 28px;
    padding-bottom: 0;
    overflow: hidden;
}

/* ── Calendar ── */

.section--calendar {
    margin-bottom: 36px;
}

.calendar {
    max-width: 290px;
    margin: 0 auto;
}

.calendar__weekdays,
.calendar__week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar__weekdays {
    margin-bottom: 6px;
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.9;
}

.calendar__week {
    margin-bottom: 2px;
}

.calendar__day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.calendar__day--empty {
    visibility: hidden;
}

.calendar__num {
    position: relative;
    z-index: 1;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
}

.calendar__day--highlight .calendar__num {
    font-weight: 500;
}

.calendar__heart {
    position: absolute;
    width: 34px;
    height: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ── Timeline ── */

.section--timeline {
    margin-bottom: 36px;
}

.timeline {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    padding-left: 4px;
}

.timeline__rail {
    position: absolute;
    left: 27px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        var(--accent) 0,
        var(--accent) 3px,
        transparent 3px,
        transparent 7px
    );
    opacity: 0.45;
}

.timeline__item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.timeline__icon img {
    width: 44px;
    height: 44px;
}

.timeline__label {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 300;
    text-align: left;
    line-height: 1.5;
    color: var(--accent);
}

.timeline__time {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 500;
    margin-right: 6px;
}

/* ── Dress code ── */

.section--dresscode {
    margin-bottom: 36px;
}

.section--dresscode .section__text {
    margin-bottom: 14px;
}

.dresscode__swatches {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dresscode__swatches span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* ── Button ── */

.btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 4px auto 0;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--accent);
    background: var(--btn-bg);
    border: none;
    border-radius: 30px;
    padding: 15px 20px;
    transition: opacity 0.2s ease;
}

.btn:hover,
.btn:active {
    opacity: 0.85;
}

/* ── Footer ── */

.footer {
    text-align: center;
    padding-top: 8px;
}

.footer__goodbye {
    font-family: var(--font-serif);
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ── Responsive ── */

@media (min-width: 360px) {
    .section__text {
        font-size: 13px;
    }

    .timeline__label {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .invite {
        padding-bottom: 64px;
    }
}
