:root {
    --primary-color: #6a5e52;
    /* Warm Soft Taupe */
    --accent-color: #ba8c63;
    /* Terracotta / Soft Clay */
    --accent-gold: #cfa878;
    /* Warm Sand */
    --bg-color: #faf7f2;
    /* Soft Off-White */
    --alt-bg-color: #f3efe6;
    /* Warm Linen */
    --text-color: #333;
    /* Deep Warm Brown */
    --font-serif: "Noto Serif JP", serif;
    /* Kept serif for Japanese readability but can adjust to sans if needed */
    --font-hand: "Oooh Baby", cursive;
    /* Assuming added for a playful touch */
    --font-brush: "Caveat Brush", cursive;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-serif);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.9;
    overflow-x: hidden;
}

/* Side Names */
.side-name {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--primary-color);
    opacity: 0.4;
    writing-mode: vertical-lr;
    z-index: 100;
    font-weight: 300;
}

.side-left {
    left: 40px;
}

.side-right {
    right: 40px;
}

@media (max-width: 1024px) {
    .side-name {
        display: none;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Poster Hero Section */
.poster-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #eeddce;
    /* Soft warm pink/beige from reference */
    padding: 10vh 20px;
}

.poster-image-container {
    position: relative;
    max-width: 450px;
    width: 85%;
    z-index: 5;
    animation: fadeInDelay 1s ease forwards;
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
    border: 15px solid #fff;
    /* Thick white polaroid border */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.poster-subtitle {
    position: absolute;
    bottom: 30px;
    right: -20px;
    font-family: 'Oswald', 'Noto Serif JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.6;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.85);
    /* Optional: slight background to ensure readability over photo */
    padding: 10px;
    text-align: left;
    transform: rotate(-2deg);
    z-index: 20;
}

/* Massive overlay brush text */
.poster-text {
    position: absolute;
    font-family: var(--font-brush);
    color: #111;
    /* Very dark charcoal/black */
    font-size: clamp(80px, 15vw, 150px);
    line-height: 1;
    z-index: 10;
    white-space: nowrap;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
}

.text-top {
    top: 5%;
    left: 45%;
    transform: translateX(-50%) rotate(-3deg);
    font-size: clamp(100px, 20vw, 220px);
    z-index: 20;
    /* Overlaps photo top */
}

.text-right-top {
    top: 25%;
    right: 5%;
    transform: rotate(12deg);
}

.text-right-mid {
    top: 50%;
    right: 2%;
    transform: translateY(-50%) rotate(-5deg);
}

.text-left-mid {
    top: 45%;
    left: -2%;
    transform: translateY(-50%) rotate(8deg);
    z-index: 20;
    /* Specifically overlaps left edge */
}

.text-bottom {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    font-size: clamp(90px, 18vw, 180px);
    z-index: 20;
    /* Overlaps photo bottom */
}

@keyframes fadeInDelay {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 140px 0;
    position: relative;
}

.alt-bg {
    background-color: var(--alt-bg-color);
}

.section-title {
    font-family: var(--font-hand);
    font-size: 3.4rem;
    font-weight: 400;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--accent-gold);
}

/* Description Text */
#our-story p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 2.2;
}

/* Gallery & Music Section */
.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.gallery-img {
    border: 15px solid #fff;
    max-width: 100%;
    width: 320px;
    height: 400px;
    object-fit: cover;
    /* Slightly rounded for a softer look */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow like polaroids */
    transform: rotate(-2deg);
    transition: var(--transition);
}

.gallery-img:nth-child(even) {
    transform: rotate(3deg) translateY(10px);
}

.gallery-img:hover {
    transform: rotate(0) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.spotify-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.spotify-container p {
    font-size: 1.05rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 20px;
}

.detail-item h3 {
    font-family: var(--font-hand);
    color: var(--accent-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.detail-item p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Schedule List */
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    text-align: left;
    display: inline-block;
    border-left: 1px solid rgba(207, 168, 120, 0.4);
    margin-left: 10px;
}

.schedule-list li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;
}

.schedule-list li:last-child {
    margin-bottom: 0;
}

.schedule-list li::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 7px;
    height: 7px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.schedule-time {
    font-weight: 500;
    font-family: 'Oswald', 'Noto Serif JP', sans-serif;
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.15rem;
    display: inline-block;
    width: 50px;
}

.schedule-event {
    font-size: 1.1rem;
    font-weight: 500;
}

.schedule-location {
    display: block;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-left: 69px;
    margin-top: 4px;
}

/* RSVP Form Styles */
.form-instruction {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--primary-color);
    opacity: 0.8;
}

#rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(45, 70, 40, 0.2);
    background-color: #fff;
    font-family: var(--font-serif);
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 0;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
}

textarea {
    height: 100px;
    resize: vertical;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 40px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

#form-thanks {
    padding: 40px;
    background-color: var(--alt-bg-color);
    border: 1px solid rgba(45, 70, 40, 0.1);
    animation: fadeInUp 1s ease;
}

#form-thanks p {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Buttons */
.btn-group {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.btn {
    padding: 16px 45px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 0;
    transition: var(--transition);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

.btn.primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.secondary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Background Illustrations */
.bg-illustration {
    position: absolute;
    z-index: 0;
    opacity: 0.12;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.bg-plant-1 {
    top: -50px;
    left: -100px;
    width: 400px;
    transform: rotate(15deg);
}

.bg-plant-2 {
    bottom: -80px;
    right: -120px;
    width: 450px;
    transform: rotate(-20deg);
}

.bg-plant-3 {
    top: 100px;
    right: -80px;
    width: 350px;
    transform: rotate(-10deg);
}

.bg-plant-4 {
    bottom: 50px;
    left: -100px;
    width: 380px;
    transform: rotate(30deg);
}

footer {
    padding: 60px 0;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    opacity: 0.6;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .section {
        padding: 80px 0;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}