/* How the home and shop pages close: a painting, large type, a line link and one underlined
   email field. No boxes: the painting gives the depth, hairlines give the structure.
   The shop adds a second block ("Not sure which painting?") above the collector list. */

.closing {
    padding: clamp(56px, 7vw, 116px) var(--gutter, 24px) clamp(64px, 8vw, 128px);
    border-top: 1px solid rgba(38, 23, 31, .1);
    background: #FBF9F4;
}
.closing__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    max-width: 1240px;
    margin-inline: auto;
}

/* --- The painting --- */
.closing__art { margin: 0; }
.closing__art a { display: block; text-decoration: none; }
.closing__art img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 1px 2px rgba(46, 32, 18, .22), 0 44px 70px -50px rgba(46, 32, 18, .62);
}
.closing__art figcaption {
    margin-top: 14px;
    font: 500 11.5px/1.5 var(--hui-font-body, Jost, Arial, sans-serif);
    letter-spacing: .16em;
    text-transform: uppercase;
}
.closing__art figcaption a { --hui-brass-text: #67565E; display: inline; text-decoration-color: transparent !important; text-underline-offset: 4px; transition: text-decoration-color .3s ease; }
.closing__art figcaption a:hover, .closing__art figcaption a:focus-visible { text-decoration-color: currentColor !important; }

/* --- The words --- */
.closing__body { min-width: 0; }
.closing :is(.guidance-card, .collector-card) { text-align: left; scroll-margin-top: calc(var(--header-height, 64px) + 24px); }
.closing .collector-card:focus { outline: none; }
.closing .guidance-card {
    margin-bottom: clamp(34px, 4vw, 56px);
    padding-bottom: clamp(30px, 3.6vw, 50px);
    border-bottom: 1px solid rgba(38, 23, 31, .16);
}
.closing :is(.guidance-card__label, .collector-card__label) {
    margin: 0 0 14px;
    font: 500 11.5px/1.5 var(--hui-font-body, Jost, Arial, sans-serif);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #67565E;
}
.closing :is(.guidance-card, .collector-card) h2 {
    margin: 0;
    font-size: clamp(32px, 3.8vw, 54px);
    line-height: 1.06;
    letter-spacing: -.015em;
    color: #26171F;
    text-wrap: balance;
}
.closing :is(.guidance-card, .collector-card) h2 em { font-style: italic; color: #67565E; }
.closing :is(.guidance-card__sub, .collector-card__sub) {
    max-width: 40ch;
    margin: 18px 0 0;
    font: 400 16.5px/1.7 var(--hui-font-body, Jost, Arial, sans-serif);
    color: #4a463f;
}
.closing .guidance-card__ask { margin-top: 20px; }

/* --- One underlined field --- */
.closing .collector-card__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 520px;
    margin: 26px 0 0;
}
.closing .collector-card__field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    border-bottom: 1px solid #26171F;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.closing .collector-card__field:focus-within { border-bottom-color: #66023C; box-shadow: 0 1px 0 #66023C; }
.closing .collector-card__field-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.closing .collector-card__field input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #26171F;
    font: italic 400 21px/1.3 var(--hui-font-heading, "Playfair Display", Georgia, serif);
    -webkit-appearance: none;
    appearance: none;
}
.closing .collector-card__field input::placeholder { color: #857e73; opacity: 1; }
/* The arrow that sends it. brand.css paints buttons from --hui-ink, so that is cleared here. */
.closing .collector-card__join {
    --hui-ink: transparent;
    --hui-radius-button: 0px;
    border-radius: 0;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    height: 60px;
    min-height: 0;
    margin: 0 0 1px;
    box-shadow: 0 1px 0 #26171F;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.closing .collector-card__join span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.closing .collector-card__join::after {
    content: "";
    flex: none;
    width: 26px;
    height: 10px;
    margin-right: -22px;
    background: #26171F;
    -webkit-mask: linear-gradient(#000, #000) left center / calc(100% - 3px) 1px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 10'%3E%3Cpath d='M1.5 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") right center / 7px 10px no-repeat;
    mask: linear-gradient(#000, #000) left center / calc(100% - 3px) 1px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 10'%3E%3Cpath d='M1.5 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") right center / 7px 10px no-repeat;
    transition: width .5s cubic-bezier(.2, .7, .2, 1);
}
.closing .collector-card__join:hover::after,
.closing .collector-card__join:focus-visible::after { width: 40px; }
.closing .collector-card__join:disabled { opacity: .5; cursor: default; }
.closing .collector-card__status {
    flex: 0 0 100%;
    margin: 12px 0 0;
    font: 400 14.5px/1.6 var(--hui-font-body, Jost, Arial, sans-serif);
    color: #26171F;
}
.closing .collector-card__form.is-done :is(.collector-card__field, .collector-card__join) { display: none; }
.closing .collector-card__form.is-done .collector-card__status {
    margin: 0;
    font: italic 400 21px/1.4 var(--hui-font-heading, "Playfair Display", Georgia, serif);
    color: #67565E;
}
.closing .collector-card__note {
    max-width: 46ch;
    margin: 14px 0 0;
    font: 400 12.5px/1.65 var(--hui-font-body, Jost, Arial, sans-serif);
    color: #67565E;
}
.closing .collector-card__note a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Laptop: painting beside the words --- */
@media (min-width: 900px) {
    .closing__inner {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: clamp(48px, 7vw, 124px);
        align-items: center;
    }
    /* A single block sits beside a smaller, upright painting. */
    .closing:not(.closing--two) .closing__art { max-width: 400px; justify-self: end; width: 100%; }
}
@media (max-width: 899px) {
    .closing__art { max-width: 520px; }
    .closing:not(.closing--two) .closing__art { max-width: 340px; }
}
@media (max-width: 640px) {
    .closing { padding: 44px 20px 60px; }
    .closing :is(.guidance-card__sub, .collector-card__sub) { font-size: 16px; }
    .closing .collector-card__field input { font-size: 19px; height: 56px; }
    .closing .collector-card__join { height: 56px; }
}

@media print { .closing { display: none !important; } }
