:root {
    /* Colors from .pen variables */
    --accent-banana-leaf: #2D4C2D;
    --accent-banana-leaf-light: #3A5C3A;
    --accent-green: #4F6D31;
    --accent-hibiscus: #8B0000;
    --accent-primary: #7D6B3D;
    --accent-red: #991B1B;
    --accent-secondary: #4A3F24;
    --accent-sunflower: #C48F28;
    --accent-violet: #5B21B6;
    --accent-yellow: #EAB208;
    --border-subtle: #DCD8CB;
    
    --foreground-primary: #2D2926;
    --foreground-secondary: #5E5954;
    --foreground-muted: #8C8782;
    
    --surface-primary: #F2EEE1;
    --surface-secondary: #E8E4D8;

    /* Semantic Aliases */
    --bg-color: var(--surface-primary);
    --text-primary: var(--foreground-primary);
    --text-secondary: var(--foreground-secondary);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Newsreader', serif;

    /* Spacing & Layout */
    --nav-height: 60px;
    --max-width: 1440px;
    --container-padding: 100px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Background Pattern Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/floral-paper.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--accent-banana-leaf);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-links {
    display: flex;
    gap: 100px;
}

.nav-links a {
    color: var(--surface-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Global Content Stack */
#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* padding-top removed to allow Hero to go behind navbar */
}

.section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px var(--container-padding);
    scroll-margin-top: var(--nav-height);
}

.content-wrapper {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section Styles (pGAyf) */
.hero-section {
    width: 100%;
    height: 100vh; /* Occupies entire fold */
    background-color: rgba(58, 92, 58, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3vh;
    padding: var(--nav-height) 100px 0 100px; /* Accounts for navbar height in content centering */
    overflow: hidden;
    scroll-margin-top: 0; /* Ensures 'Home' goes to top */
}

.hero-editorial {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(60px, 8vw, 100px);
    font-weight: 700;
    color: var(--surface-primary);
    line-height: 1;
}

.hero-amp {
    font-family: var(--font-body);
    font-size: clamp(40px, 6vw, 70px);
    font-style: italic;
    color: var(--accent-sunflower);
    margin-bottom: 0;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--surface-secondary);
    text-transform: uppercase;
    text-align: center;
}

.hero-image-frame {
    width: clamp(280px, 35vw, 450px);
    height: clamp(180px, 20vh, 300px);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto;
}

.hero-pet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-ornament {
    color: var(--accent-sunflower);
    font-family: var(--font-heading);
    font-size: 24px;
    text-align: center;
}

/* Welcome Section Styles (V4MmQ3) */
.welcome-section {
    padding: 80px 100px;
    text-align: center;
}

.section-title {
    font-size: 48px;
    color: var(--accent-banana-leaf);
    margin-bottom: 16px;
    font-weight: normal;
}

.welcome-text {
    font-size: 20px;
    max-width: 800px;
    line-height: 1.6;
    color: var(--foreground-secondary);
}

/* Vibe Section Styles (sSzh3) - Horizontal Layout */
.vibe-section {
    padding: 60px 0;
}

.vibe-card {
    width: 900px;
    background-color: var(--accent-sunflower);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.vibe-text-content {
    flex: 1;
}

.vibe-title {
    font-size: 36px;
    color: var(--foreground-primary);
    margin-bottom: 16px;
    font-weight: normal;
}

.vibe-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground-secondary);
}

.vibe-image-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
}

.vibe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Journey Header Styles (oHMMS) */
.journey-header {
    width: 100%;
    height: 300px;
    background-color: var(--surface-primary);
    border-top: 2px solid var(--accent-banana-leaf);
    border-bottom: 2px solid var(--accent-banana-leaf);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 60px 100px;
    scroll-margin-top: var(--nav-height);
}

.journey-main-title {
    font-size: 80px;
    font-weight: 700;
    color: var(--foreground-primary);
    letter-spacing: -2px;
    line-height: 1;
}

.journey-subtitle {
    font-size: 20px;
    font-style: italic;
    color: var(--foreground-secondary);
}

/* Journey Posts Styles (iizCR) - Horizontal Layout */
.journey-posts {
    padding: 40px 100px 100px 100px;
    gap: 60px;
}

.post-card {
    width: 850px;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 4px solid transparent;
}

.post-sushi { border-color: var(--accent-sunflower); }
.post-pets { border-color: var(--accent-banana-leaf); }
.post-islands { border-color: var(--accent-hibiscus); }

.flex-reverse {
    flex-direction: row-reverse;
}

.post-image-wrapper {
    width: 300px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-title {
    font-size: 32px;
    font-weight: normal;
    letter-spacing: -1px;
}

.post-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--foreground-secondary);
}

.post-divider {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--accent-hibiscus);
    text-align: center;
    width: 100%;
    margin: 40px 0;
}

/* RSVP Editorial Section (oQCBq) */
.rsvp-editorial-section {
    background-color: rgba(45, 76, 45, 0.9);
    padding: 120px 100px;
    gap: 80px;
    text-align: center;
}

.rsvp-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--surface-primary);
    margin-bottom: 24px;
}

.rsvp-subtitle {
    font-size: 18px;
    color: #FFFFFFCC;
}

.rsvp-decoration {
    width: 300px;
    height: 200px;
    overflow: hidden;
    margin: 0 auto;
}

.decoration-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsvp-form-card {
    width: 600px;
    background-color: var(--surface-secondary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.editorial-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 16px;
    color: var(--foreground-primary);
}

.editorial-input, .editorial-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background-color: var(--surface-primary);
    font-family: var(--font-body);
    font-size: 14px;
}

.editorial-textarea {
    height: 80px;
}

.attendance-options {
    display: flex;
    gap: 16px;
}

.option-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background-color: var(--surface-primary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--foreground-secondary);
}

.active-option {
    background-color: var(--accent-green);
    color: #FFFFFF;
    border-color: var(--accent-green);
}

.editorial-submit-btn {
    width: 100%;
    height: 56px;
    background-color: var(--accent-sunflower);
    color: var(--foreground-primary);
    border: none;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.form-feedback {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--accent-green);
    color: white;
    border-radius: 8px;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

/* Responsive Overrides */
.mobile-nav { display: none; }

@media (max-width: 1200px) {
    .vibe-card, .post-card, .journey-header {
        width: 100%;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }

    /* Navbar Mobile Layout */
    .desktop-nav { display: none; }
    .mobile-nav {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        position: relative;
    }
    
    .nav-left, .nav-right { width: 80px; display: flex; align-items: center; }
    .nav-left { justify-content: flex-start; }
    .nav-right { justify-content: flex-end; }
    .nav-center {
        position: absolute;
        left: 0;
        width: 100%;
        text-align: center;
        pointer-events: none;
    }
    
    .menu-icon { color: var(--surface-primary); font-size: 24px; cursor: pointer; pointer-events: auto; }
    .nav-logo { color: var(--surface-primary); font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
    .mobile-rsvp-btn {
        background-color: var(--accent-sunflower);
        color: var(--foreground-primary);
        padding: 6px 12px;
        border-radius: 999px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        pointer-events: auto;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: var(--nav-height) 15px 40px 15px;
        height: auto;
        min-height: 100vh;
    }
    .hero-editorial {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    .hero-name { 
        font-size: clamp(36px, 15vw, 64px); 
        width: 100%;
        text-align: center;
        overflow-wrap: break-word;
    }
    .hero-amp { font-size: 48px; margin: 0; }
    .hero-subtitle { 
        font-size: 16px; 
        letter-spacing: 2px;
        width: 100%;
    }
    .hero-image-frame {
        width: 100%;
        max-width: 320px;
    }

    /* Welcome Section Mobile */
    .welcome-section { padding: 60px 15px; }
    .section-title { font-size: 32px; }
    .welcome-text { font-size: 16px; }

    /* Vibe Section Mobile - Full Width & Solid Color */
    .vibe-section { padding: 0; }
    .vibe-card {
        width: 100%;
        max-width: none;
        border-radius: 0;
        flex-direction: column;
        padding: 60px 15px;
        gap: 32px;
        text-align: center;
    }
    .vibe-title { font-size: 32px; }
    .vibe-image-wrapper { width: 100%; height: 260px; }

    /* Journey Header Mobile */
    .journey-header {
        height: auto;
        padding: 80px 15px;
        margin-top: 60px; /* Physical spacer */
    }
    .journey-main-title { 
        font-size: clamp(36px, 15vw, 64px);
        width: 100%;
        text-align: center;
    }
    .journey-subtitle { font-size: 18px; text-align: center; }

    /* Journey Posts Mobile */
    .journey-posts { padding: 40px 15px; gap: 40px; }
    .post-card {
        flex-direction: column;
        width: 100%;
        padding: 24px;
        gap: 24px;
        border-width: 4px;
    }
    .flex-reverse { flex-direction: column; }
    .post-image-wrapper { width: 100%; height: 200px; }
    .post-title { font-size: 28px; }
    .post-text { font-size: 16px; }

    /* RSVP Section Mobile */
    .rsvp-editorial-section { padding: 60px 15px; gap: 60px; }
    .rsvp-title { font-size: 32px; margin-bottom: 16px; }
    .rsvp-subtitle { font-size: 16px; }
    .rsvp-form-card { 
        width: 100%; 
        padding: 20px 15px; 
        overflow: hidden;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 24px;
    }

    @media (max-width: 340px) {
        .g-recaptcha {
            transform: scale(0.78);
        }
    }

    .attendance-options {
        flex-direction: column;
        width: 100%;
    }
    .option-btn {
        width: 100%;
        text-align: center;
    }
    
    .rsvp-decoration { 
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
        order: 3; 
    }
}
