/* Site footer. It sticks to the bottom of the viewport underneath the
   page (main sits above it, see pages/home.css), so scrolling to the end
   uncovers it from behind the last section. Light blue, as the footer in
   the website mockup in the pitch deck: the contact address large, three
   short columns, the wordmark across the full width, the disclaimer. */

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-lg);
  padding: var(--theme-space-xl) var(--theme-bleed) var(--theme-space-sm);
  background: var(--theme-color-highlight);
  color: var(--theme-color-text);
  font-size: var(--theme-text-sm);
  line-height: 1.6;
}

/* The full footer is almost one screen tall (the 404 page only has the
   disclaimer). */
.site-footer:has(.site-footer__main) {
  min-height: 94svh;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--theme-space-lg);
  align-items: end;
  margin-top: auto;
}

.site-footer__label {
  margin-bottom: 8px;
  font-weight: var(--theme-font-weight-semibold);
  color: var(--theme-color-heading);
}

.site-footer__big {
  display: inline-block;
  font-size: clamp(1.75rem, 0.9rem + 3.6vw, 4.5rem);
  font-weight: var(--theme-font-weight-semibold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--theme-color-heading);
  text-decoration: none;
  background: linear-gradient(currentcolor, currentcolor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--theme-ease-signature);
  overflow-wrap: anywhere;
}

.site-footer__big:hover {
  background-size: 100% 2px;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-space-sm);
}

.site-footer ul {
  list-style: none;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--theme-color-heading);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--theme-color-heading);
  outline-offset: 3px;
}

/* The wordmark across the full width of the content. */
.site-footer__wordmark {
  display: block;
}

.site-footer__wordmark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: var(--theme-color-heading);
}

.site-footer__disclaimer {
  max-width: 48rem;
  font-size: 0.75rem;
  color: var(--theme-color-text);
}

@media (width <= 800px) {
  .site-footer__main,
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
}
