/* === Subscribe block — homepage newsletter signup =====================
 *
 * Tuscan-Sun full-bleed block on the homepage (and on the /subscribe/ WP
 * page, which re-uses this pattern). Renders the `.sb-seal--mailbag`
 * variant of the round-seal decoration, an Italiana heading, an italic
 * Cormorant stand, and a horizontal email form that POSTs to the
 * /wp-json/sb/v1/subscribe REST endpoint registered by features/newsletter/.
 *
 * The form's submit handler lives in assets/js/subscribe.js (to be moved
 * to features/newsletter/view.js in slice 10.3); it binds via the
 * [data-sb-subscribe] / [data-sb-subscribe-status] data attributes, so
 * the BEM class renames in this slice don't affect the JS.
 */
.sb-subscribe-block {
    /* Wrapper background/padding set inline via WP block-group attributes. */
}
.sb-subscribe-block__form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: stretch;
}
.sb-subscribe-block__form-email {
    flex: 1 1 260px;
    max-width: 360px;
    font-family: var(--wp--preset--font-family--lora);
    font-size: var(--wp--preset--font-size--cta);
    padding: calc(var(--wp--preset--spacing--xs) + var(--wp--preset--spacing--xxs)) var(--wp--preset--spacing--sm);
    border: 1.5px solid var(--wp--preset--color--ink);
    background: var(--wp--preset--color--paper);
    border-radius: 999px;
}
.sb-subscribe-block__form-submit {
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    padding: calc(var(--wp--preset--spacing--xs) + var(--wp--preset--spacing--xxs)) calc(var(--wp--preset--spacing--md) - var(--wp--preset--spacing--xxs) / 2);
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--paper);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}
/* Light focus ring on the saddle/ink button (was in patterns.css under a
   shared :focus-visible override for ink/saddle backgrounds). */
.sb-subscribe-block__form-submit:focus-visible {
    outline: 2px solid var(--wp--preset--color--paper);
    outline-offset: 3px;
}
.sb-subscribe-block__form-note {
    flex-basis: 100%;
    text-align: center;
    margin: var(--wp--preset--spacing--xs) 0 0;
    font-family: var(--wp--preset--font-family--cormorant);
    font-style: italic;
    font-size: var(--wp--preset--font-size--caption);
    color: rgba(42, 26, 10, 0.65);
}
.sb-subscribe-block__form-status {
    margin: calc(var(--wp--preset--spacing--sm) - var(--wp--preset--spacing--xxs) / 2) auto 0;
    max-width: 640px;
    text-align: center;
    font-family: var(--wp--preset--font-family--cormorant);
    font-style: italic;
    font-size: var(--wp--preset--font-size--body);
}
.sb-subscribe-block__form-status.is-ok  { color: var(--wp--preset--color--ink); }
.sb-subscribe-block__form-status.is-err { color: rgb(176, 74, 47); /* error red — not a brand token */ }

/* --- Mailbag seal variant ---------------------------------------------
 * This is the `.sb-seal--mailbag` modifier of the generic `.sb-seal`
 * decoration (whose base styles live in assets/css/patterns.css next to
 * the standalone `decoration-round-seal` pattern). Scoped under the
 * subscribe-block wrapper so the wrapper-class linter (R1) is happy.
 * The decoration-round-seal/README.md tracks an eventual unification of
 * the seal variants into proper modifiers of that pattern. */
.sb-subscribe-block .sb-seal--mailbag {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--wp--preset--spacing--sm-plus);
    background: rgba(250, 246, 240, 0.45);
    border: 1.5px solid var(--wp--preset--color--saddle);
    color: var(--wp--preset--color--saddle);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
}
.sb-subscribe-block .sb-seal--mailbag::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--wp--preset--color--saddle);
    border-radius: 50%;
    opacity: 0.4;
}
.sb-subscribe-block .sb-seal--mailbag .sb-seal-line-1,
.sb-subscribe-block .sb-seal--mailbag .sb-seal-line-3 {
    color: var(--wp--preset--color--saddle);
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--tiny);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.sb-subscribe-block .sb-seal--mailbag .sb-seal-line-2 {
    color: var(--wp--preset--color--saddle);
    font-family: var(--wp--preset--font-family--cormorant);
    font-style: italic;
    font-size: var(--wp--preset--font-size--body);
    letter-spacing: 0;
    margin: var(--wp--preset--spacing--xxs) 0;
    font-weight: 500;
}
