/* Custom Properties
   ========================================================================== */
:root {
    --bg: #f7f6f5;
    --accent: #6b5b95;
    --text: #121212;
    --header-height: 88px;
    --header-height-mobile: 80px;
    --container-width: 1100px;
}

/* Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(247, 246, 245, 1) 60%, rgba(247, 246, 245, 0));
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-header.visible {
    opacity: 1;
    visibility: visible;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    font-weight: 600;
    letter-spacing: 0.08em;
    padding-bottom: 20px;
}

.nav {
    display: flex;
    gap: 18px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent);
}

/* Hero Section
   ========================================================================== */
.hero {
    min-height: 88vh;
    display: grid;
    place-items: center;
    position: relative;
    padding: 40px 0;
}

.hero-inner {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(36px, 10vw, 96px);
    margin: 0;
    font-weight: 700;
    line-height: 1;
}

.hero-sub {
    font-size: 1.15rem;
    color: #444;
    margin: 1em 0;
}

.hero-decor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    z-index: 1;
    content: url('../img/lilac-frame-desktop.png');
}

@media (max-width: 768px) {
}

/* Call to Action Buttons
   ========================================================================== */
.cta {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta:hover {
    transform: translateY(-2px);
    background: var(--accent);
}

.cta.large {
    padding: 16px 28px;
    font-size: 1.05rem;
}

/* Content Panels
   ========================================================================== */
.panel {
    padding: 64px 0;
    width: 100%;
    background-color: var(--bg);
}

.panel:nth-child(odd) {
    background-color: #efedeb;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.panel h3 {
    margin-top: 0;
}

.more {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    transition: color 0.2s ease;
}

.more:hover {
    color: #4d4269;
}

/* RSVP Section
   ========================================================================== */
.rsvp {
    padding: 56px 0;
    text-align: center;
    width: 100%;
}

.rsvp h2 {
    margin: 0 0 18px;
    font-size: 1.35rem;
}

/* Footer
   ========================================================================== */
.site-footer {
    padding: 28px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 40px;
}

/* Media Queries
   ========================================================================== */
@media (max-width: 600px) {
    .nav {
        display: none;
    }

    .site-header {
        height: var(--header-height-mobile);
        padding: 0 20px;
    }

    .hero-decor {
        content: url('../img/lilac-frame-mobile.png');
    }

    .panel .panel-grid {
        padding: 0 20px;
    }

    .rsvp {
        padding: 56px 24px;
    }
}