html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  margin: 20px 0 0;
  padding: 18px 20px 20px;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.site-footer__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--footer-text);
  text-align: center;
}

.site-footer__brand-name {
  font-size: 1.08rem;
  line-height: 1.2;
}

.site-footer__brand-icon {
  width: 64px;
  height: 64px;
  display: block;
}

.site-footer__brand-icon--dark {
  display: none;
}

html[data-theme="dark"] .site-footer__brand-icon--dark,
html[data-theme="night"] .site-footer__brand-icon--dark {
  display: block;
}

html[data-theme="dark"] .site-footer__brand-icon--light,
html[data-theme="night"] .site-footer__brand-icon--light {
  display: none;
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--footer-text);
  justify-content: center;
}

.site-footer__link {
  color: var(--footer-link);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--footer-link-hover);
}

.site-footer__divider {
  opacity: 0.4;
  color: var(--footer-muted);
}

.site-footer__tagline {
  color: var(--footer-muted);
  font-size: 0.92rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 12px 16px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    gap: 10px;
  }
}

body.dark-theme .site-footer__link:hover,
body.dark-theme .site-footer__link:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}

body.dark-theme .site-footer__divider {
  color: rgba(231, 235, 248, 0.7);
}
