.site-footer {
  padding: clamp(2.8rem, 6vw, 5rem) 0 0;
  border-top: 1px solid #624433;
  background: radial-gradient(ellipse at 8% 0, #4b2b18, transparent 54%), #291c15;
  color: #eadad4;
}

:root[data-theme="dark"] .site-footer {
  border-color: var(--line);
  background: radial-gradient(ellipse at 8% 0, #291b13, transparent 55%), #140f0d;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.75rem);
}

.footer-identity > a:first-child {
  display: inline-block;
  border-radius: .3rem;
}

.footer-identity img { width: 8.75rem; }
.footer-identity p { max-width: 24ch; margin: .95rem 0 1.3rem; }

.site-footer .button-footer {
  min-height: 2.65rem;
}

.footer-group h2 {
  margin: .27rem 0 .9rem;
  color: #fff7f4;
  font: 800 1rem/1.4 var(--heading-font);
  text-wrap: wrap;
}

.footer-group ul, .footer-legal { margin: 0; padding: 0; list-style: none; }
.footer-group a, .footer-legal a { text-decoration: none; text-underline-offset: .25em; }
.footer-group a:hover, .footer-legal a:hover { color: #fff7f4; text-decoration: underline; }

.footer-links { display: grid; gap: .22rem; }
.footer-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.4rem, 1.35vw, .7rem);
  min-height: 2.75rem;
  padding: .25rem .32rem;
  border-radius: .65rem;
  font-size: .925rem;
  font-weight: 600;
  line-height: 1.3;
}
.footer-link-icon {
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  color: #d7aa8a;
}
.footer-link-icon svg { width: 1rem; height: 1rem; stroke-width: 1.5; }
.footer-links a:is(:hover, :focus-visible, [aria-current]) {
  background: #fff5eb0c;
  color: #fff7f4;
  text-decoration: none;
}
.footer-links a:is(:hover, :focus-visible) .footer-link-icon { color: #ffac66; }
.footer-links a:focus-visible { outline-offset: 1px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .35rem .55rem;
  border-radius: .45rem;
  font-size: .88rem;
  line-height: 1.35;
}

.footer-social a:hover { background: #ffffff12; }
.footer-social svg { flex: none; width: 1.15rem; height: 1.15rem; color: var(--brand-orange); }
.footer-social li + li { margin-top: .15rem; }

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-block: 1.25rem 1.4rem;
  border-top: 1px solid #694840;
  color: #dcc6bd;
  font-size: .83rem;
}

.footer-meta small { font-size: inherit; }
.footer-copyright { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.footer-copyright span[lang="en"] { color: #ffac66; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .45rem 1.35rem; }
.site-footer :focus-visible { outline-color: #ffac66; }

@media (max-width: 880px) {
  .footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-identity { grid-column: 1 / -1; }
}

@media (max-width: 510px) {
  .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-group:last-child { grid-column: 1 / -1; }
  .footer-social { display: flex; flex-wrap: wrap; gap: .6rem; }
  .footer-social li + li { margin-top: 0; }
  .footer-meta { flex-direction: column; }
}

@media (max-width: 390px) {
  .footer-content { column-gap: .85rem; }
  .footer-links a { padding-inline: .15rem; font-size: .86rem; }
}
