/* ==========================================================================
   The Sewing Birdie — footer
   Matches mockups/Footer.dc.html.
   ========================================================================== */

.tsb-footer {
  background-color: var(--sb-soft);
  border-top: 1px solid var(--sb-line);
  color: var(--sb-ink);
  font-family: var(--sb-font-body);
}

.tsb-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-inline: auto;
  max-width: var(--sb-wrap);
  padding: 64px var(--sb-gutter) 32px;
}

.tsb-footer__newsletter {
  display: flex;
  flex: 2 1 340px;
  flex-direction: column;
  gap: 14px;
}

.tsb-footer__newsletter h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
}

.tsb-footer__newsletter p {
  color: var(--sb-ink-2);
  margin: 0;
  max-width: 46ch;
}

.tsb-footer__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tsb-footer__form input[type='email'] {
  flex: 1 1 220px;
}

.tsb-footer__form .tsb-btn {
  padding-inline: 22px;
}

.tsb-footer__col {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.tsb-footer__col h3 {
  color: var(--sb-muted);
  font-family: var(--sb-font-body);
  font-size: var(--sb-size-eyebrow);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.tsb-footer__col ul {
  display: flex;
  flex-direction: column;
  /* 0, not 10px: the 44px targets below now carry the spacing. Keeping the gap
     as well would have doubled the distance between the links relative to the
     mockup. The visible type is unchanged. */
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tsb-footer__col a {
  align-items: center;
  color: var(--sb-ink);
  display: inline-flex;
  /* Footer links measured 20px tall; the shared context requires 44px. */
  min-height: var(--sb-tap);
  text-decoration: none;
}

.tsb-footer__col a:hover,
.tsb-footer__col a:focus {
  color: var(--sb-accent-hover);
  text-decoration: underline;
}

/* --- Bottom row ---------------------------------------------------------- */
.tsb-footer__bottom {
  border-top: 1px solid var(--sb-line);
  color: var(--sb-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--sb-size-caption);
  gap: 12px;
  justify-content: space-between;
  margin-inline: auto;
  max-width: var(--sb-wrap);
  padding: 20px var(--sb-gutter) 40px;
}

.tsb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tsb-footer__legal a {
  align-items: center;
  color: var(--sb-muted);
  display: inline-flex;
  /* Same 44px minimum as the link columns: the bottom row's links were 20px. */
  min-height: var(--sb-tap);
}

.tsb-footer__methods {
  color: var(--sb-muted);
}
