* {
    box-sizing: border-box;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('/assets/fonts/roboto/roboto-condensed-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 300;
    color: #000;
    background: #fff;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('/assets/images/aniever.webp') left top / cover no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

a {
    color: #000;
}
h1 {
    font-weight: 300;
	text-transform: uppercase;
	font-size: 25px;
}

main,
footer {
    z-index: 1;
    opacity: 0.01;
    transition: opacity 0.8s ease-out 0.15s;
}

main {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

body.is-loaded::before,
body.is-loaded main,
body.is-loaded footer {
    opacity: 1;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transform: translateY(21vh);
}

.logo {
    display: block;
    width: min(650px, 85vw);
    height: auto;
}

.content p {
    margin: 10px 0 0;
	font-size: 45px;
	letter-spacing: 5px;
}

footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    font-size: 17px;
}

.legal {
    display: flex;
    gap: 15px;
}

footer a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1000px) {
    body::before {
        background-position: 45% top;
    }

    .content {
        transform: translateY(3vh);
    }
}

@media (max-width: 600px) {
    footer {
        padding: 20px;
    }
	.content p {
	font-size: 28px;
}
}


/* RSVP + Legal Pages */
body.rsvp-page,
body.rsvp-list-page,
body.legal-page,
body.privacy-page {
    overflow: auto;
}

.rsvp-page .rsvp-main,
.legal-page .legal-main {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
}

.rsvp-page .rsvp-main {
    padding: 30px 20px 100px;
}

.legal-page .legal-main {
    padding: 40px 20px 100px;
}

.rsvp-box,
.legal-box {
    width: 100%;
    padding: 45px;
    background: rgba(255, 255, 255, 0.9);
    animation: rsvp-fade-in 0.6s ease-out both;
}

.rsvp-box {
    max-width: 520px;
    text-align: left;
}

.legal-box {
    max-width: 500px;
    text-align: center;
}

.rsvp-logo,
.legal-logo,
.privacy-logo {
    display: block;
    width: min(250px, 75%);
    height: auto;
    margin: 0 auto;
}

.rsvp-logo,
.legal-logo {
    margin-bottom: 40px;
}

@keyframes rsvp-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* RSVP */
.rsvp-box h1 {
    margin: 0 0 12px;
    text-align: center;
}

.rsvp-details {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

.rsvp-details span {
    display: block;
}

.rsvp-message {
    margin: 35px 0 0;
    font-size: 18px;
    text-align: center;
}

.rsvp-field {
    margin-bottom: 22px;
}

.rsvp-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.rsvp-field input {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #999;
    border-radius: 0;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 16px;
}

.rsvp-options,
.rsvp-companion {
    margin: 20px 0;
    padding: 0;
    border: 0;
}

.rsvp-options > label {
    display: flex;
    align-items: center;
    min-height: 30px;
    cursor: pointer;
}

.rsvp-options input,
.rsvp-companion input {
    margin: 0 12px 0 0;
}

.rsvp-companion {
    max-height: 0;
    margin: 0 0 0 30px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.35s ease, margin 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
}

.rsvp-options:has(input[name="attendance"][value="yes"]:checked) .rsvp-companion {
    max-height: 120px;
    margin: 5px 0 15px 30px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.rsvp-companion label {
    display: flex;
    align-items: center;
    min-height: 38px;
    cursor: pointer;
}

.rsvp-submit {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.rsvp-privacy {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.rsvp-privacy a {
    color: inherit;
}

.rsvp-errors {
    margin: 0 0 25px;
}

.rsvp-errors p {
    margin: 5px 0;
}

.rsvp-honeypot,
.rsvp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* RSVP List */
body.rsvp-list-page::before,
body.privacy-page::before {
    display: none;
}

.rsvp-list-page .rsvp-list-main {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: flex-start;
    padding: 60px 30px;
    text-align: left;
}

.rsvp-list-box {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.94);
    animation: rsvp-fade-in 0.6s ease-out both;
}

.rsvp-list-box h1 {
    margin: 0 0 30px;
    font-size: 40px;
    text-align: center;
}

.rsvp-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.rsvp-stats div {
    display: flex;
    flex-direction: column;
}

.rsvp-stats strong {
    font-size: 32px;
    font-weight: 300;
}

.rsvp-stats span {
    font-size: 15px;
}

.rsvp-table-wrap {
    overflow-x: auto;
}

.rsvp-table {
    width: 100%;
    border-collapse: collapse;
}

.rsvp-table th,
.rsvp-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    text-align: left;
    white-space: nowrap;
}

.rsvp-list-empty {
    margin: 0;
    text-align: center;
}

.rsvp-yes,
.rsvp-no {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
}

.rsvp-yes {
    color: #176b2c;
    background: #d9f0df;
}

.rsvp-no {
    color: #9f2020;
    background: #f6dada;
}


/* Legal Pages */
.legal-text {
    line-height: 1.5;
    text-align: center;
    white-space: pre-line;
}

.legal-text a {
    color: inherit;
}


/* Privacy Page */
.privacy-logo {
    margin-bottom: 80px;
}

.privacy-content {
    width: 100%;
    line-height: 1.5;
    text-align: left;
}

.privacy-content p {
    margin: 0 0 20px;
}

.privacy-content h1 {
    margin: 0 0 30px;
}

.privacy-content h2 {
	margin: 60px 0 10px;
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
}

.privacy-content h3 {
    margin: 15px 0 0;
    font-size: 17px;
    font-weight: 300;
    text-transform: uppercase;
}

.privacy-content ul {
    margin: 0 0 20px;
}

.privacy-page .privacy-main {
    display: block;
    width: 100%;
    max-width: 1300px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 60px 50px;
    text-align: left;
}

.privacy-page footer {
    position: static;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px 50px;
}


/* Mobile */
@media (max-width: 600px) {
    .rsvp-page .rsvp-main,
    .legal-page .legal-main {
        padding: 15px 15px 85px;
    }

    .rsvp-box,
    .legal-box {
        padding: 35px 22px;
    }

    .rsvp-logo,
    .legal-logo {
        margin-bottom: 30px;
    }

    .rsvp-list-page .rsvp-list-main {
        padding: 15px;
    }

    .rsvp-list-box {
        padding: 30px 20px;
    }

    .rsvp-stats {
        gap: 25px;
    }

    .rsvp-stats strong {
        font-size: 26px;
    }

    .privacy-page .privacy-main {
        padding: 35px 20px;
    }

    .privacy-page footer {
        padding: 20px;
    }
}