footer {
  padding: 4rem clamp(1.2rem, 5vw, 4rem) 1.5rem;
  background: var(--deep);
  color: var(--mute);
  font-size: .95rem;
  border-top: 4px solid var(--gold)
}

.fg {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem)
}

.fg > div {
  min-width: 0
}

.fg h4 {
  color: #fff;
  font: 700 1rem var(--d);
  margin: 0 0 1rem
}

.fg a,
.fg span {
  display: block;
  color: var(--mute);
  text-decoration: none;
  padding: .25rem 0
}

.fg a:hover,
.fl a:hover {
  color: var(--gold)
}

.fb-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .75rem
}

.fb-brand b {
  color: var(--ink);
  font: 800 1.05rem var(--d);
  letter-spacing: .02em
}

.fb .logo {
  width: 52px;
  height: 48px;
  border-radius: 0;
  background-size: contain;
  margin: 0
}

.fb p {
  max-width: 38ch
}

.fl {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid #ffffff22;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  font-size: .85rem
}

.fl a {
  color: var(--mute);
  text-decoration: none
}

.back-to-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid #16294f26;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 20px #16294f2b
}

@media(max-width:900px) {
  .fg {
    grid-template-columns: 1fr 1fr
  }

  .fb {
    grid-column: 1 / -1;
    max-width: 540px
  }
}

@media(max-width:560px) {
  footer {
    padding-top: 2.75rem
  }

  .fg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 1.75rem
  }

  .fb,
  .fg > div:last-child {
    grid-column: 1 / -1
  }

  .fb .logo {
    width: 44px;
    height: 42px
  }

  .fl {
    margin-top: 1.75rem;
    flex-direction: column;
    align-items: flex-start
  }
}

.fg h4 {
  color: var(--ink)
}

footer {
  background: #fbf8f1
}

.fl {
  border-top-color: #1f334522
}