/* ============================================================
   Wedding invitation — global theme
   Palette: cream, blush, gold, ivory.
   ============================================================ */

:root {
    --cream: #fff5f8;
    --cream-soft: #fffafd;
    --ivory: #fff8fb;
    --blush: #fbd6e1;
    --blush-soft: #fde7ee;
    --rose: #f48fb1;
    --gold: #e8a3b8;
    --gold-deep: #c2417a;
    --gold-soft: #f7c8d5;
    --ink: #5d2a44;
    --ink-soft: #8a5a73;
    --shadow-warm: 0 30px 60px -20px rgba(194, 65, 122, 0.18);
    --shadow-card: 0 14px 30px -12px rgba(194, 65, 122, 0.22);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(244, 143, 177, 0.28), transparent 50%),
        radial-gradient(circle at 82% 88%, rgba(251, 214, 225, 0.55), transparent 55%),
        linear-gradient(180deg, #fffafd 0%, #fde7ee 55%, #fbd6e1 100%);
    z-index: -2;
    pointer-events: none;
}

a {
    color: var(--gold-deep);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover { color: var(--rose); }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: 0;
}

.script {
    font-family: 'Pinyon Script', 'Parisienne', cursive;
    font-weight: 400;
    color: var(--gold-deep);
    letter-spacing: 0.01em;
}

.script-soft {
    font-family: 'Parisienne', 'Pinyon Script', cursive;
    font-weight: 400;
    color: var(--gold-deep);
}

.caps {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-weight: 400;
}

.serif { font-family: 'Cormorant Garamond', serif; }
.sans  { font-family: 'Outfit', 'Inter', sans-serif; }

/* ===== Section scaffolding ===== */
section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
    position: relative;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title .eyebrow {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.78rem;
    color: var(--gold-deep);
    display: block;
    margin-bottom: 0.8rem;
}

.section-title h2 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.2;
}

/* ===== Floral / gold separator ===== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem auto;
    color: var(--gold);
}

.divider::before,
.divider::after {
    content: "";
    width: clamp(40px, 18vw, 130px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider svg {
    width: 28px;
    height: 28px;
    fill: var(--gold);
    flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #fff;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(164, 133, 74, 0.55);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(164, 133, 74, 0.65);
    filter: brightness(1.05);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: var(--gold-deep);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    cursor: pointer;
    transition: background 220ms ease, color 220ms ease;
}

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

/* ===== Form controls ===== */
input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(232, 163, 184, 0.55);
    border-radius: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.4;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
    box-shadow: inset 0 1px 2px rgba(194, 65, 122, 0.04);
}

input::placeholder,
textarea::placeholder {
    color: rgba(138, 90, 115, 0.55);
    font-style: italic;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--rose);
    background: #fff;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-deep);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(244, 143, 177, 0.2);
}

textarea {
    resize: vertical;
    min-height: 96px;
}

label {
    display: block;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.55rem;
}

.invalid {
    outline: none;
    border-color: rgba(177, 73, 61, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(177, 73, 61, 0.12) !important;
}

.validation-message {
    color: #b1493d;
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 0.4rem;
    display: block;
}

/* ===== Reveal-on-scroll utility ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1100ms ease, transform 1100ms cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Floating particles ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particles span {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 240, 0.95) 0%, rgba(244, 143, 177, 0) 70%);
    opacity: 0;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    20%  { opacity: 0.9; }
    100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* ===== Floating control cluster ===== */
.floating-controls {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 50;
    display: flex;
    gap: 0.6rem;
}

.floating-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 106, 0.5);
    background: rgba(255, 248, 236, 0.85);
    backdrop-filter: blur(6px);
    color: var(--gold-deep);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-card);
    transition: transform 220ms ease, background 220ms ease;
}

.floating-controls button:hover {
    transform: scale(1.06);
    background: #fff;
}

.floating-controls button.is-on {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold-deep);
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    section { padding: 4rem 1rem; }
    .floating-controls { top: 0.8rem; right: 0.8rem; }
}

/* ============================================================
   Envelope
   ============================================================ */

.cover-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.2rem 4.5rem;
    position: relative;
    flex-direction: column;
    gap: 1rem;
}

.cover-glow {
    position: absolute;
    width: min(720px, 96vw);
    height: min(540px, 70vh);
    background: radial-gradient(ellipse, rgba(244, 143, 177, 0.22) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    transition: opacity 1500ms ease 800ms, transform 1500ms ease;
}

.cover-stage.is-open .cover-glow {
    opacity: 0;
    transform: scale(1.6);
}

.envelope {
    position: relative;
    width: min(620px, 94vw);
    min-height: clamp(420px, 60vh, 520px);
    padding: clamp(2.4rem, 5vw, 3rem) clamp(1.6rem, 5vw, 2.6rem) clamp(1.6rem, 4vw, 2.4rem);
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.04) 0 2px,
            transparent 2px 8px),
        linear-gradient(155deg, #fff5f8 0%, #fde7ee 50%, #fbd6e1 100%);
    border: 1px solid rgba(232, 163, 184, 0.55);
    border-radius: 4px;
    box-shadow:
        0 30px 60px -22px rgba(194, 65, 122, 0.35),
        0 8px 18px -10px rgba(194, 65, 122, 0.18);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition:
        transform 1100ms cubic-bezier(.5,.0,.4,1) 200ms,
        opacity 700ms ease 800ms,
        box-shadow 800ms ease;
}

.envelope::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(232, 163, 184, 0.4);
    border-radius: 2px;
    pointer-events: none;
}

.cover-stage.is-open .envelope {
    transform: translateY(-32px) scale(0.96);
    opacity: 0;
}

.env-stamp {
    position: absolute;
    top: clamp(20px, 4%, 32px);
    right: clamp(20px, 4%, 32px);
    width: clamp(64px, 11%, 84px);
    aspect-ratio: 4 / 5;
    background:
        repeating-linear-gradient(0deg,
            transparent 0 6px,
            rgba(255, 255, 255, 0.4) 6px 7px),
        linear-gradient(180deg, #fff5f8, #fbd6e1);
    border: 1px dashed rgba(194, 65, 122, 0.55);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--gold-deep);
    padding: 4px;
    box-shadow: 0 2px 4px -2px rgba(194, 65, 122, 0.3);
    pointer-events: none;
}

.env-stamp svg {
    width: 50%;
    height: auto;
    fill: currentColor;
    opacity: 0.85;
}

.env-stamp-year,
.env-stamp-place {
    font-family: 'Marcellus', serif;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    line-height: 1;
}

.env-stamp-place { font-size: 0.5rem; }

.env-sprig {
    position: absolute;
    top: clamp(10px, 2.2%, 22px);
    left: clamp(10px, 2.2%, 22px);
    width: clamp(54px, 10%, 76px);
    height: clamp(54px, 10%, 76px);
    color: var(--gold-deep);
    opacity: 0.55;
    pointer-events: none;
}

.env-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
}

.cover-eyebrow {
    color: var(--gold-deep);
    font-size: 0.74rem;
    letter-spacing: 0.4em;
    margin: 0 0 0.4rem;
}

.cover-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

.cover-name {
    font-style: italic;
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    color: var(--ink);
    letter-spacing: 0.005em;
}

.cover-amp {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    color: var(--gold-deep);
    margin: 0.05rem 0;
    line-height: 1;
}

.cover-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0.6rem auto 0.8rem;
    color: var(--rose);
}

.cover-divider span {
    flex: 0 1 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0.7;
}

.cover-divider svg {
    width: 16px;
    height: 16px;
    fill: var(--gold-deep);
    flex-shrink: 0;
    opacity: 0.85;
}

.cover-date {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: clamp(0.85rem, 2.4vw, 1rem);
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    color: var(--ink);
    margin: 0;
}

.cover-seal {
    position: relative;
    margin: 1.4rem auto 0;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: none;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 244, 232, 0.0) 36%),
        radial-gradient(circle at 50% 50%,
            #fce5d6 0%,
            #e9b8a1 32%,
            #c8896f 70%,
            #a36450 100%);
    color: #5a2333;
    cursor: pointer;
    box-shadow:
        0 12px 28px -8px rgba(163, 100, 80, 0.5),
        0 2px 6px -2px rgba(140, 80, 60, 0.35),
        inset 0 -3px 10px rgba(120, 70, 60, 0.3),
        inset 0 2px 5px rgba(255, 245, 230, 0.45);
    z-index: 3;
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 400ms ease;
    animation: seal-pulse 2.6s ease-in-out infinite;
}

.cover-seal::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 245, 230, 0.45);
}

.cover-seal::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px dashed rgba(120, 70, 60, 0.35);
}

.cover-seal-letters {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: inherit;
    line-height: 1;
    text-shadow:
        0 1px 0 rgba(255, 245, 230, 0.6),
        0 -1px 0 rgba(120, 70, 60, 0.25);
}

.cover-seal:hover {
    transform: scale(1.08);
    animation-play-state: paused;
    box-shadow:
        0 16px 32px -8px rgba(163, 100, 80, 0.65),
        0 2px 6px -2px rgba(140, 80, 60, 0.4),
        inset 0 -3px 10px rgba(120, 70, 60, 0.3),
        inset 0 2px 5px rgba(255, 245, 230, 0.5);
}

.cover-stage.is-open .cover-seal {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

@keyframes seal-pulse {
    0%, 100% {
        box-shadow:
            0 12px 28px -8px rgba(163, 100, 80, 0.5),
            0 2px 6px -2px rgba(140, 80, 60, 0.35),
            inset 0 -3px 10px rgba(120, 70, 60, 0.3),
            inset 0 2px 5px rgba(255, 245, 230, 0.45),
            0 0 0 0 rgba(232, 184, 161, 0.55);
    }
    50% {
        box-shadow:
            0 12px 28px -8px rgba(163, 100, 80, 0.5),
            0 2px 6px -2px rgba(140, 80, 60, 0.35),
            inset 0 -3px 10px rgba(120, 70, 60, 0.3),
            inset 0 2px 5px rgba(255, 245, 230, 0.45),
            0 0 0 16px rgba(232, 184, 161, 0);
    }
}

.cover-cta {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 3rem 0 0;
    letter-spacing: 0.05em;
    transition: opacity 600ms ease;
    animation: cta-nudge 2.4s ease-in-out infinite;
    z-index: 1;
}

.cover-stage.is-open .cover-cta { opacity: 0; }

@keyframes cta-nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

@media (max-width: 560px) {
    .envelope {
        min-height: clamp(420px, 70vh, 560px);
        padding: 2rem 1.2rem 1.4rem;
    }
    .env-stamp { width: 54px; top: 14px; right: 14px; }
    .env-sprig { width: 50px; height: 50px; top: 14px; left: 14px; }
    .cover-seal { width: 62px; height: 62px; }
    .cover-seal-letters { font-size: 0.7rem; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.65) 0%, transparent 55%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23f48fb1' stroke-opacity='0.10' stroke-width='1'><circle cx='80' cy='80' r='30'/><circle cx='80' cy='80' r='55'/><circle cx='80' cy='80' r='80'/></g></svg>");
}

.hero-card {
    max-width: 760px;
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
    background: rgba(255, 250, 253, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 8px;
    box-shadow: var(--shadow-warm);
    position: relative;
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    opacity: 0.45;
}

.hero-card::before {
    top: 14px;
    left: 14px;
    border-right: none;
    border-bottom: none;
}

.hero-card::after {
    bottom: 14px;
    right: 14px;
    border-left: none;
    border-top: none;
}

.hero-eyebrow {
    color: var(--gold-deep);
    font-size: 0.78rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1;
}

.hero-name {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.8rem, 8.5vw, 5.4rem);
    color: var(--ink);
    line-height: 1;
}

.hero-amp {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.4rem, 6.5vw, 3.6rem);
    color: var(--gold-deep);
    line-height: 1;
    margin: 0.1rem 0;
}

.hero-quote {
    margin-top: 1.5rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-style: italic;
    color: var(--ink-soft);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-meta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--ink);
}

.hero-meta .dot { color: var(--gold); }

.hero-date-big {
    color: var(--gold-deep);
    font-weight: 500;
}

.hero-actions {
    margin-top: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

@media (max-width: 480px) {
    .hero-meta { font-size: 0.7rem; gap: 0.4rem; }
    .hero-meta .dot { display: none; }
}

/* ============================================================
   Countdown
   ============================================================ */

.countdown-section {
    background: linear-gradient(180deg, transparent 0%, rgba(251, 214, 225, 0.45) 100%);
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 2vw, 1.2rem);
    flex-wrap: wrap;
}

.cd-cell {
    width: clamp(80px, 15vw, 130px);
    aspect-ratio: 1 / 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(253, 231, 238, 0.9));
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.cd-num {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--gold-deep);
    line-height: 1;
}

.cd-label {
    font-size: 0.65rem;
    color: var(--ink-soft);
    margin-top: 0.6rem;
}

.cd-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--rose);
    margin-bottom: 1.2rem;
}

.countdown-finale {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--gold-deep);
}

@media (max-width: 480px) {
    .cd-sep { display: none; }
    .cd-cell { width: 22vw; min-width: 70px; }
}

/* ============================================================
   Timeline + TimelineItem
   ============================================================ */

.timeline-welcome {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.4rem;
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    color: var(--ink-soft);
    line-height: 1.6;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    max-width: 820px;
    margin-inline: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 31px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
    opacity: 0.55;
}

@media (min-width: 720px) {
    .timeline::before { left: 50%; }
}

.t-item {
    position: relative;
    padding: 1rem 0 2.5rem 5rem;
    min-height: 80px;
}

.t-marker {
    position: absolute;
    top: 0.75rem;
    left: 6px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffafd, #fbd6e1);
    border: 1px solid var(--rose);
    box-shadow: 0 6px 14px -6px rgba(194, 65, 122, 0.4);
    display: grid;
    place-items: center;
    color: var(--gold-deep);
}

.t-marker svg { width: 24px; height: 24px; }

.t-card {
    background: rgba(255, 250, 253, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 8px;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.t-card::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: rgba(255, 250, 253, 0.9);
    border-left: 1px solid rgba(232, 163, 184, 0.5);
    border-bottom: 1px solid rgba(232, 163, 184, 0.5);
    transform: rotate(45deg);
}

.t-time {
    color: var(--gold-deep);
    font-size: 0.78rem;
    font-weight: 600;
}

.t-title {
    margin: 0.4rem 0 0.2rem;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.t-place {
    margin: 0;
    color: var(--ink-soft);
    font-style: italic;
}

.t-desc {
    margin: 0.8rem 0 1.2rem;
    color: var(--ink);
    line-height: 1.65;
}

@media (min-width: 720px) {
    .t-item {
        padding: 1rem 0 3rem 0;
        width: 50%;
    }

    .t-item:nth-child(odd) {
        margin-left: 0;
        padding-right: 3.5rem;
        text-align: right;
    }

    .t-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 3.5rem;
    }

    .t-item:nth-child(odd) .t-marker {
        left: auto;
        right: -25px;
    }

    .t-item:nth-child(even) .t-marker {
        left: -25px;
    }

    .t-item:nth-child(odd) .t-card::before {
        left: auto;
        right: -8px;
        border-left: none;
        border-bottom: none;
        border-right: 1px solid rgba(232, 163, 184, 0.5);
        border-top: 1px solid rgba(232, 163, 184, 0.5);
    }

    .t-item:nth-child(odd) .btn-ghost {
        margin-left: auto;
    }
}

/* ============================================================
   JourneyMap + MapCard
   ============================================================ */

.journey-section {
    background: linear-gradient(180deg, rgba(251, 214, 225, 0.35) 0%, transparent 100%);
}

.journey-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 2rem 0 2.5rem;
    flex-wrap: wrap;
}

.stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    width: clamp(120px, 22vw, 180px);
    text-align: center;
}

.stop-dot {
    width: 14px;
    height: 14px;
    background: var(--rose);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(244, 143, 177, 0.25);
}

.stop-name {
    font-style: italic;
    font-size: 1.05rem;
    margin: 0;
    color: var(--ink);
}

.stop-time {
    font-size: 0.7rem;
    color: var(--gold-deep);
}

.path-line {
    width: clamp(60px, 10vw, 120px);
    height: 60px;
    flex-shrink: 0;
}

.journey-note {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.map-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .map-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (max-width: 480px) {
    .map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .journey-path { gap: 0.4rem; }
    .path-line { display: none; }
    .stop { flex-direction: row; align-items: center; gap: 0.7rem; width: 100%; justify-content: center; }
}

.map-card {
    background: rgba(255, 250, 253, 0.9);
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.map-frame {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: var(--blush-soft);
    overflow: hidden;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-meta {
    padding: 0.9rem 0.9rem 1rem;
    text-align: center;
}

.map-title {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.2;
}

.map-time {
    display: block;
    color: var(--gold-deep);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    margin: 0.3rem 0 0.7rem;
}

.map-meta .btn-ghost {
    font-size: 0.62rem;
    padding: 0.55rem 1rem;
    letter-spacing: 0.18em;
}

/* ============================================================
   Gallery
   ============================================================ */

.gallery-section {
    background: linear-gradient(180deg, transparent 0%, rgba(251, 214, 225, 0.3) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.g-tile {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(232, 163, 184, 0.5);
    background: var(--blush-soft);
}

.g-tile:nth-child(3n+1) { aspect-ratio: 4 / 5; }
.g-tile:nth-child(3n+2) { aspect-ratio: 1 / 1; }
.g-tile:nth-child(3n)   { aspect-ratio: 4 / 5; }

.g-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms ease, filter 700ms ease;
    filter: saturate(0.95);
}

.g-tile:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.g-tile figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.6rem 1rem 1rem;
    color: #fff;
    font-size: 1.4rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(93, 42, 68, 0.7));
    text-shadow: 0 2px 6px rgba(80, 30, 60, 0.5);
    opacity: 0;
    transition: opacity 320ms ease;
}

.g-tile:hover figcaption { opacity: 1; }

/* ============================================================
   RSVP
   ============================================================ */

.rsvp-section {
    background: radial-gradient(ellipse at top, rgba(251, 214, 225, 0.55) 0%, transparent 55%);
}

.rsvp-deadline {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

.rsvp-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 250, 253, 0.95);
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 18px;
    box-shadow: var(--shadow-warm);
    padding: clamp(2.2rem, 5vw, 3.5rem);
    position: relative;
}

.rsvp-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(232, 163, 184, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 1rem;
}

.field {
    margin-bottom: 1.4rem;
    position: relative;
}

.field-narrow { width: 100%; }

.attendance-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.pill {
    flex: 1 1 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.3rem;
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08rem;
    font-style: italic;
    color: var(--ink);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    transition: background 220ms ease, border-color 220ms ease,
                color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    margin-bottom: 0;
    user-select: none;
    position: relative;
}

.pill:not(.pill-side)::before {
    content: "♡";
    font-size: 1.05rem;
    color: var(--rose);
    transition: color 220ms ease, transform 220ms ease;
    line-height: 1;
}

.pill-side {
    flex: 1 1 110px;
    padding: 0.85rem 1.1rem;
    font-size: 1.02rem;
}

.pill:hover {
    border-color: var(--rose);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.pill.is-active {
    background: linear-gradient(135deg, var(--rose) 0%, var(--gold-deep) 100%);
    border-color: var(--gold-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(194, 65, 122, 0.55);
}

.pill.is-active:not(.pill-side)::before {
    content: "♥";
    color: #fff;
    transform: scale(1.15);
}

.pill:focus-within {
    outline: 2px solid rgba(244, 143, 177, 0.45);
    outline-offset: 3px;
}

.submit-row {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.rsvp-thanks {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
}

.thanks-headline {
    font-size: clamp(3rem, 8vw, 4.2rem);
    color: var(--gold-deep);
    margin: 0 0 0.8rem;
    line-height: 1;
}

.rsvp-thanks p:not(.thanks-headline) {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto;
}

@media (max-width: 520px) {
    .form-row { grid-template-columns: 1fr; }
    .pill { padding: 0.85rem 1rem; font-size: 1rem; }
    .rsvp-card { padding: 1.8rem 1.4rem; }
    .rsvp-card::before { inset: 8px; }
}

/* ============================================================
   MessageBoard
   ============================================================ */

.msg-form {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 250, 253, 0.92);
    border: 1px solid rgba(232, 163, 184, 0.45);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.msg-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.messages-section .submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.msg-thanks {
    text-align: center;
    padding: 1rem 0.5rem;
}

.msg-thanks .thanks-headline {
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    color: var(--gold-deep);
    margin: 0 0 0.6rem;
    line-height: 1;
}

.msg-thanks p:not(.thanks-headline) {
    font-style: italic;
    color: var(--ink-soft);
    margin: 0;
}

@media (max-width: 520px) {
    .msg-row { grid-template-columns: 1fr; }
    .msg-form { padding: 1.4rem; }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    text-align: center;
    padding: clamp(4rem, 10vw, 6.5rem) 1.2rem clamp(2.5rem, 5vw, 3.5rem);
    background:
        radial-gradient(ellipse at top, rgba(251, 214, 225, 0.4) 0%, transparent 60%),
        linear-gradient(180deg, transparent, rgba(251, 214, 225, 0.55));
    color: var(--ink-soft);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(120px, 30vw, 220px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0.6;
}

.footer-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-names {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}

.footer-amp {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--rose);
    margin: 0 0.15em;
}

.footer-meta {
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: var(--gold-deep);
    margin: 0.6rem 0 0;
}

.footer-meta-dot {
    color: var(--rose);
    margin: 0 0.4em;
    letter-spacing: 0;
}

.footer-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.6rem auto 0.8rem;
    color: var(--rose);
    width: 100%;
}

.footer-rule span {
    flex: 0 1 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0.7;
}

.footer-rule svg {
    width: 16px;
    height: 16px;
    fill: var(--gold-deep);
    opacity: 0.85;
    flex-shrink: 0;
}

.footer-quote {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    color: var(--ink-soft);
    max-width: 460px;
    line-height: 1.6;
    margin: 0.6rem 0 0;
}

.footer-tag {
    color: var(--gold-deep);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    margin: 1.5rem 0 0;
}

.footer-fine {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--ink-soft);
    opacity: 0.7;
    margin: 1.8rem 0 0;
    letter-spacing: 0.02em;
}

.footer-fine-dot {
    color: var(--rose);
    margin: 0 0.4em;
}

@media (max-width: 480px) {
    .footer-meta { font-size: 0.7rem; letter-spacing: 0.22em; }
    .footer-rule span { flex-basis: 60px; }
}
