/* ── Variables ── */
:root {
    --bg-parchment: #f4efea;
    --bg-cream: #fcfaf5;
    --text-dark: #5c5549;
    --gold: #b39b69;
    --gold-light: #d4c4a0;
    --accent-blue: #dce5ec;
    --sky-blue: #c5d8ea;
    --marble-blue: #b8cde0;
    --wax: #8b6914;
    --wax-dark: #6b4f0a;

    --font-serif: 'Cinzel', serif;
    --font-text: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;

    --phone-shell-width: min(430px, 100vw);
    --invite-card-width: calc(var(--phone-shell-width) * 0.843);
    --invite-hero-offset: calc(var(--phone-shell-width) * 0.72);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-parchment);
    color: var(--text-dark);
    font-family: var(--font-text);
    text-align: center;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Full reference background (columns, drapes, parchment, sky) ── */
.site-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.site-background__image {
    position: absolute;
    inset: -2%;
    background-image: url('assets/reference.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    transform: scale(1.02);
}

.site-background__fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(252, 250, 245, 0.02) 0%,
            rgba(252, 250, 245, 0.1) 50%,
            rgba(244, 239, 234, 0.14) 100%
        ),
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 8%,
            rgba(252, 250, 245, 0.06) 20%,
            rgba(252, 250, 245, 0.14) 50%,
            rgba(252, 250, 245, 0.06) 80%,
            transparent 92%,
            transparent 100%
        );
}

/* ── Page frame ── */
.page-frame {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    container-type: inline-size;
    container-name: invitation;
    overflow-x: hidden;
    width: 100%;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.script-text {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--gold);
    margin: 10px 0;
    line-height: 1.2;
}

.small-script { font-size: 1.8rem; }
.divider { margin: 50px auto; width: 55%; }
.divider hr {
    border: none;
    border-top: 1px solid var(--gold);
    opacity: 0.45;
}

body.intro-active .site-background {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

/* Zarf sayfası arka planı */
.intro-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.intro-background__image {
    position: absolute;
    inset: 0;
    background-image: url('assets/zarf-arkaplan.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

body.intro-active {
    background-color: #f0ebe3;
}

body.intro-active .page-frame {
    position: relative;
    z-index: 1;
}

body.site-active {
    background-color: #111;
}

body.site-active .site-background {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: var(--phone-shell-width);
    height: 100dvh;
    overflow: hidden;
}

body.site-active .site-background__image {
    inset: 0;
    overflow: hidden;
    background: none;
    transform: none;
}

body.site-active .site-background__photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-width: 100%;
    max-width: none;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body.site-active .site-background__fade {
    background: linear-gradient(
        180deg,
        rgba(243, 237, 228, 0.02) 0%,
        transparent 18%,
        rgba(243, 237, 228, 0.04) 55%,
        rgba(243, 237, 228, 0.08) 100%
    );
}

body.site-active .page-frame {
    max-width: var(--phone-shell-width);
    margin: 0 auto;
    overflow-x: hidden;
}

body.site-active .invitation-content {
    position: relative;
    z-index: 1;
    padding: var(--invite-hero-offset) 14px 80px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.invitation-hero {
    margin: 0 auto 28px;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.invitation-hero__image {
    display: block;
    width: var(--invite-card-width);
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 8px 22px rgba(92, 85, 73, 0.1);
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Çocuklar uykuya notu ── */
.kids-note {
    width: var(--invite-card-width);
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 18px 16px 16px;
    box-sizing: border-box;
    background: rgba(252, 250, 245, 0.72);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(229, 223, 211, 0.95);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(92, 85, 73, 0.08);
}

.kids-note__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 6px;
    max-width: 180px;
    color: var(--gold);
    font-size: 0.8rem;
    opacity: 0.7;
}

.kids-note__divider::before,
.kids-note__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.kids-note__title {
    font-size: 1.9rem;
    margin: 4px 0 6px;
    line-height: 1.15;
}

.kids-note__text {
    font-family: var(--font-serif);
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0.8;
}

.event-schedule {
    margin: 0 auto 44px;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.event-schedule__image {
    display: block;
    width: var(--invite-card-width);
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 8px 22px rgba(92, 85, 73, 0.1);
    user-select: none;
    -webkit-user-drag: none;
}

body.site-active .save-the-date,
body.site-active .rsvp-frame,
body.site-active .detail-card,
body.site-active .rsvp-form,
body.site-active .rsvp-attendance,
body.site-active .rsvp-message-card {
    background: rgba(255, 252, 247, 0.55);
    backdrop-filter: blur(2px);
}

body.site-active .unfold-sequence,
body.site-active .our-story,
body.site-active .wedding-details {
    background: transparent;
    box-shadow: none;
}

/* ── Hero / intro envelope ── */
.hero-stage {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px 50px;
    background: transparent;
    transition: opacity 0.9s ease, transform 0.9s ease, min-height 0.6s ease;
}

.hero-stage.is-complete {
    min-height: 0;
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    padding: 0;
}

.intro-scene {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.intro-scene:focus-visible {
    box-shadow: 0 0 0 3px var(--gold-light);
    border-radius: 8px;
}

.intro-scene.is-locked {
    pointer-events: none;
    cursor: default;
}

.intro-state {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-state img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.12));
}

/* Closed envelope — matches image 1 */
.intro-closed {
    opacity: 1;
    transform: scale(1);
    max-width: min(540px, 94vw);
    margin: 0 auto;
}

.intro-closed img {
    border-radius: 2px;
}

/* Open scene — matches image 2 */
.intro-open {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    pointer-events: none;
    max-width: 920px;
    margin: 0 auto;
}

.intro-open img {
    max-width: min(920px, 98vw);
}

/* Opening animation */
.intro-scene.is-opening .intro-closed {
    opacity: 0;
    transform: scale(0.97) translateY(-8px);
}

.intro-scene.is-open .intro-closed {
    visibility: hidden;
    position: absolute;
    opacity: 0;
}

.intro-scene.is-open .intro-open {
    position: relative;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.open-prompt {
    margin-top: 32px;
    text-align: center;
    transition: opacity 0.4s ease;
}

.open-prompt.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.open-hint {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dark);
    animation: hintFloatPulse 2.8s ease-in-out infinite;
}

@keyframes hintFloatPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.65;
    }
    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.open-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    color: var(--gold);
    font-size: 0.55rem;
    letter-spacing: 2px;
}

.open-divider::before,
.open-divider::after {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

/* ── Invitation content (hidden until unlocked) ── */
/* ── Main invitation page ── */
.site-header {
    padding: 48px 20px 24px;
}

.site-header .monogram {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--gold);
    border: 1px solid var(--gold);
    display: inline-block;
    padding: 14px 22px;
    border-radius: 50%;
    background: rgba(252, 250, 245, 0.75);
    box-shadow: 0 4px 20px rgba(179, 155, 105, 0.15);
}

.site-header .monogram span {
    font-size: 1.3rem;
    vertical-align: middle;
}

.invitation-content {
    position: relative;
    z-index: 5;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.invitation-content section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.invitation-content section.revealed,
.invitation-content footer.revealed {
    opacity: 1;
    transform: translateY(0);
}

.invitation-content footer {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

body.site-active .invitation-content.is-visible {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes countdownPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); color: #c4a86a; }
    100% { transform: scale(1); }
}

body.site-active .countdown-script,
body.site-active .countdown-eyebrow,
body.site-active .rsvp-eyebrow,
body.site-active footer .script-text {
    animation: textFloat 4.5s ease-in-out infinite;
}

.invitation-content section.revealed > h2,
.invitation-content section.revealed > .countdown-date,
.invitation-content section.revealed .rsvp-frame > h2 {
    animation: fadeSlideUp 0.75s ease both;
}

.invitation-content section.revealed .countdown__unit {
    animation: fadeSlideUp 0.65s ease both;
}

.invitation-content section.revealed .countdown__unit:nth-child(1) { animation-delay: 0.05s; }
.invitation-content section.revealed .countdown__unit:nth-child(2) { animation-delay: 0.12s; }
.invitation-content section.revealed .countdown__unit:nth-child(3) { animation-delay: 0.19s; }
.invitation-content section.revealed .countdown__unit:nth-child(4) { animation-delay: 0.26s; }

.wedding-details.revealed .detail-card {
    animation: fadeSlideUp 0.7s ease both;
}

.wedding-details.revealed .detail-card:nth-child(1) { animation-delay: 0.06s; }
.wedding-details.revealed .detail-card:nth-child(2) { animation-delay: 0.14s; }
.wedding-details.revealed .detail-card:nth-child(3) { animation-delay: 0.22s; }
.wedding-details.revealed .detail-card:nth-child(4) { animation-delay: 0.30s; }

.countdown__value.is-ticking {
    animation: countdownPop 0.45s ease;
}

.invitation-content footer.revealed h2 {
    animation: fadeSlideUp 0.8s ease both;
}

/* ── Unfold sequence storyboard ── */
.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-bottom: 28px;
    color: var(--text-dark);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.step { width: 140px; }

.step-visual {
    width: 100%;
    height: 90px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid var(--gold-light);
    background: var(--bg-cream) center/cover no-repeat;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.step-1 { background-image: url('assets/reference.png'); background-size: 800%; background-position: 50% 2%; }
.step-2 { background-image: url('assets/reference.png'); background-size: 800%; background-position: 62% 2%; }
.step-3 { background-image: url('assets/reference.png'); background-size: 800%; background-position: 74% 2%; }
.step-4 { background-image: url('assets/reference.png'); background-size: 800%; background-position: 86% 2%; }

.step-title {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.step-desc {
    font-style: italic;
    font-size: 0.75rem;
    color: #888;
}

.step-arrow {
    color: var(--gold);
    font-size: 1.4rem;
    user-select: none;
}

/* ── Save the date ── */
.save-the-date {
    width: var(--invite-card-width);
    max-width: 100%;
    margin: 60px auto;
    padding: 28px 16px;
    box-sizing: border-box;
    background: rgba(252, 250, 245, 0.72);
    backdrop-filter: blur(2px);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.wreath-card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 28px 16px;
    border: 2px solid var(--gold);
    border-radius: 50% / 12%;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    box-sizing: border-box;
}

.wreath-card::before,
.wreath-card::after {
    content: '❧';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.6;
}

.wreath-card::before { left: 12px; }
.wreath-card::after { right: 12px; transform: translateY(-50%) scaleX(-1); }

.save-the-date h2 {
    font-size: 2.2rem;
    letter-spacing: 5px;
    margin: 8px 0;
}

.date {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 18px 0;
}

.date span {
    font-size: 1.8rem;
    color: var(--gold);
    margin: 0 8px;
}

.location-main {
    font-family: var(--font-serif);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.times {
    font-size: 0.85rem;
    letter-spacing: 1px;
    line-height: 1.8;
}

/* ── Timeline ── */
.our-story { margin: 70px 0; }

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
    gap: 8px;
}

.timeline-line {
    position: absolute;
    top: 110px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
    z-index: 1;
}

.timeline-item {
    width: 18%;
    position: relative;
    z-index: 2;
}

.arch-img {
    width: 100%;
    aspect-ratio: 2/3;
    border-top-left-radius: 50% 22%;
    border-top-right-radius: 50% 22%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid var(--gold-light);
    background: center/cover no-repeat;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.arch-1 { background-image: linear-gradient(160deg, #dce5ec, #b8cde0); }
.arch-2 { background-image: linear-gradient(160deg, #e8ddd0, #c4b5a0); }
.arch-3 { background-image: linear-gradient(160deg, #d0e1f9, #a8c4e0); }
.arch-4 { background-image: linear-gradient(160deg, #f0e6d8, #d4c4a8); }
.arch-5 { background-image: linear-gradient(160deg, #e0ecf5, #b8cde0); }

.timeline-dot {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: 0 0 0 3px rgba(179, 155, 105, 0.2);
}

.timeline-item h4 {
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.timeline-item p {
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.4;
}

/* ── Countdown ── */
.countdown-section {
    width: var(--invite-card-width);
    max-width: 100%;
    margin: 4px auto 44px;
    padding: 22px 14px 18px;
    box-sizing: border-box;
    background: rgba(252, 250, 245, 0.72);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(229, 223, 211, 0.95);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(92, 85, 73, 0.08);
}

.countdown-eyebrow {
    font-family: var(--font-serif);
    font-size: 0.68rem;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 6px;
}

.countdown-section h2 {
    font-size: 1.05rem;
    letter-spacing: 4px;
    margin-bottom: 2px;
}

.countdown-script {
    font-size: 1.55rem;
    margin: 2px 0 6px;
    line-height: 1.15;
}

.countdown-date {
    font-family: var(--font-serif);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    opacity: 0.85;
}

.countdown-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px auto 0;
    max-width: 180px;
    color: var(--gold);
    font-size: 0.55rem;
    opacity: 0.7;
}

.countdown-divider::before,
.countdown-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 14px;
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 4px 8px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(229, 223, 211, 0.85);
    border-radius: 4px;
}

.countdown__value {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown__label {
    font-family: var(--font-serif);
    font-size: 0.52rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0.8;
}

.countdown.is-complete {
    display: none;
}

.countdown-complete {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--gold);
    margin-top: 14px;
}

.countdown-complete:not([hidden]) {
    display: block;
}

/* ── Wedding details ── */
.wedding-details { margin: 70px 0; }

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
    max-width: 100%;
}

.detail-card {
    background: rgba(253, 251, 247, 0.88);
    backdrop-filter: blur(3px);
    border: 1px solid #e5dfd3;
    padding: 28px 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    border: 1px solid var(--gold-light);
    background: center/70% no-repeat;
    background-color: rgba(220, 229, 236, 0.3);
}

.icon-church {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b39b69' stroke-width='1.2'%3E%3Cpath d='M12 2v4M8 6h8M6 10h12v12H6zM10 14h4v8h-4z'/%3E%3Cpath d='M12 2l-2 4h4z'/%3E%3C/svg%3E");
}

.icon-villa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b39b69' stroke-width='1.2'%3E%3Cpath d='M3 12l9-8 9 8M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.icon-column {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b39b69' stroke-width='1.2'%3E%3Crect x='8' y='4' width='8' height='3' rx='1'/%3E%3Crect x='9' y='7' width='6' height='13'/%3E%3Cline x1='7' y1='20' x2='17' y2='20'/%3E%3C/svg%3E");
}

.icon-dress {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b39b69' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c-1.2 0-2.2.8-2.7 2.1L7.5 8h9l-1.8-2.9C14.2 3.8 13.2 3 12 3z'/%3E%3Cpath d='M7.5 8L6 21h12l-1.5-13'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M9.5 12h5'/%3E%3C/svg%3E");
}

.detail-card h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 8px;
    width: 100%;
}

.detail-card p {
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 4px;
}

.bold { font-weight: 600; }

.btn-outline {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--text-dark);
    padding: 9px 18px;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.3s, color 0.3s;
    border-radius: 2px;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--gold);
    color: #fff;
}

.laurel-wreath {
    border: 2px solid var(--gold);
    border-radius: 50%;
    padding: 28px 12px;
    width: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.laurel-wreath.compact {
    min-height: 120px;
    padding: 20px 10px;
}

.laurel-wreath.compact h3 {
    font-size: 0.85rem;
    line-height: 1.5;
}

.dress-code-text {
    font-size: 1.45rem !important;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.35em;
    white-space: nowrap;
    margin-top: 4px;
}

/* ── RSVP ── */
.rsvp-section {
    margin: 90px 0 70px;
    padding: 0 8px;
}

.rsvp-frame {
    position: relative;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 36px 42px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.94) 0%, rgba(248, 243, 235, 0.9) 100%);
    border: 1px solid rgba(179, 155, 105, 0.45);
    border-radius: 4px;
    box-shadow:
        0 20px 50px rgba(92, 85, 73, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
}

.rsvp-frame__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.7;
}

.rsvp-frame__corner--tl { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.rsvp-frame__corner--tr { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.rsvp-frame__corner--bl { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.rsvp-frame__corner--br { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }

.rsvp-eyebrow {
    font-family: var(--font-serif);
    font-size: 0.72rem;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 10px;
}

.rsvp-section h2 {
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 6px;
}

.rsvp-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    margin-top: 40px;
    align-items: start;
    max-width: 100%;
}

.rsvp-form {
    background: rgba(255, 255, 255, 0.55);
    padding: 32px 28px 28px;
    border: 1px solid rgba(229, 223, 211, 0.9);
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border-radius: 3px;
    position: relative;
}

.rsvp-form::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(179, 155, 105, 0.18);
    pointer-events: none;
    border-radius: 2px;
}

.rsvp-form__header {
    text-align: center;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(179, 155, 105, 0.25);
}

.rsvp-form__seal {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c49a2a, var(--wax) 55%, var(--wax-dark));
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    position: relative;
}

.rsvp-form__seal::after {
    content: '✦';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(70, 45, 8, 0.65);
    font-size: 0.85rem;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-subtitle {
    font-family: var(--font-text);
    font-style: italic;
    font-size: 0.88rem;
    color: #8a8278;
}

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

.form-group label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.label-optional {
    font-family: var(--font-text);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: #aaa;
    font-size: 0.75rem;
}

.rsvp-form input,
.rsvp-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(204, 196, 184, 0.8);
    background: rgba(255, 255, 255, 0.65);
    font-family: var(--font-text);
    font-size: 0.92rem;
    color: var(--text-dark);
    border-radius: 2px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
    color: #b5aea3;
    font-style: italic;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(179, 155, 105, 0.12);
}

.rsvp-form textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.55;
}

.btn-rsvp {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, rgba(179, 155, 105, 0.12) 0%, rgba(179, 155, 105, 0.04) 100%);
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-rsvp:hover {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 6px 18px rgba(179, 155, 105, 0.28);
}

.btn-rsvp:active {
    transform: translateY(1px);
}

.rsvp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rsvp-attendance {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(229, 223, 211, 0.9);
    padding: 24px 20px;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.rsvp-form .rsvp-attendance {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.35);
}

.rsvp-step-label {
    font-family: var(--font-serif);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
}

.rsvp-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 220px;
    margin: 0 auto;
}

.choice-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(229, 223, 211, 0.95);
    padding: 10px 14px;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.choice-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-light);
    box-shadow: 0 8px 18px rgba(179, 155, 105, 0.12);
}

.choice-card.is-selected {
    border-color: var(--gold);
    background: rgba(248, 244, 237, 0.95);
    box-shadow: 0 6px 16px rgba(179, 155, 105, 0.16);
}

.choice-icon {
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 4px;
    opacity: 0.8;
}

.choice-icon--muted {
    opacity: 0.55;
}

.choice-card h3 {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.choice-card p {
    font-family: var(--font-script);
    font-size: 0.95rem;
    color: var(--gold);
    line-height: 1;
}

.rsvp-message-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(229, 223, 211, 0.9);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border-radius: 3px;
    flex: 1;
}

.dove-emblem {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b39b69' stroke-width='1.1'%3E%3Cpath d='M4 12c2-4 6-6 8-6s6 2 8 6c-2 2-4 3-6 3s-4-1-6-3z'/%3E%3Cpath d='M12 6v3M9 8l1 1M15 8l-1 1'/%3E%3C/svg%3E")
        center/contain no-repeat;
    opacity: 0.75;
}

.rsvp-quote {
    font-family: var(--font-script);
    font-size: 1.55rem;
    color: var(--gold);
    line-height: 1.45;
    margin-bottom: 14px;
}

.rsvp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 0.5rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.rsvp-divider::before,
.rsvp-divider::after {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--gold);
    opacity: 0.45;
}

.rsvp-note {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #7a7368;
    font-style: italic;
}

.rsvp-note strong {
    font-family: var(--font-serif);
    font-style: normal;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.rsvp-form.is-attendance-missing {
    animation: rsvpShake 0.45s ease;
}

.rsvp-form.is-attendance-missing .rsvp-attendance-hint,
.rsvp-attendance.is-required {
    outline: 2px solid rgba(179, 155, 105, 0.35);
    outline-offset: 4px;
    border-radius: 3px;
}

@keyframes rsvpShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.netlify-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rsvp-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.rsvp-success.is-visible {
    display: block;
}

.rsvp-success__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.rsvp-success h3 {
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.rsvp-success p {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--gold);
}

.thank-you-page {
    background-color: #111;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.thank-you-page .page-frame {
    max-width: var(--phone-shell-width);
    margin: 0 auto;
    width: 100%;
    padding: 40px 20px;
}

.thank-you-card {
    background: rgba(252, 250, 245, 0.92);
    border: 1px solid rgba(229, 223, 211, 0.95);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(92, 85, 73, 0.12);
    padding: 36px 24px 32px;
}

.thank-you-card .rsvp-eyebrow {
    margin-bottom: 8px;
}

.thank-you-note {
    font-family: var(--font-text);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-dark);
    margin-top: 12px;
}

.thank-you-link {
    display: inline-block;
    margin-top: 28px;
    text-decoration: none;
}

/* ── Footer ── */
footer {
    padding: 50px 0 30px;
    border-top: 1px solid rgba(179, 155, 105, 0.2);
}

.footer-seals {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.mini-seal {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c49a2a, var(--wax) 60%, var(--wax-dark));
    opacity: 0.7;
}

/* ── Responsive ── */

/* Dar çerçeve (telefon / masaüstü önizleme) — viewport değil container genişliği */
@container invitation (max-width: 520px) {
    .invitation-content {
        padding-left: 14px;
        padding-right: 14px;
        padding-top: clamp(300px, 40vh, 480px);
    }

    .invitation-hero {
        margin-left: auto;
        margin-right: auto;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rsvp-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rsvp-frame {
        padding: 32px 16px 28px;
    }

    .rsvp-choices {
        max-width: 200px;
        gap: 8px;
    }

    .steps-container {
        flex-direction: column;
    }

    .step {
        width: min(100%, 200px);
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 6px 0;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline-line {
        display: none;
    }

    .timeline-item {
        width: 85%;
        margin-bottom: 24px;
    }

    .wreath-card {
        padding: 24px 12px;
    }

    .save-the-date {
        padding: 24px 12px;
    }

    .rsvp-section h2 {
        font-size: 1.55rem;
        letter-spacing: 3px;
    }

    .detail-card,
    .rsvp-form,
    .rsvp-attendance,
    .rsvp-message-card {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    body.site-active .site-background__fade {
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 18%,
            rgba(243, 237, 228, 0.08) 100%
        );
    }

    .rsvp-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rsvp-frame {
        padding: 36px 22px 30px;
    }

    .details-grid { grid-template-columns: repeat(2, 1fr); }

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline-line { display: none; }
    .timeline-item { width: 75%; margin-bottom: 28px; }
}

@media (max-width: 600px) {
    .intro-closed { max-width: 96vw; }
    .intro-open img { max-width: 100vw; }
    .hero-stage { padding: 20px 8px 36px; }
    .open-hint { font-size: 0.65rem; letter-spacing: 3px; }

    .rsvp-choices { max-width: 100%; }

    .details-grid { grid-template-columns: 1fr; }

    .steps-container { flex-direction: column; }
    .step-arrow {
        transform: rotate(90deg);
        margin: 6px 0;
    }

    .script-text { font-size: 2rem; }
    .save-the-date h2 { font-size: 1.6rem; letter-spacing: 3px; }
}

/* Masaüstü: telefon çerçevesi gölgesi */
@media (min-width: 768px) {
    body.site-active .site-background {
        border-radius: 14px;
        box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
