.site-footer {
  border-top: 1px solid var(--color-gold-subtle);
  background: #050605;
  color: #cfcdc8;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas: "brand links" "connect connect" "bottom bottom";
  gap: 20px 24px;
  width: calc(100% - 2 * 27px);
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-block: 17px 17px;
}

.site-footer__brand {
  grid-area: brand;
  padding-top: 4px;
}

.site-footer__logo {
  display: block;
  width: min(100%, 168px);
  margin-left: -6px;
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__tagline {
  margin: 9px 0 0;
  font-size: clamp(8px, 2.56vw, 11px);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__nav {
  grid-area: links;
  padding-left: 27px;
  border-left: 1px solid var(--color-gold-subtle);
}

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav ul li {
  display: flex;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: start;
  min-height: 10px;
  font-size: 10px;
  line-height: 1;
}

.site-footer__connect {
  display: grid;
  grid-area: connect;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.footer-subscribe {
  min-width: 0;
}

.footer-subscribe__field {
  display: flex;
  align-items: center;
  height: 30px;
  border: 1px solid var(--color-gold);
  border-radius: 4px;
  background: rgb(255 255 255 / 2%);
}

.footer-subscribe__mail {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  opacity: 0.8;
}

.footer-subscribe input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 8px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #eee9df;
  font-size: 12px;
}

.footer-subscribe input::placeholder {
  color: #aaa79f;
  opacity: 1;
}

.footer-subscribe button {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  align-self: stretch;
  padding: 0;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: var(--color-gold);
}

.footer-subscribe button img {
  filter: brightness(0);
}
.footer-subscribe__status {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
}
.footer-subscribe__status:empty {
  display: none;
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-footer__socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.site-footer__socials img {
  display: block;
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.site-footer__bottom {
  display: flex;
  grid-area: bottom;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: clamp(7.5px, 2.15vw, 11px);
  line-height: 1.4;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__values li + li {
  margin-left: 7px;
  padding-left: 7px;
  border-left: 1px solid var(--color-gold-subtle);
}

.site-footer a,
.site-footer button {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.site-footer a:active,
.site-footer button:active {
  opacity: 0.7;
}

@media (hover: hover) {
  .site-footer__nav a:hover {
    color: var(--color-gold);
  }
  .site-footer__logo:hover {
    opacity: 0.85;
  }
  .site-footer__socials a:hover {
    background: var(--color-gold-subtle);
  }
  .footer-subscribe button:hover {
    background: color-mix(in srgb, var(--color-gold) 80%, white);
  }
}

@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.6fr) minmax(
        260px,
        1fr
      );
    grid-template-areas: "brand links connect" "bottom bottom bottom";
    gap: 24px clamp(24px, 4vw, 64px);
    padding-block: 10px 20px;
  }
  .site-footer__brand {
    padding-top: 2px;
  }
  .site-footer__logo {
    width: min(100%, 210px);
  }
  .site-footer__tagline {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.6;
  }
  .site-footer__nav {
    padding-left: 32px;
  }
  .site-footer__nav a {
    font-size: 13px;
  }
  .site-footer__connect {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding-top: 4px;
  }
  .footer-subscribe__field {
    height: 30px;
  }
  .footer-subscribe input {
    font-size: 12px;
  }
  .footer-subscribe button {
    flex-basis: 30px;
  }
  .site-footer__socials {
    justify-content: flex-end;
    gap: 6px;
  }
  .site-footer__socials a {
    width: 26px;
    height: 30px;
  }
  .site-footer__socials img {
    width: 18px;
    height: 18px;
  }
  .site-footer__bottom {
    font-size: 11px;
  }
  .site-footer__values li + li {
    margin-left: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a,
  .site-footer button {
    transition: none;
  }
}
