body {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    background: #f2e4b8;
    background-image: url('bg.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* overlay for readability */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(245, 236, 217, 0.25); 
}

.content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;

    /* desktop positioning */
    transform: translateY(-12vh);
}

h1 {
    color: #1b3e4c;
    font-size: 56px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

h2 {
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 30px;
    color: #333;
}

h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1b3e4c;
    font-weight: 600;
}

p {
    font-size: 16px;
    color: #444;
    margin-bottom: 25px;
}

/* form styling */
form {
    margin-bottom: 20px;
}

input[type="email"] {
    padding: 12px;
    width: 70%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    margin-bottom: 10px;
}

button {
    padding: 12px 20px;
    border: none;
    background: #1b3e4c;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
}

button:hover {
    opacity: 0.85;
}

a {
    color: #1b3e4c;
    text-decoration: none;
    border-bottom: 1px solid #1b3e4c;
}

a:hover {
    opacity: 0.7;
}

.fallback {
    font-size: 14px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {
    body {
        background-image: url('bg-mob.webp');
        background-position: top center;
        background-size: contain;
        padding: 10px;
        align-items: start;

    }

    body::before {
        background: rgba(245, 236, 217, 0.2);
    }

    .content {
        max-width: 90%;
        padding: 10px;
        transform: translateY(16vh);
    }

    h1 {
        font-size: 30px;
        margin-bottom: 5px;
    }

    h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    input[type="email"] {
        width: 100%;
        max-width: none;
    }

    button {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 1000px) and (orientation: landscape) {
    body {
        background-size: contain;
        background-position: top center;
    }
}

@media (min-width: 1001px) and (max-width: 1366px) {
    body {
        background-image: url('bg.webp');
        background-size: contain;
        background-position: center;
        min-height: 100dvh;
    }
}