.site-footer {
  width: 100%;
  margin-top: 40px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--line, #262a32);
  color: var(--text, #ecedef);
}

.footer-wrap {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover { background: transparent; }

.footer-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.footer-mark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.footer-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--violet, #8c93ff);
  border-radius: 3px;
}

.footer-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--amber, #f2a93b);
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text-mute, #8b909b);
}

.footer-nav a:hover { color: var(--text, #ecedef); }

.footer-nav .disabled-link {
  color: var(--text-dim, #5f6470);
  cursor: not-allowed;
}

.footer-social {
  display: flex;
  align-items: center;
  flex: 1 1 100%;
  gap: 16px;
  min-width: 0;
}

.footer-social-label,
.copyright {
  font-family: var(--mono, "IBM Plex Mono", monospace);
  color: var(--text-dim, #5f6470);
}

.footer-social-label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-width: 0;
}

.footer-social-links a {
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 12px;
  color: var(--text-mute, #8b909b);
}

.footer-social-links a:hover { color: var(--text, #ecedef); }

.site-footer a:focus-visible {
  outline: 2px solid var(--amber, #f2a93b);
  outline-offset: 4px;
}

.copyright {
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .site-footer { padding: 36px 0 30px; }
  .footer-wrap { width: min(100% - 32px, 1180px); }
}

@media (max-width: 560px) {
  .footer-wrap { align-items: flex-start; }
  .footer-nav { gap: 12px 20px; }
  .footer-social { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-social-links { gap: 12px 18px; }
}
