.site-footer {
  padding-top: 44px;
  border-top: 1px solid var(--color-border);
  background: var(--color-warm);
  font-family: var(--font-sans);
}

.footer-grid {
  display: grid;
  grid-template-areas:
    "identity"
    "links"
    "actions"
    "location";
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 44px;
}

.footer-identity { grid-area: identity; }
.footer-quick-links { grid-area: links; }
.footer-quick-actions { grid-area: actions; }
.footer-location { grid-area: location; }

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-lockup img {
  width: clamp(54px, 5vw, 72px);
  height: auto;
  flex: 0 0 auto;
}

.footer-identity h2 {
  font-family: var(--font-accent);
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-identity h2.faculty-name--latin {
  font-family: var(--font-sans);
  font-weight: 650;
}

.footer-identity p {
  max-width: 27em;
  margin-top: 17px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-identity-contact {
  display: grid;
  gap: 4px;
  margin-top: 15px;
}

.footer-identity-contact a {
  width: fit-content;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-identity-contact svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.footer-grid h3 {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  width: fit-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-block: 7px;
  font-size: 15px;
  line-height: 1.5;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #17637b;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s ease;
}

.footer-social a:hover {
  background: var(--color-brand-light);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 20px;
  overflow: hidden;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: grayscale(1);
}

.footer-directions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}

.footer-directions > span {
  transition: transform .18s ease;
}

.footer-directions:hover > span,
.footer-directions:focus-visible > span {
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-block: 12px 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-bottom > span {
  min-width: 0;
}

.footer-bottom .footer-social {
  flex: 0 0 auto;
  gap: 2px;
  color: var(--color-text);
}

.footer-bottom .footer-social a {
  width: 36px;
  height: 36px;
}

.footer-bottom .footer-social svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 560px) {
  .footer-grid {
    grid-template-areas:
      "identity identity"
      "links actions"
      "location location";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 48px;
    padding-bottom: 52px;
  }

  .footer-bottom {
    gap: 18px 28px;
  }

  .footer-bottom .footer-social {
    gap: 10px;
  }

  .footer-bottom .footer-social a {
    width: 40px;
    height: 40px;
  }

  .footer-bottom .footer-social svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-areas:
      "identity location"
      "links actions";
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding-top: 56px;
  }

  .footer-grid {
    grid-template-areas:
      "identity links actions location";
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .9fr) minmax(0, 1.15fr);
    gap: 30px;
  }
}
