:root {
    --primary-green: #E0A9B4;
    --bg-color: #FDF9FA;
    --page-bg: #FBF5F6;
    --text-main: #594649;
    --text-light: #988C8E;
    --body-copy-color: #77676A;
    --border-color: #F8ECEF;
    --nav-logo-color: #5F5457;
    --nav-logo-font-size: 1.4rem;
    --nav-logo-korean-font: 'Gowun Batang', serif;
    --nav-logo-latin-font: 'Pinyon Script', cursive;
    --cover-date-font-size: 0.9rem;
    --cover-date-color: #F198AA;
    --cover-date-korean-font: 'Noto Sans KR', sans-serif;
    --cover-date-latin-font: 'Noto Sans KR', sans-serif;
    --cover-title-font-size: 1.8rem;
    --cover-title-color: #524748;
    --cover-title-korean-font: 'Gowun Batang', serif;
    --cover-title-latin-font: 'Gowun Batang', serif;
    --cover-names-font-size: 3.2rem;
    --cover-names-font-size-mobile: 2.8rem;
    --cover-names-color: #524748;
    --cover-names-korean-font: 'Gowun Batang', serif;
    --cover-names-latin-font: 'Pinyon Script', cursive;
    --top-nav-bg: rgba(253, 250, 251, 0.96);
    --top-nav-border-color: #F6E7EA;
    --surface-color: #FFFFFF;
    --soft-surface-color: #FCF6F8;
    --placeholder-color: #B3AAAB;
    --cover-base: #F6E7EA;
    --cover-overlay-start: rgba(252, 246, 248, 0.05);
    --cover-overlay-end: rgba(248, 236, 239, 0.16);
    --copy-btn-bg: #FAF1F3;
    --account-detail-color: #77676A;
    --mobile-app-height: 100svh;
    --mobile-top-nav-height: 56px;
    --mobile-cover-viewport-height: calc(var(--mobile-app-height) - var(--mobile-top-nav-height));
    --cover-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=800&q=80');
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--page-bg);
    color: var(--text-main);
    font-family: 'Gowun Batang', serif;
    word-break: keep-all;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

a,
button,
input,
select,
textarea,
summary {
    pointer-events: auto;
}

.mobile-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow-x: hidden;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 100;
    background: var(--top-nav-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--top-nav-border-color);
}

.nav-logo {
    font-size: var(--nav-logo-font-size);
    color: var(--nav-logo-color);
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.nav-logo-segment {
    white-space: pre;
}

.nav-logo-segment.is-korean {
    font-family: var(--nav-logo-korean-font);
}

.nav-logo-segment.is-latin {
    font-family: var(--nav-logo-latin-font);
}

.styled-text-segment {
    white-space: pre;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-date {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.85rem;
    color: var(--placeholder-color);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-pc-menu {
    display: none;
    gap: 12px;
}

.nav-pc-menu a {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-pc-menu a:hover {
    color: var(--primary-green);
}

@media (hover: hover) and (pointer: fine) and (min-width: 400px) {
    .nav-date {
        display: none;
    }

    .nav-pc-menu {
        display: flex;
    }
}

section {
    padding: 90px 24px;
    text-align: center;
}

.section-card {
    background-color: var(--surface-color);
}

.section-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-bottom: 50px;
    text-transform: uppercase;
}

.cover {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    max-height: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    background: var(--bg-color);
    padding: 110px 20px 24px;
    overflow: hidden;
    isolation: isolate;
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.04));
    z-index: 1;
}

.cover-visual {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    aspect-ratio: 4 / 5;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.cover-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    z-index: 0;
    background: var(--cover-base);
}

.cover-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--cover-overlay-start), var(--cover-overlay-end));
    pointer-events: none;
    z-index: 1;
}

.cover-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.01);
    will-change: opacity;
}

.cover-slide.is-active {
    opacity: 1;
}

.cover-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cover-date {
    font-size: var(--cover-date-font-size);
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--cover-date-color);
    margin-bottom: 20px;
}

.cover-title {
    font-size: var(--cover-title-font-size);
    letter-spacing: 0.1em;
    color: var(--cover-title-color);
    margin-top: -6px;
}

.cover-names {
    font-size: var(--cover-names-font-size);
    color: var(--cover-names-color);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-top: 0;
}

.cover-date .styled-text-segment.is-korean {
    font-family: var(--cover-date-korean-font);
}

.cover-date .styled-text-segment.is-latin {
    font-family: var(--cover-date-latin-font);
}

.cover-title .styled-text-segment.is-korean {
    font-family: var(--cover-title-korean-font);
}

.cover-title .styled-text-segment.is-latin {
    font-family: var(--cover-title-latin-font);
}

.cover-title .styled-text-segment.is-punctuation {
    margin-left: -0.16em;
    margin-right: -0.13em;
}

.cover-names .styled-text-segment.is-korean {
    font-family: var(--cover-names-korean-font);
}

.cover-names .styled-text-segment.is-latin {
    font-family: var(--cover-names-latin-font);
}

.greeting-text {
    font-size: 0.95rem;
    line-height: 2.2;
    color: var(--body-copy-color);
    margin-bottom: 60px;
}

.greeting-text p {
    margin: 0 0 24px;
}

.mobile-only-break,
.mobile-compact-copy {
    display: none;
}

.mobile-nowrap-line {
    display: inline;
}

.quote {
    font-style: italic;
    font-size: 0.94rem;
    font-weight: 400;
    color: var(--primary-green);
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    margin-bottom: 20px;
}

#quote-ko {
    margin-bottom: 1px;
}

.quote-en {
    font-size: 0.88rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.highlight-quote {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 35px 0;
    line-height: 1.8;
}

.parents-info {
    font-family: 'Gowun Batang', serif;
    font-size: 1rem;
    line-height: 2.2;
    background: var(--bg-color);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.family-row + .family-row {
    margin-top: 10px;
}

.family-parents {
    font-weight: 700;
    color: var(--text-main);
}

.family-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.family-relation {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 8px;
}

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

.countdown-subtitle {
    margin-bottom: 20px;
    color: var(--text-light);
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
}

.countdown-number {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-green);
}

.countdown-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.countdown-colon {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.2rem;
    color: var(--top-nav-border-color);
    font-weight: 700;
    padding-bottom: 15px;
}

.d-day-text {
    font-family: 'Gowun Batang', serif;
    font-size: 1.1rem;
    color: var(--text-main);
}

.d-day-text strong {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.swipe-gallery {
    display: flex;
    --swipe-item-width: 79%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0;
    touch-action: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.swipe-gallery::-webkit-scrollbar {
    display: none;
}

.swipe-gallery.is-dragging {
    cursor: grabbing;
}

.swipe-item {
    flex: 0 0 var(--swipe-item-width);
    scroll-snap-align: center;
    border-radius: 300px 300px 15px 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    aspect-ratio: 3 / 4;
    background: var(--soft-surface-color);
}

.swipe-item:first-child {
    margin-left: calc((100% - var(--swipe-item-width)) / 2);
}

.swipe-item:last-child {
    margin-right: calc((100% - var(--swipe-item-width)) / 2);
}

.swipe-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
    filter: blur(2px);
    opacity: 0.86;
    transform: scale(1.005);
}

.swipe-item.is-centered img {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.swipe-item.is-centered img:hover {
    transform: scale(1.03);
}

.swipe-hint {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.8rem;
    color: var(--placeholder-color);
    margin: 25px 0 20px;
    animation: swipeHintBlink 4.2s ease-in-out infinite;
    text-shadow: none;
    will-change: opacity, color, text-shadow;
}

.btn-view-all {
    background: var(--surface-color);
    border: 1px solid var(--primary-green);
    color: var(--text-main);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-view-all:hover {
    background: var(--soft-surface-color);
    color: var(--text-main);
    border-color: var(--primary-green);
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--surface-color);
    z-index: 9000;
    display: none;
    overflow-y: auto;
    padding-bottom: 50px;
}

@media (min-width: 481px) {
    .gallery-modal {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
    }
}

.gallery-modal.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: sticky;
    top: 0;
    background: var(--surface-color);
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-green);
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1;
}

.modal-grid {
    column-count: 2;
    column-gap: 12px;
    padding: 20px;
}

.modal-grid-item {
    width: 100%;
    margin-bottom: 12px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    background: var(--soft-surface-color);
}

.modal-grid-item img {
    width: 100%;
    display: block;
    cursor: pointer;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 72%;
    max-height: 66%;
    border-radius: 10px;
    object-fit: contain;
    -webkit-user-drag: auto;
    user-drag: auto;
    -webkit-user-select: auto;
    user-select: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    z-index: 10001;
}

.venue-info {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    font-family: 'Gowun Batang', serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--body-copy-color);
}

.venue-info strong {
    color: var(--text-main);
    font-weight: 600;
}

#map {
    width: 100%;
    height: 250px;
    background-color: var(--soft-surface-color);
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--placeholder-color);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    overflow: hidden;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

.nav-btn {
    min-width: 0;
    padding: 12px 6px;
    background: var(--surface-color);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.transit-info {
    text-align: left;
    background: var(--surface-color);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.transit-info h4 {
    margin: 0 0 10px 0;
    color: var(--body-copy-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transit-info p {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-light);
    white-space: pre-line;
}

.account-guide-text {
    margin-bottom: 30px;
}

.account-group {
    margin-bottom: 15px;
    text-align: left;
    background: var(--surface-color);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    overflow: hidden;
}

.account-toggle {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    font-family: 'Gowun Batang', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.account-toggle-label {
    font-family: 'Gowun Batang', serif;
    font-weight: 500;
}

.account-toggle-icon {
    flex: 0 0 auto;
    color: var(--text-light);
    transition: transform 0.32s ease, color 0.2s ease;
}

.account-group.is-open .account-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-green);
}

.account-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s ease;
}

.account-panel-inner {
    padding: 0 20px 18px;
}

.account-details {
    margin-top: 0;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--account-detail-color);
}

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.account-row-text {
    text-align: left;
}

.account-bank-name {
    font-weight: 500;
    color: var(--account-detail-color);
}

.account-holder {
    color: var(--text-light);
    font-size: 0.82rem;
}

.copy-btn {
    background: var(--copy-btn-bg);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
}

.rsvp-section {
    padding-bottom: 40px;
}

#rsvp-guide {
    margin-bottom: 24px;
}

.rsvp-form {
    text-align: left;
    background: var(--surface-color);
    padding: 30px 20px;
    border-radius: 12px;
    font-family: 'Noto Sans KR', sans-serif;
    margin-bottom: 30px;
}

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

.form-group label {
    font-family: 'Gowun Batang', serif;
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.rsvp-form .form-group label {
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-group select {
    background: var(--copy-btn-bg);
    color: var(--text-main);
}

.rsvp-form .form-group select {
    background: var(--soft-surface-color);
}

.rsvp-form .form-group select.is-placeholder-like {
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.share-buttons {
    display: flex;
    gap: 10px;
    padding: 0 24px 60px;
}

.share-btn {
    flex: 1;
    padding: 15px 0;
    background: var(--surface-color);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer {
    padding: 30px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

[data-aos="fade-up"] {
    transform: translate3d(0, 18px, 0);
}

[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swipeHintBlink {
    0%, 58%, 100% {
        opacity: 0.66;
        color: #E7D0D5;
        text-shadow: none;
    }

    76% {
        opacity: 0.78;
        color: #F0DEE2;
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.08), 0 0 10px rgba(224, 169, 180, 0.1);
    }

    88% {
        opacity: 0.92;
        color: #FFF9FB;
        text-shadow: 0 0 9px rgba(255, 255, 255, 0.18), 0 0 16px rgba(224, 169, 180, 0.16);
    }

    96% {
        opacity: 0.74;
        color: #EDD8DD;
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.05), 0 0 8px rgba(224, 169, 180, 0.08);
    }
}

@media (max-width: 480px) {
    .cover {
        height: var(--mobile-cover-viewport-height);
        min-height: var(--mobile-cover-viewport-height);
        max-height: var(--mobile-cover-viewport-height);
        justify-content: flex-start;
        gap: 12px;
        padding: 92px 20px 18px;
    }

    .cover > .cover-copy:last-child {
        margin-top: auto;
    }

    .cover-visual {
        aspect-ratio: auto;
        height: calc(var(--mobile-cover-viewport-height) - 225px);
    }

    .cover-date {
        margin-bottom: 12px;
    }

    .cover-title {
        margin-top: -4px;
    }

    .quote {
        padding-left: 1.15rem;
    }

    #quote-ko {
        font-size: 0.88rem;
    }

    #quote-en {
        font-size: clamp(0.66rem, 3.05vw, 0.78rem);
        white-space: nowrap;
        letter-spacing: -0.025em;
    }

    section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cover-names {
        font-size: var(--cover-names-font-size-mobile);
        margin-top: 0;
    }

    .lightbox-content {
        max-width: 84%;
        max-height: 72%;
    }

    .nav-btn {
        font-size: 0.82rem;
    }

    #invitation-paragraphs p {
        font-size: clamp(0.81rem, 3.5vw, 0.89rem);
        line-height: 2.05;
    }

    .mobile-only-break {
        display: block;
    }

    .invitation-paragraph-mobile-compact .desktop-linebreak-copy {
        display: none;
    }

    .invitation-paragraph-mobile-compact .mobile-compact-copy {
        display: block;
    }

    .invitation-paragraph-mobile-compact .mobile-nowrap-line {
        display: block;
        white-space: nowrap;
        letter-spacing: -0.045em;
    }

}
