/* The page ends on the darkest ruby, so the footer feels like a last scene and not a leftover. */
.footer {
  margin-top: clamp(48px, 6vw, 96px);
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 96px);
  background: var(--ruby-950);
  color: var(--on-ruby-soft);
  font-size: var(--t-body);
}

.footer a {
  color: var(--on-ruby);
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer :focus-visible {
  outline-color: var(--on-ruby);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px 32px;
}

.footer__pitch {
  max-width: 14em;
  color: var(--on-ruby);
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.footer__title {
  margin-bottom: 8px;
  font-size: var(--t-small);
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(40px, 5vw, 72px);
  font-size: var(--t-small);
}

.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
}

.footer__made a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer__heart {
  width: 16px;
  height: 16px;
  fill: var(--ruby-300);
}

.footer__credits {
  margin-top: 16px;
  font-size: var(--t-small);
  line-height: 1.5;
}

.footer__credits summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}

.footer__credits a {
  text-decoration: underline;
}

/* The name sets in the same moving ruby as the scenes above it. */
.footer__mark {
  margin: clamp(24px, 3vw, 40px) 0 -0.09em;
  background: linear-gradient(100deg, var(--ruby-800), var(--ruby-500), var(--ruby-300), var(--ruby-500), var(--ruby-800));
  background-size: 300% 100%;
  background-clip: text;
  color: transparent;
  font-size: clamp(96px, 33vw, 480px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  animation: mark-flows 12s ease-in-out infinite alternate;
}

@keyframes mark-flows {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@media (max-width: 760px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__pitch {
    grid-column: 1 / -1;
  }
}
