/* nunito-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/nunito-v32-latin-regular.woff2") format("woff2");
}

/* nunito-italic - latin */
@font-face {
  font-display: swap;
  font-family: "Nunito";
  font-style: italic;
  font-weight: 400;
  src: url("/fonts/nunito-v32-latin-italic.woff2") format("woff2");
}

/* nunito-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  src: url("/fonts/nunito-v32-latin-700.woff2") format("woff2");
}

/* nunito-700italic - latin */
@font-face {
  font-display: swap;
  font-family: "Nunito";
  font-style: italic;
  font-weight: 700;
  src: url("/fonts/nunito-v32-latin-700italic.woff2") format("woff2");
}

/* Reset defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body styling */
body {
  font-family: Nunito, sans-serif;
  background-color: #fff;
  color: #222;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- NAVBAR BASE --- */
.navbar {
  background-color: white;
  padding: 0.75rem 1.5rem;
  position: relative;
}

/* --- MENU TOGGLE BUTTON --- */
.menu-toggle {
  background: none;
  border: none;
  color: black;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* hidden on desktop */
  margin-left: auto;
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    gap: 1rem;
    transform: translateX(100%);
    border-radius: 8px;
    border: #ccc 1px solid;
  }

  .nav-links.open {
    transform: translateX(0);
  }
}

#root {
  font-family: Nunito, sans-serif;
}

#root h1 {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

#root h2 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

#root h3 {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
#root p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.75;
  color: rgb(31 41 55 / 1); /* text-gray-800 */
}

/* Lists */
#root ul,
#root ol {
  margin-left: 1.5rem;
  list-style-type: disc;
}

/* Code blocks */
#root pre,
#root code {
  font-family: monospace;
  background-color: #f8fafc;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

#root p a {
  color: #3b82f6;
}

#root p a:hover {
  color: #1d4ed8;
}
