/* ==========================================================================
   Newsletter page (/newsletter)
   The page the footer band, its "Newsletter" label and its button lead to:
   one screen, the sign-up on the left and the photograph on the right.
   Black, white and the greys of the photography — no other colour.
   ========================================================================== */

.np-page {
    background: #ffffff;
    color: #111111;
    overflow-x: clip;
}

.np-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.5);
    margin-bottom: 18px;
}

/* ---------- Hero: the sign-up, with the photo bleeding to the right ---------- */

.np-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.np-hero__text {
    /* The header sits over the page (body.header-absolute), so the text has to
       clear both it and the announcement bar above it. */
    padding:
        calc(var(--announce-height, 0px) + clamp(104px, 13vh, 168px))
        clamp(20px, 6vw, 72px)
        clamp(48px, 7vh, 88px);
    max-width: 680px;
}

.np-hero__title {
    margin: 0 0 22px;
    color: #111111;
    font-size: clamp(34px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.np-hero__lede {
    margin: 0 0 clamp(32px, 4vw, 48px);
    max-width: 44ch;
    font-size: 15px;
    line-height: 1.75;
    color: #4a4a4a;
}

.np-hero__media {
    position: relative;
    margin: 0;
    background: #efefef;
}

.np-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    /* The bottle stands a little below the middle of the frame; the crop keeps
       it there instead of cutting the flames off the tallest candles. */
    object-fit: cover;
    object-position: center 42%;
}

.np-hero__caption {
    position: absolute;
    left: clamp(16px, 2.4vw, 30px);
    bottom: clamp(16px, 2.4vw, 30px);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.np-hero__caption a {
    color: #111111;
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.35);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.np-hero__caption a:hover,
.np-hero__caption a:focus-visible {
    border-bottom-color: #111111;
}

@media (max-width: 991.98px) {
    .np-hero__media {
        aspect-ratio: 4 / 5;
        max-height: 72vh;
    }
}

@media (min-width: 992px) {
    .np-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr);
        align-items: stretch;
        /* The page is this one screen, so it fills it exactly: the body already
           reserves the fixed announcement bar at the top. */
        min-height: calc(100vh - var(--announce-height, 0px));
    }

    @supports (height: 100dvh) {
        .np-hero {
            min-height: calc(100dvh - var(--announce-height, 0px));
        }
    }

    .np-hero__text {
        align-self: center;
        justify-self: end;
        padding-right: clamp(40px, 5vw, 80px);
    }
}

/* ---------- The form (both copies on the page) ---------- */

.np-form {
    max-width: 440px;
}

.np-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label label"
        "input button";
    align-items: stretch;
}

.np-form__label {
    grid-area: label;
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.5);
    margin-bottom: 10px;
}

.np-form__input {
    grid-area: input;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.28);
    color: #111111;
    font-size: 16px;
    padding: 12px 4px;
    transition: border-color 0.2s ease;
}

.np-form__input::placeholder {
    color: rgba(17, 17, 17, 0.3);
}

.np-form__input:focus {
    outline: none;
    border-bottom-color: #111111;
}

.np-form__btn {
    grid-area: button;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.28);
    background: transparent;
    color: #111111;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 12px 0 12px 24px;
    white-space: nowrap;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.np-form__btn i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.np-form__btn:hover,
.np-form__btn:focus-visible {
    border-bottom-color: #111111;
}

.np-form__btn:hover i,
.np-form__btn:focus-visible i {
    transform: translateX(4px);
}

.np-form__btn[disabled] {
    opacity: 0.45;
    cursor: default;
}

.np-form__note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(17, 17, 17, 0.5);
    min-height: 1.2em;
}

/* The shared script adds these two when the server answers. */
.np-form__note.is-ok {
    color: #111111;
}

.np-form__note.is-error {
    color: #a11a1a;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.np-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
