@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Great+Vibes&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --bg: #FFF9F0;
    --bg-warm: #FFF3E4;
    --saffron: #E8740C;
    --saffron-deep: #C85A00;
    --amber: #D97706;
    --gold: #B8860B;
    --gold-light: #DAA520;
    --crimson: #B91C3A;
    --maroon: #7A1F3D;
    --charcoal: #2D1F10;
    --muted: #7A6652;
    --diya-glow: rgba(232, 116, 12, 0.12);
    --gold-glow: rgba(218, 165, 32, 0.1);
    --border-warm: rgba(232, 116, 12, 0.2);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: var(--charcoal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 50% 0%, var(--diya-glow) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, var(--gold-glow) 0%, transparent 55%);
}

.page-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.page-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 3px;
}

.page-frame::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(232, 116, 12, 0.18);
    border-radius: 2px;
}

.corner {
    position: absolute;
    width: 36px;
    height: 36px;
    z-index: 2;
    pointer-events: none;
}

.corner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--gold-light);
    border-left: 2px solid var(--gold-light);
    border-top-left-radius: 8px;
    opacity: 0.5;
}

.corner::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-top: 1.5px solid var(--saffron);
    border-left: 1.5px solid var(--saffron);
    border-top-left-radius: 4px;
    opacity: 0.4;
}

.corner.tl {
    top: 10px;
    left: 10px;
}

.corner.tr {
    top: 10px;
    right: 10px;
    transform: scaleX(-1);
}

.corner.bl {
    bottom: 10px;
    left: 10px;
    transform: scaleY(-1);
}

.corner.br {
    bottom: 10px;
    right: 10px;
    transform: scale(-1);
}

.rangoli-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    animation: softGlow 3s ease-in-out infinite;
}

.rangoli-dot:nth-child(2) {
    top: 14px;
    left: 14px;
    background: var(--saffron);
    animation-delay: 0s;
}

.rangoli-dot:nth-child(3) {
    top: 14px;
    right: 14px;
    background: var(--crimson);
    animation-delay: 0.7s;
}

.rangoli-dot:nth-child(4) {
    bottom: 14px;
    left: 14px;
    background: var(--gold-light);
    animation-delay: 1.4s;
}

.rangoli-dot:nth-child(5) {
    bottom: 14px;
    right: 14px;
    background: var(--amber);
    animation-delay: 2.1s;
}

@keyframes softGlow {

    0%,
    100% {
        opacity: 0.35;
        box-shadow: none;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px currentColor, 0 0 20px rgba(232, 116, 12, 0.15);
    }
}

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    padding: 28px 16px;
}

.diya-icon {
    font-size: 30px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(232, 116, 12, 0.3));
    animation: flicker 2s ease-in-out infinite;
}

@keyframes flicker {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    25% {
        transform: scale(1.03);
        opacity: 1;
    }

    75% {
        transform: scale(0.98);
        opacity: 0.85;
    }
}

.tag-label {
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--saffron);
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.8;
}

.section-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--saffron-deep);
    font-weight: 600;
    margin-bottom: 14px;
}

.event-title {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: var(--crimson);
    font-weight: 400;
    line-height: 1.1;
    margin: 4px 0 6px;
    text-shadow: 1px 1px 2px rgba(185, 28, 58, 0.1);
}

.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--saffron-deep);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.body-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 8px;
}

.body-sm {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    color: var(--muted);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.7;
    margin: 8px 0;
}

.sanskrit-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    font-style: italic;
    color: var(--saffron);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    opacity: 0.85;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0;
}

.divider-line {
    width: 28px;
    height: 0.5px;
    background: linear-gradient(90deg, transparent, var(--border-warm), transparent);
}

.divider-icon {
    font-size: 8px;
    color: var(--gold-light);
    opacity: 0.7;
}

.line-divider {
    width: 36px;
    height: 0.5px;
    background: var(--border-warm);
    margin: 12px auto;
}

.date-block {
    margin: 14px 0;
    padding: 12px 0;
    position: relative;
    background: linear-gradient(135deg, var(--diya-glow), transparent);
    border-radius: 4px;
    border: 0.5px solid var(--border-warm);
}

.date-day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--crimson);
    line-height: 1;
}

.date-month-year {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--saffron);
    font-weight: 500;
    margin-top: 4px;
}

.date-time {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    color: var(--muted);
    margin-top: 6px;
    letter-spacing: 1px;
}

.events-list {
    width: 100%;
    margin: 8px 0;
}

.event-item {
    padding: 9px 0;
    border-bottom: 0.5px solid rgba(232, 116, 12, 0.12);
}

.event-item:last-child {
    border-bottom: none;
}

.event-icon {
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.event-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--saffron-deep);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.event-detail {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.venue-block {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--diya-glow), var(--gold-glow));
    border: 0.5px solid var(--border-warm);
    border-radius: 4px;
}

.venue-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--saffron-deep);
    margin-bottom: 3px;
}

.venue-address {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    color: var(--muted);
    line-height: 1.6;
}

.highlight-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
    padding: 8px 10px;
    background: linear-gradient(135deg, var(--diya-glow), transparent);
    border: 0.5px solid var(--border-warm);
    border-radius: 4px;
    min-width: 70px;
}

.highlight-icon {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.highlight-label {
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--saffron-deep);
    font-weight: 500;
}

.rsvp-form {
    width: 100%;
    margin-top: 10px;
}

.rsvp-form input {
    display: block;
    width: 100%;
    margin: 7px 0;
    padding: 9px 8px;
    border: none;
    border-bottom: 1px solid var(--border-warm);
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    text-align: center;
    color: var(--charcoal);
    transition: border-color 0.3s ease;
    letter-spacing: 0.5px;
}

.rsvp-form input::placeholder {
    color: rgba(122, 102, 82, 0.45);
    font-style: italic;
}

.rsvp-form input:focus {
    outline: none;
    border-bottom-color: var(--saffron);
}

.rsvp-form button {
    margin-top: 14px;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--saffron), var(--amber));
    color: #FFFFFF;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(232, 116, 12, 0.2);
}

.rsvp-form button:hover {
    box-shadow: 0 5px 18px rgba(232, 116, 12, 0.35);
    transform: translateY(-1px);
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 20px;
    color: var(--crimson);
    margin-top: 10px;
}

.closing-text {
    font-family: 'Outfit', sans-serif;
    font-size: 7px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--saffron);
    margin-top: 4px;
}

.fade-in {
    animation: fadeUp 0.9s ease-out both;
}

.fade-in-delay {
    animation: fadeUp 0.9s ease-out 0.2s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .content {
        max-width: 260px;
        padding: 20px 12px;
    }

    .event-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 14px;
    }

    .body-text {
        font-size: 11px;
    }

    .quote-text {
        font-size: 13px;
    }

    .date-day {
        font-size: 28px;
    }

    .date-month-year {
        font-size: 8px;
    }

    .date-time {
        font-size: 7px;
    }

    .event-name {
        font-size: 12px;
    }

    .event-detail {
        font-size: 7px;

    }

    .venue-name {
        font-size: 12px;
    }

    .venue-address {
        font-size: 7px;
    }

    .highlight-label {
        font-size: 7px;
    }

    .rsvp-form input {
        font-size: 8px;
    }

    .rsvp-form button {
        padding: 8px 24px;
        font-size: 8px;
    }

    .signature {
        font-size: 16px;
    }

    .closing-text {
        font-size: 6px;
    }
}