@font-face {
    font-family: "Le Jour Script";
    src: url("../extra/Le Jour Script Personal Use Only.otf") format("opentype");
    font-display: swap;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    --header-offset: 0px;
}

body {
    position: relative;
    isolation: isolate;
    font-family: "Lora", serif;
    line-height: 1.6;
    color: #102C57;
    text-align: center;
    background-color: #FEFAF6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("../extra/lotus background.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.10;
    transform: scale(1.08);
}

body.page-locked {
    overflow: hidden;
}

body.page-locked #site-header,
body.page-locked main,
body.page-locked footer {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Navigation */
#site-header {
    width: 100%;
    background: transparent;
}

.site-brand-item {
    width: 100%;
    text-align: center;
    padding-top: 20px;
}

.site-brand-item a {
    display: inline-block !important;
    font-family: "Le Jour Script", "Meddon", cursive;
    font-size: 4.5rem !important;
    line-height: 1.2;
    color: #76453B;
    text-decoration: none;
    padding: 0 12px 8px;
}

.site-brand-item a:hover {
    color: #B19470;
}

#navbar {
    background: transparent;
    width: 100%;
    opacity: 0;
    transform: translateY(-28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

body.page-ready #navbar {
    opacity: 1;
    transform: translateY(0);
}

#navbar .site-brand-item a,
#navbar .site-brand-item a:hover {
    text-decoration: none;
}
#navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

#navbar li {
    margin: 0;
}

#navbar a {
    display: inline-block;
    color: #102C57;
    text-align: center;
    padding: 10px 14px 12px;
    text-decoration: none;
    transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
}

#navbar a:hover {
    color: #B19470;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.leaf-decoration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}

.leaf-decoration img {
    height: 56px;
    width: auto;
    mix-blend-mode: multiply;
    opacity: 1;
    transition: transform 0.2s ease;
}

.leaf-decoration img:hover {
    transform: scale(1.05);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 20px;
    min-height: 120vh;
}

body.home-page {
    background-color: #FEFAF6;
}

.home-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.home-main section {
    margin: 0;
}

.home-intro {
    padding: 72px 20px 88px;
    text-align: center;
}

.home-intro-name,
.home-intro-ampersand {
    font-family: "Le Jour Script", "Meddon", cursive;
    color: #102C57;
    line-height: 1.05;
}

.home-intro-name {
    margin: 0;
    font-size: clamp(4.5rem, 10vw, 8rem);
}

.home-intro-ampersand {
    margin: 12px 0;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.home-details {
    display: grid;
    gap: 18px;
    justify-items: center;
    margin-top: 36px;
    padding: 26px 24px 0;
}

.home-details-date {
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 3.3rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.15;
}

.home-details-location {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.9rem);
}

.home-details-countdown {
    margin: 10px 0 8px;
    font-size: clamp(1.1rem, 1.9vw, 1.45rem);
    letter-spacing: 0.04em;
}

.home-rsvp-link {
    display: inline-block;
    min-width: min(300px, 82vw);
    padding: 14px 28px;
    background: #3e5067;
    color: #fff;
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-rsvp-link:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

h1, h2, h3 {
    margin: 20px 0 10px;
    font-weight: 600;
    color: #102C57;
}

section {
    margin: 20px 0;
}

/* Footer */
footer {
    color: #102C57;
    text-align: center;
    padding: 0 20px 28px;
    margin-top: 0;
}

.password-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 24px;
    background: rgba(254, 250, 246, 0.92);
    text-align: center;
}

.password-gate__eyebrow {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #76453B;
}

.password-gate__title {
    margin: 0;
    color: #102C57;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.password-gate__form {
    display: grid;
    gap: 12px;
    width: min(320px, 100%);
}

.password-gate__label {
    font-weight: 600;
    color: #102C57;
    text-align: left;
}

.password-gate__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(118, 69, 59, 0.24);
    border-radius: 0;
    background: #fff;
    color: #102C57;
}

.password-gate__input:focus {
    outline: 2px solid rgba(16, 44, 87, 0.18);
    border-color: rgba(16, 44, 87, 0.35);
}

.password-gate__error {
    min-height: 1.4em;
    margin: 0;
    color: #a1463f;
}

.password-gate__button {
    margin-top: 6px;
    padding: 14px 18px;
    border: 1px solid #102C57;
    border-radius: 0;
    background: transparent;
    color: #102C57;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.password-gate__button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Forms */
form {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}

form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

form input,
form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: transparent;
    color: #102C57;
    padding: 10px 20px;
    border: 1px solid #102C57;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #B19470;
    color: #F8FAE5;
}

#rsvp-form {
    max-width: 760px;
    margin: 0 auto;
}

.rsvp-embed {
    width: 100%;
    margin: 24px auto 0;
}

.rsvp-embed iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 1242px;
    border: 0;
    background: #fff;
}

/* FAQ */
.faq-item {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid rgba(58, 42, 37, 0.2);
    border-radius: 4px;
}

.faq-message {
    max-width: 760px;
    margin: 24px auto 0;
    font-size: 1rem;
    line-height: 1.8;
}

.faq-feature {
    max-width: 980px;
    margin: 28px auto 0;
}

.faq-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 34px rgba(16, 44, 87, 0.08);
}

.faq-card-image {
    display: block;
    width: 100%;
    height: clamp(180px, 28vw, 260px);
    object-fit: cover;
    object-position: center 60%;
}

.faq-card-body {
    padding: 24px 26px 30px;
    text-align: left;
}

.faq-card-eyebrow {
    margin: 0 0 10px;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #76453B;
}

.faq-card-title {
    margin: 0 0 12px;
    font-family: "Libre Baskerville", "Lora", serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.25;
}

.faq-card-copy {
    margin: 0 0 20px;
    font-size: 1.05rem;
}

.faq-card-link {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid #7aa7c7;
    font-size: 1rem;
    font-weight: 600;
}

.travel-feature {
    max-width: 980px;
    margin: 28px auto 0;
}

.travel-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 34px rgba(16, 44, 87, 0.08);
}

.travel-card-image {
    display: block;
    width: 100%;
    height: clamp(180px, 28vw, 260px);
    object-fit: cover;
    object-position: center 58%;
}

.travel-card-body {
    padding: 24px 26px 30px;
    text-align: left;
}

.travel-card-eyebrow {
    margin: 0 0 10px;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #76453B;
}

.travel-card-title {
    margin: 0 0 12px;
    font-family: "Libre Baskerville", "Lora", serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.25;
}

.travel-card-copy {
    margin: 0 0 20px;
    font-size: 1.05rem;
}

.travel-card-link {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid #7aa7c7;
    font-size: 1rem;
    font-weight: 600;
}

/* Schedule */
#schedule-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 0 40px;
}

.schedule-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    
}

.calendar-button {
    display: inline-block;
    padding: 0 0 4px;
    border-bottom: 2px solid #7aa7c7;
    text-decoration: none;
    font-size: 1.05rem;
}

.calendar-button:hover {
    opacity: 0.8;
}

.schedule-date-section {
    margin-top: 48px;
    margin-bottom: 18px;
    text-align: left;
    font-size: 1.35rem;
}

.schedule-date-section h2 {
    margin: 0;
}

.schedule-date-section sup {
    font-size: 0.65em;
}

.schedule-item {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
    padding: 18px 0 22px;
    border-bottom: 1px solid rgba(58, 42, 37, 0.18);
    text-align: left;
}

.event-title {
    margin: 0 0 14px;
    font-family: "Libre Baskerville", serif;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 400;
    font-style: normal;
}

.event-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.event-time {
    font-weight: 600;
}

.event-description {
    max-width: none;
    width: 100%;
    padding-top: 10px;
}

.event-description ul {
    margin: 0;
    padding-left: 1.25rem;
}

.event-description li + li {
    margin-top: 0.45rem;
}

/* Countdown */
#timer {
    font-size: 24px;
    text-align: center;
    padding: 20px;
}

a {
    color: inherit;
}

@media (max-width: 768px) {
    body {
        padding-top: 170px;
    }

    #site-header {
        padding-inline: 0;
    }

    #navbar ul {
        gap: 0;
    }

    #navbar {
        padding: 0;
    }

    .site-brand-item {
        padding-top: 0;
    }

    #schedule-content {
        padding-top: 0;
    }

    .schedule-actions {
        margin-bottom: 16px;
    }

    .schedule-date-section {
        margin-top: 32px;
        margin-bottom: 10px;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 0;
    }

    .event-title {
        margin-bottom: 10px;
    }

    .event-description {
        max-width: none;
        padding-top: 0;
    }

    .home-intro {
        padding: 56px 20px 72px;
    }

    .home-details {
        gap: 14px;
        margin-top: 28px;
        padding-top: 18px;
    }

    .home-details-date {
        letter-spacing: 0.1em;
    }

    .home-details-countdown {
        line-height: 1.7;
    }

    .rsvp-embed iframe {
        min-height: 1320px;
    }
}
