/* ============================================================
   Header Brand — #brand
   Centered site title over the hero
   Based on Shoka design
   ============================================================ */

#brand {
  position: fixed;
  padding: 3rem 5rem 0;
  text-align: center;
  width: 100%;
  height: 50vh;
  min-height: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#brand .pjax {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#brand .logo {
  border: none;
  color: inherit;
  outline: 0;
  text-decoration: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  transition: all var(--transition-duration) var(--transition-ease);
  cursor: pointer;
}

#brand .artboard {
  font-family: var(--font-family-logo);
  font-size: var(--font-size-logo);
  line-height: 1.2;
}

#brand h1 {
  font-size: var(--font-size-title);
  letter-spacing: 0.125rem;
  line-height: 1.2;
  font-family: var(--font-family-sans);
}

#brand .artboard + h1 {
  margin: 0.625rem 0;
}

/* PJAX animation */
body.loaded #brand .pjax {
  animation: brandFadeIn 0.5s ease both;
}

@keyframes brandFadeIn {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #brand {
    padding: 3rem 0.5rem 0;
  }
  #brand h1 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  #brand .artboard {
    font-size: 2.5em;
  }
}
