/* The footer: black with white letters. The name is large in the pixel
   typeface, then two columns of links (the pages, and elsewhere). (This file
   replaces the older footer styling in style.css.) */

.site-footer {
  margin-top: var(--space-6);
  padding: clamp(1.4rem, 3vw, 2.25rem) 0 clamp(1.1rem, 2vw, 1.5rem);
  border-top: 0;
  background: #000;
  color: #fff;
  font-family: "DMTO Pixel", var(--font-display), sans-serif;
}

/* The name on the left in two lines, the two columns of links on the right;
   on a phone everything stacks. */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 6vw, 6rem);
  padding: 0 var(--page-inset, 1rem);
}

.site-footer__small {
  grid-column: 1 / -1;
}

/* The name: two lines. */
.site-footer .site-footer__name {
  font-size: clamp(1.8rem, 6.8vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.site-footer__name span {
  display: block;
}

.site-footer__cols {
  /* The links spread over the height of the big name: the first link lines up
     with the top of the letters, the last with their bottom. (The two margins
     trim the gap the typeface leaves above and below its letters.) */
  margin-top: var(--cols-top, 0.6vw);
  margin-bottom: var(--cols-bottom, 0.7vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  gap: 0.45rem;
}

.site-footer .site-footer__col a {
  align-self: flex-start;
  line-height: 1;
  font-size: clamp(1.05rem, 1.9vw, 1.7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
  transform-origin: left center;
}

.site-footer .site-footer__col a:hover {
  transform: scale(1.08);
}

.site-footer__small {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

@media (max-width: 700px) {
  .site-footer__cols {
    margin: 0;
    grid-template-rows: none;
  }

  .site-footer__col {
    justify-content: flex-start;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
