.site-footer {
  width: 100%;
  margin: auto 0 0;
  color: var(--cream);
  text-align: left;
  background: var(--ink);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 26px clamp(42px, 7vw, 110px);
  padding: 30px 0 20px;
  align-items: start;
}

.site-footer-brand {
  display: grid;
  grid-template-columns: max-content minmax(180px, 1fr);
  grid-template-rows: repeat(2, auto);
  column-gap: 30px;
  row-gap: 4px;
  min-width: 0;
  padding-top: 0;
  align-content: center;
}

.site-footer-identity {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  margin: 0;
  padding-right: 30px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.site-footer-identity img { width: auto; height: 105px; object-fit: contain; }
.site-footer-brand p {
  grid-column: 2;
  margin: 0;
  color: var(--cream);
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
}
.site-footer-brand p:first-of-type { align-self: end; }
.site-footer-version { align-self: start; font-variant-numeric: tabular-nums; }
.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: clamp(34px, 5vw, 72px);
}
.site-footer-nav > div {
  display: grid;
  gap: 9px;
  align-content: start;
  justify-items: start;
}
.site-footer-nav strong {
  margin-bottom: 2px;
  color: var(--cream);
  font-size: var(--type-t2-size);
  font-weight: var(--type-t2-weight);
  line-height: var(--type-t2-line-height);
  letter-spacing: var(--type-t2-letter-spacing);
}
.site-footer-nav :is(button, span, a) {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  color: rgb(252 252 251 / 76%);
  font: inherit;
  font-size: var(--type-t3-size);
  font-weight: var(--type-t3-weight);
  line-height: var(--type-t3-line-height);
  letter-spacing: var(--type-t3-letter-spacing);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: transparent;
}
.site-footer-nav span b { font: inherit; font-variant-numeric: tabular-nums; }
.site-footer-nav .site-footer-metrics { display: block; }
.site-footer-nav .site-footer-product-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 9px 24px;
}
.site-footer-product-links > :nth-child(1) { grid-column: 1; grid-row: 1; }
.site-footer-product-links > :nth-child(2) { grid-column: 2; grid-row: 1; }
.site-footer-product-links > :nth-child(3) { grid-column: 1; grid-row: 2; }
.site-footer-product-links > :nth-child(4) { grid-column: 1; grid-row: 3; }
.site-footer-nav :is(button, a) { cursor: pointer; }

@media (max-width: 743px) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 26px 0 18px;
  }
  .site-footer-brand {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: repeat(2, auto);
    width: 100%;
    column-gap: 24px;
    padding-top: 0;
  }
  .site-footer-identity { display: contents; }
  .site-footer-identity img {
    grid-column: 1;
    grid-row: 1 / 3;
    width: auto;
    height: 105px;
    align-self: center;
  }
  .site-footer-brand p { grid-column: 2; justify-self: end; text-align: right; }
  .site-footer-brand p:first-of-type { grid-row: 1; }
  .site-footer-brand .site-footer-version { grid-row: 2; }
  .site-footer-nav { gap: 24px; }
  .site-footer-nav > div:last-child { justify-items: end; text-align: right; }
  .site-footer-nav > div:last-child :is(button, span, a) { text-align: right; }
}
