/* Email list capture — matches the homepage button language:
   Courier, transparent on black, 2px white border, inverts on hover. */

.signup {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.signup-form {
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    width: 100%;
    max-width: 560px;
    padding: 0 20px;
    box-sizing: border-box;
}

.signup-label {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    opacity: 0.85;
}

.signup-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.signup-row input[type="text"],
.signup-row input[type="email"],
.signup-button {
    /* Padding and border must sit inside the declared width, or a
       width:100% control overflows its container. */
    box-sizing: border-box;
}

.signup-row input[type="text"],
.signup-row input[type="email"] {
    font-family: 'Courier New', Courier, monospace;
    background-color: transparent;
    color: white;
    font-size: 16px; /* >=16px so iOS Safari does not zoom on focus */
    padding: 8px 12px;
    border: 2px solid white;
    text-transform: uppercase;
    flex: 1 1 160px;
    min-width: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.signup-row input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}

.signup-row input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 1px white;
}

.signup-button {
    font-family: 'Courier New', Courier, monospace;
    background-color: transparent;
    color: white;
    font-size: 16px;
    padding: 8px 20px;
    border: 2px solid white;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    flex: 0 0 auto;
    border-radius: 0;
}

.signup-button:hover:not(:disabled) {
    background-color: white;
    color: black;
}

.signup-button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Honeypot — visually gone, still fillable by bots. */
.signup-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.signup-status {
    font-size: 14px;
    min-height: 1.2em;
    margin: 12px 0 0;
    letter-spacing: 0.06em;
}

.signup-status.is-error { color: #ff6b6b; }
.signup-status.is-ok    { color: #7CFC98; }

@media (max-width: 767px) {
    .signup { margin-top: 4vh; }

    /* Sized to sit in the same visual family as the nav buttons
       above, which render ~135px wide. */
    .signup-form { max-width: 216px; padding: 0 8px 6vh; }

    .signup-label {
        font-size: 12px;
        letter-spacing: 0.2em;
        margin-bottom: 14px;
    }

    .signup-row {
        flex-direction: column;
        gap: 8px;
    }

    /* Stacked, the row's flex-basis would be read as a HEIGHT and the
       grow factor would stretch it. Size these by content instead. */
    .signup-row input[type="text"],
    .signup-row input[type="email"],
    .signup-button {
        flex: 0 0 auto;
        width: 100%;
        height: 44px;          /* comfortable touch target */
        padding: 0 12px;
        font-size: 16px;       /* keeps iOS from zooming on focus */
        border-width: 1px;     /* 2px reads heavy at this width */
        line-height: normal;
    }

    .signup-button {
        margin-top: 4px;
        border-width: 2px;     /* the button keeps its weight */
        letter-spacing: 0.1em;
    }

    .signup-status { font-size: 13px; margin-top: 10px; }
}
