.site-footer {
  --footer-green: #239653;
  --footer-muted: #9a9a9a;
  flex: none;
  background: linear-gradient(90deg, #1d1e1e, #303131);
  color: white;
  font-family: "Source Sans 3", sans-serif;
}

.footer-inner {
  display: grid;
  width: min(calc(100% - 64px), 1120px);
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(100px, 1fr));
  gap: 32px;
  margin: 0 auto;
  padding: 64px 0 32px;
}

.footer-brand img {
  display: block;
  width: 152px;
  height: auto;
  margin: -32px 0 8px;
}

.footer-brand p {
  max-width: 280px;
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-group h2 {
  margin: 0 0 12px;
  color: var(--footer-green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-group nav {
  display: grid;
}

.footer-group a {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--footer-muted);
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:active,
.footer-group a:focus-visible,
.footer-group a[aria-current="page"] {
  color: var(--footer-muted);
  text-decoration: underline;
  text-decoration-color: var(--footer-green);
  text-underline-offset: 4px;
}

.footer-bottom {
  display: grid;
  width: min(calc(100% - 64px), 1120px);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: var(--footer-muted);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom > p:last-child {
  text-align: right;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.footer-socials a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
}

.footer-socials a:hover {
  background: rgb(255 255 255 / 8%);
}

.footer-socials a:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

.footer-socials img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* The supplied YouTube artwork includes transparent space around the mark. */
.footer-socials .youtube-icon {
  width: 36px;
  height: 36px;
}

.site-coming-soon-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 31;
  width: min(calc(100% - 32px), 280px);
  margin: 0;
  padding: 16px 24px;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 12px 32px rgb(0 0 0 / 24%);
  color: #fbfdfa;
  font-family: "Source Sans 3", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  visibility: hidden;
}

.site-coming-soon-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media (max-width: 640px) {
  .footer-inner {
    width: min(calc(100% - 40px), 1120px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    padding: 48px 0 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand img {
    width: 128px;
  }

  .footer-bottom {
    width: min(calc(100% - 40px), 1120px);
    gap: 8px;
    font-size: 0.7rem;
  }

  .footer-socials {
    gap: 0;
  }

  .site-coming-soon-toast {
    right: 16px;
    bottom: 16px;
  }
}

@media print {
  .site-footer,
  .site-coming-soon-toast {
    display: none;
  }
}
