:root {
    --bg: #0b0f0c;
    --panel: #111713;
    --text: #e8efe9;
    --muted: #9aa8a0;
    --accent: #4ade80;
    --accent-hover: #22c55e;
    --border: #1f2a23;
    --error: #ef4444;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

main { display: block; }

.hero {
    width: 100%;
    line-height: 0;
    background: #000;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile: crop hero to 40vh, keep horizontally centered */
@media (max-width: 699px) {
    .hero {
        height: 40vh;
        overflow: hidden;
    }
    .hero img {
        height: 100%;
        width: auto;
        max-width: none;
        margin: 0 auto;
        object-fit: cover;
        object-position: center;
        /* fallback for browsers without object-fit */
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

.subscribe {
    padding: 40px 20px 32px;
}

.wrap {
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lede {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

form {
    display: grid;
    gap: 10px;
    text-align: left;
}

label {
    display: grid;
    gap: 4px;
}

label span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

button {
    margin-top: 4px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #06140b;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

button:hover { background: var(--accent-hover); }
button:active { transform: translateY(1px); }

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.msg {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    text-align: left;
}

.msg.ok {
    color: #bbf7d0;
    background: rgba(74, 222, 128, 0.10);
    border: 1px solid rgba(74, 222, 128, 0.30);
}

.msg.err {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.30);
}

footer {
    margin-top: 36px;
    font-size: 12px;
    color: var(--muted);
}

@media (min-width: 700px) {
    .subscribe { padding: 80px 24px 56px; }
    .wrap { max-width: 520px; }
    h1 { font-size: 34px; margin-bottom: 8px; }
    .lede { font-size: 16px; margin-bottom: 28px; }
    form { gap: 14px; }
    label { gap: 6px; }
    label span { font-size: 13px; }
    input[type="text"],
    input[type="email"] {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    button {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 10px;
        margin-top: 6px;
    }
}
