@layer components {
  .site-footer {
    background: var(--paper);
    color: var(--ink);
    text-align: center;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 56rem;
    margin-inline: auto;
    padding: 4rem 1.5rem;
  }

  .footer-brand {
    display: inline-flex;
    align-items: center;
  }

  .footer-brand img {
    width: 7rem;
    height: auto;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }

  .footer-nav a {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .footer-nav a:hover {
    color: var(--ink);
  }

  .footer-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-socials a {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--muted);
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .footer-socials a:hover {
    background-color: var(--surface);
    color: var(--ink);
  }

  .footer-socials svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
    background: var(--line);
  }

  .footer-copyright {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1rem;
  }
}

@layer responsive {
  @media (min-width: 40rem) {
    .footer-inner { padding-block: 5rem; }
  }
}
