/* ==========================================================================
   SITE FOOTER
   Ink, with its top corners rounded like a sheet laid over the last section.
   Columns of links from 600px; a base line with the partnership, the
   registration and the terms. Room is left under it for the tab bar.
   ========================================================================== */

.site-footer {
  --focus-color: var(--secondary-color);
  position: relative;
  margin-top: -28px;
  padding-top: 3.5rem;
  padding-bottom: calc(env(safe-area-inset-bottom) + 7.5rem);
  border-radius: 28px 28px 0 0;
  background-color: var(--ink);
  color: var(--white);
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .site-footer {
    margin-top: -40px;
    padding-top: 5rem;
    padding-bottom: 3rem;
    border-radius: 40px 40px 0 0;
  }
}

.site-footer__wrapper {
  display: grid;
  gap: 2.5rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .site-footer__wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .site-footer__wrapper {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 3rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

/* BRAND */

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .site-footer__brand {
    grid-column: auto;
  }
}

.site-footer__brand svg {
  width: auto;
  height: 30px;
}

.site-footer__brand .esquire-logo__light {
  stroke: none;
}

.site-footer__brand p {
  margin-top: 1rem;
  font-size: 15px;
  color: color-mix(in srgb, var(--white) 70%, transparent);
}

/* COLUMNS */

.site-footer__column h2 {
  margin-bottom: 0.5rem;
  font-family: var(--body-font-family);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--white) 60%, transparent);
}

.site-footer__column ul a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  font-size: 16px;
  font-weight: 520;
}

.site-footer__column ul a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__column ul a span {
  min-width: 3.75em;
  color: color-mix(in srgb, var(--white) 60%, transparent);
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.site-footer__social a {
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--white) 10%, transparent);
}

/* BASE */

.site-footer__base {
  display: grid;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
  font-size: 13px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--white) 66%, transparent);
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .site-footer__base {
    grid-column: 1 / -1;
  }
}

.site-footer__base a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__partner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 14px;
  color: var(--white);
}

.site-footer__partner a {
  text-decoration: none;
}

.site-footer__partner svg {
  width: auto;
  height: 22px;
}

.site-footer__partner .launchpad-logo__coral,
.site-footer__partner .launchpad-logo__pink {
  fill: var(--white);
}

.site-footer__partner .launchpad-logo__dot {
  fill: var(--launchpad-coral);
}

.site-footer__prototype button {
  padding: 0;
  border: 0;
  background-color: transparent;
  color: var(--white);
  font-size: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
