@import url("https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700&family=SUIT:wght@300;400;600&display=swap");

:root {
    color-scheme: light;
    --bg: #fff7f5;
    --bg-soft: #fff1ed;
    --text: #4b3f3f;
    --accent: #e7a7a0;
    --accent-strong: #d87f86;
    --floral: #f8d7c8;
    --groom: #d3b4b2;
    --bride: #e3b9d2;
    --line: rgba(214, 160, 158, 0.6);
    --shadow: 0 18px 45px rgba(80, 47, 47, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "SUIT", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding-bottom: 120px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: -20% -10% auto;
    height: 140%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 230, 230, 0.7), transparent 55%),
    radial-gradient(circle at 50% 40%, rgba(255, 228, 217, 0.8), transparent 55%),
    linear-gradient(180deg, #fff9f6, #fff1ed 70%, #ffe6dd);
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 340px;
}

.hero__title {
    font-family: "Nanum Myeongjo", serif;
    font-size: 30px;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}

.hero__subtitle {
    margin: 0 0 36px;
    font-size: 15px;
    color: #6b5858;
}

.scroll-hint {
    margin-top: 36px;
    font-size: 13px;
    color: #8d7777;
}

.couple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.person__icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    box-shadow: var(--shadow);
    position: relative;
}

.person__icon::before {
    content: "";
    position: absolute;
    inset: 15px 22px auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.person__icon::after {
    content: "";
    position: absolute;
    width: 48px;
    height: 28px;
    left: 14px;
    top: 40px;
    border-radius: 20px 20px 16px 16px;
    background: rgba(255, 255, 255, 0.55);
}

.person--groom .person__icon {
    background-color: var(--groom);
}

.person--bride .person__icon {
    background-color: var(--bride);
}

.person__name {
    font-size: 15px;
    font-weight: 600;
}

.person__role {
    font-size: 12px;
    color: #816b6b;
}

.scrolly,
.closing {
    padding: 0 20px;
}

.venue-hero {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 100vh;
    background-image: url("https://dqigxqrbiahtqijknohh.supabase.co/storage/v1/object/sign/assets/main_hall_drawing_empty_road.png?token=eyJraWQiOiJzdG9yYWdlLXVybC1zaWduaW5nLWtleV84NDJjOGMwZS1kMWRkLTRmOGMtOWU1My1lMGQ5NjUwMDJlODMiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJhc3NldHMvbWFpbl9oYWxsX2RyYXdpbmdfZW1wdHlfcm9hZC5wbmciLCJpYXQiOjE3Njk0MDM0MTAsImV4cCI6MTgwMDkzOTQxMH0.jr4F4D9QU7TEEkgrXSJLa8iR1xljtbpWoLYWtABpmYs");
    background-size: cover;
    background-position: center;
    width: 100%;
}

.calendar-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.calendar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(92, 54, 54, 0.15);
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(92, 54, 54, 0.2);
}

.calendar-btn:active {
    transform: translateY(0);
}

.calendar-btn svg {
    width: 24px;
    height: 24px;
    color: #5c3636;
}

.calendar-btn span {
    font-size: 11px;
    color: #5c3636;
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(92, 54, 54, 0.15);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(92, 54, 54, 0.2);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    color: #5c3636;
}

.nav-btn span {
    font-size: 11px;
    color: #5c3636;
    font-weight: 500;
}

.scrolly {
    position: relative;
    min-height: 300vh;
}

.scrolly__sticky {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.scrolly__content {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.section-title {
    font-family: "Nanum Myeongjo", serif;
    font-size: 24px;
    margin: 0 0 12px;
    text-align: center;
}

.section-desc {
    margin: 0 auto 32px;
    text-align: center;
    font-size: 14px;
    color: #7a6565;
    max-width: 320px;
}

.network {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 520px;
    max-width: 360px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fffaf8, #fff4ef);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.network__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.line {
    fill: none;
    stroke: var(--line);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 6 8;
    opacity: 0.08;
    transition: opacity 0.2s ease;
    will-change: opacity;
}


.network__center {
    position: absolute;
    inset: 0;
}

.person--small .person__icon {
    width: 56px;
    height: 56px;
}

.person--small .person__name {
    font-size: 12px;
}

.friends {
    position: absolute;
    inset: 0;
}

.friend {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 24px rgba(92, 54, 54, 0.16);
    position: absolute;
    left: calc(var(--x, 50) * 1%);
    top: calc(var(--y, 50) * 1%);
    opacity: 0;
    transform: translate(-50%, -50%) translateY(18px) scale(0.92);
    transition: opacity 0.2s linear, transform 0.25s ease;
    will-change: transform, opacity;
}

.friend::before {
    content: "";
    position: absolute;
    inset: 12px 16px auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.friend::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 16px;
    left: 8px;
    top: 24px;
    border-radius: 14px 14px 10px 10px;
    background: rgba(255, 255, 255, 0.6);
}

.friend--groom {
    background-color: rgba(211, 180, 178, 0.9);
}

.friend--bride {
    background-color: rgba(227, 185, 210, 0.9);
}

.friend--focus {
    width: 56px;
    height: 56px;
    z-index: 3;
    box-shadow: 0 14px 32px rgba(92, 54, 54, 0.2);
}

.friend--focus::after {
    content: attr(data-name);
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #6b5858;
    white-space: nowrap;
}

.person--float {
    position: absolute;
    left: calc(var(--x, 50) * 1%);
    top: calc(var(--y, 50) * 1%);
    transform: translate(-50%, -50%);
}

.center-heart {
    width: 22px;
    height: 22px;
    z-index: 4;
    background: var(--accent-strong);
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(216, 127, 134, 0.35);
}

.center-heart::before,
.center-heart::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-strong);
}

.center-heart::before {
    top: -11px;
    left: 0;
}

.center-heart::after {
    left: 11px;
    top: 0;
}

.caption-section {
    padding: 60px 20px;
}

.highlight__caption {
    width: min(320px, 90%);
    margin: 0 auto;
    padding: 18px 20px;
    background: rgba(255, 249, 248, 0.92);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(92, 54, 54, 0.12);
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
}

.highlight__caption-part {
    display: block;
    color: #a89898;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.highlight__caption-part--visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight__caption-part--glow {
    color: #5c3636;
    text-shadow: 0 0 8px rgba(180, 120, 100, 0.4);
}

.closing__content {
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    border-radius: 30px;
    background: linear-gradient(180deg, #fff8f6, #fff1ed);
    box-shadow: var(--shadow);
}

.closing__flower {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #fff, transparent 45%),
    radial-gradient(circle at 20% 30%, var(--floral), transparent 55%),
    radial-gradient(circle at 70% 20%, #f8c9b8, transparent 55%),
    radial-gradient(circle at 30% 70%, #f4b8bf, transparent 55%),
    radial-gradient(circle at 70% 70%, #f9d9d0, transparent 55%);
}

.closing__text {
    margin: 8px 0;
    font-size: 15px;
    color: #6b5858;
}

/* Welcome Section (Default when no guest ID) */
.welcome {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff9f7 0%, #fff4f0 50%, #ffebe4 100%);
}

.welcome__content {
    text-align: center;
    max-width: 340px;
    position: relative;
    z-index: 1;
}

.welcome__date {
    font-size: 13px;
    color: #a08080;
    letter-spacing: 0.08em;
    margin: 0 0 32px;
    font-weight: 300;
}

.welcome__names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.welcome__name {
    font-family: "Nanum Myeongjo", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.welcome__name--groom {
    color: #8b7070;
}

.welcome__name--bride {
    color: #a07080;
}

.welcome__heart {
    width: 18px;
    height: 18px;
    background: var(--accent-strong);
    transform: rotate(-45deg);
    border-radius: 4px;
    position: relative;
    opacity: 0.85;
}

.welcome__heart::before,
.welcome__heart::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-strong);
}

.welcome__heart::before {
    top: -9px;
    left: 0;
}

.welcome__heart::after {
    left: 9px;
    top: 0;
}

.welcome__message {
    font-size: 15px;
    line-height: 2;
    color: #6b5858;
    margin: 0 0 40px;
    font-weight: 300;
}

.welcome__divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 40px;
}

.welcome__venue {
    margin-bottom: 60px;
}

.welcome__venue-name {
    font-family: "Nanum Myeongjo", serif;
    font-size: 18px;
    color: #5a4a4a;
    margin: 0 0 8px;
    font-weight: 400;
}

.welcome__venue-address {
    font-size: 13px;
    color: #9a8585;
    margin: 0;
    font-weight: 300;
}

.welcome__decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.welcome__flower {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.welcome__flower--1 {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -60px;
    background: radial-gradient(circle at 30% 30%, var(--floral), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.welcome__flower--2 {
    width: 140px;
    height: 140px;
    bottom: 80px;
    left: -50px;
    background: radial-gradient(circle at 70% 30%, #f4c4d0, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.welcome__flower--3 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    right: 20px;
    background: radial-gradient(circle at 50% 50%, #e8d0c0, transparent 70%);
    animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #816b6b;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator__text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator__icon {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.6;
    }
}

/* Pictures Section */
.pictures {
    padding: 60px 20px;
}

.pictures__content {
    max-width: 400px;
    margin: 0 auto;
}

.pictures__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.pictures__item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(92, 54, 54, 0.12);
    background: var(--bg-soft);
}

.pictures__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.pictures__item:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .page {
        align-items: center;
    }

    .hero__content {
        max-width: 420px;
    }

    .network {
        width: 360px;
    }

    .welcome__name {
        font-size: 32px;
    }

    .welcome__message {
        font-size: 16px;
    }

    .pictures__content {
        max-width: 500px;
    }

    .pictures__grid {
        gap: 20px;
    }
}
