:root {
    --paper: #fffaf5;
    --paper-deep: #f7efe7;
    --orange: #b84e1d;
    --orange-deep: #983d15;
    --black: #171514;
    --muted: #7d746e;
    --border: rgba(184, 78, 29, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 255, 255, 0.96),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            var(--paper) 0%,
            var(--paper-deep) 100%
        );

    color: var(--black);

    font-family:
        "Montserrat",
        sans-serif;
}

button,
input {
    font: inherit;
}

.landing {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;

    display: grid;
    place-items: center;

    padding: 32px 24px;

    overflow: hidden;
}

.landing::before,
.landing::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(184, 78, 29, 0.08);
    border-radius: 50%;

    pointer-events: none;
}

.landing::before {
    width: 420px;
    height: 420px;

    top: -260px;
    right: -180px;
}

.landing::after {
    width: 360px;
    height: 360px;

    bottom: -250px;
    left: -190px;
}

.landing-content {
    position: relative;
    z-index: 2;

    width: min(100%, 520px);

    text-align: center;
}

.landing-eyebrow {
    margin: 0 0 22px;

    color: var(--orange);

    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.landing h1 {
    margin: 0;

    color: var(--black);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(72px, 10vw, 112px);
    font-weight: 500;
    line-height: 0.82;

    letter-spacing: -0.045em;
}

.landing h1 em {
    margin: 0 4px;

    color: var(--orange);

    font-style: italic;
    font-weight: 400;
}

.landing-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin: 30px auto 24px;
}

.landing-divider > span:first-child,
.landing-divider > span:last-child {
    width: 62px;
    height: 1px;

    background: rgba(184, 78, 29, 0.55);
}

.landing-heart {
    color: var(--orange);

    font-family: Georgia, serif;

    font-size: 20px;
    line-height: 1;
}

.landing-intro {
    max-width: 380px;

    margin: 0 auto 26px;

    color: #59514c;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 24px;
    font-style: italic;
    line-height: 1.3;
}

.invitation-form {
    width: min(100%, 380px);
    margin: 0 auto;
}

.invitation-form input {
    width: 100%;
    height: 54px;

    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.88);
    color: var(--black);

    text-align: center;

    font-size: 14px;
    letter-spacing: 0.08em;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.invitation-form input::placeholder {
    color: #aaa19a;
    letter-spacing: 0.04em;
}

.invitation-form input:focus {
    outline: none;

    background: #fff;
    border-color: var(--orange);

    box-shadow:
        0 0 0 4px rgba(184, 78, 29, 0.08);
}

.invitation-form input.is-invalid {
    border-color: #b13f2e;

    box-shadow:
        0 0 0 4px rgba(177, 63, 46, 0.08);
}

.landing-button {
    width: 100%;
    min-height: 52px;

    margin-top: 12px;
    padding: 0 24px;

    border: 0;
    border-radius: 14px;

    background: var(--orange);
    color: #fff;

    cursor: pointer;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.landing-button:hover {
    background: var(--orange-deep);

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(184, 78, 29, 0.16);
}

.landing-button:active {
    transform: translateY(0);
}

.landing-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.landing-error {
    min-height: 20px;

    margin: 12px 0 0;

    color: #b13f2e;

    font-size: 11px;
    line-height: 1.55;
}

.landing-note {
    margin: 20px 0 0;

    color: var(--muted);

    font-size: 9px;
    line-height: 1.6;

    letter-spacing: 0.08em;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

@media (max-width: 600px) {

    .landing {
        padding: 24px 20px;
    }

    .landing-eyebrow {
        margin-bottom: 18px;
        font-size: 9px;
    }

    .landing h1 {
        font-size: clamp(58px, 18vw, 78px);
    }

    .landing-divider {
        margin-top: 24px;
        margin-bottom: 20px;
    }

    .landing-divider > span:first-child,
    .landing-divider > span:last-child {
        width: 48px;
    }

    .landing-intro {
        max-width: 310px;
        font-size: 21px;
    }

    .landing::before {
        width: 280px;
        height: 280px;

        top: -170px;
        right: -150px;
    }

    .landing::after {
        width: 250px;
        height: 250px;

        bottom: -170px;
        left: -140px;
    }
}

@media (max-height: 620px) {

    .landing-content {
        transform: scale(0.92);
    }
}