.site-footer {
  position: relative;
  z-index: 2;
  padding: 12px var(--edge) max(32px, env(safe-area-inset-bottom));
  color: #fff;
  background: #000;
  font-family: inherit;
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .035em;
}
.site-footer__primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.site-footer__brand { display: block; justify-self: start; width: 104px; max-width: 100%; }
.site-footer__brand img { display: block; width: 100%; height: auto; }
.site-footer__newsletter { min-width: 0; text-align: center; }
.site-footer__newsletter h2 {
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  font-synthesis: weight;
  line-height: 1.5;
}
.site-footer__newsletter > p { margin: 3px 0 8px; }
.site-footer__form {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border-bottom: 1px solid #fff;
}
.site-footer__form input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 8px 8px 8px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: #fff;
  caret-color: #fff;
  font: inherit;
  letter-spacing: 0;
}
.site-footer__form input::placeholder { color: #fff; opacity: 1; font: inherit; }
.site-footer__form input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: inset 0 0 0 1000px #000; }
.site-footer__submit {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: flex-end;
  height: 44px;
  padding: 0 2px 0 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: opacity 200ms ease;
}
.site-footer__submit svg { display: block; width: 16px; height: 16px; }
.site-footer__submit:not(:disabled):hover { opacity: .65; }
.site-footer__submit:disabled { opacity: .55; cursor: wait; }
.site-footer__newsletter > .site-footer__message { margin: 10px 0 0; overflow-wrap: anywhere; }
.site-footer__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 6px;
  min-width: 64px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #fff;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.site-footer__top span { text-box: trim-both cap alphabetic; }
.site-footer__top svg { display: block; width: 13px; height: 13px; }
.site-footer__top:hover { background: #fff; color: #000; }
.site-footer__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 16px 24px;
  margin-top: 20px;
}
.site-footer__links a { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; color: #fff; }
.site-footer__policy { grid-column: 1; }
.site-footer__links .site-footer__instagram { grid-column: 3; justify-self: end; }
.site-footer__instagram {
  --instagram-size: 48px;
  justify-content: flex-end;
  min-width: 44px;
  width: var(--instagram-size);
  height: var(--instagram-size);
  /* Grow into the existing whitespace, preserving the 44px link row. */
  margin-block: calc((44px - var(--instagram-size)) / 2);
  transition: opacity 200ms ease;
}
.site-footer__instagram svg { display: block; width: 100%; height: auto; flex-shrink: 0; }
.site-footer__instagram:hover { opacity: .65; }
.site-footer__links a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
@media (max-width: 760px) {
  .site-footer__primary { grid-template-columns: minmax(0, 1fr) auto; gap: 28px 20px; }
  .site-footer__brand { grid-column: 1; grid-row: 1; width: 90px; }
  .site-footer__top { grid-column: 2; grid-row: 1; min-height: 44px; }
  .site-footer__newsletter { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: 360px; margin-inline: auto; }
  .site-footer__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 24px; }
}
