/* Tablet and mobile. The desktop nav gives way to a full-screen menu. */

@media (max-width: 899px) {
  .desktop-nav {
    display: none;
  }

  .site-header .nav-toggle,
  .mobile-nav .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }

  .site-header .nav-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav:not([hidden]) {
    display: none;
  }
}

@media (max-width: 960px) {
  .article-head,
  .prose-block,
  .pull-block,
  .split {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
  }

  .article-num,
  .side-num,
  .article-copy,
  .prose-block > .prose,
  .prose-block > .pull,
  .split .prose,
  .split .note {
    grid-column: auto;
    justify-self: start;
    width: auto;
    max-width: none;
    text-align: left;
  }

  .side-num,
  .article-num {
    padding-top: 0;
  }

  .side-num:empty {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .cover,
  .figure,
  .media-slot {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .home-title {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .home-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 16rem);
  }

  .pager {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pager-next {
    grid-column: 1;
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.45rem;
  }

  .page-head h1,
  .article-head h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .mobile-list li > *,
  .mobile-socials a,
  .home-center,
  .page-head,
  .article-head {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
