/* Global Font Family */
body {
  font-family: 'Source Serif Pro', serif;
}

/* Light Mode Background */
body.light-mode {
  background-color: #FFFAED;
}

/* Blog Title Styling */
h1.blog-title {
  font-family: 'Source Serif Pro', serif;
  font-weight: 700;
  font-style: italic;
}

/* Blog Content Font */
#blogContent {
  font-family: 'Source Serif Pro', serif;
}

/* Catalog Modal */
#catalogModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
  justify-content: center;
  align-items: center;
}

#catalogModal.active {
  display: flex;
}

/* Modal Content Styling */
.catalog-content {
  background-color: #f3f4f6;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.dark .catalog-content {
  background-color: #000000;
}

/* Search Bar in Modal - Make it lighter than modal background */
body.dark #catalogSearchInput {
  background-color: #374151 !important;
}

/* Small-screen responsive tweaks */
@media (max-width: 640px) {
  .catalog-content {
    width: calc(100% - 48px);
    margin: 0 16px;
    padding: 1rem;
    max-height: 85vh;
  }

  /* Make mobile menu buttons full-width and touch friendly */
  #mobileMenu .max-w-5xl div > button,
  #mobileMenu button {
    width: 100%;
    text-align: left;
    padding-left: 0;
  }

  main.max-w-5xl {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}
