/* Site navigation and footer. Mobile navigation is enhanced by site.js. */
.site-foot a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}

.site-main {
  min-height: 60vh;
}

.site-head {
  position: static;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--egg-gutter);
  align-items: start;
  padding: clamp(1rem, 1.7vw, 1.6rem) var(--bsp-pad-page);
  background: var(--egg-shell);
  border-bottom: 0;
}

.site-head__logo {
  grid-column: 1 / 6;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: var(--egg-control-hit);
  padding: 0 .8rem;
  margin: 0 -.8rem;
}

.site-head__logo .site-head__mark {
  display: block;
  width: var(--egg-logo-width);
  height: auto;
}

.site-head__mark { color: var(--bsp-accent); }

.site-nav {
  grid-column: 6 / 11;
  display: grid;
  grid-template-columns: repeat(3, minmax(max-content, 1fr));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  row-gap: 0;
  column-gap: var(--egg-gutter);
}

.site-menu-btn {
  display: none;
  margin-left: auto;
  padding: var(--egg-space-xs);
  width: var(--egg-control-hit);
  height: var(--egg-control-hit);
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--bsp-ink);
  cursor: pointer;
}

.site-menu-btn svg {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
}

.site-menu-btn .site-menu-btn__close {
  display: none;
}

.site-menu-btn[aria-expanded="true"] .site-menu-btn__open {
  display: none;
}

.site-menu-btn[aria-expanded="true"] .site-menu-btn__close {
  display: block;
}

.site-nav a {
  color: var(--bsp-ink-mute);
  font-size: var(--egg-type-navigation);
  font-weight: 500;
  line-height: 1.3;
}

.site-nav a[aria-current="page"] {
  color: var(--bsp-ink);
  font-weight: 700;
}

.site-foot {
  margin-top: 0;
  padding: clamp(2.75rem, 5.5vw, 5.5rem) var(--bsp-pad-page) clamp(1.4rem, 2.2vw, 2.2rem);
  background: var(--egg-shell);
}

.site-foot__cols,
.site-foot__brand,
.site-foot__legal {
  max-width: var(--bsp-maxw);
  margin-inline: auto;
}

.site-foot__cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--egg-gutter);
  row-gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--egg-line);
}

.site-foot__col:nth-child(1) {
  grid-column: 1 / 5;
}

.site-foot__col:nth-child(2) {
  grid-column: 5 / 9;
}

.site-foot__col:nth-child(3) {
  grid-column: 9 / 13;
}

.site-foot__col p,
.site-foot__social a,
.site-foot__col a {
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
}

.site-foot__social a,
.site-foot__col > p > a {
  font-weight: 700;
  color: var(--bsp-ink);
}

.site-foot__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot__mute {
  margin-top: .55em;
  color: var(--bsp-ink);
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
  line-height: 1.6;
}

.site-foot__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-top: clamp(3.5rem, 9vw, 8.5rem);
}

.site-foot__year {
  flex: none;
  color: var(--bsp-ink);
  font-size: clamp(2.6rem, 7vw, 8.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.site-foot__wordmark {
  display: block;
  width: min(57vw, 56rem);
  height: auto;
  color: var(--bsp-ink);
}

.site-foot__legal {
  margin-top: clamp(.35rem, .6vw, .6rem);
  text-align: right;
}

.site-foot__legal small {
  color: var(--bsp-ink);
  font-size: clamp(.8125rem, .9vw, .9375rem);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .site-foot__col:nth-child(1) {
    grid-column: 1 / 7;
  }

  .site-foot__col:nth-child(2) {
    grid-column: 7 / 13;
  }

  .site-foot__col:nth-child(3) {
    grid-column: 1 / 7;
  }
}

@media (max-width: 720px) {
  .site-foot__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .site-foot__wordmark {
    width: 100%;
  }

  .site-foot__year {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .site-foot__legal {
    text-align: left;
  }

  .site-foot__col:nth-child(n) {
    grid-column: 1 / -1;
  }
}

.site-foot__col > p:first-child {
  margin-bottom: .55rem;
  font-weight: 600;
}

.site-foot__col .site-foot__social a {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  width: fit-content;
  min-height: calc(var(--egg-control-hit) - var(--egg-space-xs));
  color: var(--bsp-ink);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.site-foot__arrow-ic {
  width: .65em;
  height: .65em;
  flex: none;
  color: currentColor;
}

@media (max-width: 720px) {
  .site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
  }

  .nav-ready .site-menu-btn {
    display: inline-flex;
    position: relative;
    z-index: 40;
  }

  .nav-ready .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: max(6rem, env(safe-area-inset-top)) var(--bsp-pad-page) max(2rem, env(safe-area-inset-bottom));
    background: var(--bsp-paper);
    transform: translateX(100%);
    transition: transform .3s ease;
    visibility: hidden;
  }

  .nav-ready .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--egg-line);
    color: var(--bsp-ink);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .site-nav a:first-child {
    border-top: 1px solid var(--egg-line);
  }

  .site-nav a[aria-current="page"] {
    color: var(--egg-accent-action);
  }

  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  .site-foot__cols {
    padding-bottom: clamp(1.75rem, 6vw, 2.5rem);
  }

  .site-foot__legal,
  .site-foot__legal small {
    text-align: left;
  }
}

.site-foot__col { min-width: 0; }
.site-foot__col a { overflow-wrap: anywhere; }
.site-foot__col a, .site-nav a { min-height: var(--egg-control-hit); display: inline-flex; align-items: center; }
@media (max-width: 720px) {
  .site-head { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-open .site-menu-btn { position: fixed; top: 1rem; right: var(--bsp-pad-page); }
}
@media (prefers-reduced-motion: reduce) { .site-nav { transition: none !important; } }
