@font-face {
  font-family: "Source Sans Pro";
  src: url("../webfonts/sourcesanspro.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

@font-face {
  font-family: "Merriweather";
  src: url("../webfonts/merriweather.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  z-index: 10002;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #1e252d;
  background: #fff;
  border-radius: 0.2rem;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.content-section {
  display: none;
  animation: content-enter 0.35s ease-out;
}

.content-section.active {
  display: block;
}

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

#nav .links li a {
  cursor: pointer;
}

#nav .links li a[aria-current="page"] {
  color: #1e252d !important;
  background-color: #fff;
}

code {
  padding: 0.2em 0.45em;
  background: rgba(144, 144, 144, 0.14);
  border-radius: 0.2rem;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.content-section li {
  margin-bottom: 0.45rem;
}

.content-section li:last-child {
  margin-bottom: 0;
}

.footer-record-link {
  display: inline-flex;
  align-items: center;
  font-size: inherit;
}

.footer-record-icon {
  width: 1em;
  height: 1em;
  margin-right: 0.25rem;
  object-fit: contain;
}

.error-page #intro {
  min-height: 72vh;
  padding: 4rem 2rem 3rem;
}

.error-page #intro .error-code {
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.error-page #intro h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
}

.error-page #intro > p:not(.error-code) {
  max-width: 48rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.error-page .error-actions {
  justify-content: center;
  margin-top: 2rem;
}

.error-page .error-actions .button {
  min-width: 10rem;
}

.error-page #main {
  max-width: 72rem;
}

.error-page #main > .error-panel {
  padding: 4rem;
}

.error-panel header.major {
  margin-bottom: 2.5rem;
}

.error-panel .error-path {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.6rem;
  overflow-wrap: anywhere;
}

.error-tips {
  margin-bottom: 0;
}

.error-tips li {
  margin-bottom: 0.7rem;
}

.error-page #copyright {
  margin-top: 3rem;
}

@media screen and (max-width: 736px) {
  .error-page #intro {
    min-height: 68vh;
    padding: 5rem 1.5rem 2.5rem;
  }

  .error-page #main > .error-panel {
    padding: 2rem;
  }

  .error-page .error-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .error-page .error-actions li,
  .error-page .error-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
