.site-footer {
  position: relative;
  overflow: hidden;
  padding: 58px 32px 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 39, 25, 0.98), rgba(20, 82, 59, 0.96)),
    radial-gradient(circle at 88% 12%, rgba(255, 242, 0, 0.16), transparent 28%);
}

.site-footer::before {
  content: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(420px, 1.7fr) repeat(3, minmax(145px, 1fr));
  gap: 36px;
}

.footer-top > * {
  min-width: 0;
}

.footer-logo {
  display: block;
  width: min(100%, 316px);
  margin: 0;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-heading {
  margin: 0 0 16px;
  color: rgba(243, 235, 207, 0.44);
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a.footer-link--external {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  text-decoration: none;
}

.footer-links a.footer-link--external i {
  font-size: 0.9em;
  line-height: 1;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--sage-green, #d7e4d0);
}

.footer-about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
  padding: 24px 0 10px;
  border-top: 1px solid rgba(215, 228, 208, 0.16);
}

.footer-tagline {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-family: var(--serif-jp, serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  margin-top: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono, monospace);
  font-size: 16px;
  text-decoration: none;
  border: 1px solid rgba(215, 228, 208, 0.18);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--ivory, #f3ebcf);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(243, 235, 207, 0.5);
}

.footer-social i {
  line-height: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
  padding-top: 10px;
  border-top: 0;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.footer-copy strong {
  color: rgba(255, 255, 255, 0.56);
  margin-right: 8px;
  font-weight: 500;
}

.footer-version {
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
}

@media (max-width: 760px) {
  .site-footer {
    padding: 42px 24px 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-logo {
    width: min(100%, 316px);
  }

  .footer-about-row {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding: 20px 0 8px;
  }

  .footer-tagline {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .footer-social {
    gap: 8px;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
