.site-footer {
  display: block;
  padding: 56px var(--gutter) 28px;
  background: #f8f5f0;
  border-top: 1px solid #e4d8ce;
  color: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(230px, 1fr) auto;
  align-items: start;
  gap: 48px;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .105em;
  color: var(--accent);
}

.footer-brand svg {
  width: 35px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-intro p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: #665b57;
}

.footer-label {
  margin: 4px 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #786861;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0 42px;
}

.footer-nav a,
.footer-nav button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer .back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 44px;
  padding: 0 0 10px;
  border-bottom: 1px solid #cdbbb3;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--accent);
}

.site-footer .back-to-top-label { font-size: 13px; }
.site-footer .back-to-top-arrow { font-size: 28px; line-height: 1; }
.site-footer .back-to-top:hover { border-color: var(--accent); }

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #e1d5cd;
}

.site-footer .copyright,
.site-footer .creator-credit {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  line-height: 1.6;
  color: #73665f;
}

@media (max-width: 1000px) {
  .footer-main { grid-template-columns: minmax(260px, 1fr) auto; gap: 32px; }
  .footer-explore { grid-column: 2; grid-row: 1 / span 2; }
  .site-footer .back-to-top { justify-self: start; }
  .site-footer .footer-bottom { margin-top: 30px; }
}

@media (max-width: 700px) {
  .site-footer { padding: 38px 24px 24px; }
  .footer-main { grid-template-columns: 1fr auto; gap: 28px 20px; }
  .footer-intro { grid-column: 1 / -1; }
  .site-footer .footer-brand { gap: 10px; font-size: 18px; }
  .footer-brand svg { width: 30px; height: 25px; }
  .footer-intro p { margin-top: 16px; font-size: 16px; }
  .footer-explore { grid-column: 1; grid-row: 2; }
  .footer-label { margin-top: 0; margin-bottom: 6px; }
  .footer-nav { column-gap: 24px; }
  .footer-nav a, .footer-nav button { font-size: 14px; }
  .site-footer .back-to-top { grid-column: 2; grid-row: 2; align-self: end; justify-content: center; min-width: 44px; padding-bottom: 6px; }
  .site-footer .back-to-top-label { display: none; }
  .site-footer .footer-bottom { margin-top: 28px; padding-top: 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer .copyright, .site-footer .creator-credit { font-size: 12px; }
}
