:root {
    --primary: #8056a5;
    --primary-dark: #5c3d82;
    --accent: #f8d3d9;
    --text: #2f2440;
    --background: #fdf8f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Raleway', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    color: var(--primary-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.content-wrapper {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(128, 86, 165, 0.15);
}

.site-header .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 0.95rem;
}

.main-nav a {
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    text-decoration: none;
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 100;
    pointer-events: none;
}

.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(128, 86, 165, 0.1), rgba(248, 211, 217, 0.35));
}

.hero .content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    align-items: center;
}

.hero-text .subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin: 0 0 10px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin: 0 0 20px;
}

.hero-text .lead {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.countdown {
    background: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(128, 86, 165, 0.15);
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
}

.countdown .countdown-number {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.info-grid {
    padding: 80px 0;
}

.info-grid .content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.info-grid article {
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(47, 36, 64, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-grid article:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(47, 36, 64, 0.12);
}

.info-grid p {
    line-height: 1.6;
    margin-top: 14px;
}

.rsvp {
    padding: 70px 0 90px;
    background: linear-gradient(180deg, rgba(248, 211, 217, 0.35), rgba(253, 248, 245, 0.9));
    text-align: center;
}

.rsvp p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.6;
}

.site-footer {
    padding: 24px 0 36px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(47, 36, 64, 0.7);
}

.page-hero {
    padding: 90px 0 60px;
    background: linear-gradient(135deg, rgba(128, 86, 165, 0.08), rgba(248, 211, 217, 0.2));
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
}

.page-hero p {
    margin: 0 auto;
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.info-section {
    padding: 70px 0 90px;
}

.info-section .content-wrapper {
    display: grid;
    gap: 40px;
}

.location-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.location-card,
.tips-card {
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(47, 36, 64, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.location-card h2,
.tips-card h3 {
    margin-top: 0;
}

.location-card:hover,
.tips-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(47, 36, 64, 0.12);
}

.location-address {
    font-weight: 600;
    margin-bottom: 12px;
}

.map-embed {
    margin-top: 22px;
    border-radius: 14px;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 260px;
    border: 0;
}

.tips-card ul {
    list-style: disc;
    padding-left: 18px;
    margin: 18px 0 0;
    line-height: 1.6;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: start;
    gap: 24px;
    background: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(47, 36, 64, 0.08);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
    border: 2px solid transparent;
}

.timeline-item h3 {
    margin: 0 0 8px;
}

.timeline-item p {
    margin: 0;
    line-height: 1.6;
}

.timeline-item .time {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.timeline-item::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(128, 86, 165, 0.08), rgba(248, 211, 217, 0.12));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.timeline-item:hover,
.timeline-item.is-active {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(47, 36, 64, 0.18);
    border-color: rgba(128, 86, 165, 0.35);
}

.timeline-item.is-active::before {
    opacity: 1;
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    body {
        scroll-behavior: auto;
    }

    .scroll-progress {
        display: none;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .info-grid article,
    .location-card,
    .tips-card,
    .timeline-item {
        transition: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        gap: 16px;
        font-size: 0.9rem;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding-top: 80px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .timeline-item .time {
        font-size: 1.2rem;
    }
}
