:root {
    --bg: #fff5f7;
    --bg-alt: #fbe6ec;
    --ink: #3d2028;
    --muted: #7a3f52;
    --accent: #e8a0b4;
    --accent-dark: #a84a68;
    --line: #f3d4dd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--ink);
    background-image: url("../images.jpg");
    background-repeat: repeat;
    background-position: left top;
    background-attachment: fixed;
    background-color: var(--bg);
    line-height: 1.7;
    font-weight: 400;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Hashtag styling */
.hero-hashtag,
.rsvp-hashtag {
    margin-top: 1.5rem;
    font-family: "Great Vibes", cursive;
    font-size: 1.6rem;
    color: var(--accent-dark);
    text-align: center;
}

.envelope-tag {
    font-family: "Great Vibes", cursive;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--muted);
}

.hashtag-banner {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(168, 74, 104, 0.92);
    color: #fff5f7;
}

.hashtag-banner-label {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.hashtag-banner-tag {
    font-family: "Great Vibes", cursive;
    font-size: clamp(2.4rem, 7vw, 3.6rem);
    color: #fff;
}

.footer-hashtag {
    font-family: "Great Vibes", cursive;
    font-size: 1.8rem;
    color: #fbe6ec;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: "Great Vibes", cursive;
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent-dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(255, 245, 247, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-brand {
    font-family: "Great Vibes", cursive;
    font-size: 1.6rem;
    color: var(--accent-dark);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: 3rem 2rem;
    background: linear-gradient(160deg, rgba(255, 245, 247, 0.92) 0%, rgba(251, 230, 236, 0.92) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-name {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.6rem, 8vw, 4.6rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
}

.hero-parents {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.hero-names {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
}

.hero-amp {
    font-family: "Great Vibes", cursive;
    font-size: 2.4rem;
    color: var(--accent);
    margin: 1rem 0;
}

.hero-meta {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    letter-spacing: 0.18em;
    font-size: 1.2rem;
    color: var(--accent-dark);
}

.hero-dot {
    color: var(--accent);
}

.hero-venue {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Flash */
.flash-wrap {
    max-width: 640px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
}

.flash {
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.flash-success {
    background: #e7f2e7;
    color: #2f6b34;
}

.flash-error {
    background: #f6e4e4;
    color: #9b3a3a;
}

/* Introduction (verse + intro in one blurred card) */
.introduction {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
    /* No background/blur here so the image stays visible on the sides */
}

.introduction-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 245, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.introduction-card > * + * {
    margin-top: 1.5rem;
}

.verse-text {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--ink);
}

.verse-ref {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent-dark);
}

.intro-text {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Timeline */
.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 1.5rem;
    background: rgba(251, 230, 236, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.timeline-item {
    text-align: center;
    max-width: 260px;
}

.timeline-when {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--muted);
}

.timeline-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.9rem;
    color: var(--ink);
    margin: 0.4rem 0;
}

.timeline-venue {
    color: var(--accent-dark);
    font-size: 0.9rem;
}

/* Events */
.event {
    padding: 5rem 1.5rem;
    background: rgba(255, 245, 247, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.event-alt {
    background: rgba(251, 230, 236, 0.85);
}

/* Carded event: only the inner card is blurred, image visible on the sides */
.event-carded {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.event-carded .event-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 3rem 2rem;
    background: rgba(255, 245, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.event-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.event-datebox {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: var(--bg);
}

.event-month {
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--accent-dark);
}

.event-day {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--ink);
}

.event-time {
    font-size: 0.85rem;
    color: var(--muted);
}

.event-venue {
    font-size: 1rem;
    color: var(--accent-dark);
    margin-bottom: 1.25rem;
}

.map-pin {
    margin-right: 0.35rem;
}

.map-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.timeline-hint {
    flex-basis: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.event-desc {
    color: var(--muted);
}

/* RSVP */
.rsvp {
    padding: 5rem 1.5rem;
    background: linear-gradient(160deg, rgba(251, 230, 236, 0.85) 0%, rgba(255, 245, 247, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rsvp-inner {
    max-width: 560px;
    margin: 0 auto;
}

.rsvp-intro {
    text-align: center;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.rsvp-embed {
    display: block;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rsvp-fallback {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1.25rem;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rsvp-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.req {
    color: #c96f8a;
}

.rsvp-events {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rsvp-events legend {
    padding: 0 0.4rem;
    font-size: 0.85rem;
}

.checkbox {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.6rem !important;
}

.checkbox input {
    margin-top: 0.25rem;
}

.btn {
    align-self: center;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 30px;
    background: var(--accent-dark);
    color: #fff;
    font-family: inherit;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--accent);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--ink);
    color: #f3d4dd;
    font-size: 0.85rem;
}

.footer a {
    color: #fbe6ec;
}

.footer-links {
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Envelope intro overlay */
body.envelope-locked {
    overflow: hidden;
}

.envelope-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.envelope-overlay.is-hidden {
    display: none;
}

/* Two panels that split apart to reveal the invite */
.envelope-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.envelope-panel-top {
    top: 0;
    border-bottom: 1px solid var(--line);
}

.envelope-panel-bottom {
    bottom: 0;
    border-top: 1px solid var(--line);
}

.envelope-overlay.is-open .envelope-panel-top {
    transform: translateY(-100%);
}

.envelope-overlay.is-open .envelope-panel-bottom {
    transform: translateY(100%);
}

.envelope {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    outline: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.envelope-overlay.is-open .envelope {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.envelope-brand {
    font-family: "Great Vibes", cursive;
    font-size: clamp(3rem, 9.5vw, 4.5rem);
    color: var(--accent-dark);
}

.envelope-hint {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 1.5rem;
    color: var(--muted);
    animation: envelope-pulse 1.6s ease-in-out infinite;
}

@keyframes envelope-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.7rem;
    }
    .section-title {
        font-size: 2.4rem;
    }
}
