/*
 * SITE FOOTER — the dark band that closes every scrolling page
 * ------------------------------------------------------------------
 * Self-contained: nothing here depends on main.css, and main.css is
 * untouched. Pairs with assets/scripts/ca-footer.js, which runs the
 * e-mail sign-up and the deep links into the terms accordions.
 *
 * Structure
 *   .ca-footer_top      wordmark + tagline on the left, sign-up on the right
 *   .ca-footer_cols     the link columns
 *   .ca-footer_base     copyright
 *
 * Breakpoints follow the rest of the site: 699px and 999px.
 */

.ca-footer {
    position: relative;
    z-index: 710;
    background-color: #fff;
    color: #231f20;
    /* White on white: the footer needs a hairline or it runs into the page. */
    border-top: 1px solid rgba(35, 31, 32, .12);
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ca-footer,
.ca-footer *,
.ca-footer *::before,
.ca-footer *::after { box-sizing: border-box; }

.ca-footer a { color: inherit; text-decoration: none; }

.ca-footer_inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 72px clamp(24px, 7.2vw, 104px) 48px;
}

@media (max-width: 699px) {
    .ca-footer_inner { padding: 56px 24px 40px; }
}

/* ------------------------------------------------------------------
   Top band — wordmark / tagline / sign-up
   ------------------------------------------------------------------ */

.ca-footer_top {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 30px;
}

.ca-footer_brand { -ms-flex: 0 1 auto; flex: 0 1 auto; }

.ca-footer_wordmark {
    display: inline-block;
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: #231f20;
    transition: color .3s cubic-bezier(.4, 0, 0, 1);
}

.ca-footer_wordmark:hover,
.ca-footer_wordmark:focus-visible { color: #6f6a66; }

.ca-footer_tagline {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #6f6a66;
}

/* Sign-up ---------------------------------------------------------- */

.ca-footer_signup { -ms-flex: 0 1 520px; flex: 0 1 520px; max-width: 100%; }

.ca-footer_signup-label {
    display: block;
    margin-bottom: 20px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #6f6a66;
}

.ca-footer_form {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
}

.ca-footer_field { -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }

.ca-footer_input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid rgba(35, 31, 32, .28);
    border-radius: 0;
    background: none;
    color: #231f20;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: .04em;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .3s cubic-bezier(.4, 0, 0, 1);
}

.ca-footer_input::-webkit-input-placeholder { color: #6f6a66; }
.ca-footer_input::placeholder { color: #6f6a66; }
.ca-footer_input:focus { outline: none; border-bottom-color: #231f20; }

.ca-footer_submit {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 15px 30px;
    border: 1px solid #231f20;
    border-radius: 999px;
    background-color: #231f20;
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .3s cubic-bezier(.4, 0, 0, 1),
                color .3s cubic-bezier(.4, 0, 0, 1);
}

.ca-footer_submit:hover,
.ca-footer_submit:focus-visible {
    background-color: transparent;
    color: #231f20;
}

.ca-footer_submit[disabled] { opacity: .5; cursor: default; }

/* The line that answers the sign-up. Holds its height so the footer
   does not jump when a message appears. */
.ca-footer_note {
    min-height: 14px;
    margin: 14px 0 0;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6f6a66;
}

.ca-footer_note.is-error { color: #a8442f; }
.ca-footer_note.is-done { color: #231f20; }

.ca-footer_consent {
    margin: 8px 0 0;
    font-size: 9px;
    line-height: 1.6;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a8580;
}

/* ------------------------------------------------------------------
   Link columns
   ------------------------------------------------------------------ */

.ca-footer_cols {
    display: grid;
    /* three since "The Collection" came out; auto-fit keeps them even
       if a column is added or removed again */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 52px 0;
    border-top: 1px solid rgba(35, 31, 32, .12);
    border-bottom: 1px solid rgba(35, 31, 32, .12);
}

.ca-footer_col-title {
    margin: 0 0 26px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #6f6a66;
}

.ca-footer_list { margin: 0; padding: 0; list-style: none; }
.ca-footer_list li { margin-bottom: 17px; }
.ca-footer_list li:last-child { margin-bottom: 0; }

.ca-footer_link {
    display: inline-block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #231f20;
    transition: color .3s cubic-bezier(.4, 0, 0, 1);
}

.ca-footer_link:hover,
.ca-footer_link:focus-visible { color: #6f6a66; }

/* ------------------------------------------------------------------
   Base line
   ------------------------------------------------------------------ */

.ca-footer_base {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 12px;
    padding-top: 34px;
}

.ca-footer_copy {
    margin: 0;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #6f6a66;
}

/* ------------------------------------------------------------------
   Tablet
   ------------------------------------------------------------------ */

@media (max-width: 999px) {
    .ca-footer_top { gap: 44px; }
    .ca-footer_brand,
    .ca-footer_signup { -ms-flex: 1 1 100%; flex: 1 1 100%; }
    .ca-footer_cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
}

/* ------------------------------------------------------------------
   Phone
   ------------------------------------------------------------------ */

@media (max-width: 699px) {
    .ca-footer_top { gap: 38px; padding-bottom: 38px; }
    .ca-footer_wordmark { font-size: 15px; letter-spacing: .36em; }
    .ca-footer_tagline { font-size: 10px; }

    /* Stacking the button keeps both targets a comfortable size. */
    .ca-footer_form { display: block; }
    .ca-footer_input { padding-bottom: 12px; font-size: 16px; /* no iOS zoom on focus */ }
    .ca-footer_submit { width: 100%; margin-top: 22px; padding: 16px 20px; }

    .ca-footer_cols { padding: 40px 0; gap: 36px 24px; }
    .ca-footer_col-title { margin-bottom: 20px; }
    .ca-footer_list li { margin-bottom: 15px; }
    .ca-footer_base { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .ca-footer * { transition-duration: .01ms !important; }
}
