:root {
    --primary-color: #f7f5f2;     /* Soft warm white / cream */
    --accent-color: #8c7a6b;      /* Elegant soft brown/taupe */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --border-color: #e5e5e5;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    background-image: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

#loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(140, 122, 107, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.app-container {
    width: 100%;
    max-width: 480px; /* Mobile width container */
    background-color: var(--bg-light);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    overflow-x: hidden;
    position: relative;
}

.section {
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.section:last-child {
    border-bottom: none;
}

/* Typography elements */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cover Section */
.cover {
    height: 100vh;
    height: 100svh; /* Fallback and mobile optimized */
    min-height: -webkit-fill-available;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border-bottom: none;
}

.cover-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.cover-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    padding-bottom: 80px;
    width: 100%;
    text-align: center;
}

.sub-title {
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 300;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 500;
}
.main-title span {
    font-size: 2rem;
    color: var(--accent-color);
    font-style: italic;
    opacity: 0.8;
}

.wedding-date {
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}
.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Greeting Section */
.greeting-text {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}
.parents-info {
    font-size: 1.05rem;
    line-height: 2;
}
.parents-info .relation {
    font-size: 0.9rem;
    color: #999;
}
.parents-info strong {
    font-weight: 500;
    margin-left: 5px;
}

/* Gallery Section */
.gallery {
    background-color: #fafbfc;
}
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
}
.gallery-item {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.btn-more-photos {
    margin-top: 20px;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-more-photos:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Calendar Section */
.calendar-wrapper {
    margin: 30px 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}
.calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.calendar-table th {
    font-weight: 500;
    color: #999;
    padding-bottom: 15px;
}
.calendar-table th.sun, .calendar-table td.sun {
    color: #e06c75;
}
.calendar-table td {
    padding: 10px 0;
    color: var(--text-main);
}
.d-day {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
.d-day-counter {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 20px;
}

/* Location Section */
.location {
    background: linear-gradient(180deg, #fff 0%, #f9f7f4 100%);
}
.location-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.location-icon i {
    color: #fff;
    font-size: 1.2rem;
}
.venue-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}
.venue-address {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.map-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 10px;
}
.map-card .map-placeholder {
    overflow: hidden;
}
.map-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}
.map-card-info i {
    color: var(--accent-color);
    font-size: 1.1rem;
}
.map-card-info div {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.map-card-info strong {
    font-size: 0.92rem;
    color: var(--text-main);
}
.map-card-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.map-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.map-box {
    width: 100%;
    height: 250px;
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    margin-bottom: 20px;
}
.btn-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    color: var(--accent-color);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    background: #fff;
}
.btn-map-link:hover, .btn-map-link:active {
    background-color: var(--accent-color);
    color: #fff;
}
.transport-info {
    text-align: left;
    background: #fafafafa;
    padding: 20px;
    border-radius: 8px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}
.info-item:last-child {
    margin-bottom: 0;
}
.info-item i {
    color: var(--accent-color);
    margin-top: 5px;
    margin-right: 15px;
    font-size: 1.1rem;
}

/* Accounts Section */
.accounts {
    background-color: #f7f5f2;
}
.account-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.accordion-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-main);
}

.accordion-btn i {
    transition: transform 0.3s;
}
.accordion-btn.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafbfc;
}
.accordion-content p {
    padding: 15px 20px 5px;
    line-height: 1.7;
    font-size: 0.92rem;
    color: var(--text-muted);
}
.accordion-content p:last-child {
    padding-bottom: 15px;
}
.qna-ko {
    color: var(--text-main) !important;
    font-size: 0.88rem !important;
    border-top: 1px dashed var(--border-color);
    margin-top: 5px;
    padding-top: 10px !important;
}

.account-row {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}
.bank { font-weight: 500; margin-right: 10px;}
.btn-copy {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-muted);
}
.btn-copy:active {
    background: #eee;
}

/* Toast Notification for Clipboard Copy */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer */
.footer {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
