.footer {
  position: relative;
  z-index: 2;
  min-height: 72px;
  padding-block: var(--space-4);
  border-top: 1px solid var(--footer-border-color, oklch(0 0 0 / 0.06));
  color: var(--footer-text-color, var(--ink-tertiary));
  background: var(--footer-background, var(--bg));
  font-family: var(--font-ui);
  font-size: 12px;
}

.footer__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.footer__brand-link,
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer__logo {
  width: 62px;
  height: auto;
  transition: opacity var(--dur-fast) var(--ease);
}

.footer__brand-link:hover .footer__logo { opacity: 0.72; }

.footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.footer__links a {
  color: inherit;
  transition: color var(--dur-fast) var(--ease),
              text-decoration-color var(--dur-fast) var(--ease);
}

.footer__links a:hover {
  color: var(--footer-hover-color, var(--ink));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer--dark {
  --footer-background: var(--preorder-night, oklch(0.105 0.007 210));
  --footer-border-color: oklch(1 0 0 / 0.1);
  --footer-text-color: oklch(0.7 0.012 180);
  --footer-hover-color: var(--ink-on-dark, oklch(0.96 0.006 100));
}

.footer--dark .footer__logo { filter: invert(1); opacity: 0.94; }

@media (max-width: 640px) {
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
    padding-inline: clamp(20px, 6vw, 28px);
  }

  .footer__links { gap: var(--space-5); }
}

@media (max-width: 360px) {
  .footer__inner { padding-inline: 16px; }
}
