#root > footer {
  align-items: start;
  background: var(--paper);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(145px, 1fr));
  padding: 58px 6vw 28px;
}

.footer-brand { max-width: 520px; }
.footer-brand .logo { padding: 0; }
.logo img {
  display: block;
  height: auto;
  width: 178px;
}
.footer-brand .logo img { width: 230px; }
.footer-brand em {
  color: var(--coral);
  display: block;
  font: 600 22px var(--serif);
  margin: 17px 0 9px;
}
.footer-brand p {
  color: #5f706b;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.footer-brand > a, .footer-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-brand > a { font-size: 13px; font-weight: 800; }
.footer-links {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links b { font: 600 20px var(--serif); margin-bottom: 5px; }
.footer-links a, .footer-links span, .footer-links button {
  background: transparent;
  border: 0;
  color: #5f706b;
  font-size: 12px;
  padding: 0;
  text-align: left;
}
.footer-links a:hover, .footer-links button:hover { color: var(--coral); }
.social-links small {
  color: #6c7a76;
  font-size: 12px;
  line-height: 1.5;
  max-width: 210px;
}
.social-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1px 0 5px;
}
.social-icon-list a {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
  width: 44px;
}
.social-icon-list img {
  height: 22px;
  opacity: .78;
  transition: opacity 160ms ease;
  width: 22px;
}
.social-icon-list a:hover {
  background: #f5efe3;
  transform: translateY(-1px);
}
.social-icon-list a:hover img { opacity: 1; }
.social-icon-list a:focus-visible,
.footer-brand > a:focus-visible,
.footer-links a:focus-visible,
.footer-links button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.footer-legal {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 22px;
}
.footer-legal small { font-weight: 800; }
.footer-legal p {
  color: #6c7a76;
  font-size: 10px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 1100px;
}

@media (width <= 1100px) {
  #root > footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand,
  .footer-legal { grid-column: 1 / -1; }
}

@media (width <= 780px) {
  #root > footer {
    display: grid;
    gap: 34px 24px;
    grid-template-columns: 1fr 1fr;
    padding: 45px 22px 26px;
    text-align: left;
  }
  .footer-brand, .footer-legal { grid-column: 1 / -1; }
  #root > footer .logo { margin: 0; }
  header .logo img { width: 148px; }
  .footer-brand .logo img { width: 205px; }
  .social-links { grid-column: 1 / -1; }
  .social-icon-list { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .social-icon-list a,
  .social-icon-list img { transition: none; }
  .social-icon-list a:hover { transform: none; }
}
