:root {
    --teal: #5cb1c1;
    --yellow: #ffeab0;
    --ivory: #f9f5f1;
    --white: #ffffff;
    --ink: #2f6069;
    --serif: "DM Serif Text", "Libre Bodoni", serif;
    --bodoni: "Libre Bodoni", "DM Serif Text", serif;
    --jp: "Noto Sans JP", "Shippori Mincho", serif;
    --kr: "Noto Sans KR", "Noto Sans JP", sans-serif;
    --phone-width: 390px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--teal);
    background: var(--teal);
    font-family: var(--jp);
    letter-spacing: 0;
}

html[lang="ko"] body {
    font-family: var(--kr);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.language-gate {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--teal);
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.language-gate.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.language-panel {
    width: min(330px, calc(100vw - 48px));
    text-align: center;
}

.language-kicker {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 16px;
    letter-spacing: 2px;
}

.language-panel h1 {
    margin: 0 0 28px;
    font-family: var(--bodoni);
    font-size: 58px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 5.8px;
}

.language-options {
    display: grid;
    gap: 12px;
}

.language-options button {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--teal);
    border-radius: 999px;
    color: var(--yellow);
    background: var(--teal);
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 1.8px;
    display: grid;
    place-items: center;
    gap: 2px;
}

.language-options button[aria-pressed="true"] {
    box-shadow: 0 0 0 3px rgba(92, 177, 193, 0.2);
}

.language-options small {
    display: block;
    font-family: var(--jp);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    opacity: 0.9;
}

.preview-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(390px, 1fr);
}

.side-card {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 32px 28px;
    display: grid;
    align-content: start;
    gap: 36px;
    color: var(--teal);
    background: var(--yellow);
}

.side-names {
    display: grid;
    justify-items: center;
    gap: 4px;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 3.6px;
}

.side-names span:nth-child(2) {
    font-size: 18px;
    letter-spacing: 3px;
}

.side-label {
    margin: 0 0 24px;
    padding-left: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1;
    letter-spacing: 2.2px;
}

.side-label::after {
    content: "";
    height: 1px;
    background: currentColor;
}

.side-date-grid {
    width: 260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 52px 80px 1fr;
    align-items: center;
    font-family: var(--bodoni);
    font-size: 48px;
    line-height: 1.4;
    letter-spacing: 4.8px;
}

.side-date-grid span:first-child {
    align-self: start;
    padding-top: 13px;
    font-size: 17px;
    line-height: 1.19;
    letter-spacing: 1.7px;
}

.side-date-grid span:last-child {
    text-align: right;
}

.side-slash {
    height: 110px;
    background: linear-gradient(
        64deg,
        transparent 49.4%,
        currentColor 49.8%,
        currentColor 50.4%,
        transparent 50.8%
    );
}

.side-weekday {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 1.3px;
    text-align: center;
}

.side-time {
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 8px auto 0;
    padding: 8px 16px;
    border-radius: 2px;
    color: var(--yellow);
    background: var(--teal);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.8px;
    text-align: center;
    white-space: pre-line;
}

.side-message {
    padding: 0 24px;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 1.2px;
}

.side-deadline {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.side-deadline span {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2.56px;
}

.side-deadline small {
    padding-bottom: 3px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.6px;
}

.side-message a {
    width: 100%;
    margin-top: 20px;
    padding: 20px 0;
    border-radius: 999px;
    color: var(--yellow);
    background: var(--teal);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 1.2px;
}

.side-brand {
    margin: 0;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 1px;
}

.phone-canvas {
    position: relative;
    width: min(var(--phone-width), 100%);
    min-height: 100vh;
    justify-self: center;
    overflow: hidden;
    background: var(--yellow);
    box-shadow: 0 0 0 1px rgba(255, 234, 176, 0.28);
}

.hero {
    position: relative;
    min-height: 100svh;
    background: var(--teal);
    overflow: hidden;
}

.hero-mark {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 2;
    width: 37px;
    height: 159px;
    transform: translateX(-50%);
    opacity: 0.75;
}

.hero-mark span {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--yellow);
    border-radius: 999px;
}

.hero-photo-frame {
    position: absolute;
    inset: 12vh 56px 14vh;
    overflow: hidden;
    border-radius: 999px 999px 80px 80px;
    animation: slideInLeft 1.1s ease both;
}

.hero-photo,
.rounded-image,
.profile-photo,
.gallery-photo {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-photo {
    height: 100%;
}

.hero-caption {
    position: absolute;
    z-index: 3;
    margin: 0;
    color: var(--yellow);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    letter-spacing: 3.04px;
    writing-mode: vertical-rl;
}

.hero-caption::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 54px;
    margin-top: 12px;
    background: currentColor;
}

.hero-caption-top {
    top: 23%;
    left: 25px;
}

.hero-caption-mid {
    top: 32%;
    right: 28px;
}

.hero-caption-bottom {
    bottom: 22%;
    left: 28px;
}

.hero-title {
    position: absolute;
    right: 18px;
    bottom: 8vh;
    z-index: 4;
    display: grid;
    gap: 0;
    color: var(--yellow);
    font-family: var(--bodoni);
    font-size: 70px;
    font-weight: 400;
    line-height: 0.88;
}

.hero-title span {
    animation: slideDown 0.8s ease both;
}

.hero-title span:nth-child(2) {
    animation-delay: 0.18s;
}

.hero-title span:nth-child(3) {
    animation-delay: 0.36s;
}

section {
    position: relative;
}

.countdown {
    padding: 24px 20px;
    background: var(--yellow);
}

.countdown-card {
    padding: 32px 39px;
    border-radius: 80px;
    color: var(--yellow);
    background: var(--teal);
}

.event-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    color: var(--yellow);
}

.event-line span:nth-child(1) {
    font-family: var(--bodoni);
    font-size: 26px;
    line-height: 1;
    letter-spacing: 2.6px;
}

.event-line span:nth-child(2) {
    font-family: var(--serif);
    font-size: 56px;
    line-height: 1;
    letter-spacing: 6.72px;
}

.event-line span:nth-child(3) {
    font-family: var(--bodoni);
    font-size: 66px;
    line-height: 1;
    letter-spacing: 6.6px;
}

.countdown-title {
    width: 240px;
    margin: 12px auto 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1;
    letter-spacing: 2.8px;
}

.countdown-title i,
.countdown-grid i {
    height: 1px;
    background: currentColor;
}

.countdown-grid {
    display: grid;
    grid-template-columns: 49px 1px 49px 1px 49px 1px 49px;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.countdown-grid i {
    align-self: center;
    width: 1px;
    height: 29px;
}

.countdown-grid strong {
    display: block;
    font-family: var(--bodoni);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1.92px;
}

.countdown-grid span {
    display: block;
    margin-top: 4px;
    font-family: var(--serif);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 1.2px;
}

.section-soft {
    background: var(--yellow);
}

.greeting {
    padding: 24px 20px 40px;
}

.section-title {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-bottom: 32px;
}

.section-title p {
    margin: 0;
    font-family: var(--serif);
    font-size: 36px;
    line-height: 1;
    letter-spacing: 3.6px;
}

.section-title span {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 3px;
}

.rounded-image {
    height: 420px;
    margin-bottom: 32px;
    border-radius: 80px;
    object-position: 58% center;
}

.vertical-message {
    display: grid;
    gap: 12px;
    justify-items: center;
    color: var(--teal);
    font-size: 14px;
    line-height: 2;
    letter-spacing: 3.5px;
}

.vertical-message p {
    margin: 0;
}

.host {
    padding: 64px 20px 80px;
    color: var(--yellow);
    background: var(--teal);
}

.wave-line {
    height: 38px;
    margin: -64px -20px 26px;
    color: var(--yellow);
    opacity: 0.95;
    background: radial-gradient(
            70px 20px at 40px 36px,
            transparent 67%,
            currentColor 68%,
            currentColor 70%,
            transparent 71%
        )
        repeat-x;
    background-size: 96px 38px;
}

.section-title-light {
    color: var(--yellow);
}

.profile-card {
    display: grid;
    gap: 20px;
    padding: 20px;
    border-radius: 80px;
    color: var(--teal);
    background: var(--yellow);
}

.profile-card + .profile-card {
    margin-top: 24px;
}

.profile-photo-wrap {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 66px 66px 28px 28px;
}

/* Soft bright lift (no blur): light veil + soft-light blend */
.profile-photo-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background: rgba(255, 250, 242, 0.22);
    mix-blend-mode: soft-light;
}

.profile-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 90% 75% at 50% 35%,
        rgba(255, 252, 246, 0.42) 0%,
        rgba(255, 248, 235, 0.14) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    mix-blend-mode: soft-light;
}

.profile-photo {
    height: 100%;
    /* Keep detail; gentle warm lift only */
    filter: brightness(1.18) contrast(0.94) saturate(1.03) sepia(0.05);
}

.profile-photo.bride {
    object-position: 43% center;
    /* Bright with more warm skin tone */
    filter: brightness(1.26) contrast(0.92) saturate(1.08) sepia(0.16);
}

/* Warmer soft-light lift for bride only */
.profile-photo-wrap:has(.bride)::before {
    background: rgba(255, 244, 230, 0.28);
}

.profile-photo-wrap:has(.bride)::after {
    background: radial-gradient(
        ellipse 90% 75% at 50% 35%,
        rgba(255, 246, 232, 0.48) 0%,
        rgba(255, 236, 214, 0.16) 55%,
        rgba(255, 255, 255, 0) 100%
    );
}

.profile-role {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 1.2px;
}

.profile-card h2 {
    margin: 0 0 2px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 2px;
}

.profile-card span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 1.4px;
}

.profile-card p:last-child {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 1.4px;
}

.gallery {
    padding: 40px 20px;
    background: var(--yellow);
}

.gallery-grid {
    display: grid;
    gap: 18px;
}

.gallery-photo {
    min-height: 330px;
    height: 330px;
    border-radius: 80px;
}

.photo-a {
    object-position: left center;
}

.photo-b {
    min-height: 230px;
    height: 230px;
    border-radius: 999px;
    object-position: 60% 42%;
}

.photo-c {
    object-position: right center;
}

.photo-d {
    min-height: 290px;
    height: 290px;
    border-radius: 999px;
    object-position: center 40%;
}

.information {
    padding: 64px 20px 56px;
    color: var(--teal);
    background: var(--yellow);
}

.info-top {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.info-top p {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 2.8px;
}

.info-top h2 {
    margin: 0;
    font-family: var(--bodoni);
    font-size: 46px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 4.6px;
}

.info-weekday {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 2.4px;
}

.time-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--bodoni);
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 2.2px;
}

.time-row i {
    width: 18px;
    height: 1px;
    background: currentColor;
}

.info-block {
    margin-top: 32px;
    padding: 32px 24px;
    border: 1px solid var(--teal);
    border-radius: 80px;
    background: rgba(255, 255, 255, 0.25);
}

.info-block h3 {
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 2.8px;
    text-align: center;
}

.info-block dl {
    display: grid;
    gap: 16px;
    margin: 0;
}

.info-block dl div {
    display: grid;
    gap: 5px;
}

.info-block dt {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.8px;
}

.info-block dd {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 1.4px;
    white-space: pre-line;
}

.map-button {
    display: grid;
    place-items: center;
    min-height: 48px;
    margin-top: 28px;
    border-radius: 999px;
    color: var(--yellow);
    background: var(--teal);
    font-family: var(--serif);
    letter-spacing: 1.6px;
}

.message {
    padding: 40px 20px;
    background: var(--yellow);
}

.message-card {
    padding: 32px 24px;
    border: 1px solid var(--teal);
    color: var(--teal);
    text-align: center;
}

.message-card + .message-card {
    margin-top: 20px;
}

.message-title {
    margin: 0 0 22px;
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1;
    letter-spacing: 2.8px;
}

.message-card p:last-child {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 1.4px;
}

.rsvp {
    padding: 64px 20px 128px;
    background: var(--yellow);
}

.rsvp-inner {
    padding: 44px 20px 56px;
    border: 1px solid var(--teal);
    border-radius: 8px;
    background: var(--white);
    text-align: center;
}

.rsvp-logo {
    margin: 0;
    font-family: var(--serif);
    font-size: 42px;
    line-height: 1.5;
    letter-spacing: 6.72px;
}

.rsvp-inner h2 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 1.4px;
}

.rsvp-inner > p:not(.rsvp-logo) {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 2;
    letter-spacing: 1.4px;
}

.rsvp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    width: min(100%, 280px);
    margin-top: 4px;
    scroll-margin-bottom: 96px;
    border-radius: 999px;
    color: var(--yellow);
    background: var(--teal);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 1.4px;
    text-decoration: none;
}

.rsvp-note {
    margin: 18px 0 0;
    color: var(--teal);
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 1.1px;
}

.thankyou {
    min-height: 240px;
    padding: 56px 20px 110px;
    display: grid;
    place-items: center;
    gap: 10px;
    color: var(--teal);
    background: var(--yellow);
    text-align: center;
}

.thankyou p {
    margin: 0;
    font-family: var(--serif);
    font-size: 42px;
    line-height: 1;
    letter-spacing: 4.2px;
}

.thankyou span {
    font-family: var(--serif);
    font-size: 14px;
    letter-spacing: 2.4px;
}

.floating-footer {
    position: fixed;
    left: calc(50vw + 180px);
    bottom: 0;
    z-index: 20;
    width: min(var(--phone-width), 100vw);
    padding: 6px 10px;
    display: grid;
    grid-template-columns: 68px 1fr 1fr;
    gap: 6px;
    transform: translateX(-50%);
    color: var(--yellow);
    background: var(--teal);
}

.floating-footer button,
.floating-footer a {
    min-width: 0;
    min-height: 54px;
    border: 1px solid var(--yellow);
    border-radius: 4px;
    display: grid;
    place-items: center;
    gap: 2px;
    text-align: center;
}

.floating-footer button {
    border-color: transparent;
    color: var(--yellow);
    background: var(--teal);
    font-family: var(--serif);
    font-size: 9px;
    letter-spacing: 0.36px;
}

.floating-footer a:first-of-type {
    background: transparent;
}

.floating-footer a:last-of-type {
    color: var(--teal);
    background: var(--yellow);
}

.floating-footer span {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 1.92px;
}

.floating-footer small {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateZ(0);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@media (max-width: 767px) {
    body {
        background: var(--yellow);
    }

    .preview-shell {
        display: block;
    }

    .side-card {
        display: none;
    }

    .phone-canvas {
        width: 100%;
        box-shadow: none;
    }

    .floating-footer {
        left: 50%;
        width: 100vw;
    }
}

@media (min-width: 768px) {
    .phone-canvas {
        margin: 0 auto;
    }
}
