:root {
    --wedding-ink: #1f3428;
    --wedding-sage: #6f806e;
    --wedding-cream: #f6f3ed;
    --wedding-paper: #fffdf9;
    --wedding-border: rgba(31, 52, 40, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--wedding-ink);
    background: var(--wedding-cream);
    font-family: Georgia, "Times New Roman", serif;
}

button,
input,
select,
textarea,
.navbar,
.btn,
.form-control,
.form-select {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.py-md-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.eyebrow {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.login-view {
    position: relative;
    background:
        linear-gradient(rgba(14, 30, 20, 0.5), rgba(14, 30, 20, 0.66)),
        url("../assets/images/IMG_8769.JPG") center 48% / cover no-repeat;
}

.login-card {
    width: min(100%, 430px);
    border-radius: 1.5rem;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(14px);
}

.monogram {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--wedding-border);
    border-radius: 50%;
    color: var(--wedding-ink);
    font-size: 1.8rem;
    line-height: 1;
}

.btn-wedding {
    border-color: var(--wedding-ink);
    background: var(--wedding-ink);
    color: #fff;
}

.btn-wedding:hover,
.btn-wedding:focus {
    border-color: #15231b;
    background: #15231b;
    color: #fff;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--wedding-border);
    background-color: rgba(255, 255, 255, 0.86);
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(31, 52, 40, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(31, 52, 40, 0.09);
}

.hero-section {
    background: url("../assets/images/IMG_8686.JPG") center 35% / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 24, 16, 0.8) 0%, rgba(10, 24, 16, 0.56) 48%, rgba(10, 24, 16, 0.24) 100%),
        linear-gradient(0deg, rgba(10, 24, 16, 0.18), rgba(10, 24, 16, 0.18));
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.hero-subtitle {
    max-width: 34rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: rgba(255, 255, 255, 0.8);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 660px;
}

.countdown-item {
    padding: 1rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.countdown-item span {
    display: block;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.3rem);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-item small {
    display: block;
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.photo-card {
    max-width: 390px;
    margin-left: auto;
    overflow: hidden;
    border: 9px solid rgba(255, 255, 255, 0.88);
    border-radius: 10rem 10rem 1.5rem 1.5rem;
    transform: rotate(2deg);
}

.photo-card img {
    width: 100%;
    height: 570px;
    object-fit: cover;
    object-position: 50% 50%;
}

.rsvp-section {
    background: var(--wedding-cream);
}

.rsvp-card {
    border-radius: 1.5rem;
    background: var(--wedding-paper);
}

.footer-photo {
    min-height: 390px;
    display: flex;
    align-items: center;
    background: url("../assets/images/IMG_8769.JPG") center 72% / cover no-repeat;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 30, 20, 0.66);
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
}

.fade-in {
    animation: fadeIn 500ms ease both;
}

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

@media (max-width: 767.98px) {
    .py-md-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-section {
        background-position: 57% center;
    }

    .hero-overlay {
        background: rgba(10, 24, 16, 0.62);
    }

    .countdown-grid {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 0.85rem 0.35rem;
    }

    .countdown-item small {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }
}
