/* mobile-overlay.css
   shows a full-screen message on screens 1024px and narrower
   drop this into /css/ and link it from every page */

.mobile-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background-color: #F7F2F1;
    color: #0c2177;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    /* subtle graph paper to match the site */
  }

  /* lock scroll and hide everything else on small screens */
  body:has(.mobile-overlay) {
    overflow: hidden !important;
  }

  .mobile-overlay-message {
    font-family: 'Meta', serif;
    font-size: 1.6rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    max-width: 22ch;
  }

  .mobile-overlay-doc {
    font-family: 'Whois', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    letter-spacing: 0.03em;
    opacity: 0.75;
  }

  .mobile-overlay-doc a {
    color: #0c2177;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mobile-overlay-doc a:hover {
    opacity: 0.7;
  }
}